]> code.delx.au - gnu-emacs/commitdiff
(cvs-mode-find-file): Fixed the last patch's logic.
authorSam Steingold <sds@gnu.org>
Fri, 9 May 2003 15:59:02 +0000 (15:59 +0000)
committerSam Steingold <sds@gnu.org>
Fri, 9 May 2003 15:59:02 +0000 (15:59 +0000)
lisp/ChangeLog
lisp/pcvs.el

index 96e9669312454cc1646021fd2c470c50f90244c9..1051c609deb8c130648055908266213707a6fb65 100644 (file)
@@ -1,3 +1,7 @@
+2003-05-09  Sam Steingold  <sds@gnu.org>
+
+       * pcvs.el (cvs-mode-find-file): Fixed the last patch's logic.
+
 2003-05-09  Stefan Monnier  <monnier@cs.yale.edu>
 
        * uniquify.el: Use the original buffer-name as `base' in place of the
index 2ecae236f9b0ba7fa6ecf2ed0a2523c1940dc926..b7dac6090789dc2b55b0603b93af55bd346d2836 100644 (file)
@@ -14,7 +14,7 @@
 ;;     (Jari Aalto+mail.emacs) jari.aalto@poboxes.com
 ;; Maintainer: (Stefan Monnier) monnier+lists/cvs/pcl@flint.cs.yale.edu
 ;; Keywords: CVS, version control, release management
-;; Revision: $Id: pcvs.el,v 1.51 2003/04/20 22:03:00 sds Exp $
+;; Revision: $Id: pcvs.el,v 1.52 2003/05/01 00:46:41 monnier Exp $
 
 ;; This file is part of GNU Emacs.
 
@@ -1901,8 +1901,9 @@ With a prefix, opens the buffer in an OTHER window."
   (interactive (list last-input-event current-prefix-arg))
   ;; If the event moves point, check that it moves it to a valid location.
   (when (and (/= (point) (progn (ignore-errors (mouse-set-point e)) (point)))
-            (memq (get-text-property (1- (line-end-position)) 'font-lock-face)
-                  '(cvs-header-face cvs-filename-face)))
+            (not (memq (get-text-property (1- (line-end-position))
+                                           'font-lock-face)
+                        '(cvs-header-face cvs-filename-face))))
     (error "Not a file name"))
   (cvs-mode!
    (lambda (&optional rev)