unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Reading directory names with read-file-name
@ 2002-05-18 23:33 Kim F. Storm
  2002-05-18 22:47 ` Stefan Monnier
  2002-05-18 23:00 ` Paul Eggert
  0 siblings, 2 replies; 16+ messages in thread
From: Kim F. Storm @ 2002-05-18 23:33 UTC (permalink / raw)



When a directory name is read with read-file-name,
there really isn't anything which indicates that it
is a directory name rather than a file name that
is required.

Among other things, this implies that using completion
while reading a directory name returns all file _and_
directory names, rather than just the directory names.

To me, this really doesn't make sense.

I propose to add a sixth argument READ-DIR to read-file-name
which indicates that we are reading a directory name, and
not just any file name.

The completion in read-file-name-internal should (somehow)
be aware of this and only return completions which are
directories (i.e. having a trailing /).


Subsequently, I propose to implement a wrapper in lisp
around read-file-name named read-directory-name.


If we agree on this, I'll implement it.

-- 
Kim F. Storm <storm@cua.dk> http://www.cua.dk

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

end of thread, other threads:[~2002-05-28 23:11 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-18 23:33 Reading directory names with read-file-name Kim F. Storm
2002-05-18 22:47 ` Stefan Monnier
2002-05-18 23:00 ` Paul Eggert
2002-05-19 19:40   ` Richard Stallman
2002-05-19 23:20     ` Kim F. Storm
2002-05-20  0:50       ` Kim F. Storm
2002-05-20 21:33         ` Richard Stallman
2002-05-23 22:04           ` Kim F. Storm
2002-05-23 21:24             ` Stefan Monnier
2002-05-23 22:44               ` Kim F. Storm
2002-05-24 21:14                 ` Richard Stallman
2002-05-24 21:59                   ` Stefan Monnier
2002-05-28 23:11                     ` Kim F. Storm
2002-05-24 21:14               ` Richard Stallman
2002-05-24 22:02                 ` Stefan Monnier
2002-05-20 21:33       ` 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).