From: Yoichi NAKAYAMA <yoichi@geiin.org>
Subject: patch: fix wrong-type-argument error in vc-registered
Date: Tue, 12 Oct 2004 23:48:57 +0900 [thread overview]
Message-ID: <87pt3ohu06.wl%yoichi@geiin.org> (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
next reply other threads:[~2004-10-12 14:48 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-12 14:48 Yoichi NAKAYAMA [this message]
2004-10-12 16:14 ` patch: fix wrong-type-argument error in vc-registered 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87pt3ohu06.wl%yoichi@geiin.org \
--to=yoichi@geiin.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.