From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Evgeniy Dushistov Newsgroups: gmane.emacs.bugs Subject: bug#21744: 24.5; diff-mode highlight only suitable part Date: Fri, 23 Oct 2015 17:55:47 +0300 Message-ID: <20151023145547.GA4307@whiterain> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1445612257 10029 80.91.229.3 (23 Oct 2015 14:57:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 23 Oct 2015 14:57:37 +0000 (UTC) To: 21744@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 23 16:57:22 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 1ZpdmK-0000Nr-OF for geb-bug-gnu-emacs@m.gmane.org; Fri, 23 Oct 2015 16:57:12 +0200 Original-Received: from localhost ([::1]:39035 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpdmK-00080V-8w for geb-bug-gnu-emacs@m.gmane.org; Fri, 23 Oct 2015 10:57:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43114) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpdmF-0007ym-KF for bug-gnu-emacs@gnu.org; Fri, 23 Oct 2015 10:57:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZpdmA-0005Hj-GX for bug-gnu-emacs@gnu.org; Fri, 23 Oct 2015 10:57:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:44213) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpdmA-0005He-Ct for bug-gnu-emacs@gnu.org; Fri, 23 Oct 2015 10:57:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZpdmA-0003pg-86 for bug-gnu-emacs@gnu.org; Fri, 23 Oct 2015 10:57:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Evgeniy Dushistov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 23 Oct 2015 14:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 21744 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.144561218114670 (code B ref -1); Fri, 23 Oct 2015 14:57:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 23 Oct 2015 14:56:21 +0000 Original-Received: from localhost ([127.0.0.1]:34921 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZpdlU-0003oX-Co for submit@debbugs.gnu.org; Fri, 23 Oct 2015 10:56:21 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:32774) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZpdlA-0003nc-BM for submit@debbugs.gnu.org; Fri, 23 Oct 2015 10:56:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zpdl8-0004yZ-Mr for submit@debbugs.gnu.org; Fri, 23 Oct 2015 10:55:59 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:60916) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zpdl8-0004yT-KN for submit@debbugs.gnu.org; Fri, 23 Oct 2015 10:55:58 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42737) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zpdl7-0007TB-K9 for bug-gnu-emacs@gnu.org; Fri, 23 Oct 2015 10:55:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zpdl2-0004tz-Co for bug-gnu-emacs@gnu.org; Fri, 23 Oct 2015 10:55:57 -0400 Original-Received: from smtp44.i.mail.ru ([94.100.177.104]:52500) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zpdl1-0004sV-UO for bug-gnu-emacs@gnu.org; Fri, 23 Oct 2015 10:55:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mail.ru; s=mail2; h=Content-Type:MIME-Version:Message-ID:Subject:To:From:Date; bh=EwRN7PsHdz17oGXyCWt7Fn1JquXxIBwCX/SnavPsqQM=; b=SiKwV43omqOb4+54YcSeSclAIlq7yWa7+YX2G02lvYAbvgFIl7kYEpvO21Ulnenvv3EeuHB0l9ISi05vp6PqGeagSs9ufx6dqx6Y77mz0s8EPdTdX49a91XUBnpZp3Hyj30DW9EvpRpr+Q5Q3etI0M2QVmMBdyeKXP4EnUeYBy8=; Original-Received: from [89.23.194.117] (port=54376 helo=whiterain) by smtp44.i.mail.ru with esmtpa (envelope-from ) id 1Zpdkz-0008Pw-AV for bug-gnu-emacs@gnu.org; Fri, 23 Oct 2015 17:55:49 +0300 Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) X-Mras: Ok X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). 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:107917 Archived-At: For example let's I have such content of *vc-diff* diff --git a/cmake/FindLibClang.cmake b/cmake/FindLibClang.cmake index 8aa7689..62b5b08 100644 --- a/cmake/FindLibClang.cmake +++ b/cmake/FindLibClang.cmake @@ -72,7 +72,7 @@ if (NOT LIBCLANG_CXXFLAGS) endif () set(LIBCLANG_CXXFLAGS "-I${LIBCLANG_CXXFLAGS}") endif () - string(REGEX REPLACE "-([Og][0-9]*|std=c\\+\\+..|(W|f)[a-zA-Z-]*|DNDEBUG) ?" "" LIBCLANG_CXXFLAGS "${LIBCLANG_CXXFLAGS}") + string(REGEX REPLACE "-([Og][0-9]*|std=c\\+\\+..|(W|f)[=a-zA-Z-]*|DNDEBUG) ?" "" LIBCLANG_CXXFLAGS "${LIBCLANG_CXXFLAGS}") set(LIBCLANG_CXXFLAGS ${LIBCLANG_CXXFLAGS} CACHE STRING "The LLVM C++ compiler flags needed to compile LLVM based applications.") unset(LIBCLANG_CXXFLAGS_HACK_CMAKECACHE_DOT_TEXT_BULLSHIT CACHE) endif () 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. You can see how github doing this: https://github.com/Dushistov/rtags/commit/5d0419c453dde58bf3a37a00bf0e63bd186154bc -- /Evgeniy