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 #23 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: Sat, 1 Jan 2011 20:16:18 +0100
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.




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.