From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: makeinfo-info.el - use Info-mode with makeinfo-buffer Date: Wed, 4 Dec 2002 08:07:56 +0200 (IST) Sender: emacs-devel-admin@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: main.gmane.org 1038982212 16923 80.91.224.249 (4 Dec 2002 06:10:12 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 4 Dec 2002 06:10:12 +0000 (UTC) Cc: ttn@glug.org, user42@zip.com.au, emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18JSjU-0004Oj-00 for ; Wed, 04 Dec 2002 07:10:04 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18JStK-0002fX-00 for ; Wed, 04 Dec 2002 07:20:14 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18JSiW-0005vo-00; Wed, 04 Dec 2002 01:09:04 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18JShg-0005Y5-00 for emacs-devel@gnu.org; Wed, 04 Dec 2002 01:08:12 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18JShb-0005Mh-00 for emacs-devel@gnu.org; Wed, 04 Dec 2002 01:08:11 -0500 Original-Received: from is.elta.co.il ([199.203.121.2]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18JShZ-000523-00; Wed, 04 Dec 2002 01:08:06 -0500 Original-Received: from is (is [199.203.121.2]) by is.elta.co.il (8.9.3/8.8.8) with SMTP id IAA29753; Wed, 4 Dec 2002 08:07:56 +0200 (IST) X-Sender: eliz@is Original-To: Miles Bader In-Reply-To: Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:9848 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:9848 On 4 Dec 2002, Miles Bader wrote: > Ediff has some functionality like this -- it `refines' thunks it gets > from diff by doing its own diff algorithm at the character level, and > can indicate via faces which parts of thunks are important. IIRC, Ediff does this at the _word_ level, not at the character level. It breaks each line in the hunk into words, then constructs a temporary file where each word is on its own line. It then submits two such temp files to `diff' and interprets the results. That is, given the simple hunk ! foo bar baz more stuff --- ! foo another baz less stuff Ediff will produce two files like this: foo bar baz more stuff and foo another baz less stuff and run `diff' on them. The results will show that the second and the fourth word changed, but the rest didn't. The only problem with this solution is that breaking a line into a list of words is non-trivial due to m17n considerations, especially if the buffer mixes several character sets. IIRC, for that reason, Ediff uses some ad-hoc method instead of relying on syntax categories of characters.