From: Andreas Schwab <schwab@linux-m68k.org>
To: emacs-devel@gnu.org
Subject: Re: rename buffer but overwrite already existing one
Date: Mon, 23 Mar 2020 20:41:12 +0100 [thread overview]
Message-ID: <87sghy506f.fsf@igel.home> (raw)
In-Reply-To: <87y2rq98po.fsf@mat.ucm.es> (Uwe Brauer's message of "Mon, 23 Mar 2020 20:23:15 +0100")
On Mär 23 2020, Uwe Brauer wrote:
>>>> "EZ" == Eli Zaretskii <eliz@gnu.org> writes:
>
> >> From: Uwe Brauer <oub@mat.ucm.es>
> >> Date: Mon, 23 Mar 2020 19:05:23 +0100
> >>
> >> Couldn't rename-buffer, optionally, overwrite the content of a buffer.
>
> > Yes, but it's called copy-to-buffer, not rename-buffer.
>
> Thanks for pointing this out to me, but I have to mark the whole buffer
> first, which is a but inconvenient, I say.
>
> Couldn't there an argument added so that with the argument the whole
> buffer is copied?
It's easy to define your own function that calls copy-to-buffer with
(point-min), (point-max).
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."
next prev parent reply other threads:[~2020-03-23 19:41 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-23 18:05 rename buffer but overwrite already existing one Uwe Brauer
2020-03-23 18:23 ` Stefan Monnier
2020-03-23 19:24 ` Uwe Brauer
2020-03-23 19:18 ` Eli Zaretskii
2020-03-23 19:23 ` Uwe Brauer
2020-03-23 19:35 ` Eli Zaretskii
2020-03-23 19:46 ` Uwe Brauer
2020-03-23 19:41 ` Andreas Schwab [this message]
2020-03-23 19:43 ` Uwe Brauer
2020-03-23 20:02 ` Stephen Berman
2020-03-23 20:49 ` Uwe Brauer
2020-03-23 21:21 ` Stephen Berman
2020-03-24 9:17 ` Uwe Brauer
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87sghy506f.fsf@igel.home \
--to=schwab@linux-m68k.org \
--cc=emacs-devel@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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.