From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: jpkotta Newsgroups: gmane.emacs.help Subject: Re: Losing window setup upon Version Control submit Date: Tue, 2 Jun 2009 10:43:32 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1243968042 30910 80.91.229.12 (2 Jun 2009 18:40:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 2 Jun 2009 18:40:42 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 02 20:40:40 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MBYud-0000gd-EG for geh-help-gnu-emacs@m.gmane.org; Tue, 02 Jun 2009 20:40:39 +0200 Original-Received: from localhost ([127.0.0.1]:37907 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MBYuc-0006oI-UO for geh-help-gnu-emacs@m.gmane.org; Tue, 02 Jun 2009 14:40:39 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!news.glorb.com!news2.glorb.com!postnews.google.com!g20g2000vba.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 49 Original-NNTP-Posting-Host: 64.122.73.112 Original-X-Trace: posting.google.com 1243964612 32228 127.0.0.1 (2 Jun 2009 17:43:32 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 2 Jun 2009 17:43:32 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: g20g2000vba.googlegroups.com; posting-host=64.122.73.112; posting-account=EwI0QQoAAADdqmqX_mVfawBNtwyks2YE User-Agent: G2/1.0 X-HTTP-UserAgent: Opera/9.64 (X11; Linux x86_64; U; en) Presto/2.1.1,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:169675 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:64905 Archived-At: On Jun 1, 9:29=A0pm, henning wrote: > Hi, > > When I use C-x v v to perform a svn commit a window appears where I can t= ype > 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 ha= ve > 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 wro= ng > 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 o= n > terranova, modified by Ubuntu > > Thanks, Henning > -- > View this message in context:http://www.nabble.com/Losing-window-setup-up= on-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)))))