all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Giorgos Keramidas <keramida@ceid.upatras.gr>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: ediff maximum line length?
Date: Fri, 11 Feb 2011 01:02:13 -0800	[thread overview]
Message-ID: <xeialj1n3pwq.fsf@kobe.laptop> (raw)
In-Reply-To: <jwv7hd7rxg3.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Thu, 10 Feb 2011 23:48:55 -0500")

On Thu, 10 Feb 2011 23:48:55 -0500, Stefan Monnier <monnier@iro.umontreal.ca> wrote:
>> ediff-mode highlights nicely all fine diffs within lines, using a
>> different face and this has proven *very* useful in many cases, but
>> I've now bumped on a case (and it will be often the case with some of
>> the stuff I'm lately doing) where ediff does not display fine diffs
>> for *very* long lines...
>
> I don't know ediff very much, but diff-mode also highlights fine diffs
> (via diff-refine-hunk or diff-auto-refine-mode, for example).  I know
> this code fairly well since I wrote it, and to the best of my
> knowledge it should not care about line-length (tho I haven't checked
> its efficiency in the presence of very long lines).

That's good to know. Thank you.

I am looking for something that can compare two files, so that I can
launch Emacs as my diff tool, e.g. from Perforce, Subversion, etc.  I
don't know if diff-mode can compare two files instead of a buffer and
its file.  That's why I used ediff.  (Another reason is that I know its
key bindings from vc, but that's not something I can't live without.)

Right now I have a small shell script as a wrapper that does something
like this simplified version:

    if test -d "$1"/. && test -d "$2"/. ; then
        exec emacs --eval "(ediff-directories \"$1\" \"$2\" nil)"
    else
        exec emacs --eval "(ediff-files \"$1\" \"$2\")"
    fi

Is it possible to use diff-mode for the same sort of comparison?




  reply	other threads:[~2011-02-11  9:02 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-11  4:18 ediff maximum line length? Giorgos Keramidas
2011-02-11  4:48 ` Stefan Monnier
2011-02-11  9:02   ` Giorgos Keramidas [this message]
2011-02-11  9:06     ` Lennart Borgman
2011-02-11  9:17       ` Giorgos Keramidas
2011-02-11 14:27     ` Stefan Monnier
2011-02-11 21:45       ` Giorgos Keramidas
2011-02-11 22:01         ` Andreas Schwab
2011-02-12  9:00           ` Giorgos Keramidas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=xeialj1n3pwq.fsf@kobe.laptop \
    --to=keramida@ceid.upatras.gr \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.