GNU bug report logs - #70806
[PATCH] Add rename-file-and-open function

Previous Next

Package: emacs;

Reported by: Charalampos Mitrodimas <charmitro <at> posteo.net>

Date: Mon, 6 May 2024 18:45:02 UTC

Severity: normal

Tags: patch

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Charalampos Mitrodimas <charmitro <at> posteo.net>
Cc: 70806 <at> debbugs.gnu.org
Subject: bug#70806: [PATCH] Add rename-file-and-open function
Date: Mon, 06 May 2024 21:59:07 +0300
> From: Charalampos Mitrodimas <charmitro <at> posteo.net>
> 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.




This bug report was last modified 1 year and 55 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.