GNU bug report logs -
#7747
Allow choice of "default in M-n" vs "default in `initial'"
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 7747 in the body.
You can then email your comments to 7747 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#7747
; Package
emacs
.
(Tue, 28 Dec 2010 00:36:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Lennart Borgman <lennart.borgman <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Tue, 28 Dec 2010 00:36:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
The prompt for `rename-file' does not currently show the old file name
thought it is in the history for the prompt.
This is probably confusing for new users of the command. Wouldn't it
be better if the prompt should the current file name at init? (This
would be rather similar to what for example Windows Explorer does when
are renaming a file. And I guess this is common to must GUI:s.)
GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600) of 2010-12-15 on LENNART-69DE564
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#7747
; Package
emacs
.
(Tue, 28 Dec 2010 00:55:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 7747 <at> debbugs.gnu.org (full text, mbox):
> The prompt for `rename-file' does not currently show the old file name
What old file name? Which file is the "old file"?
> Wouldn't it be better if the prompt should the current file name at init?
What "current file"?
You can use `rename-file' from anywhere in Emacs. Yes, if you use it from a
file buffer or from Dired then a reasonable default value is provided. But
that's all it is: a default value.
We should treat this default value the same way we treat default values
generally (i.e., most default values).
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#7747
; Package
emacs
.
(Tue, 28 Dec 2010 01:09:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 7747 <at> debbugs.gnu.org (full text, mbox):
On Tue, Dec 28, 2010 at 2:00 AM, Drew Adams <drew.adams <at> oracle.com> wrote:
>> The prompt for `rename-file' does not currently show the old file name
>
> What old file name? Which file is the "old file"?
>
>> Wouldn't it be better if the prompt should the current file name at init?
>
> What "current file"?
>
> You can use `rename-file' from anywhere in Emacs. Yes, if you use it from a
> file buffer or from Dired then a reasonable default value is provided. But
> that's all it is: a default value.
I did not think of that, but I am sure you understood me.
> We should treat this default value the same way we treat default values
> generally (i.e., most default values).
Yes. And the only reasonable way to do that is to put them after the prompt.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#7747
; Package
emacs
.
(Tue, 28 Dec 2010 01:53:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 7747 <at> debbugs.gnu.org (full text, mbox):
> The prompt for `rename-file' does not currently show the old file name
> thought it is in the history for the prompt.
Please try `M-x rename-file RET M-n'.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#7747
; Package
emacs
.
(Tue, 28 Dec 2010 02:10:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 7747 <at> debbugs.gnu.org (full text, mbox):
On Tue, Dec 28, 2010 at 2:47 AM, Juri Linkov <juri <at> jurta.org> wrote:
>> The prompt for `rename-file' does not currently show the old file name
>> thought it is in the history for the prompt.
>
> Please try `M-x rename-file RET M-n'.
Yes, I know about that. What I mean is that this is very
counterintuitive for new users. They are used to have the name they
are renaming in the prompt (since that is what GUI software normally
do).
And I wonder whether the current behavior really helps old users most
of the time. I think most of the time I rename a file I just change
part of the file name.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#7747
; Package
emacs
.
(Tue, 28 Dec 2010 02:18:02 GMT)
Full text and
rfc822 format available.
Message #20 received at 7747 <at> debbugs.gnu.org (full text, mbox):
>> You can use `rename-file' from anywhere in Emacs. Yes, if you use it from a
>> file buffer or from Dired then a reasonable default value is provided. But
>> that's all it is: a default value.
> I did not think of that, but I am sure you understood me.
Maybe he's lucky enough, but I must say I'm still lost. Can someone
turn this into an actual bug-report, please?
Stefan
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#7747
; Package
emacs
.
(Sat, 01 Jan 2011 19:10:02 GMT)
Full text and
rfc822 format available.
Message #23 received at 7747 <at> debbugs.gnu.org (full text, mbox):
On Tue, Dec 28, 2010 at 3:24 AM, Stefan Monnier
<monnier <at> iro.umontreal.ca> wrote:
>>> You can use `rename-file' from anywhere in Emacs. Yes, if you use it from a
>>> file buffer or from Dired then a reasonable default value is provided. But
>>> that's all it is: a default value.
>> I did not think of that, but I am sure you understood me.
>
> Maybe he's lucky enough, but I must say I'm still lost. Can someone
> turn this into an actual bug-report, please?
Sorry, I should have been thinking of that you all use Emacs for
almost everything so this idea might be unfamiliar to you ;-)
It is just a simple but useful thing I want - too eat the cake and
have the cake. Though I was not aware of that first.
It is very useful that the current filename is in the prompt history
when renaming a file. However one more thing can be done now:
- Put the old file name in the prompt + made it selected (if visual
regions are on).
This is what at least the w32 GUI does. If you then want to overwrite
that filename you just start typing the new file name. If you want to
edit the file name instead you move the point first. This aborts the
selection and you can now edit as usual.
The advantage is more clarity and less key strokes.
This would work very well in Emacs too - at least when cua-mode is on.
(And in the case it is not on I think we should reconsider how
self-insert is handled.)
I realize now that this bug is quite a bit more general than for
rename-file. Sorry for that.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#7747
; Package
emacs
.
(Sun, 02 Jan 2011 02:22:02 GMT)
Full text and
rfc822 format available.
Message #26 received at 7747 <at> debbugs.gnu.org (full text, mbox):
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.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#7747
; Package
emacs
.
(Sun, 02 Jan 2011 02:47:01 GMT)
Full text and
rfc822 format available.
Message #29 received at 7747 <at> debbugs.gnu.org (full text, mbox):
retitle 7747 Allow choice of "default in M-n" vs "default in `initial'"
severity 7747 wishlist
thanks
> I think this is a much better UI than the current implementation to
> handle default values.
Clearly, that's the one you're used to from the rest of your w32 world.
Whether it's better or not also depends on whether you use and like
delete-selection-mode.
In any case, I don't think the default will change any time soon in this
respect, but I do hope that we will change the code so that end users
can choose between the two behaviors.
Stefan
Changed bug title to 'Allow choice of "default in M-n" vs "default in `initial'"' from 'Please put current file name in the prompt for rename-file'
Request was from
Stefan Monnier <monnier <at> iro.umontreal.ca>
to
control <at> debbugs.gnu.org
.
(Sun, 02 Jan 2011 02:47:02 GMT)
Full text and
rfc822 format available.
Severity set to 'wishlist' from 'normal'
Request was from
Stefan Monnier <monnier <at> iro.umontreal.ca>
to
control <at> debbugs.gnu.org
.
(Sun, 02 Jan 2011 02:47:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#7747
; Package
emacs
.
(Sun, 02 Jan 2011 03:09:01 GMT)
Full text and
rfc822 format available.
Message #36 received at 7747 <at> debbugs.gnu.org (full text, mbox):
On Sun, Jan 2, 2011 at 3:53 AM, Stefan Monnier <monnier <at> iro.umontreal.ca> wrote:
> retitle 7747 Allow choice of "default in M-n" vs "default in `initial'"
> severity 7747 wishlist
> thanks
>
>> I think this is a much better UI than the current implementation to
>> handle default values.
>
> Clearly, that's the one you're used to from the rest of your w32 world.
> Whether it's better or not also depends on whether you use and like
> delete-selection-mode.
Yes, you have to like delete-selection-mode to use this. (But it also
makes it clear why delete-selection-mode is very useful.)
> In any case, I don't think the default will change any time soon in this
> respect, but I do hope that we will change the code so that end users
> can choose between the two behaviors.
Agree. Fine.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#7747
; Package
emacs
.
(Sun, 02 Jan 2011 15:00:04 GMT)
Full text and
rfc822 format available.
Message #39 received at 7747 <at> debbugs.gnu.org (full text, mbox):
> This is what at least the w32 GUI does.
This has nothing to do with w32! I don't use w32, but still welcome these
changes because most of GUI improvements happen in web browsers nowadays,
and I think that some of them are quite good to adapt to Emacs.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#7747
; Package
emacs
.
(Thu, 10 Feb 2022 08:34:01 GMT)
Full text and
rfc822 format available.
Message #42 received at 7747 <at> debbugs.gnu.org (full text, mbox):
Lennart Borgman <lennart.borgman <at> gmail.com> writes:
>>> The prompt for `rename-file' does not currently show the old file name
>>> thought it is in the history for the prompt.
>>
>> Please try `M-x rename-file RET M-n'.
>
> Yes, I know about that. What I mean is that this is very
> counterintuitive for new users. They are used to have the name they
> are renaming in the prompt (since that is what GUI software normally
> do).
(I'm going through old bug reports that unfortunately weren't resolved
at the time.)
Many prompts in Emacs have moved (or are moving) to the "don't use an
initial", but instead puts the thing into `M-n'. There are advantages
and disadvantages to this (the main advantage is that you can just start
typing without saying `C-a C-k' first if you don't want the default),
but it's a conscious design decision which won't be reverted, so I'm
closing this bug report.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Added tag(s) wontfix.
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Thu, 10 Feb 2022 08:34:02 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
7747 <at> debbugs.gnu.org and Lennart Borgman <lennart.borgman <at> gmail.com>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Thu, 10 Feb 2022 08:34:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#7747
; Package
emacs
.
(Sat, 12 Feb 2022 03:59:01 GMT)
Full text and
rfc822 format available.
Message #49 received at 7747 <at> debbugs.gnu.org (full text, mbox):
[[[ To any NSA and FBI agents reading my email: please consider ]]]
[[[ whether defending the US Constitution against all enemies, ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]
> Many prompts in Emacs have moved (or are moving) to the "don't use an
> initial", but instead puts the thing into `M-n'.
Could someone identify for me one example of this change
which is not inside a large or complex package that is difficult to try out?
--
Dr Richard Stallman (https://stallman.org)
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 12 Mar 2022 12:24:07 GMT)
Full text and
rfc822 format available.
This bug report was last modified 2 years and 37 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.