From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Amit Ramon Newsgroups: gmane.emacs.devel Subject: Re: Rename, delete and move current buffer and file Date: Thu, 10 May 2018 11:20:05 +0300 Message-ID: <20180510082005.6pfpostuxcuzfutt@isis.luna> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed X-Trace: blaine.gmane.org 1525940342 30099 195.159.176.226 (10 May 2018 08:19:02 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 10 May 2018 08:19:02 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 10 10:18:58 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 1fGgmv-0007gw-By for ged-emacs-devel@m.gmane.org; Thu, 10 May 2018 10:18:57 +0200 Original-Received: from localhost ([::1]:60714 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fGgp2-0007sg-Fd for ged-emacs-devel@m.gmane.org; Thu, 10 May 2018 04:21:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60158) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fGgoC-0007rL-54 for emacs-devel@gnu.org; Thu, 10 May 2018 04:20:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fGgo7-0006XI-Mq for emacs-devel@gnu.org; Thu, 10 May 2018 04:20:16 -0400 Original-Received: from mx1.riseup.net ([198.252.153.129]:46605) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fGgo7-0006WH-DY for emacs-devel@gnu.org; Thu, 10 May 2018 04:20:11 -0400 Original-Received: from cotinga.riseup.net (cotinga-pn.riseup.net [10.0.1.164]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.riseup.net (Postfix) with ESMTPS id B7BE31A08E6 for ; Thu, 10 May 2018 01:20:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1525940409; bh=9EueyRlxE1WJ+oCtjaC3DuL//9JJ5mlFXRRvXjhgxyw=; h=Date:From:To:Subject:References:In-Reply-To:From; b=WIaVihapWJe4TpgTSZJ0LDltsmUVnJI9eRssXfxOi/J0S4NezFQoCRFxcyCfjxhG7 7PCsfROaefCIM7kKk+D3Lc+6S8UYKMUpiMv1WVdyeiAocByVGY95XTX0ZNRdVSq/uC B48QENIzagk+17xr/riLCm9aUClo6SSRwm0F+mHY= X-Riseup-User-ID: B577D3016D9D7858FEBCCF71BFFE67A73FA952C8E84FBC3EC83942EEE97E74D4 Original-Received: from [127.0.0.1] (localhost [127.0.0.1]) by cotinga.riseup.net with ESMTPSA id 29CA0A9756 for ; Thu, 10 May 2018 01:20:08 -0700 (PDT) Mail-Followup-To: emacs-devel@gnu.org Content-Disposition: inline In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 198.252.153.129 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:225189 Archived-At: Stefan Monnier [2018-05-09 08:28 -0400]: >> I do not understand what you have in mind with write-file. This creates a >> copy, which is natural given the name. Do you envision some changes to it? > >Not sure what happened, but my first answer said: > > so maybe we could instead have `C-x C-w` prompt the user > "delete the old file (y or n)?" For me the use case for using C-x C-w is not to move a file, but to create a copy of a file leaving the original file untouched -- for example if I want to create a new file but I want to start from an existing one as a template. So for this use case C-x C-w works exactly as I would expect, and adding the option to delete the original file is unnecessary, and prompting the user would just interrupt. As for renaming/moving/deleting a file I feel very comfortable with doing it with Dired. C-x C-j, R RET, q -- for me it is convenient and not too long. Also, there is the point of "having too many commands" -- this would make Emacs more complex to use, and personally I prefer a simpler interface, even at the cost of not having a specific command for every edge case. --- Amit