From: Ian Zimmerman <nobrowser@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: renaming current file and buffer
Date: Mon, 02 Jan 2006 19:37:02 -0800 (PST) [thread overview]
Message-ID: <8764p22d9j.fsf@gmail.com> (raw)
In-Reply-To: <87u0cmclgy.fsf@hans.local.net>
Dieter> Every so often I'm working on a file whose name I've not chosen
Dieter> appropriately. So far I couldn't find an elegant way in Emacs to
Dieter> rename the file and the buffer at the same time. I found the function
Dieter> definitions below in the net, which serve my needs perfectly, but I'm
Dieter> wondering whether I've overlooked something equally fitting from standard
Dieter> emacs packages? What are you doing in this situation? Yes I know:
Dieter> Thinking in advance, but ...
Doesn't C-x C-w (`write-file') work for you?
It does have the side effect of saving the buffer at that time, sorry if
that's not what you want.
--
A true pessimist won't be discouraged by a little success.
next prev parent reply other threads:[~2006-01-03 3:37 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-02 22:29 renaming current file and buffer Dieter Wilhelm
2006-01-03 3:37 ` Ian Zimmerman [this message]
2006-01-03 10:16 ` Dieter Wilhelm
2006-01-03 20:39 ` Peter Dyballa
2006-01-03 23:51 ` Dieter Wilhelm
2006-01-03 23:58 ` Peter Dyballa
2006-01-04 1:03 ` Dieter Wilhelm
2006-01-04 11:23 ` Peter Dyballa
[not found] ` <mailman.21367.1136381051.20277.help-gnu-emacs@gnu.org>
2006-02-01 1:11 ` David Combs
2006-02-01 9:20 ` Peter Dyballa
2006-02-11 12:32 ` Dieter Wilhelm
[not found] ` <mailman.488.1138786073.3044.help-gnu-emacs@gnu.org>
2006-02-09 6:40 ` David Combs
2006-01-04 0:03 ` Ian Zimmerman
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=8764p22d9j.fsf@gmail.com \
--to=nobrowser@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/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.
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).