Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Closing windows in frame

2 views
Skip to first unread message

Antoine Hersen

unread,
Apr 26, 2008, 9:00:11 PM4/26/08
to help-gn...@gnu.org
Hello,

I have a question that I did not manage to find an answer by myself
mostly because I do not know how to formulate properly so thanks for
trying to understand.

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.

So my question : Is there a way to have the windows not collapse and
just reverse to the buffer that was previously there ?

Thanks for your time.

Antoine Hersen

--
Website : www.societylab.net
Tel : 916-397-4254


Nikolaj Schumacher

unread,
Apr 27, 2008, 2:30:28 PM4/27/08
to Antoine Hersen, help-gn...@gnu.org

regards,
Nikolaj Schumacher


Nikolaj Schumacher

unread,
Apr 27, 2008, 2:44:10 PM4/27/08
to Antoine Hersen, help-gn...@gnu.org
"Antoine Hersen" <antoine...@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


0 new messages