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

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: wishlist; Reported by: Lennart Borgman <lennart.borgman@HIDDEN>; dated Tue, 28 Dec 2010 00:36:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 7747 <at> debbugs.gnu.org:


Received: (at 7747) by debbugs.gnu.org; 2 Jan 2011 14:59:09 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jan 02 09:59:09 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1PZPOn-00071W-8j
	for submit <at> debbugs.gnu.org; Sun, 02 Jan 2011 09:59:09 -0500
Received: from smarty.dreamhost.com ([208.113.175.8])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <juri@HIDDEN>) id 1PZPOk-000713-EQ
	for 7747 <at> debbugs.gnu.org; Sun, 02 Jan 2011 09:59:07 -0500
Received: from ps18281.dreamhostps.com (ps18281.dreamhost.com [69.163.218.105])
	by smarty.dreamhost.com (Postfix) with ESMTP id A4E5F6E804B;
	Sun,  2 Jan 2011 07:06:09 -0800 (PST)
Received: from localhost (ps18281.dreamhostps.com [69.163.218.105])
	by ps18281.dreamhostps.com (Postfix) with ESMTP id 72E48451C09E;
	Sun,  2 Jan 2011 07:06:07 -0800 (PST)
From: Juri Linkov <juri@HIDDEN>
To: Lennart Borgman <lennart.borgman@HIDDEN>
Subject: Re: bug#7747: Please put current file name in the prompt for
	rename-file
Organization: JURTA
References: <AANLkTi=-SRpyBjfSoZ1=ZLGWEBq=Zfswv1TMc2yunNrX@HIDDEN>
	<18DA5640211F43C3B3DE7C161ED13DE2@HIDDEN>
	<AANLkTinwtrYmxZDDYpbEBt3uJH9ZH_=AAJ9PdnFXtUv4@HIDDEN>
	<jwvbp46k539.fsf-monnier+emacs@HIDDEN>
	<AANLkTimk-KPYGD3MW0EHTZYhz=Ng-+o60rAAmaTi-64H@HIDDEN>
Date: Sun, 02 Jan 2011 14:57:35 +0000
In-Reply-To: <AANLkTimk-KPYGD3MW0EHTZYhz=Ng-+o60rAAmaTi-64H@HIDDEN>
	(Lennart Borgman's message of "Sat, 1 Jan 2011 20:16:18 +0100")
Message-ID: <87k4ins6ak.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -2.6 (--)
X-Debbugs-Envelope-To: 7747
Cc: Stefan Monnier <monnier@HIDDEN>, 7747 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -2.6 (--)

> 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 owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#7747; Package emacs. Full text available.

Message received at 7747 <at> debbugs.gnu.org:


Received: (at 7747) by debbugs.gnu.org; 2 Jan 2011 03:08:37 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jan 01 22:08:37 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1PZEJB-0006ac-4V
	for submit <at> debbugs.gnu.org; Sat, 01 Jan 2011 22:08:37 -0500
Received: from mail-ew0-f44.google.com ([209.85.215.44])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <lennart.borgman@HIDDEN>) id 1PZEJ9-0006aQ-RG
	for 7747 <at> debbugs.gnu.org; Sat, 01 Jan 2011 22:08:36 -0500
Received: by ewy8 with SMTP id 8so6036019ewy.3
	for <7747 <at> debbugs.gnu.org>; Sat, 01 Jan 2011 19:15: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;
	bh=q6v3y3lqa4OFHTxpmgxRs4+VJue40Do9ByVdfXyjI8Y=;
	b=gNxWHzVO387cVo1ItEuGKZmcKNozw3HCQqVLrxnGJHBax6ecWsn66nBUjk3AilTohG
	aruhYvVuzWzqKfoxikf4n8j6KYjVUugm0S+9u8yNSilftJzq1SQ+evNW9YbVUP+mvYdi
	b3Gg7IcK7jJE/4rOHrdFatoiSPxwozCUffYXM=
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;
	b=JHX2iTkY4qwHAaqwklVzp5bI7LipcBbr6ERLWw2BSiLElDjho8H+SqC3Z65SoU6QSG
	5w7JKOZRCFcrN3kb4oYZmUp+jEyuoRWxDmeHxrTChj/HNiT79o6E3FibKcSdw5KVgChG
	H/lbjY9RqOtd2Qxkc77ZIZWiXEnAvdTe144xE=
