From 02f20f98635c0bb519ebcee939abe428f7f6bf76 Mon Sep 17 00:00:00 2001 From: "Kim F. Storm" Date: Mon, 27 May 2002 22:14:52 +0000 Subject: [PATCH] *** empty log message *** --- etc/NEWS | 9 +++++++++ src/ChangeLog | 19 +++++++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/etc/NEWS b/etc/NEWS index d68ced7e14a..610f0b0adb6 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -786,6 +786,15 @@ mode-lines in inverse-video. * Lisp Changes in Emacs 21.4 +** The `read-file-name' function now takes an additional argument which +specifies a predicate which the file name read must satify. The +new variable `read-file-name-predicate' contains the predicate argument +while reading the file name from the minibuffer; the predicate in this +variable is used by read-file-name-internal to filter the completion list. + +** The new variable `read-file-name-function' can be used by lisp code +to override the internal read-file-name function. + ** The New lisp library fringe.el controls the apperance of fringes. ** The `defmacro' form may contain declarations specifying how to diff --git a/src/ChangeLog b/src/ChangeLog index 407c48b9a90..7b6236b7cbb 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,22 @@ +2002-05-28 Kim F. Storm + + * fileio.c: (Vread_file_name_function, Vread_file_name_predicate): + New variables. + (syms_of_fileio): DEFVAR_LISP them. + (read_file_name_cleanup): New unwind function. + (Fread_file_name_internal): Only return completions satifying + Vread_file_name_predicate. Temporarily unwind protect and rebind + default-directory while checking completions against the predicate. + (Fread_file_name): Added PREDICATE argument. Specbind it to + Vread_file_name_predicate during completion. + Call Vread_file_name_function to read the file name if non-nil. + + * lisp.h (Fread_file_name): Now has 6 args. + + * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p + predicate for Fread_file_name when reading directory name. + Supply Qnil for predicate in other calls to Fread_file_name. + 2002-05-26 Miles Bader * term.c (tty_capable_p): New function. -- 2.39.2