GNU bug report logs - #7747
Allow choice of "default in M-n" vs "default in `initial'"

Previous Next

Package: emacs;

Reported by: Lennart Borgman <lennart.borgman <at> gmail.com>

Date: Tue, 28 Dec 2010 00:36:02 UTC

Severity: wishlist

Tags: wontfix

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #26 received at 7747 <at> debbugs.gnu.org (full text, mbox):

From: Lennart Borgman <lennart.borgman <at> gmail.com>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: Drew Adams <drew.adams <at> oracle.com>, 7747 <at> debbugs.gnu.org
Subject: Re: bug#7747: Please put current file name in the prompt for
	rename-file
Date: Sun, 2 Jan 2011 03:28:12 +0100
Stefan wrote:

> IIUC you just want minibuffer input's default value to be inserted in
> the minibuffer (and selected so that `delete' or `backspace' gets you rid
> of it) rather than starting with an empty minibuffer and letting the
> user bring in the default with M-n if she wants it.
>
> The way I see such a thing happening is by changing calls to
> completing-read (and derivatives) to use a new function which can behave
> either way (e.g. it takes a `prompt' and a `default' arg but no
> `initial' arg, and the `prompt' doesn't include the default in it,
> instead the function will take care to add it to the prompt if/when
> needed).

Yes, sorry for the confusion. This is what I meant.

I think this is a much better UI than the current implementation to
handle default values.




This bug report was last modified 3 years and 105 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.