[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: patch: fix wrong-type-argument error in vc-registered
From: |
Yoichi NAKAYAMA |
Subject: |
Re: patch: fix wrong-type-argument error in vc-registered |
Date: |
Wed, 13 Oct 2004 09:20:45 +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 (賢木) |
At Tue, 12 Oct 2004 12:14:39 -0400,
Stefan Monnier wrote:
>
> > 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.
>
> Hmm... your patch looks fine, except that I don't understand why it's
> needed: I thought vc-registered is only ever called with an absolute file
> name, and (file-name-directory file) never returns nil if file is an
> absolute file name.
>
> In which cases does it return nil on an absolute file name, or in which
> cases is vc-registered called with a non-absolute file name?
For example, mime-view.el in EMIKO module
http://cvs.m17n.org/cgi-bin/viewcvs/semi/mime-view.el?rev=1.150.2.33.2.38&only_with_tag=emiko-1_14&content-type=text/vnd.viewcvs-markup
calles set-auto-mode after setting buffer-file-name to non-absolute path
for highlighting.
--
Yoichi NAKAYAMA