From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Phil Sainty Newsgroups: gmane.emacs.devel Subject: Re: Rename, delete and move current buffer and file Date: Thu, 10 May 2018 20:59:46 +1200 Message-ID: <092e1313fbb72197bfeceb27b00ed62e@webmail.orcon.net.nz> References: <20180510082005.6pfpostuxcuzfutt@isis.luna> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1525942709 23788 195.159.176.226 (10 May 2018 08:58:29 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 10 May 2018 08:58:29 +0000 (UTC) User-Agent: Orcon Webmail Cc: Emacs-devel To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 10 10:58:25 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fGhP6-00065p-Ey for ged-emacs-devel@m.gmane.org; Thu, 10 May 2018 10:58:24 +0200 Original-Received: from localhost ([::1]:60822 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fGhRD-0003D6-NM for ged-emacs-devel@m.gmane.org; Thu, 10 May 2018 05:00:35 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38649) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fGhQa-00038M-CI for emacs-devel@gnu.org; Thu, 10 May 2018 04:59:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fGhQX-0003HR-7n for emacs-devel@gnu.org; Thu, 10 May 2018 04:59:56 -0400 Original-Received: from smtp-4.orcon.net.nz ([60.234.4.59]:34516) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fGhQW-0003Fq-Tu; Thu, 10 May 2018 04:59:53 -0400 Original-Received: from [10.253.37.70] (port=41024 helo=webmail.orcon.net.nz) by smtp-4.orcon.net.nz with esmtpa (Exim 4.86_2) (envelope-from ) id 1fGhQQ-0005Tc-Pv; Thu, 10 May 2018 20:59:47 +1200 Original-Received: from [150.107.175.206] via [10.253.37.253] by webmail.orcon.net.nz with HTTP (HTTP/1.1 POST); Thu, 10 May 2018 20:59:46 +1200 In-Reply-To: <20180510082005.6pfpostuxcuzfutt@isis.luna> X-Sender: psainty@orcon.net.nz X-GeoIP: -- X-Spam_score: -2.9 X-Spam_score_int: -28 X-Spam_bar: -- X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 60.234.4.59 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:225190 Archived-At: Count me as one of those who find a "rename buffer and file" command useful. I've had one of those bound to "C-c r" for a very long time, and I consider it convenient to be able to do this directly from the buffer in question, rather than going to dired. On 2018-05-10 20:20, Amit Ramon wrote: > Stefan Monnier [2018-05-09 08:28 -0400]: >> so maybe we could instead have `C-x C-w` prompt the user >> "delete the old file (y or n)?" > > adding the option to delete the original file is unnecessary, and > prompting the user would just interrupt. I'd certainly find it annoying if C-x C-w added an extra prompt. -Phil