Received: by 10.213.28.66 with SMTP id l2mr15929080ebc.71.1293938137986; Sat,
	01 Jan 2011 19:15:37 -0800 (PST)
MIME-Version: 1.0
Received: by 10.213.20.148 with HTTP; Sat, 1 Jan 2011 19:15:17 -0800 (PST)
In-Reply-To: <jwvr5cw6muf.fsf-monnier+emacs@HIDDEN>
References: <AANLkTi=-SRpyBjfSoZ1=ZLGWEBq=Zfswv1TMc2yunNrX@HIDDEN>
	<18DA5640211F43C3B3DE7C161ED13DE2@HIDDEN>
	<AANLkTinwtrYmxZDDYpbEBt3uJH9ZH_=AAJ9PdnFXtUv4@HIDDEN>
	<jwvbp46k539.fsf-monnier+emacs@HIDDEN>
	<AANLkTimk-KPYGD3MW0EHTZYhz=Ng-+o60rAAmaTi-64H@HIDDEN>
	<AANLkTi=M8YzD04Q9OXUPmdGPTqKc-LEBMgT7AcYpXQ-C@HIDDEN>
	<jwvr5cw6muf.fsf-monnier+emacs@HIDDEN>
From: Lennart Borgman <lennart.borgman@HIDDEN>
Date: Sun, 2 Jan 2011 04:15:17 +0100
Message-ID: <AANLkTinS2KBFh5JA=XqgJuuUeRxwY7Dp549PJmoB_L1n@HIDDEN>
Subject: Re: bug#7747: Please put current file name in the prompt for
	rename-file
To: Stefan Monnier <monnier@HIDDEN>
Content-Type: text/plain; charset=UTF-8
X-Spam-Score: -3.5 (---)
X-Debbugs-Envelope-To: 7747
Cc: Drew Adams <drew.adams@HIDDEN>, 7747 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -3.5 (---)

On Sun, Jan 2, 2011 at 3:53 AM, Stefan Monnier <monnier@HIDDEN> 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@HIDDEN:
bug#7747; Package emacs. Full text available.
Severity set to 'wishlist' from 'normal' Request was from Stefan Monnier <monnier@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
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@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 7747 <at> debbugs.gnu.org:


Received: (at 7747) by debbugs.gnu.org; 2 Jan 2011 02:46:35 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jan 01 21:46:34 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1PZDxq-0005Ox-I6
	for submit <at> debbugs.gnu.org; Sat, 01 Jan 2011 21:46:34 -0500
Received: from ironport2-out.teksavvy.com ([206.248.154.183]
	helo=ironport2-out.pppoe.ca)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <monnier@HIDDEN>)
	id 1PZDxo-0005OS-Be; Sat, 01 Jan 2011 21:46:32 -0500
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AvsEAKF3H01Ld/TY/2dsb2JhbACkR3S7NoVKBIRljhs
X-IronPort-AV: E=Sophos;i="4.60,261,1291611600"; d="scan'208";a="86887396"
Received: from 75-119-244-216.dsl.teksavvy.com (HELO pastel.home)
	([75.119.244.216])
	by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA;
	01 Jan 2011 21:53:33 -0500
Received: by pastel.home (Postfix, from userid 20848)
	id A30E658DFC; Sat,  1 Jan 2011 21:53:33 -0500 (EST)
From: Stefan Monnier <monnier@HIDDEN>
To: Lennart Borgman <lennart.borgman@HIDDEN>
Subject: Re: bug#7747: Please put current file name in the prompt for
	rename-file
