From: Lennart Borgman <lennart.borgman@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: 7747@debbugs.gnu.org
Subject: bug#7747: Please put current file name in the prompt for rename-file
Date: Sun, 2 Jan 2011 03:28:12 +0100 [thread overview]
Message-ID: <AANLkTi=M8YzD04Q9OXUPmdGPTqKc-LEBMgT7AcYpXQ-C@mail.gmail.com> (raw)
In-Reply-To: <AANLkTimk-KPYGD3MW0EHTZYhz=Ng-+o60rAAmaTi-64H@mail.gmail.com>
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.
next prev parent reply other threads:[~2011-01-02 2:28 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-28 0:41 bug#7747: Please put current file name in the prompt for rename-file Lennart Borgman
2010-12-28 1:00 ` Drew Adams
2010-12-28 1:14 ` Lennart Borgman
2010-12-28 2:24 ` Stefan Monnier
2011-01-01 19:16 ` Lennart Borgman
2011-01-02 2:28 ` Lennart Borgman [this message]
2011-01-02 2:53 ` Stefan Monnier
2011-01-02 3:15 ` Lennart Borgman
2011-01-02 14:57 ` Juri Linkov
2010-12-28 1:47 ` Juri Linkov
2010-12-28 2:15 ` Lennart Borgman
2022-02-10 8:33 ` bug#7747: Allow choice of "default in M-n" vs "default in `initial'" Lars Ingebrigtsen
2022-02-12 3:57 ` Richard Stallman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='AANLkTi=M8YzD04Q9OXUPmdGPTqKc-LEBMgT7AcYpXQ-C@mail.gmail.com' \
--to=lennart.borgman@gmail.com \
--cc=7747@debbugs.gnu.org \
--cc=monnier@iro.umontreal.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).