help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: separate compilation frame


From: Javier
Subject: Re: separate compilation frame
Date: Wed, 23 Dec 2015 22:07:03 +0000 (UTC)
User-agent: tin/2.2.1-20140504 ("Tober an Righ") (UNIX) (Linux/3.18.6-1-ARCH (x86_64))

Ken Goldman <kgoldman@us.ibm.com> wrote:
> In emacs 23.1.1, my *compilation* window goes into a separate frame. 
> next-error goes to the line of source in a different frame.
> 
> In 24.5.1, the compilation window goes into a split frame.  Even when I 
> unsplit the frame, next-error splits it again.
> 
> How do I get the emacs 23 behavior - a single compilation frame that 
> never splits?

The most drastic way to get that behavior

;;; Always open new buffer in new frame
(setq pop-up-frames t)

Then *everything* (compilation frames, completitions, help buffers...)
will be opened in a new frame instead of splitting the current frame
in two windows.

If you do that you better define some keys to change frames easily
with C-PageUp, C-PgDown or whatever.  The default (C-x 5 o ) is too long to 
press

(defun other-frame-dec () "" (interactive) (other-frame '+1))
(defun other-frame-inc () "" (interactive) (other-frame '-1))
(global-set-key [C-prior] 'other-frame-dec)
(global-set-key [C-next] 'other-frame-inc)

If you want to fine-tune which buffers get displayed in a new frame,
I don't know how to do it.  You can try to have a look at the manual

(info "(elisp) Display Action Functions")
(info "(elisp) Choosing Window Options")
(info "(elisp) Windows")
(info "(elisp) Choosing Window")
(info "(emacs) Window Choice")



reply via email to

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