Message-ID: <jwvr5cw6muf.fsf-monnier+emacs@HIDDEN>
References: <AANLkTi=-SRpyBjfSoZ1=ZLGWEBq=Zfswv1TMc2yunNrX@HIDDEN>
	<18DA5640211F43C3B3DE7C161ED13DE2@HIDDEN>
	<AANLkTinwtrYmxZDDYpbEBt3uJH9ZH_=AAJ9PdnFXtUv4@HIDDEN>
	<jwvbp46k539.fsf-monnier+emacs@HIDDEN>
	<AANLkTimk-KPYGD3MW0EHTZYhz=Ng-+o60rAAmaTi-64H@HIDDEN>
	<AANLkTi=M8YzD04Q9OXUPmdGPTqKc-LEBMgT7AcYpXQ-C@HIDDEN>
Date: Sat, 01 Jan 2011 21:53:33 -0500
In-Reply-To: <AANLkTi=M8YzD04Q9OXUPmdGPTqKc-LEBMgT7AcYpXQ-C@HIDDEN>
	(Lennart Borgman's message of "Sun, 2 Jan 2011 03:28:12 +0100")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -2.0 (--)
X-Debbugs-Envelope-To: 7747
Cc: Drew Adams <drew.adams@HIDDEN>, 7747 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -2.0 (--)

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




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#7747; Package emacs. Full text available.

Message received at 7747 <at> debbugs.gnu.org:


Received: (at 7747) by debbugs.gnu.org; 2 Jan 2011 02:21:34 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jan 01 21:21:34 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1PZDZd-0004rO-Po
	for submit <at> debbugs.gnu.org; Sat, 01 Jan 2011 21:21:34 -0500
Received: from mail-ey0-f172.google.com ([209.85.215.172])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <lennart.borgman@HIDDEN>) id 1PZDZa-0004rA-M2
	for 7747 <at> debbugs.gnu.org; Sat, 01 Jan 2011 21:21:31 -0500
Received: by eyd10 with SMTP id 10so5754296eyd.3
	for <7747 <at> debbugs.gnu.org>; Sat, 01 Jan 2011 18:28:32 -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;
	bh=y9LjmU5i5bCzrKVMUj1Vnoca1MktHftFUG1sdR7Z/4c=;
	b=Qu/2h+M2+UdzbQax0+BRFyUPkVL4O1vYTMLxfgFvMscnMGYeKQOAKGs+/MjOolwt/H
	CQ15sBG5QJBQ/j3wb18/Jw/XEArhGuiGbbQdVJZ6thIGCGsvlgV9pS7F4jnvmyplymr/
	mH9jxc5TF9mcuirvX2jwQGO2mWVwZOnJfO0fg=
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;
	b=Wv12U71Dd0SY5D7Mqj5bNjn+pjyRZxW8NwyzoPDy2hNalODIk9P18lFV4W0LEp4WYR
	eCfcCT/V/zlzGILd/Rqy6woKrKquA9Od+Mymxu2jelni0VFTRBNvhA/A8Eep2cfE1uGb
	89esn+ukwgYimsZrAuRvxk+sYSn1MVhKIAcN8=
Received: by 10.213.29.16 with SMTP id o16mr5769657ebc.58.1293935312639; Sat,
	01 Jan 2011 18:28:32 -0800 (PST)
MIME-Version: 1.0
Received: by 10.213.20.148 with HTTP; Sat, 1 Jan 2011 18:28:12 -0800 (PST)
In-Reply-To: <AANLkTimk-KPYGD3MW0EHTZYhz=Ng-+o60rAAmaTi-64H@HIDDEN>
References: <AANLkTi=-SRpyBjfSoZ1=ZLGWEBq=Zfswv1TMc2yunNrX@HIDDEN>
	<18DA5640211F43C3B3DE7C161ED13DE2@HIDDEN>
	<AANLkTinwtrYmxZDDYpbEBt3uJH9ZH_=AAJ9PdnFXtUv4@HIDDEN>
	<jwvbp46k539.fsf-monnier+emacs@HIDDEN>
	<AANLkTimk-KPYGD3MW0EHTZYhz=Ng-+o60rAAmaTi-64H@HIDDEN>
