emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

patch: fix wrong-type-argument error in vc-registered


From: Yoichi NAKAYAMA
Subject: patch: fix wrong-type-argument error in vc-registered
Date: Tue, 12 Oct 2004 23:48:57 +0900
User-agent: Wanderlust/2.11.32 (Wonderwall) EMIKO/1.14.1 (Choanoflagellata) FLIM/1.14.7 (三条) APEL/10.6 Emacs/21.3.50 (i686-pc-linux-gnu) MULE/5.0 (賢木)

The change
2004-09-12  Stefan Monnier  <address@hidden>

        * vc-hooks.el (vc-ignore-dir-regexp): New var.

overlooked that (file-name-directory file) may return nil.
Following is the patch against it.

Regards,
-- 
Yoichi NAKAYAMA

Index: vc-hooks.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/vc-hooks.el,v
retrieving revision 1.169
diff -u -r1.169 vc-hooks.el
--- vc-hooks.el 13 Sep 2004 03:36:11 -0000      1.169
+++ vc-hooks.el 12 Oct 2004 14:38:39 -0000
@@ -336,7 +336,9 @@
 backend is tried first."
   (let (handler)
     (cond
-     ((string-match vc-ignore-dir-regexp (file-name-directory file)) nil)
+     ((and (file-name-directory file)
+          (string-match vc-ignore-dir-regexp (file-name-directory file)))
+      nil)
      ((and (boundp 'file-name-handler-alist)
           (setq handler (find-file-name-handler file 'vc-registered)))
       ;; handler should set vc-backend and return t if registered






reply via email to

[Prev in Thread] Current Thread [Next in Thread]