emacs-devel
[Top][All Lists]
Advanced

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

Suggestion on completion


From: Herbert Euler
Subject: Suggestion on completion
Date: Sat, 13 Jan 2007 20:07:15 +0800

Hello,

The variable `completion-ignored-extensions' controls which file
(directory) names are not to be completed if there are other possible
completions.  However, I found the current strategy of completion on
directory names is not very reasonable.

First, please think about the strategy applied on (non-directory) file
names.  If the name of some file matches an entry in
`completion-ignored-extensions' from its end, it means that the file
is not intended to be edited, at least in most situations.  For
example the extensions ``.o'', ``~'', ``.dvi'', ``.elc''.  If these
names are not completed, it is OK, since for example ``dired.o'' is
not likely to be opened.

I think it is not good to apply the same stragegy to directory names.
There are two entries in `completion-ignored-extensions' that are
directory names by default, i.e. ``.svn/'' and ``CVS/''.  One can, of
course, give a directory the name ``emacs.svn''; or, give a directory
the name ``emacs-cvs'' on systems that ignores case in file
(directory) names.  But this should not prevent the names of the
directories being provided as completion at first.  These directories
are likely to be opened after all.  What are not likely to be opened
are the directories ``.svn/'' and ``CVS/''.

So, is it better to treat two directory names matching iff they are
precisely equal?  If so, I'd like to work on it.

Thanks in advance.

Regards,
Guanpeng Xu

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/





reply via email to

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