From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nikolaj Schumacher Newsgroups: gmane.emacs.help Subject: Re: Closing windows in frame Date: Sun, 27 Apr 2008 20:44:10 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1209321904 1245 80.91.229.12 (27 Apr 2008 18:45:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 27 Apr 2008 18:45:04 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "Antoine Hersen" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Apr 27 20:45:40 2008 connect(): Connection refused 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 1JqBsW-00015z-JA for geh-help-gnu-emacs@m.gmane.org; Sun, 27 Apr 2008 20:45:36 +0200 Original-Received: from localhost ([127.0.0.1]:43584 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JqBrq-0001Op-81 for geh-help-gnu-emacs@m.gmane.org; Sun, 27 Apr 2008 14:44:54 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JqBrE-0001CB-5p for help-gnu-emacs@gnu.org; Sun, 27 Apr 2008 14:44:16 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JqBrC-0001Am-JD for help-gnu-emacs@gnu.org; Sun, 27 Apr 2008 14:44:15 -0400 Original-Received: from [199.232.76.173] (port=38370 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JqBrC-0001Ac-AH for help-gnu-emacs@gnu.org; Sun, 27 Apr 2008 14:44:14 -0400 Original-Received: from fmmailgate03.web.de ([217.72.192.234]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JqBrC-0004Gk-2i for help-gnu-emacs@gnu.org; Sun, 27 Apr 2008 14:44:14 -0400 Original-Received: from smtp07.web.de (fmsmtp07.dlan.cinetic.de [172.20.5.215]) by fmmailgate03.web.de (Postfix) with ESMTP id 25FE3D8B4C72; Sun, 27 Apr 2008 20:44:11 +0200 (CEST) Original-Received: from [77.135.62.133] (helo=thursday) by smtp07.web.de with asmtp (WEB.DE 4.109 #226) id 1JqBr9-00015a-00; Sun, 27 Apr 2008 20:44:11 +0200 In-Reply-To: (Antoine Hersen's message of "Sat\, 26 Apr 2008 18\:00\:11 -0700") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (darwin) X-Sender: n_schumacher@web.de X-Provags-ID: V01U2FsdGVkX1/ZrLTeUyVXsT9xvVV7yWMq3t6IYl2Kkrk0YVgE HVtpUO/bL1mWaelpK6n6Pc/CxqGwzP1AKXCTjm63i7sd4YpsRp p+wpdaDeGaBph5klzlGA== X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 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:53578 Archived-At: "Antoine Hersen" 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