From: Lennart Borgman <lennart.borgman@HIDDEN>
Date: Sun, 2 Jan 2011 03:28:12 +0100
Message-ID: <AANLkTi=M8YzD04Q9OXUPmdGPTqKc-LEBMgT7AcYpXQ-C@HIDDEN>
Subject: Re: bug#7747: Please put current file name in the prompt for
	rename-file
To: Stefan Monnier <monnier@HIDDEN>
Content-Type: text/plain; charset=UTF-8
X-Spam-Score: -3.5 (---)
X-Debbugs-Envelope-To: 7747
Cc: Drew Adams <drew.adams@HIDDEN>, 7747 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -3.5 (---)

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@HIDDEN:
bug#7747; Package emacs. Full text available.

Message received at 7747 <at> debbugs.gnu.org:


Received: (at 7747) by debbugs.gnu.org; 1 Jan 2011 19:09:40 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jan 01 14:09:40 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1PZ6pg-00041m-1y
	for submit <at> debbugs.gnu.org; Sat, 01 Jan 2011 14:09:40 -0500
Received: from mail-ew0-f44.google.com ([209.85.215.44])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <lennart.borgman@HIDDEN>) id 1PZ6pd-00041Y-DO
	for 7747 <at> debbugs.gnu.org; Sat, 01 Jan 2011 14:09:38 -0500
Received: by ewy8 with SMTP id 8so5971070ewy.3
	for <7747 <at> 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=
Received: by 10.213.28.12 with SMTP id k12mr3739263ebc.84.1293909398672; Sat,
	01 Jan 2011 11:16:38 -0800 (PST)
MIME-Version: 1.0
Received: by 10.213.20.148 with HTTP; Sat, 1 Jan 2011 11:16:18 -0800 (PST)
In-Reply-To: <jwvbp46k539.fsf-monnier+emacs@HIDDEN>
References: <AANLkTi=-SRpyBjfSoZ1=ZLGWEBq=Zfswv1TMc2yunNrX@HIDDEN>
	<18DA5640211F43C3B3DE7C161ED13DE2@HIDDEN>
	<AANLkTinwtrYmxZDDYpbEBt3uJH9ZH_=AAJ9PdnFXtUv4@HIDDEN>
	<jwvbp46k539.fsf-monnier+emacs@HIDDEN>
From: Lennart Borgman <lennart.borgman@HIDDEN>
Date: Sat, 1 Jan 2011 20:16:18 +0100
Message-ID: <AANLkTimk-KPYGD3MW0EHTZYhz=Ng-+o60rAAmaTi-64H@HIDDEN>
Subject: Re: bug#7747: Please put current file name in the prompt for
	rename-file
To: Stefan Monnier <monnier@HIDDEN>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -3.5 (---)
X-Debbugs-Envelope-To: 7747
Cc: Drew Adams <drew.adams@HIDDEN>, 7747 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -3.5 (---)

On Tue, Dec 28, 2010 at 3:24 AM, Stefan Monnier
<monnier@HIDDEN> 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.




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#7747; Package emacs. Full text available.

Message received at 7747 <at> debbugs.gnu.org:


Received: (at 7747) by debbugs.gnu.org; 28 Dec 2010 02:17:41 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Dec 27 21:17:40 2010
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1PXP88-000281-CF
	for submit <at> debbugs.gnu.org; Mon, 27 Dec 2010 21:17:40 -0500
Received: from ironport2-out.teksavvy.com ([206.248.154.183]
	helo=ironport2-out.pppoe.ca)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <monnier@HIDDEN>) id 1PXP87-00027o-2A
	for 7747 <at> debbugs.gnu.org; Mon, 27 Dec 2010 21:17:39 -0500
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AvsEABrZGE3O+LP+/2dsb2JhbACkLHS/WIVKBIRljhs
X-IronPort-AV: E=Sophos;i="4.60,237,1291611600"; d="scan'208";a="86584794"
Received: from 206-248-179-254.dsl.teksavvy.com (HELO ceviche.home)
	([206.248.179.254])
	by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA;
	27 Dec 2010 21:24:28 -0500
Received: by ceviche.home (Postfix, from userid 20848)
	id C10E06610E; Mon, 27 Dec 2010 21:24:27 -0500 (EST)
