unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* patch: fix wrong-type-argument error in vc-registered
@ 2004-10-12 14:48 Yoichi NAKAYAMA
  2004-10-12 16:14 ` Stefan Monnier
  0 siblings, 1 reply; 8+ messages in thread
From: Yoichi NAKAYAMA @ 2004-10-12 14:48 UTC (permalink / raw)


The change
2004-09-12  Stefan Monnier  <monnier@iro.umontreal.ca>

        * 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
\f
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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2004-10-13  2:39 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-12 14:48 patch: fix wrong-type-argument error in vc-registered Yoichi NAKAYAMA
2004-10-12 16:14 ` Stefan Monnier
2004-10-12 20:51   ` Romain Francoise
2004-10-12 23:00     ` Stefan
2004-10-13  0:20   ` Yoichi NAKAYAMA
2004-10-13  1:19     ` Stefan
2004-10-13  1:37       ` Yoichi NAKAYAMA
2004-10-13  2:39         ` Yoichi NAKAYAMA

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).