unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Charalampos Mitrodimas <charmitro@posteo.net>
Cc: 70806@debbugs.gnu.org
Subject: bug#70806: [PATCH] Add rename-file-and-open function
Date: Mon, 06 May 2024 21:59:07 +0300	[thread overview]
Message-ID: <86bk5ibwck.fsf@gnu.org> (raw)
In-Reply-To: <87cypyn5lv.fsf@posteo.net> (message from Charalampos Mitrodimas on Mon, 06 May 2024 18:43:40 +0000)

> From: Charalampos Mitrodimas <charmitro@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.





  reply	other threads:[~2024-05-06 18:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-06 18:43 bug#70806: [PATCH] Add rename-file-and-open function Charalampos Mitrodimas
2024-05-06 18:59 ` Eli Zaretskii [this message]
2024-05-06 23:48   ` Charalampos Mitrodimas
2024-05-18  8:39     ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86bk5ibwck.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=70806@debbugs.gnu.org \
    --cc=charmitro@posteo.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).