From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.help Subject: Re: Diff on Emacs Date: Tue, 18 Nov 2003 11:52:38 +0200 Organization: JURTA Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87y8ueypeh.fsf@mail.jurta.org> References: <3FB06535.5010302@yy.zz> <3FB07413.701@yy.zz> <873ccr6iqp.fsf@mail.jurta.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1069149744 24242 80.91.224.253 (18 Nov 2003 10:02:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 18 Nov 2003 10:02:24 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Nov 18 11:02:21 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AM2gf-0003Po-00 for ; Tue, 18 Nov 2003 11:02:21 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AM3d1-0005mk-DU for geh-help-gnu-emacs@m.gmane.org; Tue, 18 Nov 2003 06:02:39 -0500 Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:2oPpHOQ60qTn8NectiDVLsRLcoM= Original-NNTP-Posting-Host: 80.235.38.96 Original-X-Trace: news.estpak.ee 1069149177 80.235.38.96 (18 Nov 2003 11:52:57 +0200) Original-Lines: 21 Original-X-Complaints-To: usenet@estpak.ee Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.multikabel.nl!news.tudelft.nl!tudelft.nl!surfnet.nl!teleglobe.net!news.estpak.ee!not-for-mail Original-Xref: shelby.stanford.edu gnu.emacs.help:118405 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 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 Xref: main.gmane.org gmane.emacs.help:14346 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:14346 LEE Sau Dan writes: >>>>>> "Juri" == Juri Linkov writes: > Juri> Jasen writes: > >> There are many diff*.el and ediff*.el files in ../lisp/ > >> directory so isn't diff a standard built-in function for emacs? > Juri> To compare two buffers you can use Emacs function > Juri> `compare-windows' from compare-w.el which now implements a > Juri> simple diff algorithm. Instead of line by line output of > Juri> the 'diff' program, `compare-windows' provides differences > Juri> character by character which produces more fine-grained > Juri> results than the 'diff' program. > > M-x ediff-buffers gives you a diff output that can be refined to > character-based diff. This is not completely true. Ediff refinements are word-based. Although this is a big improvement over line-based diff output, this is not the same thing as character-based `compare-windows'. -- http://www.jurta.org/emacs/