From: Stefan Monnier <monnier@HIDDEN>
To: Lennart Borgman <lennart.borgman@HIDDEN>
Subject: Re: bug#7747: Please put current file name in the prompt for
	rename-file
Message-ID: <jwvbp46k539.fsf-monnier+emacs@HIDDEN>
References: <AANLkTi=-SRpyBjfSoZ1=ZLGWEBq=Zfswv1TMc2yunNrX@HIDDEN>
	<18DA5640211F43C3B3DE7C161ED13DE2@HIDDEN>
	<AANLkTinwtrYmxZDDYpbEBt3uJH9ZH_=AAJ9PdnFXtUv4@HIDDEN>
Date: Mon, 27 Dec 2010 21:24:27 -0500
In-Reply-To: <AANLkTinwtrYmxZDDYpbEBt3uJH9ZH_=AAJ9PdnFXtUv4@HIDDEN>
	(Lennart Borgman's message of "Tue, 28 Dec 2010 02:14:50 +0100")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.1 (--)
X-Debbugs-Envelope-To: 7747
Cc: Drew Adams <drew.adams@HIDDEN>, 7747 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -2.1 (--)

>> You can use `rename-file' from anywhere in Emacs. =A0Yes, if you use it =
from a
>> file buffer or from Dired then a reasonable default value is provided. =
=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.  Can someone
turn this into an actual bug-report, please?


        Stefan




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#7747; Package emacs. Full text available.

Message received at 7747 <at> debbugs.gnu.org:


Received: (at 7747) by debbugs.gnu.org; 28 Dec 2010 02:09:08 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Dec 27 21:09:07 2010
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1PXOzq-0001uB-Tk
	for submit <at> debbugs.gnu.org; Mon, 27 Dec 2010 21:09:07 -0500
Received: from mail-ew0-f44.google.com ([209.85.215.44])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <lennart.borgman@HIDDEN>) id 1PXOzp-0001tc-DK
	for 7747 <at> debbugs.gnu.org; Mon, 27 Dec 2010 21:09:05 -0500
Received: by ewy8 with SMTP id 8so4467357ewy.3
	for <7747 <at> debbugs.gnu.org>; Mon, 27 Dec 2010 18:15:54 -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;
	bh=oiOgsRAEUeC05dJV/IA8adu1AzdJmpIHDoNpH0/D3XI=;
	b=mP6hBZQ0UHmfWt9C+N4wfXzZkRW/YmF+zceSsL2Cj9wl2KahrJ3BUCnm9UpVXZeP71
	fg52ILoXBaFwIlLHMEDgrQCwYya+tu0rgygYo0p1J2/HZiTFGTH7fePBmOI32hbKwG7q
	6Rf9YMjGTInKDkHVzNvZ5l1B7+6wbRF9uI6Ws=
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;
	b=gigE8U95z6fXKJgODnVQtB+HDGvuNn3BptMm6COlNHPE5Gbr7S7ZuLXeY0CjYOX5F4
	+jB117VTcgKwrTdtqsndN8redBmQcHbw3kyNhKlJYBypGeEY05nwYyhe7qJqmc6LEmmD
	W/a7RYymBzG6RdMb70Ovh1F6aUoKnMbbbLNiQ=
Received: by 10.213.2.198 with SMTP id 6mr210065ebk.71.1293502554011; Mon, 27
	Dec 2010 18:15:54 -0800 (PST)
MIME-Version: 1.0
Received: by 10.213.20.148 with HTTP; Mon, 27 Dec 2010 18:15:33 -0800 (PST)
In-Reply-To: <87oc86fz1z.fsf@HIDDEN>
References: <AANLkTi=-SRpyBjfSoZ1=ZLGWEBq=Zfswv1TMc2yunNrX@HIDDEN>
	<87oc86fz1z.fsf@HIDDEN>
From: Lennart Borgman <lennart.borgman@HIDDEN>
Date: Tue, 28 Dec 2010 03:15:33 +0100
Message-ID: <AANLkTimxBEb0zARBUVvivON3XDUPVJvf+5AJFRuz6rsO@HIDDEN>
Subject: Re: bug#7747: Please put current file name in the prompt for
	rename-file
To: Juri Linkov <juri@HIDDEN>
Content-Type: text/plain; charset=UTF-8
X-Spam-Score: -3.5 (---)
X-Debbugs-Envelope-To: 7747
Cc: 7747 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -3.5 (---)

On Tue, Dec 28, 2010 at 2:47 AM, Juri Linkov <juri@HIDDEN> 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@HIDDEN:
bug#7747; Package emacs. Full text available.

Message received at 7747 <at> debbugs.gnu.org:


Received: (at 7747) by debbugs.gnu.org; 28 Dec 2010 01:52:18 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Dec 27 20:52:18 2010
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1PXOjZ-0001Tg-Kx
	for submit <at> debbugs.gnu.org; Mon, 27 Dec 2010 20:52:17 -0500
Received: from smarty.dreamhost.com ([208.113.175.8])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <juri@HIDDEN>) id 1PXOjX-0001TU-0U
	for 7747 <at> debbugs.gnu.org; Mon, 27 Dec 2010 20:52:15 -0500
Received: from ps18281.dreamhostps.com (ps18281.dreamhost.com [69.163.218.105])
	by smarty.dreamhost.com (Postfix) with ESMTP id A061F6E8053;
	Mon, 27 Dec 2010 17:59:03 -0800 (PST)
Received: from localhost (ps18281.dreamhostps.com [69.163.218.105])
	by ps18281.dreamhostps.com (Postfix) with ESMTP id 159C1451C17D;
	Mon, 27 Dec 2010 17:59:01 -0800 (PST)
From: Juri Linkov <juri@HIDDEN>
To: Lennart Borgman <lennart.borgman@HIDDEN>
Subject: Re: bug#7747: Please put current file name in the prompt for
	rename-file
Organization: JURTA
References: <AANLkTi=-SRpyBjfSoZ1=ZLGWEBq=Zfswv1TMc2yunNrX@HIDDEN>
Date: Tue, 28 Dec 2010 01:47:52 +0000
In-Reply-To: <AANLkTi=-SRpyBjfSoZ1=ZLGWEBq=Zfswv1TMc2yunNrX@HIDDEN>
	(Lennart Borgman's message of "Tue, 28 Dec 2010 01:41:50 +0100")
Message-ID: <87oc86fz1z.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -2.6 (--)
X-Debbugs-Envelope-To: 7747
Cc: 7747 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -2.6 (--)

> 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@HIDDEN:
bug#7747; Package emacs. Full text available.

Message received at 7747 <at> debbugs.gnu.org:


Received: (at 7747) by debbugs.gnu.org; 28 Dec 2010 01:08:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Dec 27 20:08:24 2010
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1PXO35-0000Lh-Rm
	for submit <at> debbugs.gnu.org; Mon, 27 Dec 2010 20:08:24 -0500
Received: from mail-ew0-f44.google.com ([209.85.215.44])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <lennart.borgman@HIDDEN>) id 1PXO33-0000LW-Nk
	for 7747 <at> debbugs.gnu.org; Mon, 27 Dec 2010 20:08:22 -0500
Received: by ewy8 with SMTP id 8so4456458ewy.3
	for <7747 <at> debbugs.gnu.org>; Mon, 27 Dec 2010 17:15:10 -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=aIrhWyXHTaCauc6kTOQTUlq3V/v7FUsAcViI0+C5o3Q=;
	b=jix5N98OU2g6xf7r9DAG9auSD3J9xAkPg9oBJI8MgALdjlsmLJ5/aa70QoOWZcqxd+
	cxp/1VRTLf7fybN1fsNP869V9Iqt3mq1FgB5ZDFuHUFSiLKKXQQPtmycGzUM7pY/3W6u
	eWiC+qKqY+guXKkLYZDe7VsWvz6VCWp7oneiI=
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=FnkCYp0nVVrhAbMX/sbx4I2o9rQuHok7B8qhu4tQKoI6/sS0RcS+f4HhFkXYNOpUzz
	LBATQzxhSqrDe13XcK4tDSmllxvTXmIok9hPblmKbTvaKMarSTjmbBABEpGMpDWVCTW+
	i7DxsJGE4OSIVSxJWLQkJLxBq1FSlxXUb6CQ0=
Received: by 10.213.9.66 with SMTP id k2mr1657926ebk.84.1293498910300; Mon, 27
	Dec 2010 17:15:10 -0800 (PST)
MIME-Version: 1.0
Received: by 10.213.20.148 with HTTP; Mon, 27 Dec 2010 17:14:50 -0800 (PST)
In-Reply-To: <18DA5640211F43C3B3DE7C161ED13DE2@HIDDEN>
References: <AANLkTi=-SRpyBjfSoZ1=ZLGWEBq=Zfswv1TMc2yunNrX@HIDDEN>
	<18DA5640211F43C3B3DE7C161ED13DE2@HIDDEN>
From: Lennart Borgman <lennart.borgman@HIDDEN>
Date: Tue, 28 Dec 2010 02:14:50 +0100
Message-ID: <AANLkTinwtrYmxZDDYpbEBt3uJH9ZH_=AAJ9PdnFXtUv4@HIDDEN>
Subject: Re: bug#7747: Please put current file name in the prompt for
	rename-file
To: Drew Adams <drew.adams@HIDDEN>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -3.5 (---)
X-Debbugs-Envelope-To: 7747
Cc: 7747 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -3.5 (---)

On Tue, Dec 28, 2010 at 2:00 AM, Drew Adams <drew.adams@HIDDEN> wrote:
>> The prompt for `rename-file' does not currently show the old file name
>
> What old file name? =C2=A0Which 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. =C2=A0Yes, if you use i=
t 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.


> 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@HIDDEN:
bug#7747; Package emacs. Full text available.

Message received at 7747 <at> debbugs.gnu.org:


Received: (at 7747) by debbugs.gnu.org; 28 Dec 2010 00:54:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Dec 27 19:54:46 2010
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1PXNpu-0008R1-6l
	for submit <at> debbugs.gnu.org; Mon, 27 Dec 2010 19:54:46 -0500
Received: from rcsinet10.oracle.com ([148.87.113.121])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <drew.adams@HIDDEN>) id 1PXNps-0008Qm-Iu
	for 7747 <at> debbugs.gnu.org; Mon, 27 Dec 2010 19:54:45 -0500
