From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "WJ" Newsgroups: gmane.emacs.help Subject: Re: Is a method like this already in emacs? Date: 5 Nov 2013 10:35:37 GMT Organization: NewsGuy - Unlimited Usenet $19.95 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-Trace: ger.gmane.org 1383648019 18019 80.91.229.3 (5 Nov 2013 10:40:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 5 Nov 2013 10:40:19 +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 11:40:24 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 1Vde3b-0007wD-UC for geh-help-gnu-emacs@m.gmane.org; Tue, 05 Nov 2013 11:40:24 +0100 Original-Received: from localhost ([::1]:54457 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vde3b-0003Cb-87 for geh-help-gnu-emacs@m.gmane.org; Tue, 05 Nov 2013 05:40:23 -0500 Original-Path: usenet.stanford.edu!news.glorb.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!spln!extra.newsguy.com!newsp.newsguy.com!enews1 Original-Newsgroups: gnu.emacs.help Original-Lines: 19 Original-NNTP-Posting-Host: pccece34ae209422aa2d9001033497fad737df3294de7cf628d03dd9283f70ac5.newsdawg.com User-Agent: XanaNews/1.18.1.6 X-Antivirus: avast! (VPS 131104-3, 11/04/2013), Outbound message X-Antivirus-Status: Clean X-Received-Bytes: 1283 Original-Xref: usenet.stanford.edu gnu.emacs.help:202071 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:94342 Archived-At: Matthias Pfeifer wrote: > (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)))) (defun detach-window () "Close current window and re-open it in new frame." (interactive) (let ((current-buffer (window-buffer))) (delete-window) (select-frame (make-frame)) (set-window-buffer (selected-window) current-buffer)))