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:22:58 +0100 Organization: Informatimago Message-ID: <87wqkm7iwd.fsf@informatimago.com> References: <5278c73f$0$2059$426a74cc@news.free.fr> <874n7q8xiu.fsf@informatimago.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1383679523 4526 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:30 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 1VdmFl-0005in-H2 for geh-help-gnu-emacs@m.gmane.org; Tue, 05 Nov 2013 20:25:29 +0100 Original-Received: from localhost ([::1]:58116 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VdmFk-0000M7-JO for geh-help-gnu-emacs@m.gmane.org; Tue, 05 Nov 2013 14:25:28 -0500 Original-Path: usenet.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 28 Original-X-Trace: individual.net K+eQlSRMzC7LcUcMwjMT3A/T9akQcPhtezS+N/oB8/QeTlMmdg Cancel-Lock: sha1:YjU3NzZjYWMyODk4MWIxMjI4MjcyMjczZDMyM2FlMzIyMWU4NWQ2MQ== sha1:ixc+l5hagci9EEZf3xUBL3KzrHQ= 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:202082 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:94353 Archived-At: "Pascal J. Bourguignon" writes: > 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. Well, modulo the suppression of the old window, but who cares? :-) -- __Pascal Bourguignon__ http://www.informatimago.com/