all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* compilation-goto-locus, pop-up-windows, same-window-regexps
@ 2003-03-16 10:43 Alex Schroeder
  2003-03-17  4:52 ` Richard Stallman
  0 siblings, 1 reply; 21+ messages in thread
From: Alex Schroeder @ 2003-03-16 10:43 UTC (permalink / 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.

^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2003-03-27 10:05 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-16 10:43 compilation-goto-locus, pop-up-windows, same-window-regexps Alex Schroeder
2003-03-17  4:52 ` 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

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.