all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'Samuel Wales'" <samologist@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: RE: ediff refinement issues
Date: Sat, 26 Nov 2011 10:38:28 -0800	[thread overview]
Message-ID: <C62AFF522A1045008A840FF31AD80E6C@us.oracle.com> (raw)
In-Reply-To: <CAJcAo8u3SqbpJYav=4EdQPpdVgYhJJ4dbZm73No7dUQ_0hCAFw@mail.gmail.com>

> Yes of course.  I want ^;;; or ^# to act as whitespace in this case.

AFAIK, there is no way to tell ediff to ignore differences in text that matches
an arbitrary regexp.  IOW, it ignores only whitespace when you tell it to ignore
whitespace. ;-)

Ignoring whitespace is a built-in feature of ediff.  IIUC, what you are asking
for is not a feature provided by ediff.

I have long wanted the ability to tell ediff to ignore (i.e., consider as the
same) all matches for a given pattern.  AFAIK, that feature is waiting to be
implemented. ;-)

> One issue is that I want only ^;;; or ^# to be treated as whitespace.
> Not ;;; or # in the middle of text.

Neither case will ever be treated as whitespace.  Such patterns do not represent
whitespace.

> It is really simple.  I don't see why I should have to look at
> highlighted spurious things when all I did was fill a paragraph.

Filling a paragraph typically changes more than whitespace.

;;; aaa bbb ccc ddd
;;; eee

and 

;;; aaa bbb ccc
;;; ddd eee

wrt more than whitespace.  Ediff shows you the difference.
`;;;' is not whitespace.

> But if you had an unfilled paragraph... and ediffed the
> filled and unfilled versions, you might understand.

They differ wrt non-whitespace text, namely, the comment chars.

AFAICT, in what you describe:

1. Ediff is acting as advertised.
2. There is no option/command to have ediff ignore differences in text that
matches a pattern other than whitespace.

Again, maybe someone else can help more.




  reply	other threads:[~2011-11-26 18:38 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <AcysXwOm6vNJt6yHT5KpcypPYeDckQAAVtPw>
2011-11-26 17:15 ` ediff refinement issues Samuel Wales
2011-11-26 17:51   ` Drew Adams
2011-11-26 18:20     ` Samuel Wales
2011-11-26 18:38       ` Drew Adams [this message]
2011-11-29 10:54         ` Thien-Thi Nguyen
2011-11-29 17:27           ` Samuel Wales
2011-12-06 14:16             ` Thien-Thi Nguyen
2021-03-29  4:46     ` Samuel Wales
2021-03-29  4:48       ` Samuel Wales
2021-03-29  5:27         ` Eli Zaretskii
2021-03-30 22:04           ` Samuel Wales
2021-03-31  2:56       ` Stefan Monnier
2021-03-30 23:26     ` Michael Heerdegen
2011-11-26 20:28   ` Peter Münster

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=C62AFF522A1045008A840FF31AD80E6C@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=samologist@gmail.com \
    /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.