Received: from rcsinet13.oracle.com (rcsinet13.oracle.com [148.87.113.125])
	by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id
	oBS11WRQ013067
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
	Tue, 28 Dec 2010 01:01:33 GMT
Received: from acsmt354.oracle.com (acsmt354.oracle.com [141.146.40.154])
	by rcsinet13.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id
	oBS0OdOw024942; Tue, 28 Dec 2010 01:01:31 GMT
Received: from abhmt016.oracle.com by acsmt354.oracle.com
	with ESMTP id 909392721293498049; Mon, 27 Dec 2010 17:00:49 -0800
Received: from dradamslap1 (/10.159.240.115)
	by default (Oracle Beehive Gateway v4.0)
	with ESMTP ; Mon, 27 Dec 2010 17:00:48 -0800
From: "Drew Adams" <drew.adams@HIDDEN>
To: "'Lennart Borgman'" <lennart.borgman@HIDDEN>, <7747 <at> debbugs.gnu.org>
References: <AANLkTi=-SRpyBjfSoZ1=ZLGWEBq=Zfswv1TMc2yunNrX@HIDDEN>
Subject: RE: bug#7747: Please put current file name in the prompt for
	rename-file
Date: Mon, 27 Dec 2010 17:00:47 -0800
Message-ID: <18DA5640211F43C3B3DE7C161ED13DE2@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Office Outlook 11
In-reply-to: <AANLkTi=-SRpyBjfSoZ1=ZLGWEBq=Zfswv1TMc2yunNrX@HIDDEN>
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5994
Thread-Index: AcumKaOrbiq2upyLTlSS+/xka4eizgAAHDSg
X-Spam-Score: -6.4 (------)
X-Debbugs-Envelope-To: 7747
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.4 (------)

