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: Sun, 17 Apr 2011 12:24:04 +0200 Message-ID: <4DAABFC4.1040408@gmx.at> References: <4DA946F1.9030301@gmx.at> <4DA96A9F.6040005@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1303035872 8720 80.91.229.12 (17 Apr 2011 10:24:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 17 Apr 2011 10:24:32 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" To: PJ Weisberg Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Apr 17 12:24:28 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 1QBP9U-00029D-3W for geh-help-gnu-emacs@m.gmane.org; Sun, 17 Apr 2011 12:24:24 +0200 Original-Received: from localhost ([::1]:58546 helo=lists2.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QBP9T-0002C9-BL for geh-help-gnu-emacs@m.gmane.org; Sun, 17 Apr 2011 06:24:23 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:54638) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QBP9O-0002C4-1S for help-gnu-emacs@gnu.org; Sun, 17 Apr 2011 06:24:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QBP9N-0006G3-8X for help-gnu-emacs@gnu.org; Sun, 17 Apr 2011 06:24:18 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.23]:49748) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1QBP9M-0006Fd-OT for help-gnu-emacs@gnu.org; Sun, 17 Apr 2011 06:24:17 -0400 Original-Received: (qmail invoked by alias); 17 Apr 2011 10:24:07 -0000 Original-Received: from 62-47-57-180.adsl.highway.telekom.at (EHLO [62.47.57.180]) [62.47.57.180] by mail.gmx.net (mp007) with SMTP; 17 Apr 2011 12:24:07 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1++wcAwkuO+Gb2MMhp6EfH5ygbzhRt98aymoVipFC draapmmt6YWDCx User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 213.165.64.23 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:80818 Archived-At: > My goal was to save and restore that particular frame without > affecting what would otherwise happen to other frames. Ediff normally > deletes its control frame, so I want it to do so while I restore the > other frame to the way it was before Ediff was invoked. I hope I finally understand what you mean. The problem seems with ediff's handling of buffer local variables, current buffers, and selected windows. I don't understand that at all :-( Could you try the following? (defun do-ediff-cleanup() (save-current-buffer (save-selected-window (set-window-configuration saved-configuration))) (remove-hook 'ediff-quit-hook 'do-ediff-cleanup)) martin