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

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

Re: Losing window setup upon Version Control submit


From: henning
Subject: Re: Losing window setup upon Version Control submit
Date: Tue, 2 Jun 2009 18:49:30 -0700 (PDT)

thanks, looks like what I need but the VC-log doesn't seem to be starting any
particular modes so it requires some hacking of the vc-start-entry function.
Was hoping for a simpler solution :)


jpkotta wrote:
> 
> On Jun 1, 9:29 pm, henning <henning....@googlemail.com> wrote:
>> Hi,
>>
>> When I use C-x v v to perform a svn commit a window appears where I can
>> type
>> my log message after which I do C-c C-c to commit (the log-edit-done)
>> function. When this has executed my window configuration is lost and I
>> have
>> only the window with the file I tried to commit left. I often work with
>> multiple windows and find this very annoying, am I using the function
>> wrong
>> or is there a way to avoid this behavior?
>>
>> from emacs -Q
>>
>> - open file under svn control
>> - Split window C-x 3
>> - C-x v v
>> - type log message and do C-c C-c, file is committed and split window has
>> disappeared
>>
>> Version:
>> GNU Emacs 22.1.1 (i486-pc-linux-gnu, GTK+ Version 2.12.9) of 2008-05-03
>> on
>> terranova, modified by Ubuntu
>>
>> Thanks, Henning
>> --
>> View this message in
>> context:http://www.nabble.com/Losing-window-setup-upon-Version-Control-submit...
>> Sent from the Emacs - Help mailing list archive at Nabble.com.
> 
> I use the following functions for ediff mode.  I have added them to
> the hooks that start and finish ediff mode.  It looks like there are
> some hooks for log-edit-mode start and finish as well, but I don't use
> VC so I'm not 100% sure.
> 
> (defun push-window-config ()
>   "Save the current window layout"
>   (interactive)
>   (unless (boundp 'window-config-stack)
>     (setq window-config-stack '()))
>   (push (current-window-configuration) window-config-stack))
> (defun pop-window-config ()
>   "Restore the most recently saved window layout"
>   (interactive)
>   (if (boundp 'window-config-stack)
>       (unless (eq window-config-stack '())
>         (set-window-configuration (pop window-config-stack)))))
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Losing-window-setup-upon-Version-Control-submit-tp23825515p23844081.html
Sent from the Emacs - Help mailing list archive at Nabble.com.





reply via email to

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