emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: rename buffer but overwrite already existing one


From: Andreas Schwab
Subject: Re: rename buffer but overwrite already existing one
Date: Mon, 23 Mar 2020 20:41:12 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.90 (gnu/linux)

On Mär 23 2020, Uwe Brauer wrote:

>>>> "EZ" == Eli Zaretskii <address@hidden> writes:
>
>    >> From: Uwe Brauer <address@hidden>
>    >> 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, address@hidden
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]