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: Sun, 2 Jan 2011 03:28:12 +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 X-Trace: dough.gmane.org 1293936838 4620 80.91.229.12 (2 Jan 2011 02:53:58 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 2 Jan 2011 02:53:58 +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 Sun Jan 02 03:53:53 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 1PZE4t-0002xm-VS for geb-bug-gnu-emacs@m.gmane.org; Sun, 02 Jan 2011 03:53:52 +0100 Original-Received: from localhost ([127.0.0.1]:41002 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PZE4t-0004h3-FM for geb-bug-gnu-emacs@m.gmane.org; Sat, 01 Jan 2011 21:53:51 -0500 Original-Received: from [140.186.70.92] (port=41109 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PZE4j-0004dW-Ee for bug-gnu-emacs@gnu.org; Sat, 01 Jan 2011 21:53:42 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PZE4h-00072H-Hx for bug-gnu-emacs@gnu.org; Sat, 01 Jan 2011 21:53:41 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36885) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PZE4h-00072B-FM for bug-gnu-emacs@gnu.org; Sat, 01 Jan 2011 21:53:39 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PZDa6-0004s4-DT; Sat, 01 Jan 2011 21:22:02 -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: Sun, 02 Jan 2011 02:22: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.129393489418689 (code B ref 7747); Sun, 02 Jan 2011 02:22:02 +0000 Original-Received: (at 7747) by debbugs.gnu.org; 2 Jan 2011 02:21:34 +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 1PZDZd-0004rO-Po for submit@debbugs.gnu.org; Sat, 01 Jan 2011 21:21:34 -0500 Original-Received: from mail-ey0-f172.google.com ([209.85.215.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PZDZa-0004rA-M2 for 7747@debbugs.gnu.org; Sat, 01 Jan 2011 21:21:31 -0500 Original-Received: by eyd10 with SMTP id 10so5754296eyd.3 for <7747@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= Original-Received: by 10.213.29.16 with SMTP id o16mr5769657ebc.58.1293935312639; Sat, 01 Jan 2011 18:28:32 -0800 (PST) Original-Received: by 10.213.20.148 with HTTP; Sat, 1 Jan 2011 18:28:12 -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 21:22:02 -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:42993 Archived-At: 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.