From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bob Doolittle Newsgroups: gmane.emacs.help Subject: Re: Looking for an ediff window setup function - two files in new frames Date: Sat, 03 Mar 2007 19:23:56 -0500 Message-ID: <45EA119C.2040501@Sun.COM> References: <45EA05EE.7050204@Sun.COM> <45EA085D.9000603@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=ISO-8859-1 Content-Transfer-Encoding: 7BIT X-Trace: sea.gmane.org 1173002888 21410 80.91.229.12 (4 Mar 2007 10:08:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 4 Mar 2007 10:08:08 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "Lennart Borgman gmail - lennart.borgman@gmail.com" <+fredf+bobdsun+f8d8cd63cb.lennart.borgman#gmail.com@spamgourmet.com> Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Mar 04 11:08:01 2007 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 1HNndI-0004jU-NR for geh-help-gnu-emacs@m.gmane.org; Sun, 04 Mar 2007 11:08:01 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HNndI-0002gJ-3S for geh-help-gnu-emacs@m.gmane.org; Sun, 04 Mar 2007 05:08:00 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HNeWL-0002H5-3x for help-gnu-emacs@gnu.org; Sat, 03 Mar 2007 19:24:13 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HNeWJ-0002Gs-0P for help-gnu-emacs@gnu.org; Sat, 03 Mar 2007 19:24:12 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HNeWI-0002Gp-Qb for help-gnu-emacs@gnu.org; Sat, 03 Mar 2007 19:24:10 -0500 Original-Received: from nwk-ea-fw-1.sun.com ([192.18.42.249]) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HNeWD-0000tJ-1J for help-gnu-emacs@gnu.org; Sat, 03 Mar 2007 19:24:10 -0500 Original-Received: from d1-sfbay-09.sun.com ([192.18.39.119]) by nwk-ea-fw-1.sun.com (8.13.6+Sun/8.12.9) with ESMTP id l240O0iH001997 for ; Sat, 3 Mar 2007 16:24:00 -0800 (PST) Original-Received: from conversion-daemon.d1-sfbay-09.sun.com by d1-sfbay-09.sun.com (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) id <0JEC00101RR0XC00@d1-sfbay-09.sun.com> (original mail from Robert.Doolittle@Sun.COM) for help-gnu-emacs@gnu.org; Sat, 03 Mar 2007 16:24:00 -0800 (PST) Original-Received: from [192.9.61.82] by d1-sfbay-09.sun.com (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPSA id <0JEC00CXTRRY9FZ7@d1-sfbay-09.sun.com>; Sat, 03 Mar 2007 16:23:59 -0800 (PST) In-reply-to: <45EA085D.9000603@gmail.com> User-Agent: Thunderbird 1.5.0.7 (X11/20060915) X-detected-kernel: Solaris 9 X-Mailman-Approved-At: Sun, 04 Mar 2007 05:07:39 -0500 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:41641 Archived-At: Lennart Borgman gmail - lennart.borgman@gmail.com wrote: > fredf.bobdsun@antichef.net wrote: >> Does anybody have or know the whereabouts of an elisp >> ediff-window-setup-function which makes two new >> frames to display the files being diff'd? It should then >> delete the frames when the ediff completes/quits. >> >> This seems like it'd be highly desirable and is probably >> already written somewhere. I want this because I'm >> driving the ediff from gnuclient and using an existing >> version of emacs. >> >> Thanks, >> Bob > > > Couldn't you just call make-frame-command first in the function you > call from gnuclient and then call ediff? > > Or just do the call in two steops from gnuclient? In my case there's a chance (not a certainty) the files are already open in existing frames, so this doesn't work. I'm a pretty crude elisp hacker, but I did write a function to make-frame and then find-file in that frame for each file first, but I couldn't get the cleanup to work (couldn't find a suitable hook in ediff where the buffers/frames weren't active). It seems it would be easier in a window-setup-function, since this is its job. -Bob