all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: help-gnu-emacs@gnu.org
Subject: Re: diff-mode
Date: Tue, 14 Dec 2010 23:47:13 -0500	[thread overview]
Message-ID: <jwvhbef3b05.fsf-monnier+gnu.emacs.help@gnu.org> (raw)
In-Reply-To: mailman.3.1292154786.23431.help-gnu-emacs@gnu.org

> 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


  parent reply	other threads:[~2010-12-15  4:47 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.3.1292154786.23431.help-gnu-emacs@gnu.org>
2010-12-12 12:46 ` diff-mode rusi
2010-12-12 18:02   ` diff-mode Andrea Crotti
     [not found]   ` <mailman.4.1292177110.18751.help-gnu-emacs@gnu.org>
2010-12-13  4:52     ` diff-mode rusi
2010-12-12 18:23 ` diff-mode Elena
2010-12-12 18:26   ` diff-mode Elena
2010-12-15  4:47 ` Stefan Monnier [this message]
2010-12-12 11:44 diff-mode Andrea Crotti
2010-12-12 15:09 ` diff-mode Drew Adams
2010-12-12 17:59   ` diff-mode Andrea Crotti
2010-12-12 18:14     ` diff-mode Drew Adams
2010-12-13 23:22       ` diff-mode Andrea Crotti
2010-12-13 23:35         ` diff-mode Drew Adams
2010-12-14 10:04         ` diff-mode Eli Zaretskii
2010-12-14 10:13           ` diff-mode Leo
2010-12-14 11:07             ` diff-mode Eli Zaretskii
2010-12-14 14:40           ` diff-mode Andrea Crotti
2010-12-14 15:22             ` diff-mode Eli Zaretskii
     [not found]           ` <mailman.4.1292337645.794.help-gnu-emacs@gnu.org>
2010-12-14 14:57             ` diff-mode Mario Lassnig
     [not found]       ` <mailman.2.1292282577.11279.help-gnu-emacs@gnu.org>
2010-12-14  8:43         ` diff-mode Elena
2010-12-14 10:11           ` diff-mode Eli Zaretskii
2010-12-14 10:16           ` diff-mode Leo
     [not found]           ` <mailman.1.1292321505.27999.help-gnu-emacs@gnu.org>
2010-12-14 13:40             ` diff-mode Elena
2010-12-14 14:57               ` diff-mode Andrea Crotti
2010-12-14 15:48                 ` diff-mode Drew Adams
2010-12-14 15:57                   ` diff-mode Andrea Crotti
2010-12-14 16:06                     ` diff-mode Drew Adams
     [not found]               ` <mailman.5.1292338693.794.help-gnu-emacs@gnu.org>
2010-12-14 15:35                 ` diff-mode Elena
2010-12-14 16:07                   ` diff-mode Eli Zaretskii
2010-12-14 18:20                     ` diff-mode Andrea Crotti
     [not found]                   ` <mailman.7.1292342885.25302.help-gnu-emacs@gnu.org>
2010-12-14 16:22                     ` diff-mode Elena
2010-12-14 18:51                       ` diff-mode Eli Zaretskii
     [not found]                       ` <mailman.5.1292352715.11323.help-gnu-emacs@gnu.org>
2010-12-14 19:48                         ` diff-mode Elena
2010-12-14 15:46                 ` diff-mode Richard Riley
2010-12-14 15:45               ` diff-mode Richard Riley
2010-12-15 14:12               ` diff-mode José A. Romero L.
2010-12-15 15:00                 ` diff-mode Elena
2010-12-15 16:28                   ` diff-mode José A. Romero L.
2010-12-15 16:46                   ` diff-mode José A. Romero L.
2010-12-15 16:50                   ` diff-mode José A. Romero L.

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvhbef3b05.fsf-monnier+gnu.emacs.help@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.