From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Davis Herring" Newsgroups: gmane.emacs.devel Subject: Re: delete-file default to buffer-file-name if non-nil Date: Sat, 15 May 2010 11:30:25 -0700 (PDT) Message-ID: <56210.128.165.0.81.1273948225.squirrel@webmail.lanl.gov> References: Reply-To: herring@lanl.gov NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1273948250 21522 80.91.229.12 (15 May 2010 18:30:50 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 15 May 2010 18:30:50 +0000 (UTC) Cc: Emacs-Devel devel To: "Deniz Dogan" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat May 15 20:30:39 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 1ODM8E-0006db-Bz for ged-emacs-devel@m.gmane.org; Sat, 15 May 2010 20:30:38 +0200 Original-Received: from localhost ([127.0.0.1]:57880 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ODM8D-0003r9-HJ for ged-emacs-devel@m.gmane.org; Sat, 15 May 2010 14:30:37 -0400 Original-Received: from [140.186.70.92] (port=50325 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ODM87-0003r4-TJ for emacs-devel@gnu.org; Sat, 15 May 2010 14:30:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1ODM86-0007A5-EK for emacs-devel@gnu.org; Sat, 15 May 2010 14:30:31 -0400 Original-Received: from proofpoint2.lanl.gov ([204.121.3.26]:60633) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ODM86-00079l-0p for emacs-devel@gnu.org; Sat, 15 May 2010 14:30:30 -0400 Original-Received: from mailrelay1.lanl.gov (mailrelay1.lanl.gov [128.165.4.101]) by proofpoint2.lanl.gov (8.14.3/8.14.3) with ESMTP id o4FIUlRM019127; Sat, 15 May 2010 12:30:47 -0600 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by mailrelay1.lanl.gov (Postfix) with ESMTP id 89C35542657; Sat, 15 May 2010 12:30:25 -0600 (MDT) X-NIE-2-Virus-Scanner: amavisd-new at mailrelay1.lanl.gov Original-Received: from webmail1.lanl.gov (webmail1.lanl.gov [128.165.4.106]) by mailrelay1.lanl.gov (Postfix) with ESMTP id 76F35542648; Sat, 15 May 2010 12:30:25 -0600 (MDT) Original-Received: by webmail1.lanl.gov (Postfix, from userid 48) id 736781CA80E8; Sat, 15 May 2010 12:30:25 -0600 (MDT) Original-Received: from 128.165.0.81 (SquirrelMail authenticated user 196434) by webmail.lanl.gov with HTTP; Sat, 15 May 2010 11:30:25 -0700 (PDT) In-Reply-To: User-Agent: SquirrelMail/1.4.8-5.el5_4.10.lanl1 X-Priority: 3 (Normal) Importance: Normal X-Proofpoint-Virus-Version: vendor=fsecure engine=1.12.8161:2.4.5, 1.2.40, 4.0.166 definitions=2010-05-14_02:2010-02-06, 2010-05-14, 2010-05-15 signatures=0 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:124812 Archived-At: > Could we change the behavior of delete-file so that it defaults to > buffer-file-name if non-nil, otherwise the current directory, if > called interactively? Doesn't it already do that? M-x delete-file RET does attempt to delete the current buffer's file or its directory if it has no file. Personally, I find this default sort of dangerous, although at least C-x C-w often fixes it. Davis -- This product is sold by volume, not by mass. If it appears too dense or too sparse, it is because mass-energy conversion has occurred during shipping.