From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: ediff refinement issues Date: Sat, 26 Nov 2011 10:38:28 -0800 Message-ID: References: <37A77E4AAFA04D55AE5F755FDFB995F7@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1322332737 13685 80.91.229.12 (26 Nov 2011 18:38:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 26 Nov 2011 18:38:57 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "'Samuel Wales'" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Nov 26 19:38:53 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RUN9I-00022r-KH for geh-help-gnu-emacs@m.gmane.org; Sat, 26 Nov 2011 19:38:52 +0100 Original-Received: from localhost ([::1]:38117 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RUN9H-0005js-Ov for geh-help-gnu-emacs@m.gmane.org; Sat, 26 Nov 2011 13:38:51 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:40101) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RUN9D-0005jn-Pp for help-gnu-emacs@gnu.org; Sat, 26 Nov 2011 13:38:48 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RUN9C-00037n-Sg for help-gnu-emacs@gnu.org; Sat, 26 Nov 2011 13:38:47 -0500 Original-Received: from acsinet15.oracle.com ([141.146.126.227]:30731) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RUN9C-00037j-Kb for help-gnu-emacs@gnu.org; Sat, 26 Nov 2011 13:38:46 -0500 Original-Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by acsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id pAQIci3S014914 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 26 Nov 2011 18:38:45 GMT Original-Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id pAQIchdC012590 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 26 Nov 2011 18:38:44 GMT Original-Received: from abhmt117.oracle.com (abhmt117.oracle.com [141.146.116.69]) by acsmt356.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id pAQIcc8Z013884; Sat, 26 Nov 2011 12:38:38 -0600 Original-Received: from dradamslap1 (/10.159.44.65) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sat, 26 Nov 2011 10:38:38 -0800 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: thread-index: AcysaBVAijCPZu/8QemXdWKN/iZ+JAAATAQg X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: ucsinet21.oracle.com [156.151.31.93] X-CT-RefId: str=0001.0A090205.4ED13235.00FE,ss=1,re=0.000,fgs=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 141.146.126.227 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:83058 Archived-At: > 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.