From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Elena Newsgroups: gmane.emacs.help Subject: Re: diff-mode Date: Sun, 12 Dec 2010 10:23:58 -0800 (PST) Organization: http://groups.google.com Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1292260000 27457 80.91.229.12 (13 Dec 2010 17:06:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 13 Dec 2010 17:06:40 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Dec 13 18:06:34 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PSBr3-00059M-6z for geh-help-gnu-emacs@m.gmane.org; Mon, 13 Dec 2010 18:06:32 +0100 Original-Received: from localhost ([127.0.0.1]:51660 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PSBqp-0001Ly-0f for geh-help-gnu-emacs@m.gmane.org; Mon, 13 Dec 2010 12:06:15 -0500 Original-Path: usenet.stanford.edu!postnews.google.com!m11g2000vbs.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 24 Original-NNTP-Posting-Host: 94.36.107.213 Original-X-Trace: posting.google.com 1292178238 15009 127.0.0.1 (12 Dec 2010 18:23:58 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sun, 12 Dec 2010 18:23:58 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: m11g2000vbs.googlegroups.com; posting-host=94.36.107.213; posting-account=AFCLjAoAAABJAOf_HjgEEEi3ty-lG5m2 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13,gzip(gfe) Original-Xref: usenet.stanford.edu gnu.emacs.help:183193 X-Mailman-Approved-At: Mon, 13 Dec 2010 12:00:03 -0500 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:77452 Archived-At: On Dec 12, 12:44=A0pm, Andrea Crotti wrote: > The other day I was preparing a talk with a collegue on revision > control, and we've also show how to use basic diff and patch. > > Even if most of the work was done in emacs, we used vim to show the diff > file, since it's much more colorful. > > Anyway after I solved customizing some faces > > =A0'(diff-added ((t (:inherit diff-changed :background "black" :foregroun= d "Yellow")))) > =A0'(diff-changed ((nil (:foreground "medium purple")))) > =A0'(diff-header ((((class color) (min-colors 88) (background dark)) (:ba= ckground "grey22" :foreground "red" :height 1.2)))) > =A0'(diff-indicator-removed ((t (:inherit diff-removed)))) > =A0'(diff-removed ((t (:background "black" :foreground "indian red")))) > > Now it's even too much contrast :D > But then I thought, wouldn't it be possible to show the normal syntax > highlighting of the given mode and use some background/font style to > differentiate what's to add/remove? I think you would have to use overlays for that. I don't know of any diff-based package which does that.