From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: tfb@famine.OCF.Berkeley.EDU (Thomas F. Burdick) Newsgroups: gmane.emacs.help Subject: Re: one file per frame -- customization possible? Date: 05 Dec 2003 00:25:13 -0800 Organization: University of California, Berkeley Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1070613198 6570 80.91.224.253 (5 Dec 2003 08:33:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 5 Dec 2003 08:33:18 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Dec 05 09:33:15 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1ASBOk-00042p-00 for ; Fri, 05 Dec 2003 09:33:15 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1ASCKY-000356-CP for geh-help-gnu-emacs@m.gmane.org; Fri, 05 Dec 2003 04:32:58 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsfeed.berkeley.edu!ucberkeley!agate.berkeley.edu!agate!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 39 Original-NNTP-Posting-Host: famine.ocf.berkeley.edu Original-X-Trace: agate.berkeley.edu 1070612715 26909 192.58.221.246 (5 Dec 2003 08:25:15 GMT) Original-X-Complaints-To: usenet@agate.berkeley.edu Original-NNTP-Posting-Date: Fri, 5 Dec 2003 08:25:15 +0000 (UTC) X-Newsreader: Gnus v5.7/Emacs 20.7 Original-Xref: shelby.stanford.edu gnu.emacs.help:119027 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 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 Xref: main.gmane.org gmane.emacs.help:14967 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:14967 David Reitter writes: > Hello, > > I would like to tell emacs to display each new buffer in a new frame. When > I switch buffers, this should amount to bringing the according frame in > front. Closing a frame should amount to closing the buffer. > More temporary buffers that contain messages belonging to the actual > document shouldn't be displayed in separate frames - split windows would do. > > Essentially, what I would like to have, is a one-document-per-window scheme, > just like in pretty much all OS X applications (and most Windows > applications). I just saw this post, and decided to try to see what it would take to get Emacs to do this. The answer is, not much at all. Here's what I have: (setq pop-up-frames t) (defadvice switch-to-buffer (around force-other-frame (&rest args) activate) (apply #'switch-to-buffer-other-frame args)) (defun kill-buffer-for-frame (frame) (kill-buffer (window-buffer (frame-selected-window frame)))) (add-to-list 'delete-frame-functions 'kill-buffer-for-frame) I tested it lightly, and it seems to work. It's kind of cool, and seems like it might be perfectly usable. -- /|_ .-----------------------. ,' .\ / | No to Imperialist war | ,--' _,' | Wage class war! | / / `-----------------------' ( -. | | ) | (`-. '--.) `. )----'