unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: jpkotta <jpkotta@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Losing window setup upon Version Control submit
Date: Tue, 2 Jun 2009 10:43:32 -0700 (PDT)	[thread overview]
Message-ID: <f2cc9438-3e6a-4860-82b0-b7fe5f039ec4@g20g2000vba.googlegroups.com> (raw)
In-Reply-To: mailman.8326.1243909807.31690.help-gnu-emacs@gnu.org

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)))))


       reply	other threads:[~2009-06-02 17:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.8326.1243909807.31690.help-gnu-emacs@gnu.org>
2009-06-02 17:43 ` jpkotta [this message]
2009-06-03  1:49   ` Losing window setup upon Version Control submit henning
2009-06-02  2:29 henning

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f2cc9438-3e6a-4860-82b0-b7fe5f039ec4@g20g2000vba.googlegroups.com \
    --to=jpkotta@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).