From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: diff-mode Date: Tue, 14 Dec 2010 23:47:13 -0500 Organization: A noiseless patient Spider Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1292429356 22828 80.91.229.12 (15 Dec 2010 16:09:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 15 Dec 2010 16:09:16 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 15 17:09:13 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 1PStua-00056P-Gj for geh-help-gnu-emacs@m.gmane.org; Wed, 15 Dec 2010 17:09:04 +0100 Original-Received: from localhost ([127.0.0.1]:58195 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PStXB-0008Ts-Hj for geh-help-gnu-emacs@m.gmane.org; Wed, 15 Dec 2010 10:44:53 -0500 Original-Path: usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!feeder.news-service.com!85.214.198.2.MISMATCH!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 20 Injection-Info: mx02.eternal-september.org; posting-host="npc8WwhkFofBeKiRj5F6nA"; logging-data="6766"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+eWlsGCihP1X8Bx8X8vd5z" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:6WMGZdHSurYQ9TQWEfurpLHeCps= sha1:yytKgh/+m9MuAOkmh4VeV8ntnxc= Original-Xref: usenet.stanford.edu gnu.emacs.help:183277 X-Mailman-Approved-At: Wed, 15 Dec 2010 10:34:28 -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:77545 Archived-At: > 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? That would be neat, yes. Making it work reliably might be difficult, but a first shot might not be that hard. Some of the problems: - the code chunk might be difficult to analyze correctly without its context (e.g. the code chunk may start in the middle of a comment/string/...). - for people using the default font-lock settings, it might be difficult to find a set of background colors to use for added/removed/changed that doesn't make some of the text hard to read. For people using font-lock settings like mine (i.e. mostly all black-on-white, where most faces changes the bold/italics rather than the color) OTOH it would work fine. Note that smerge-mode already works similarly, so it's not a new problem. Stefan