unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Filename completion for the 'file widget
@ 2004-08-24  0:59 Suraj Acharya
  2004-08-25  0:04 ` Kevin Rodgers
  0 siblings, 1 reply; 7+ messages in thread
From: Suraj Acharya @ 2004-08-24  0:59 UTC (permalink / raw)



Completion for the 'file widget exhibits some slightly inconsistent 
behavior when using relative paths. widget-file-complete tries to expand 
  any relative paths using expand-file-name, but does so only when it 
can complete (partially or fully) the text in the widget.

So if at a file widget I type "./" and hit the completion key, I get a 
*Completions* buffer. Now if the current directory has a file called 
"aaa" and if I type the letter "a" into the file widget and hit the 
completion key again, instead of "./aaa" I get /home/foo/aaa".

While this can be fixed by calling expand-file-name even when listing 
completions in widget-file-complete, I think a customizable option to 
not expand relative paths in the file widget while still doing the 
completion would also be useful. The JDE mode for Java for example, uses 
a list of 'file widgets to customize its source and class path settings. 
It allows relative paths to permit easy portability of JDE projects 
across the file system.

Since I prefer this second non-expanding behavior I managed to get it to 
work on my local machine by using (concat directory completion) in place 
of (expand-file-name completion directory) in widget-file-complete.


Suraj

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-08-25 22:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-24  0:59 Filename completion for the 'file widget Suraj Acharya
2004-08-25  0:04 ` Kevin Rodgers
2004-08-25  0:35   ` Suraj Acharya
2004-08-25 16:33     ` Kevin Rodgers
2004-08-25 22:34       ` Suraj Acharya
2004-08-25  2:31   ` Stefan
2004-08-25 20:35     ` Richard Stallman

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).