From: Alex Schroeder <alex@gnu.org>
Subject: compilation-goto-locus, pop-up-windows, same-window-regexps
Date: Sun, 16 Mar 2003 11:43:28 +0100 [thread overview]
Message-ID: <87vfyjbnhr.fsf@gnu.org> (raw)
I propose to change the end of compilation-goto-locus from this:
;; Show compilation buffer in other window, scrolled to this error.
(let* ((pop-up-windows t)
;; Use an existing window if it is in a visible frame.
(w (or (get-buffer-window (marker-buffer (car next-error)) 'visible)
;; Pop up a window.
(display-buffer (marker-buffer (car next-error))))))
(set-window-point w (car next-error))
(set-window-start w (car next-error))
(compilation-set-window-height w)))
to this:
;; Show compilation buffer in other window, scrolled to this error.
(when pop-up-windows
;; Use an existing window if it is in a visible frame.
(let ((w (or (get-buffer-window (marker-buffer (car next-error)) 'visible)
;; Pop up a window.
(display-buffer (marker-buffer (car next-error))))))
(set-window-point w (car next-error))
(set-window-start w (car next-error))
(compilation-set-window-height w))))
What I am trying to achieve is this:
I want Emacs to use one window for each task, ie. when I read mail, in
one window, and write code in a second window, I don't Emacs to change
my window configurations. I don't want Emacs to split my windows, and
I don't want Emacs to delete other windows.
This is why I started using the following settings. Try it in emacs
-q.
(setq pop-up-windows nil
same-window-regexps '("."))
Now run a grep command:
(grep "grep -n setq ~/.emacs")
The *grep* buffer should be the only visible window, now. Hit RET on
one of the matches. The window continues to show the grep buffer!
I am not very happy with this solution, however. I think the best
solution would be to eliminate all occurences of binding
pop-up-windows. We should look at these situations and decide what
the best way to handle them is -- without making new windows.
Alex.
next reply other threads:[~2003-03-16 10:43 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-16 10:43 Alex Schroeder [this message]
2003-03-17 4:52 ` compilation-goto-locus, pop-up-windows, same-window-regexps Richard Stallman
2003-03-17 9:14 ` Alex Schroeder
2003-03-17 23:24 ` Richard Stallman
2003-03-17 23:41 ` Stefan Monnier
2003-03-18 0:04 ` Alex Schroeder
2003-03-18 0:35 ` Stefan Monnier
2003-03-18 0:01 ` Alex Schroeder
2003-03-19 8:49 ` Richard Stallman
2003-03-21 22:52 ` Alex Schroeder
2003-03-24 2:05 ` Richard Stallman
2003-03-24 20:35 ` Alex Schroeder
2003-03-24 23:02 ` Robert J. Chassell
2003-03-26 0:39 ` Alex Schroeder
2003-03-26 14:01 ` Robert J. Chassell
2003-03-26 22:33 ` Alex Schroeder
2003-03-27 10:05 ` Oliver Scholz
2003-03-24 2:05 ` Richard Stallman
2003-03-24 15:36 ` Stefan Monnier
2003-03-24 20:41 ` Alex Schroeder
2003-03-24 21:06 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87vfyjbnhr.fsf@gnu.org \
--to=alex@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.