aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim F. Storm <[email protected]>2002-05-27 22:14:52 +0000
committerKim F. Storm <[email protected]>2002-05-27 22:14:52 +0000
commit02f20f98635c0bb519ebcee939abe428f7f6bf76 (patch)
treee4941f821ccce159223021c53d53c172cdb523f1
parent93ed5f9da730fafe0736922e31fcebe926eb2c92 (diff)
*** empty log message ***
-rw-r--r--etc/NEWS9
-rw-r--r--src/ChangeLog19
2 files changed, 28 insertions, 0 deletions
diff --git a/etc/NEWS b/etc/NEWS
index d68ced7e14..610f0b0adb 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 407c48b9a9..7b6236b7cb 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,22 @@
+2002-05-28 Kim F. Storm <[email protected]>
+
+ * 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 <[email protected]>
* term.c (tty_capable_p): New function.