From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: delete-file default to buffer-file-name if non-nil Date: Mon, 17 May 2010 09:51:27 -0400 Message-ID: References: <56210.128.165.0.81.1273948225.squirrel@webmail.lanl.gov> <87vdan5stg.fsf@mail.jurta.org> <09068505550E4734B4B3E6F5DCEB8A98@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1274104310 29590 80.91.229.12 (17 May 2010 13:51:50 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 17 May 2010 13:51:50 +0000 (UTC) Cc: 'Juri Linkov' , deniz.a.m.dogan@gmail.com, rms@gnu.org, emacs-devel@gnu.org To: "Drew Adams" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 17 15:51:47 2010 connect(): No such file or directory Return-path: Envelope-to: ged-emacs-devel@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 1OE0jR-0000HI-82 for ged-emacs-devel@m.gmane.org; Mon, 17 May 2010 15:51:45 +0200 Original-Received: from localhost ([127.0.0.1]:59855 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OE0jM-0001TM-Tm for ged-emacs-devel@m.gmane.org; Mon, 17 May 2010 09:51:40 -0400 Original-Received: from [140.186.70.92] (port=37476 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OE0jH-0001TH-A6 for emacs-devel@gnu.org; Mon, 17 May 2010 09:51:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OE0jF-0004WR-JO for emacs-devel@gnu.org; Mon, 17 May 2010 09:51:35 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.183]:57005 helo=ironport2-out.pppoe.ca) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OE0jF-0004WL-EY; Mon, 17 May 2010 09:51:33 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEACrm8EtMCpz0/2dsb2JhbACdf3K8S4UQBIwv X-IronPort-AV: E=Sophos;i="4.53,247,1272859200"; d="scan'208";a="64357929" Original-Received: from 76-10-156-244.dsl.teksavvy.com (HELO pastel.home) ([76.10.156.244]) by ironport2-out.pppoe.ca with ESMTP; 17 May 2010 09:51:32 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 4949F8064; Mon, 17 May 2010 09:51:27 -0400 (EDT) In-Reply-To: <09068505550E4734B4B3E6F5DCEB8A98@us.oracle.com> (Drew Adams's message of "Sun, 16 May 2010 17:28:31 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:124852 Archived-At: >> The argument INITIAL-CONTENTS is obsolete and should not be used. >> It's possible to insert the default value to the minibuffer >> with `M-n'. > So it is. But I happen to disagree that it should be obsolete. ;-) You're wrong, of course. > A better approach is to let the user decide the behavior. > I have this option (FWIW): > | When the default value argument to functions such as > | `completing-read', `read-file-name', `read-from-minibuffer', and > | `read-string' is non-nil and the initial-input argument is nil or > | "", the default value can be added to the prompt as a hint or > | inserted into the minibuffer as the initial input. IIUC this is not using the initial-contents argument (more to the point, it's only active if this arg is nil, i.e. if the caller properly treats it a deprecated). So this is perfectly compatible with initial-contents's obsolescence. Stefan