> 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@HIDDEN:
bug#7747; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 28 Dec 2010 00:35:27 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Dec 27 19:35:27 2010
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1PXNXC-0007wv-Md
	for submit <at> debbugs.gnu.org; Mon, 27 Dec 2010 19:35:26 -0500
Received: from eggs.gnu.org ([140.186.70.92])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <lennart.borgman@HIDDEN>) id 1PXNXB-0007wk-2M
	for submit <at> debbugs.gnu.org; Mon, 27 Dec 2010 19:35:25 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <lennart.borgman@HIDDEN>) id 1PXNdl-0006RV-Gy
	for submit <at> debbugs.gnu.org; Mon, 27 Dec 2010 19:42:14 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM,
	RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,T_DKIM_INVALID autolearn=unavailable
	version=3.3.1
Received: from lists.gnu.org ([199.232.76.165]:33567)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <lennart.borgman@HIDDEN>) id 1PXNdl-0006RR-F4
	for submit <at> debbugs.gnu.org; Mon, 27 Dec 2010 19:42:13 -0500
Received: from [140.186.70.92] (port=50107 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PXNdk-0007VF-GU
	for bug-gnu-emacs@HIDDEN; Mon, 27 Dec 2010 19:42:13 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <lennart.borgman@HIDDEN>) id 1PXNdj-0006RF-KD
	for bug-gnu-emacs@HIDDEN; Mon, 27 Dec 2010 19:42:12 -0500
