[I reported this last May and haven't seen any response, so I'm trying
again. This time I'm attaching a patch.]
In XEmacs 21.4.6, and also in XEmacs 21.5-b4:
The function 'file-name-all-completions' does not behave the way its
documentation says it should. Namely, its documentation says:
File names which end with any member of `completion-ignored-extensions'
are not considered as possible completions for PARTIAL-FILENAME unless
there is no other possible completion. `completion-ignored-extensions'
is not applied to the names of directories.
I have set 'completion-ignored-extensions' to include "~" and
".log".
I have a directory 'blah' with these files in it:
new.el new.el~ nn.log
If I run
(file-name-all-completions "n" "blah")
I get
("new.el~" "new.el" "nn.log")
whereas I was expecting just ("new.el").
(On the other hand, 'file-name-completion' has the same passage in its
documentation, and
(file-name-completion "n" "blah")
gives
"new.el"
so it is paying attention to completion-ignored-extensions.)
I would recommend deleting the above paragraph from the documentation
for file-name-all-completions; among other things, this would make the
behavior consistent with GNU Emacs. The documentation for the
variable completion-ignored-extensions needs to change, as well, since
it refers to file-name-all-completions.
I've attached a patch (against XEmacs 21.4.6, but seems to work with
21.5-b4, too) to make these changes. (Sorry, I haven't downloaded
the CVS version.)
--
J. H. Palmieri
Dept of Mathematics, Box 354350 mailto:palmieri@math.washington.edu
University of Washington
http://www.math.washington.edu/~palmieri/
Seattle, WA 98195-4350