From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#21744: 24.5; diff-mode highlight only suitable part Date: Fri, 23 Oct 2015 18:44:14 +0300 Message-ID: <562A55CE.80201@yandex.ru> References: <20151023145547.GA4307@whiterain> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1445615148 26000 80.91.229.3 (23 Oct 2015 15:45:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 23 Oct 2015 15:45:48 +0000 (UTC) To: Evgeniy Dushistov , 21744@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 23 17:45:36 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZpeX4-0001pj-8s for geb-bug-gnu-emacs@m.gmane.org; Fri, 23 Oct 2015 17:45:30 +0200 Original-Received: from localhost ([::1]:39472 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpeX3-0003W3-Os for geb-bug-gnu-emacs@m.gmane.org; Fri, 23 Oct 2015 11:45:29 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60895) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpeWf-0002wH-HD for bug-gnu-emacs@gnu.org; Fri, 23 Oct 2015 11:45:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZpeWc-00062Y-SQ for bug-gnu-emacs@gnu.org; Fri, 23 Oct 2015 11:45:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:44221) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpeWc-00062U-Pa for bug-gnu-emacs@gnu.org; Fri, 23 Oct 2015 11:45:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZpeWc-0004ya-GO for bug-gnu-emacs@gnu.org; Fri, 23 Oct 2015 11:45:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 23 Oct 2015 15:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21744 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21744-submit@debbugs.gnu.org id=B21744.144561507719081 (code B ref 21744); Fri, 23 Oct 2015 15:45:02 +0000 Original-Received: (at 21744) by debbugs.gnu.org; 23 Oct 2015 15:44:37 +0000 Original-Received: from localhost ([127.0.0.1]:34929 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZpeWD-0004xh-BP for submit@debbugs.gnu.org; Fri, 23 Oct 2015 11:44:37 -0400 Original-Received: from mail-wi0-f174.google.com ([209.85.212.174]:37386) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZpeVu-0004xF-1W for 21744@debbugs.gnu.org; Fri, 23 Oct 2015 11:44:36 -0400 Original-Received: by wicfv8 with SMTP id fv8so37700838wic.0 for <21744@debbugs.gnu.org>; Fri, 23 Oct 2015 08:44:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=zHFaTMEIvaVsV4Tv9Je6V1UkY4VrN/gNbQV4vxWtus8=; b=np8o0buXOXsQDCxZIIkK7ON8X3N4yp/MVn9bxT6L4Iod6juGuCvDI+ADPYXk9k+uar nkgIvPGiZVklOForA2tQMgDrnJNxiEhbBHWH+U6JrPQYKGqVhtin9rA5slnPyGQpWSEq hphbS97bmHjgWRUMPxika+mzxSXWeobv4ruMPnQ30WL+xNafnZYlEn9CSGh5hRXwcOHJ I/YCSfM5oCek7gQLKpBLFWeW5Aab7oB1Da2jZpz09VnL4fLjfp2MXGHpxHolR5VQ0QoX q5scG31wbXiuuyVF3nmHviJWVuhaA7B2HdBRD3EhmTTB6bcGbhK2qh3zHTTClM/IUo1c XXyQ== X-Received: by 10.194.48.113 with SMTP id k17mr5401382wjn.62.1445615056977; Fri, 23 Oct 2015 08:44:16 -0700 (PDT) Original-Received: from [192.168.0.185] (static-nbl2-118.cytanet.com.cy. [212.31.107.118]) by smtp.googlemail.com with ESMTPSA id w9sm1796913wjf.20.2015.10.23.08.44.15 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Oct 2015 08:44:15 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:42.0) Gecko/20100101 Thunderbird/42.0 In-Reply-To: <20151023145547.GA4307@whiterain> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:107919 Archived-At: Hi Evgeniy, On 10/23/2015 05:55 PM, Evgeniy Dushistov wrote: > the diff-mode highlight string with starting "-" with red, and starting "+" with green, > it would be great if it highlight also difference between strings. > There is only "=" symbol difference between two lines above, so it would be great > if emacs highlight also "=" in the second string. We currently have this feature in the shape of diff-auto-refine-mode. Try pressing `n' or `p': the navigation commands also refine the hunks to show the differences. There has been some talk of doing that automatically (using font-lock), but the refining algorithm is rather slow on large hunks. I'd also recommend installing diff-hl (available in ELPA): it remaps the vc-diff command to its own wrapper that also scrolls to the hunk corresponding to the current line, and refines it.