unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Looking for an ediff window setup function - two files in new frames
@ 2007-03-03 23:34 fredf.bobdsun
  2007-03-03 23:44 ` Lennart Borgman (gmail)
  0 siblings, 1 reply; 3+ messages in thread
From: fredf.bobdsun @ 2007-03-03 23:34 UTC (permalink / raw)
  To: help-gnu-emacs

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Looking for an ediff window setup function - two files in new frames
  2007-03-03 23:34 Looking for an ediff window setup function - two files in new frames fredf.bobdsun
@ 2007-03-03 23:44 ` Lennart Borgman (gmail)
  2007-03-04  0:23   ` Bob Doolittle
  0 siblings, 1 reply; 3+ messages in thread
From: Lennart Borgman (gmail) @ 2007-03-03 23:44 UTC (permalink / raw)
  To: fredf.bobdsun; +Cc: help-gnu-emacs

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?

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Looking for an ediff window setup function - two files in new frames
  2007-03-03 23:44 ` Lennart Borgman (gmail)
@ 2007-03-04  0:23   ` Bob Doolittle
  0 siblings, 0 replies; 3+ messages in thread
From: Bob Doolittle @ 2007-03-04  0:23 UTC (permalink / raw)
  To: Lennart Borgman gmail - lennart.borgman@gmail.com; +Cc: help-gnu-emacs

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-03-04  0:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-03 23:34 Looking for an ediff window setup function - two files in new frames fredf.bobdsun
2007-03-03 23:44 ` Lennart Borgman (gmail)
2007-03-04  0:23   ` Bob Doolittle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).