unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* insert-default-directory
@ 2004-01-26  4:13 Luc Teirlinck
  2004-01-26 19:23 ` insert-default-directory Richard Stallman
  0 siblings, 1 reply; 3+ messages in thread
From: Luc Teirlinck @ 2004-01-26  4:13 UTC (permalink / raw)


I might be missing some obvious things, but I have the impression that
a nil value for the user option `insert-default-directory' is not very
well supported.  The user can make `read-file-name' return an empty
string by erasing all inserted minibuffer contents.  But if
`insert-default-directory' is nil and the INITIAL argument to
`read-file-name' is nil (as recommended) then there is no string to
erase and just typing RETURN with an empty minibuffer selects some
default value instead of "".  This matters for certain commands.  For
instance, I might be missing something, but I know of no convenient
and intuitive way to make the current buffer visit no file using M-x
set-visited-file-name if `insert-default-directory' is nil.

Other problem:

Start emacs -q

I then do:

(setq `insert-default-directory' nil)
(read-directory-name "Name: " "~/emacscvsdir/" nil t)

"emacscvsdir" is where I keep the Emacs CVS.  That directory contains
a directory named "manual".  I want to select that directory.  I type
"manual" in the minibuffer.  RETURN. It gets completed to "manual/".
Fine, I do not mind about the "/".  RETURN.  Instead of accepting
"manual/", `read-directory-name' now insists on trying to complete to
a subdirectory of the "manual" directory.  The same problem occurs
when using `read-file-name' for directories.

With `insert-default-directory' set to t, `read-directory-name'
happily accepts "manual/" without trying completion.  It even accepts
"manual" too.

Sincerely,

Luc.

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

* Re: insert-default-directory
  2004-01-26  4:13 insert-default-directory Luc Teirlinck
@ 2004-01-26 19:23 ` Richard Stallman
  2004-01-27  3:04   ` insert-default-directory Luc Teirlinck
  0 siblings, 1 reply; 3+ messages in thread
From: Richard Stallman @ 2004-01-26 19:23 UTC (permalink / raw)
  Cc: emacs-devel

I don't want to think about this issue; if you want to work on it,
please go ahead.  Please install whatever you like, as long as
it only affects this the case where insert-default-directory is nil.

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

* Re: insert-default-directory
  2004-01-26 19:23 ` insert-default-directory Richard Stallman
@ 2004-01-27  3:04   ` Luc Teirlinck
  0 siblings, 0 replies; 3+ messages in thread
From: Luc Teirlinck @ 2004-01-27  3:04 UTC (permalink / raw)
  Cc: emacs-devel

Richard Stallman wrote:

   I don't want to think about this issue; if you want to work on it,
   please go ahead.  Please install whatever you like, as long as
   it only affects this the case where insert-default-directory is nil.

I fixed it.  I will still do some further testing before installing.

Sincerely,

Luc.

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

end of thread, other threads:[~2004-01-27  3:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-26  4:13 insert-default-directory Luc Teirlinck
2004-01-26 19:23 ` insert-default-directory Richard Stallman
2004-01-27  3:04   ` insert-default-directory Luc Teirlinck

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).