From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.help Subject: Re: Restore window configuration after Ediff Date: Sat, 16 Apr 2011 09:36:17 +0200 Message-ID: <4DA946F1.9030301@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1302939401 18009 80.91.229.12 (16 Apr 2011 07:36:41 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 16 Apr 2011 07:36:41 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: pj@irregularexpressions.net Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Apr 16 09:36:37 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QB03Z-00041J-3o for geh-help-gnu-emacs@m.gmane.org; Sat, 16 Apr 2011 09:36:37 +0200 Original-Received: from localhost ([::1]:55904 helo=lists2.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QB03Y-0002vv-L9 for geh-help-gnu-emacs@m.gmane.org; Sat, 16 Apr 2011 03:36:36 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:45370) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QB03P-0002vc-S4 for help-gnu-emacs@gnu.org; Sat, 16 Apr 2011 03:36:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QB03P-0003Q8-66 for help-gnu-emacs@gnu.org; Sat, 16 Apr 2011 03:36:27 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.22]:47593) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1QB03O-0003PZ-QH for help-gnu-emacs@gnu.org; Sat, 16 Apr 2011 03:36:27 -0400 Original-Received: (qmail invoked by alias); 16 Apr 2011 07:36:20 -0000 Original-Received: from 62-47-59-172.adsl.highway.telekom.at (EHLO [62.47.59.172]) [62.47.59.172] by mail.gmx.net (mp060) with SMTP; 16 Apr 2011 09:36:20 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1/ygJUWY4LyhN9d+WlYqVh2cLhOV1jlUyZFDHbxs/ CYYw/N+TVJAmMa User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) Original-References: BANLkTinX3zJuaw+EUKtQ3jE-CPtsRj4Jiw@mail.gmail.com X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 213.165.64.22 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:80813 Archived-At: > ====================================================================== > (defvar saved-configuration nil) > > (defun do-ediff() > (interactive) > (add-hook 'ediff-quit-hook 'do-ediff-cleanup) > (setq saved-configuration (current-window-configuration)) > (ediff-buffers "*scratch*" "*scratch*")) > > (defun do-ediff-cleanup() > (set-window-configuration saved-configuration) > (remove-hook 'ediff-quit-hook 'do-ediff-cleanup)) > ====================================================================== > > The problem is that after I quit ediff, the ediff control frame > doesn't always disappear. Replace `current-window-configuration' by `current-frame-configuration' and `set-window-configuration' by `set-frame-configuration'. martin