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

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

Re: Closing windows in frame


From: Nikolaj Schumacher
Subject: Re: Closing windows in frame
Date: Sun, 27 Apr 2008 20:44:10 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (darwin)

"Antoine Hersen" <antoine.hersen@gmail.com> wrote:

> When I have a frame split in many windows and I check changes into a
> version control, one of the windows will be used to ask me for a
> change log. But when I am done and use C-c C-c the windows collapse
> modifying my nicely layout.

I was once bugged by a similar behavior of `vc-revert-buffer'.  I used
the following:

(defadvice vc-revert-buffer (around restore-window-config activate)
  "Stop `vc-revert-buffer' from closing any windows."
  (interactive)
  (let ((win-config (current-window-configuration)))
    ad-do-it
    (set-window-configuration win-config)))

You could try that with vc-revert-buffer replaced with whatever C-c C-c
is bound to.


regards,
Nikolaj Schumacher




reply via email to

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