aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2003-05-01 00:46:41 +0000
committerStefan Monnier2003-05-01 00:46:41 +0000
commit6145460516d89ffb7d0d0e8d14916157be3edd26 (patch)
tree555da37ff314efb4e5b54582a5e3e1228d4b4e63
parent32c06229108e02639c2f8edaa15d0547aec0d98a (diff)
downloademacs-6145460516d89ffb7d0d0e8d14916157be3edd26.tar.gz
emacs-6145460516d89ffb7d0d0e8d14916157be3edd26.zip
(cvs-mode-find-file): Don't complain if bound to a non-mouse event.
(cvs-vc-command-advice): Don't parse "cvs update -p" output.
-rw-r--r--lisp/pcvs.el18
1 files changed, 12 insertions, 6 deletions
diff --git a/lisp/pcvs.el b/lisp/pcvs.el
index 0565e7fce13..2ecae236f9b 100644
--- a/lisp/pcvs.el
+++ b/lisp/pcvs.el
@@ -14,7 +14,7 @@
14;; (Jari Aalto+mail.emacs) jari.aalto@poboxes.com 14;; (Jari Aalto+mail.emacs) jari.aalto@poboxes.com
15;; Maintainer: (Stefan Monnier) monnier+lists/cvs/pcl@flint.cs.yale.edu 15;; Maintainer: (Stefan Monnier) monnier+lists/cvs/pcl@flint.cs.yale.edu
16;; Keywords: CVS, version control, release management 16;; Keywords: CVS, version control, release management
17;; Revision: $Id: pcvs.el,v 1.50 2003/03/19 14:34:24 monnier Exp $ 17;; Revision: $Id: pcvs.el,v 1.51 2003/04/20 22:03:00 sds Exp $
18 18
19;; This file is part of GNU Emacs. 19;; This file is part of GNU Emacs.
20 20
@@ -1899,10 +1899,11 @@ This command ignores files that are not flagged as `Unknown'."
1899 "Select a buffer containing the file. 1899 "Select a buffer containing the file.
1900With a prefix, opens the buffer in an OTHER window." 1900With a prefix, opens the buffer in an OTHER window."
1901 (interactive (list last-input-event current-prefix-arg)) 1901 (interactive (list last-input-event current-prefix-arg))
1902 (when (ignore-errors (mouse-set-point e) t) ;for invocation via the mouse 1902 ;; If the event moves point, check that it moves it to a valid location.
1903 (unless (memq (get-text-property (1- (line-end-position)) 'font-lock-face) 1903 (when (and (/= (point) (progn (ignore-errors (mouse-set-point e)) (point)))
1904 '(cvs-header-face cvs-filename-face)) 1904 (memq (get-text-property (1- (line-end-position)) 'font-lock-face)
1905 (error "Not a file name"))) 1905 '(cvs-header-face cvs-filename-face)))
1906 (error "Not a file name"))
1906 (cvs-mode! 1907 (cvs-mode!
1907 (lambda (&optional rev) 1908 (lambda (&optional rev)
1908 (interactive (list (cvs-prefix-get 'cvs-branch-prefix))) 1909 (interactive (list (cvs-prefix-get 'cvs-branch-prefix)))
@@ -2229,7 +2230,12 @@ The exact behavior is determined also by `cvs-dired-use-hook'."
2229 (string-match "\\`-" (car flags))) 2230 (string-match "\\`-" (car flags)))
2230 (pop flags)) 2231 (pop flags))
2231 ;; don't parse output we don't understand. 2232 ;; don't parse output we don't understand.
2232 (member (car flags) cvs-parse-known-commands))) 2233 (member (car flags) cvs-parse-known-commands))
2234 ;; Don't parse "update -p" output.
2235 (not (and (member (car flags) '("update" "checkout"))
2236 (let ((found-p nil))
2237 (dolist (flag flags found-p)
2238 (if (equal flag "-p") (setq found-p t)))))))
2233 (save-current-buffer 2239 (save-current-buffer
2234 (let ((buffer (current-buffer)) 2240 (let ((buffer (current-buffer))
2235 (dir default-directory) 2241 (dir default-directory)