From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: tury.peter@gmail.com Newsgroups: gmane.emacs.help Subject: Re: ediff customization: -w -B... + refinement Date: 4 Oct 2006 15:14:36 -0700 Organization: http://groups.google.com Message-ID: <1160000076.182235.158640@h48g2000cwc.googlegroups.com> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1160001654 23006 80.91.229.2 (4 Oct 2006 22:40:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 4 Oct 2006 22:40:54 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Oct 05 00:40:46 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GVFPh-0000PQ-KF for geh-help-gnu-emacs@m.gmane.org; Thu, 05 Oct 2006 00:40:29 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GVFPh-0008D5-87 for geh-help-gnu-emacs@m.gmane.org; Wed, 04 Oct 2006 18:40:29 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!h48g2000cwc.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 56 Original-NNTP-Posting-Host: 81.183.156.198 Original-X-Trace: posting.google.com 1160000081 31007 127.0.0.1 (4 Oct 2006 22:14:41 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 4 Oct 2006 22:14:41 +0000 (UTC) In-Reply-To: User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; hu; rv:1.8.0.7) Gecko/20060909 Firefox/1.5.0.7,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: h48g2000cwc.googlegroups.com; posting-host=81.183.156.198; posting-account=sseaIQ0AAAD60wXG9Sq-ztc7bTCwqeM_ Original-Xref: shelby.stanford.edu gnu.emacs.help:142189 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:37808 Archived-At: Hi, thanks for your hints! Kevin Rodgers wrote: > Peter Tury wrote: > > I see different results in Emacs ediff and out-of-emacs command line > > diff. > > > > I try to get rid of white space and new line diffs, so I tried diff -a > > -w -B --binary ... It produces the desired output in command line, but > > whitespace- and newline-differences are showed (and treated) in > > Emacs. Why? I set ediff-diff-options to "-a -w -B --binary", but it > > seems to be ignored? Why? How to get rid of such whitespace diffs? I > > tried ##, but nothing changed. > > > To see what diff program is used: > > M-: (executable-find ediff-diff-program) Thanks, now I checked it: it's OK. > I don't think you can find out after the fact what command was run, > but you could see which options are used dynamically by examining the > 4th argument passed to ediff-exec-process: > > M-x debug-on-entry RET ediff-exec-process I checked this also now, thanks for the hint, but found nothing interesting. > Looking at its source code in ediff-diff.el, I find: > > ;; the --binary option, if present, should be used only for buffer jobs > ;; or for refining the differences > (or (string-match "buffer" (symbol-name ediff-job-name)) > (eq buffer ediff-fine-diff-buffer) > (setq args (delete "--binary" args))) > > So maybe you need to use M-x ediff-buffers instead of M-x ediff-files > to use the --binary option. Now I find that opening two files and ediff-buffers and ediff-files them, shows different results!? Maybe because of this --binary stuff? For first sight ediff-buffers seems to be OK. Maybe some file encoding makes the difference? > > > My other question: what to do if I want refinement to show differences > > by chars and not by words? > > Try: (setq ediff-forward-word-function 'forward-char) I couldn't: with M-: it became buffer-local, and didn't affect the result :-((