help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Get buffer unto a new frame


From: PierGianLuca
Subject: Re: Get buffer unto a new frame
Date: Fri, 18 Aug 2023 16:36:00 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.14.0



On 230818 16:10, Heime wrote:
Perhaps as you say, I might require different possibilities in future.

Or perhaps not. It's very case-dependent.

By detach I usually mean "send it away", meaning that the buffer is
sent away to a new frame, leaving nothing behind.

I have F12 bound to 'make-frame-command (also C-x52), which opens the buffer 
I'm in into a new frame – but also leaves it in the previous frame/window.

But you could bound it to 'tear-off-window instead. This would move the buffer 
to a new frame and close its window in the previous frame (only if there are 
also other windows there).

One can have multiple windows of the same buffer, is that correct ?

Yes, even within the same frame. Very useful for example when you have to 
compare the beginning and end of a long file.

Can one remove all windows showing same buffer in some frame ?

This I don't know how to do right now. But I'm sure that it can be achieved, 
worst case by defining some lisp function. 'kill-buffer-and-window only 
eliminates one of the windows showing the buffer; if there are others, they 
will stay but will show other buffers.

Cheers,
Luca



reply via email to

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