[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Is a method like this already in emacs?
From: |
Pascal J. Bourguignon |
Subject: |
Re: Is a method like this already in emacs? |
Date: |
Tue, 05 Nov 2013 20:21:45 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
Damien Wyart <damien.wyart@free.fr> writes:
> * Matthias Pfeifer <mpfeifer77@gmail.com> in gnu.emacs.help:
>> i recently added this defun to my init.el
>
>> (defun detach-window ()
>> "Close current window and re-open it in new frame."
>> (interactive)
>> (let ((currentBuffer (window-buffer)))
>> (progn
>> (delete-window)
>> (select-frame (make-frame))
>> (set-window-buffer (selected-window) currentBuffer))))
>
>> and found it to be useful in several situations. now i wonder if
>> a function that does the same is already available somewhere in emacs?
>
> No, but there has been a quite long related discussion recently on
Yes, this is exactly what C-x 5 2 or M-x make-frame-command does.
--
__Pascal Bourguignon__
http://www.informatimago.com/