[Top][All Lists]

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

Is a method like this already in emacs?

From: Matthias Pfeifer
Subject: Is a method like this already in emacs?
Date: Tue, 5 Nov 2013 09:32:06 +0100

Dear list,

i recently added this defun to my init.el

(defun detach-window ()
  "Close current window and re-open it in new frame."
  (let ((currentBuffer (window-buffer)))
      (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? Also i am
curious about emacs lisp and could not successfully google for a related
mailing-list - now i wonder if somebody knows about one and shares the

Thanks in advance.

reply via email to

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