From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.bugs Subject: bug#7747: Please put current file name in the prompt for rename-file Date: Sat, 1 Jan 2011 20:16:18 +0100 Message-ID: References: <18DA5640211F43C3B3DE7C161ED13DE2@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1293909832 10857 80.91.229.12 (1 Jan 2011 19:23:52 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 1 Jan 2011 19:23:52 +0000 (UTC) Cc: 7747@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jan 01 20:23:47 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PZ73J-0004ct-Mp for geb-bug-gnu-emacs@m.gmane.org; Sat, 01 Jan 2011 20:23:46 +0100 Original-Received: from localhost ([127.0.0.1]:49944 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PZ73I-0006aV-NP for geb-bug-gnu-emacs@m.gmane.org; Sat, 01 Jan 2011 14:23:44 -0500 Original-Received: from [140.186.70.92] (port=39721 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PZ73C-0006ZP-Ll for bug-gnu-emacs@gnu.org; Sat, 01 Jan 2011 14:23:40 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PZ73A-0007TD-DO for bug-gnu-emacs@gnu.org; Sat, 01 Jan 2011 14:23:37 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47079) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PZ73A-0007T7-BS for bug-gnu-emacs@gnu.org; Sat, 01 Jan 2011 14:23:36 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PZ6q3-00042U-3o; Sat, 01 Jan 2011 14:10:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lennart Borgman Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 01 Jan 2011 19:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7747 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 7747-submit@debbugs.gnu.org id=B7747.129390898015489 (code B ref 7747); Sat, 01 Jan 2011 19:10:02 +0000 Original-Received: (at 7747) by debbugs.gnu.org; 1 Jan 2011 19:09:40 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PZ6pg-00041m-1y for submit@debbugs.gnu.org; Sat, 01 Jan 2011 14:09:40 -0500 Original-Received: from mail-ew0-f44.google.com ([209.85.215.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PZ6pd-00041Y-DO for 7747@debbugs.gnu.org; Sat, 01 Jan 2011 14:09:38 -0500 Original-Received: by ewy8 with SMTP id 8so5971070ewy.3 for <7747@debbugs.gnu.org>; Sat, 01 Jan 2011 11:16:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=qHMDDBE2myRMWkIX0f2teSQGBEeqNmjRhUH27R/xD8U=; b=UottFI5JZD+pzXFBXr/zgDhL4azIJhcXY4dCg6AV16VaSiHztP85lkODsiG8Cec0Vq hnN1tsPTP9qyzKdZowW/0ULrU7u39Hje5mFLQ1SmGkDbZFu/G3zb+C+Ko8dgn/RhRGmC zWwij1oeug+J7YEekO0vX1dJIl2dhyotC0jY8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=UmJ6G/7FMEsvPzkf/xLWoVKL0pitJDgVypTsZus2elFLqbb/fk1ZXhzfWLFs2aqpYn wVKZ+/8zxjTBoPqsVbogMecgxNiMiu4WVMZbNfXK7o2X8Nz9dWgd352zCFEQZhfmwCx9 EPaOQcv/2ha2wVSDhoWp24Xl5aMgMccgsqORI= Original-Received: by 10.213.28.12 with SMTP id k12mr3739263ebc.84.1293909398672; Sat, 01 Jan 2011 11:16:38 -0800 (PST) Original-Received: by 10.213.20.148 with HTTP; Sat, 1 Jan 2011 11:16:18 -0800 (PST) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 01 Jan 2011 14:10:03 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:42987 Archived-At: On Tue, Dec 28, 2010 at 3:24 AM, Stefan Monnier wrote: >>> You can use `rename-file' from anywhere in Emacs. =C2=A0Yes, if you use= it from a >>> file buffer or from Dired then a reasonable default value is provided. = =C2=A0But >>> 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. =C2=A0Can 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.