Received: from mail-ey0-f169.google.com ([209.85.215.169]:42045)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <lennart.borgman@HIDDEN>) id 1PXNdj-0006RA-FU
	for bug-gnu-emacs@HIDDEN; Mon, 27 Dec 2010 19:42:11 -0500
Received: by eyh6 with SMTP id 6so1229018eyh.0
	for <bug-gnu-emacs@HIDDEN>; Mon, 27 Dec 2010 16:42:10 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:received:mime-version:received:from:date
	:message-id:subject:to:content-type;
	bh=0+ZRFDRKDd0Y+fKgKimfE6ZD2CHaOoQQ6rDE2h7gOXY=;
	b=hHBzz8MKKttLWoKfo8M710f4r7EaCN+/wWKkTAxAgaMWnBeuw4wrbWlZ7ZH6c1fE9D
	svtYjNkc3l1PsSDii7fqKGJXTfpttlgsSahCGMq5zX9iyk4ty3D9EZ/yo4IUj/9dlCgJ
	oytiO1R1x/y+Q442VZFOEVJ2h/Hhv95yvPnCs=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:from:date:message-id:subject:to:content-type;
	b=Dm79lVoGiqnYYEQgr/cVuN2el3lxEK8BogzkkJvYSGzrd+FrcC7BZ8Itn50bsug68O
	cRHggj4ZngMs0fjzGXIIxIlxbCOl/BdtRW+P0b62y3FcsxIO78Owl7WNC3rtcfX2wSlW
	1zQyON4OwXPTZ4NaYc3sJ2HvKCD0rnU4MJYeQ=
Received: by 10.213.112.146 with SMTP id w18mr10298283ebp.84.1293496930437;
	Mon, 27 Dec 2010 16:42:10 -0800 (PST)
MIME-Version: 1.0
Received: by 10.213.20.148 with HTTP; Mon, 27 Dec 2010 16:41:50 -0800 (PST)
From: Lennart Borgman <lennart.borgman@HIDDEN>
Date: Tue, 28 Dec 2010 01:41:50 +0100
Message-ID: <AANLkTi=-SRpyBjfSoZ1=ZLGWEBq=Zfswv1TMc2yunNrX@HIDDEN>
Subject: Please put current file name in the prompt for rename-file
To: Emacs Bugs <bug-gnu-emacs@HIDDEN>
Content-Type: text/plain; charset=UTF-8
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Spam-Score: -4.7 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -4.7 (----)

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




Acknowledgement sent to Lennart Borgman <lennart.borgman@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#7747; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

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