diff --git a/etc/NEWS b/etc/NEWS index d288a604e2a..f67227d008c 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -4548,6 +4548,10 @@ autoloaded when not really necessary. *** The function `make-auto-save-file-name' is now handled by file name handlers. This will be exploited for remote files mainly. ++++ +*** The function `file-name-completion' accepts an optional argument +PREDICATE, and rejects completion candidates that don't satisfy PREDICATE. + ** Input changes: +++ @@ -4557,7 +4561,7 @@ maximum time to wait for input, in seconds. If no input arrives after this time elapses, the functions stop waiting and return nil. +++ -*** An interactive specification can now use the code letter 'U' to get +*** An interactive specification can now use the code letter `U' to get the up-event that was discarded in case the last key sequence read for a previous `k' or `K' argument was a down-event; otherwise nil is used. diff --git a/lispref/ChangeLog b/lispref/ChangeLog index 49027187dcf..e2bfbf2680e 100644 --- a/lispref/ChangeLog +++ b/lispref/ChangeLog @@ -1,3 +1,8 @@ +2006-12-17 Richard Stallman + + * files.texi (File Name Completion): Document PREDICATE arg + to file-name-completion. + 2006-12-16 Eli Zaretskii * internals.texi (Building Emacs, Writing Emacs Primitives): Add diff --git a/src/ChangeLog b/src/ChangeLog index 473ebe25af8..e08a7a8875e 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,11 @@ +2006-12-17 Richard Stallman + + * fileio.c (Fread_file_name_internal): Pass Vread_file_name_predicate + to Ffile_name_completion. + + * dired.c (file_name_completion): New arg PREDICATE. Some cleanup. + (file_name_completion): New arg PREDICATE. + 2006-12-17 Juanma Barranquero * buffer.c (Fkill_buffer): Doc fix.