From: "Drew Adams" <drew.adams@oracle.com>
To: "'Andrea Crotti'" <andrea.crotti.0@gmail.com>, <help-gnu-emacs@gnu.org>
Subject: RE: diff-mode
Date: Sun, 12 Dec 2010 10:14:10 -0800 [thread overview]
Message-ID: <6174A3FCFD074EF5A396A7D095DEB814@us.oracle.com> (raw)
In-Reply-To: <m162uy3m94.fsf@ip1-201.halifax.rwth-aachen.de>
> > See also:
> > http://www.emacswiki.org/emacs/DiffEnhancements
> > http://www.emacswiki.org/emacs/diff%2b.el
>
> Sorry but I don't see that much difference in diff+
Sorry, I meant diff-mode-.el, which does deal with highlighting (unlike
diff+.el). The second link should have been this:
http://www.emacswiki.org/emacs/diff-mode-.el
If it helps, fine. If not...
> My desire was to see the diff with the syntax
> highlighting of the original language, it it could be
> possible...
diff-mode-.el does not help with that.
For that, you will likely want to (a) visit the buffers/files in the proper mode
with font-locking, and then (b) copy text from there (with faces) to the diff
output buffer. Or put the other way around: follow each diff from the `diff'
output buffer to a buffer for the original file and copy text (with faces) back
from there.
But that sounds onerous in terms of efficiency. Remember that `diff' itself
runs and produces its output outside of Emacs. You need not even be visiting
the diffed files within Emacs.
Why don't you just use `ediff'? With `ediff' you see the files within Emacs,
font-locked.
next prev parent reply other threads:[~2010-12-12 18:14 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
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 ` Drew Adams [this message]
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.
[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 ` diff-mode Stefan Monnier
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=6174A3FCFD074EF5A396A7D095DEB814@us.oracle.com \
--to=drew.adams@oracle.com \
--cc=andrea.crotti.0@gmail.com \
--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.