help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: help: howto call ediff from elisp, interactive and multiple args ...


From: Peter Daum
Subject: Re: help: howto call ediff from elisp, interactive and multiple args ...
Date: Sat, 13 Nov 2010 20:37:45 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.1.12) Gecko/20100914 Thunderbird/3.0.8

> Peter Daum <gator_ml@yahoo.de> wrote:
>> I have to compare many similar binary files and the best tool I could
>> find so far for this purpose is a combination of emacs, hexl-mode and
>> ediff. Because this involves far too much typing, I am trying to write a
>> little lisp function to set up everything. I already know several ways
>> how not to do this ;-)
[...]
On 2010-11-13 20:16, Thierry Volpiatto wrote:
> (defun hexl-ediff (file1 file2)
>   "hexl-find 2 files and run ediff on them"
>   (interactive "fFile 1: \nfFile2:")
>   (let ((buffer1 (progn
>                      (hexl-find-file file1)
>                      (buffer-name (current-buffer))))
>         (buffer2 (progn
>                      (hexl-find-file file2)
>                      (buffer-name (current-buffer)))))
>     (ediff-buffers buffer1 buffer2)))

Exactly what I was looking for and it actually works ;-)

Thanks a lot!
                   Peter




reply via email to

[Prev in Thread] Current Thread [Next in Thread]