summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Heuer <kwzh@gnu.org>1996-02-14 04:32:55 +0000
committerKarl Heuer <kwzh@gnu.org>1996-02-14 04:32:55 +0000
commit555722598bc9cf938a8a3975ee6b12b00ad99ab3 (patch)
treef9c01ed3eee8299bfbc1a8e0e5529006fff34ec7
parent95127745f8a44186204340bdaeb6852a8d0cca85 (diff)
downloademacs-555722598bc9cf938a8a3975ee6b12b00ad99ab3.tar.gz
(vc-consult-rcs-headers): Ignore text properties.
-rw-r--r--lisp/vc-hooks.el14
1 files changed, 9 insertions, 5 deletions
diff --git a/lisp/vc-hooks.el b/lisp/vc-hooks.el
index 27b57e17de1..c255be1a93d 100644
--- a/lisp/vc-hooks.el
+++ b/lisp/vc-hooks.el
@@ -393,7 +393,8 @@ See also variable `vc-consult-headers'.")
(looking-at "[^ ]+ \\([0-9.]+\\) ")))
(goto-char (match-end 0))
;; if found, store the revision number ...
- (setq version (buffer-substring (match-beginning 1) (match-end 1)))
+ (setq version (buffer-substring-no-properties (match-beginning 1)
+ (match-end 1)))
;; ... and check for the locking state
(cond
((looking-at
@@ -409,7 +410,8 @@ See also variable `vc-consult-headers'.")
;; revision is locked by some user
((looking-at "\\([^ ]+\\) \\$")
(setq locking-user
- (buffer-substring (match-beginning 1) (match-end 1)))
+ (buffer-substring-no-properties (match-beginning 1)
+ (match-end 1)))
(setq status 'rev-and-lock))
;; everything else: false
(nil)))
@@ -422,13 +424,15 @@ See also variable `vc-consult-headers'.")
"Revision: \\([0-9.]+\\) \\$")
nil t)
;; if found, store the revision number ...
- (setq version (buffer-substring (match-beginning 1) (match-end 1)))
+ (setq version (buffer-substring-no-properties (match-beginning 1)
+ (match-end 1)))
;; and see if there's any lock information
(goto-char (point-min))
(if (re-search-forward (concat "\\$" "Locker:") nil t)
(cond ((looking-at " \\([^ ]+\\) \\$")
- (setq locking-user (buffer-substring (match-beginning 1)
- (match-end 1)))
+ (setq locking-user (buffer-substring-no-properties
+ (match-beginning 1)
+ (match-end 1)))
(setq status 'rev-and-lock))
((looking-at " *\\$")
(setq locking-user 'none)