From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: "B. T. Raven" Newsgroups: gmane.emacs.help Subject: Re: Ediff: compare two (long) buffers Word-by-word Date: Sat, 24 Nov 2018 16:26:44 -0600 Organization: NewsGuy.com Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1543098504 22807 195.159.176.226 (24 Nov 2018 22:28:24 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 24 Nov 2018 22:28:24 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.3.1 To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Nov 24 23:28:20 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gQgPT-0005iv-5L for geh-help-gnu-emacs@m.gmane.org; Sat, 24 Nov 2018 23:28:19 +0100 Original-Received: from localhost ([::1]:57920 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gQgRZ-00017p-Bf for geh-help-gnu-emacs@m.gmane.org; Sat, 24 Nov 2018 17:30:29 -0500 Original-Path: usenet.stanford.edu!goblin3!goblin1!goblin.stu.neva.ru!spln!extra.newsguy.com!newsp.newsguy.com!news1 Original-Newsgroups: gnu.emacs.help Original-Lines: 38 Original-NNTP-Posting-Host: p0748596cecda228e5615e780f86993d6c5534b75a916f90b.newsdawg.com In-Reply-To: Content-Language: en-US Original-Xref: usenet.stanford.edu gnu.emacs.help:224614 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.help:118743 Archived-At: On 11/24/2018 1:33 PM, ST wrote: > Hello, > > I use Emacs 26.1 and try to compare two (long) buffers (opened side by > side) by clicking Tools -> Compare (Ediff) -> Windows Word-by-word... > Then I choose both Windows (A and B) by clicking on each opened buffer. > However it looks like Emacs compares only the visible parts of the two > buffers, not the whole buffers. Why? If you display the same buffer in 2 windows and then scroll one window past what is displayed in the other window, ediff-windows-wordwise doesn't find any differences. I've never used it before and I don't know what it's usefulness might be. It must be some kind of short-cut for ediff-buffers used with only 2 buffers. > I saw there is a command `ediff-windows-wordwise`... How is "Window" > defined? - as "currently visible part of a buffer"? If yes, is there > something like `ediff-buffers-wordwise`? A window is just the non-overlapping screen area where a buffer is displayed. Type C-h f ediff- tab tab and you'll see all the ediff functions. ediff-buffers is probably the one you want. It can also be accessed from the menu. > > I have `git` in `exec-path`, so maybe I can make ediff to display the > output of `git diff --word-diff file1 file2` in ediff style? Probably; M-! will let you enter a shell command. > > https://emacs.stackexchange.com/questions/46161/ediff-compare-two-long-buffers-word-by-word > > Thank you! > > Ed