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 09:51:00 -0800 Message-ID: <37A77E4AAFA04D55AE5F755FDFB995F7@us.oracle.com> References: 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 1322329892 28189 80.91.229.12 (26 Nov 2011 17:51:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 26 Nov 2011 17:51:32 +0000 (UTC) To: "'Samuel Wales'" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Nov 26 18:51:28 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 1RUMPP-0003g8-AU for geh-help-gnu-emacs@m.gmane.org; Sat, 26 Nov 2011 18:51:27 +0100 Original-Received: from localhost ([::1]:57053 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RUMPO-00070W-JI for geh-help-gnu-emacs@m.gmane.org; Sat, 26 Nov 2011 12:51:26 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:40882) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RUMPK-00070R-6a for help-gnu-emacs@gnu.org; Sat, 26 Nov 2011 12:51:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RUMPJ-000408-3U for help-gnu-emacs@gnu.org; Sat, 26 Nov 2011 12:51:22 -0500 Original-Received: from rcsinet15.oracle.com ([148.87.113.117]:42569) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RUMPI-000404-S8 for help-gnu-emacs@gnu.org; Sat, 26 Nov 2011 12:51:21 -0500 Original-Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by rcsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id pAQHpHXG018644 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 26 Nov 2011 17:51:18 GMT Original-Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id pAQHpGPu004236 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 26 Nov 2011 17:51:16 GMT Original-Received: from abhmt105.oracle.com (abhmt105.oracle.com [141.146.116.57]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id pAQHpB50025431; Sat, 26 Nov 2011 11:51:11 -0600 Original-Received: from dradamslap1 (/10.159.44.65) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sat, 26 Nov 2011 09:51:10 -0800 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: thread-index: AcysXwOm6vNJt6yHT5KpcypPYeDckQAAVtPw X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090202.4ED12716.0035,ss=1,re=0.000,fgs=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 148.87.113.117 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:83056 Archived-At: > 1) When there are only whitespace differences in normal > paragraphs, such as by refilling, ediff works well. It > says there are only whitespace differences and does not > highlight any words. > > However, if the paragraphs are commented (for example, > with ;;; in elisp or # in shell), it highlights the ;;; > or the #. it also sometimes highlights words as a side > effect. I don't see that. Maybe give a concrete example. What I see is that whitespace is either ignored everywhere or it is not ignored at all (toggle this with `##'). > I want ediff to show refilled commented paragraphs as > only having whitespace differences. Are you sure that the paragraphs themselves have only whitespace differences? You say that `;;;' is highlighted as different. Do you mean that the `;;;' is highlighted in both of these identical lines? ;;; commented line ;;; commented line > 2) When I change a date like 2011-01-01, ediff highlights > the entire date even if I only changed one part of it. > For example, if I change 01 to 02, it will still > highlight the entire date. > I want it to show only the part I changed. > > There are variables ediff-word-1 ediff-word-2 ediff-word-3 > ediff-word-4 that are supposed to customize this. I tried > them in various ways and they didn't produce the results I > wanted. How do you use those variables to do this? I've never played with that, and I don't know of any command or option that helps here, but maybe someone else can help. Looking in the code a bit, I see this: 1. Those are defvars, not defcustoms. 2. They are buffer-local. So I tried this in each of two buffers that had only this, respectively: "2011-01-01" and "2011-01-02": `M-: (setq ediff-word-1 "[:word]")'. Then, hitting `!' showed a refinement that distinguished "2011" from the rest. I would have expected the "01" / "02" difference to be distinguished. Maybe you can play around a little more this way to get what you want.