[Top][All Lists]

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

Re: read-file-name-predicate

From: Kim F. Storm
Subject: Re: read-file-name-predicate
Date: Thu, 08 Mar 2007 12:16:51 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.95 (gnu/linux)

Eli Zaretskii <address@hidden> writes:

> I don't know if in this specific case the variable is a left-over from
> something we don't need anymore; I hope Kim will answer that.

Because read-file-name-internal need to specbind it:

  count = SPECPDL_INDEX ();
  specbind (intern ("completion-ignore-case"),
            read_file_name_completion_ignore_case ? Qt : Qnil);
  specbind (intern ("minibuffer-completing-file-name"), Qt);
  specbind (intern ("read-file-name-predicate"),
            (NILP (predicate) ? Qfile_exists_p : predicate));

I guess it could have been done some other way, but this seemed
the easiest way to do it at the time.  

Let's not change it now.

Kim F. Storm <address@hidden> http://www.cua.dk

reply via email to

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