From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.help Subject: Re: ediff refinement issues Date: Wed, 31 Mar 2021 01:26:51 +0200 Message-ID: <87zgykjk90.fsf@web.de> References: <37A77E4AAFA04D55AE5F755FDFB995F7@us.oracle.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28190"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Drew Adams Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Mar 31 01:27:32 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lRNlk-0007Dj-1q for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 31 Mar 2021 01:27:32 +0200 Original-Received: from localhost ([::1]:36506 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lRNlj-0004Ra-31 for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 30 Mar 2021 19:27:31 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52510) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lRNlF-0004RT-Aj for help-gnu-emacs@gnu.org; Tue, 30 Mar 2021 19:27:01 -0400 Original-Received: from mout.web.de ([217.72.192.78]:39785) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lRNlD-0002WG-Iv for help-gnu-emacs@gnu.org; Tue, 30 Mar 2021 19:27:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1617146812; bh=xiRZ+wP9cEEed26rZ2cRbAiMGDZM/FonkiHiPmmavlM=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=A669OM0gFYdBmBiHBg4i5GebN7IktEEn7KQeiR4kCBCr2LyetX8izYWcfljIGvSnb q/WJqzIvlVqqUjMRTLvVbZV9jxCzGI789ROcdrYx+KgL+TTI97+CIQyAkntkc0Y6zA tFa8Sk1Ch0pPK92xZmJtEwBGgdbE1zwmya+e4ptc= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Original-Received: from drachen.dragon ([188.98.97.138]) by smtp.web.de (mrweb103 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MDgDS-1lPgv40cqE-00H5zg; Wed, 31 Mar 2021 01:26:52 +0200 In-Reply-To: <37A77E4AAFA04D55AE5F755FDFB995F7@us.oracle.com> (Drew Adams's message of "Sat, 26 Nov 2011 09:51:00 -0800") X-Provags-ID: V03:K1:4nRyRtQXBHdoeDM+F/RNqN8yWqc6Dp1b/P3p/ap8uQT7A0aylg6 UWwpsbi2UepJ5yxfYbeZCrhyCcMJb0I1VUR6aBajtdb2nj2T1oeG4Rpokm7UdloKM1IFZY7 l+NBVh1Ckxjf7NgPWYLRG9tbHUMkzPKv4IYwmS0kOvpvWD37dsv1Au5GycgSHlnpSHNMP7A 5+zS+kjzUFG9mu+8i0MfA== X-UI-Out-Filterresults: notjunk:1;V03:K0:wnT7bYuGzgU=:UyoOGXqL7bnbHa6eDROptU n9q7Hu1GLhudA8zp/qANx69HzwCZHDUOVJHMy0jnpc2WW1FFpNoag01EB00W1d9/rI7psCZ/4 tJ6e3xQbD/+2caWOsrRlmeDN+tcxpBDmPQx5WQCNt6coWvzIAWLp8i6QN0Zl6MJkaxWatudUG Y+2pwHQZmKH7wd4MK2cyYmz2I5eTepwDKAlYifHhMTRbpznwanLWk0p1SQO76yvf68QtyKDvN wm1kbchtfXo+DYQOA/5S/JflAx76hTQG5Jl+2aE+uMeMXd9/cooFe9t1RVBKPx4MIhfYwbdOr gzsGZ0gdF8I7yidadoQkodG2EZqxnB+C67Pv9CLanflVyKwtlkxaDj4cu6gGR9zOYJJsuCggc H8LpvpCTrGVDYeqLpEm7Fl/YM+SBmoX2wtIkF/R3EbRNU+LZ06mqHgQ0eXe2G4ijDXGt0M+R2 mClFY2ZUABg42+QMctYpGBZikUa1pIrJl3iTYpd3d2fKUcWAiOWQYxIFsh612TgKvRNUAVBYF RSfNkfK14PJbgOSwWw/83W6EJza8mGV7ib5RdSydX5KB7mZk5cMIddbroGTnOld5/p73uEw8V fq0Si8m2YWx9ig7uGVY2mVI1woLvky9Z89SB+qE3cduNfS4gHH+MUqfL+yjv5iIDpXpeDVrAL Dh/9BLsnIC4NTyRnxbgmfUvW/yRbHYOMFj6ymUQovMRzq/pMIIrLVJcdNFc4/x2THLUS65Z99 j/vH6u9OgX8wPDaV+8/tPMQvIAj887QLbSGRGxcROxENSa4RoL4IX4p4bk/v+YyvdSDXsOco Received-SPF: pass client-ip=217.72.192.78; envelope-from=michael_heerdegen@web.de; helo=mout.web.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:128770 Archived-At: "Drew Adams" writes: > > 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]")'. Yes. And I think one should better add the hyphen character back to one of the other word class characters. > Then, hitting `!' showed a refinement that distinguished "2011" from > the rest. I would have expected the "01" / "02" difference to be > distinguished. That can happen when diff or word counting is wrong. As you said: these variables are buffer local, and Ediff uses a separate buffer to "wordify" for the fine diffs, and in that buffer the original bindings of ediff-word-* are visible, so you get an inconsistency in the definition of word classes. In summary, this should work ok: ;; e-w-1 minus _ and - (setq-default ediff-word-1 "[:word:]") ;; e-w-3 plus _ and - (setq-default ediff-word-3 "`'?!:;\"{}[]()_-") Michael.