* Losing window setup upon Version Control submit
@ 2009-06-02 2:29 henning
0 siblings, 0 replies; 3+ messages in thread
From: henning @ 2009-06-02 2:29 UTC (permalink / raw)
To: Help-gnu-emacs
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-tp23825515p23825515.html
Sent from the Emacs - Help mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Losing window setup upon Version Control submit
[not found] <mailman.8326.1243909807.31690.help-gnu-emacs@gnu.org>
@ 2009-06-02 17:43 ` jpkotta
2009-06-03 1:49 ` henning
0 siblings, 1 reply; 3+ messages in thread
From: jpkotta @ 2009-06-02 17:43 UTC (permalink / raw)
To: help-gnu-emacs
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)))))
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Losing window setup upon Version Control submit
2009-06-02 17:43 ` Losing window setup upon Version Control submit jpkotta
@ 2009-06-03 1:49 ` henning
0 siblings, 0 replies; 3+ messages in thread
From: henning @ 2009-06-03 1:49 UTC (permalink / raw)
To: Help-gnu-emacs
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-06-03 1:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.8326.1243909807.31690.help-gnu-emacs@gnu.org>
2009-06-02 17:43 ` Losing window setup upon Version Control submit jpkotta
2009-06-03 1:49 ` henning
2009-06-02 2:29 henning
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).