unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: Diff faces
Date: Fri, 19 Oct 2007 23:55:55 +0300	[thread overview]
Message-ID: <8764124yec.fsf@jurta.org> (raw)
In-Reply-To: <jwvy7dz2i4w.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Fri\, 19 Oct 2007 12\:18\:41 -0400")

>> BTW, I think the current character-wise refinement in diff-mode and in
>> smerge-mode is not very useful.  More useful would be to refine it on the
>> word or symbol basis.  I have an experimental patch that produces good
>> results.  It splits original hunks symbol-by-symbol (though word-by-word
>> works as well) and compares them ignoring whitespace differences.
>
> I've installed a similar (tho significantly more complex) patch.
> Can you tell me if you like the new behavior?

The new behavior is excellent.  Thanks.  I think word granularity is
now more useful even when it highlights whole words that differ only
in one character.

BTW, smerge has a key binding `C-c ^ R' to refine differences, but
diff-mode has `C-c C-b'.  What about using more similar keys like
`C-c R' for diff-mode?  And maybe also add a special key to refine
without ignoring whitespace (by setting smerge-refine-ignore-whitespace
temporarily to nil, or vice versa depending on its customized value)
and to bind it to e.g. `C-c W' and `C-c ^ W'?

-- 
Juri Linkov
http://www.jurta.org/emacs/

  reply	other threads:[~2007-10-19 20:55 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-11 23:59 Diff faces Juri Linkov
2007-10-12  1:21 ` Stefan Monnier
2007-10-14 21:30   ` Juri Linkov
2007-10-15 14:36     ` Stefan Monnier
2007-10-15 23:52       ` Juri Linkov
2007-10-16  3:20         ` Stefan Monnier
2007-10-16  4:12       ` Miles Bader
2007-10-19 16:18     ` Stefan Monnier
2007-10-19 20:55       ` Juri Linkov [this message]
2007-10-19 23:42         ` Andreas Schwab
2007-10-20  0:16           ` Juri Linkov
2007-10-20 12:51             ` Stefan Monnier
2007-10-20  0:52         ` Stefan Monnier
2007-10-12 15:59 ` Richard Stallman
2007-10-12 19:42   ` Michael Kifer
2007-10-13  6:41     ` Richard Stallman
2007-10-13  6:55       ` Michael Kifer

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=8764124yec.fsf@jurta.org \
    --to=juri@jurta.org \
    --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 public inbox

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

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).