From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#70806: [PATCH] Add rename-file-and-open function Date: Sat, 18 May 2024 11:39:47 +0300 Message-ID: <86v83becoc.fsf@gnu.org> References: <87cypyn5lv.fsf@posteo.net> <86bk5ibwck.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33955"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 70806-done@debbugs.gnu.org To: Charalampos Mitrodimas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 18 10:40:21 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1s8Fc5-0008gH-13 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 18 May 2024 10:40:21 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s8Fbl-0000Qp-S2; Sat, 18 May 2024 04:40:01 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s8Fbj-0000Pv-UD for bug-gnu-emacs@gnu.org; Sat, 18 May 2024 04:39:59 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s8Fbj-0004lO-Lq for bug-gnu-emacs@gnu.org; Sat, 18 May 2024 04:39:59 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s8Fbm-0007dI-UG for bug-gnu-emacs@gnu.org; Sat, 18 May 2024 04:40:02 -0400 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sat, 18 May 2024 08:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 70806 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Mail-Followup-To: 70806@debbugs.gnu.org, eliz@gnu.org, charmitro@posteo.net Original-Received: via spool by 70806-done@debbugs.gnu.org id=D70806.171602160129327 (code D ref 70806); Sat, 18 May 2024 08:40:02 +0000 Original-Received: (at 70806-done) by debbugs.gnu.org; 18 May 2024 08:40:01 +0000 Original-Received: from localhost ([127.0.0.1]:60347 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s8Fbl-0007cx-5n for submit@debbugs.gnu.org; Sat, 18 May 2024 04:40:01 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:46014) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s8Fbk-0007cn-0X for 70806-done@debbugs.gnu.org; Sat, 18 May 2024 04:40:00 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s8Fba-0004jO-HG; Sat, 18 May 2024 04:39:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=/FmAtx80HqwkCVJlg4O6Pbao2Zowbk6FGBe/N4kBuJc=; b=pW/vLcDfleXA vEYLWPuED/lhbA4K+b8VcGGsnoMs+065CA/IWyTzUwuSOjZBuU/X6PHPN6+NHeVVLgKkMWeTVaK7c PRB/m6l7DKwxLrY1VMa632PSAs6J3uYtyvbMvIoU04Nke07q7dcx2ktwyhSXQDz5E84bhx2gr1ArP wzIo+odzvAygTbhSVFazgtJceWlV6NHv+aYRt3ofbAEwd5bpv+4jDAhIdHndEGC/qcw4/Uh5ZVkbP tGh07gb45WlYB1rMEOaeI9e9KstlGLKp7CHMloY+G9ggechm942rKhlb6I7/WAalnbQyTDPFAGJV+ 6Uzr+0PNDFYBp/q6pDnu/Q==; In-Reply-To: (message from Charalampos Mitrodimas on Mon, 6 May 2024 23:48:30 +0000) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:285296 Archived-At: > Date: Mon, 6 May 2024 23:48:30 +0000 > Cc: 70806@debbugs.gnu.org > From: Charalampos Mitrodimas > > > On 6/5/24 9:59 PM, Eli Zaretskii wrote: > >> From: Charalampos Mitrodimas > >> Date: Mon, 06 May 2024 18:43:40 +0000 > >> > >> The new function is similar to "rename-file", but it automatically opens > >> the file once it's renamed (or throws a relevant error). > >> > >> I'm not sure if this addition is necessary, but I've had it for so many > >> years that I thought it might be useful to have it in Emacs by > >> default. I'm also not sure if it's in the correct position within > >> lisp/files.el. In any case, I'm submitting this patch for consideration. > > I think we have "C-x C-w" for those scenarios. It works the other way > > around: first you visit the file under the original name, then change > > its name when you save it. > That is indeed better than my function. Thanks! No further comments within 12 days, so I conclude this issue can be closed now.