From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Pascal J. Bourguignon" Newsgroups: gmane.emacs.help Subject: Re: Is a method like this already in emacs? Date: Tue, 05 Nov 2013 20:21:45 +0100 Organization: Informatimago Message-ID: <874n7q8xiu.fsf@informatimago.com> References: <5278c73f$0$2059$426a74cc@news.free.fr> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1383679523 4521 80.91.229.3 (5 Nov 2013 19:25:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 5 Nov 2013 19:25:23 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Nov 05 20:25:27 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VdmFj-0005e6-8G for geh-help-gnu-emacs@m.gmane.org; Tue, 05 Nov 2013 20:25:27 +0100 Original-Received: from localhost ([::1]:58115 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VdmFi-0000Lm-Lg for geh-help-gnu-emacs@m.gmane.org; Tue, 05 Nov 2013 14:25:26 -0500 Original-Path: usenet.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 24 Original-X-Trace: individual.net itXjYRRyX1sGs2/X1bvKaAeUu4Ga+Tx3LRfjtR5eFsOxreilFN Cancel-Lock: sha1:Y2I5MzJhZjRlMzY4YTcxMjIxNWI2YjIwYzA2OGI3YzMxOWY3ZTRhMw== sha1:uvNoRLvahO99J37p+EX22Tz3zXk= Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAQMAAABtzGvEAAAABlBMVEUAAAD///+l2Z/dAAAA oElEQVR4nK3OsRHCMAwF0O8YQufUNIQRGIAja9CxSA55AxZgFO4coMgYrEDDQZWPIlNAjwq9 033pbOBPtbXuB6PKNBn5gZkhGa86Z4x2wE67O+06WxGD/HCOGR0deY3f9Ijwwt7rNGNf6Oac l/GuZTF1wFGKiYYHKSFAkjIo1b6sCYS1sVmFhhhahKQssRjRT90ITWUk6vvK3RsPGs+M1RuR mV+hO/VvFAAAAABJRU5ErkJggg== X-Accept-Language: fr, es, en User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Original-Xref: usenet.stanford.edu gnu.emacs.help:202081 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:94352 Archived-At: Damien Wyart writes: > * Matthias Pfeifer 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/