From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: Patch syntax coloring for xemacs / XP Date: Sun, 28 Sep 2008 07:35:58 -0700 Message-ID: <005801c92177$86897530$0200a8c0@us.oracle.com> References: <7678168f-2b9c-4fb6-b197-0f0acf3a2f92@m45g2000hsb.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1222612615 15186 80.91.229.12 (28 Sep 2008 14:36:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 28 Sep 2008 14:36:55 +0000 (UTC) To: "'smd'" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Sep 28 16:37:51 2008 connect(): Connection refused 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.50) id 1KjxP8-00088Q-IF for geh-help-gnu-emacs@m.gmane.org; Sun, 28 Sep 2008 16:37:46 +0200 Original-Received: from localhost ([127.0.0.1]:38257 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KjxO5-0007fL-QO for geh-help-gnu-emacs@m.gmane.org; Sun, 28 Sep 2008 10:36:41 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KjxNj-0007ef-Ta for help-gnu-emacs@gnu.org; Sun, 28 Sep 2008 10:36:19 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KjxNh-0007dh-S5 for help-gnu-emacs@gnu.org; Sun, 28 Sep 2008 10:36:18 -0400 Original-Received: from [199.232.76.173] (port=52852 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KjxNh-0007dY-KH for help-gnu-emacs@gnu.org; Sun, 28 Sep 2008 10:36:17 -0400 Original-Received: from rgminet01.oracle.com ([148.87.113.118]:14879) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KjxNg-00038N-Ne for help-gnu-emacs@gnu.org; Sun, 28 Sep 2008 10:36:17 -0400 Original-Received: from rgmgw2.us.oracle.com (rgmgw2.us.oracle.com [138.1.186.111]) by rgminet01.oracle.com (Switch-3.2.4/Switch-3.1.6) with ESMTP id m8SEa2us029740; Sun, 28 Sep 2008 08:36:02 -0600 Original-Received: from acsmt703.oracle.com (acsmt703.oracle.com [141.146.40.81]) by rgmgw2.us.oracle.com (Switch-3.2.4/Switch-3.2.4) with ESMTP id m8SEZw9e019566; Sun, 28 Sep 2008 08:36:00 -0600 Original-Received: from dradamslap1 (/24.23.165.218) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sun, 28 Sep 2008 07:35:58 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <7678168f-2b9c-4fb6-b197-0f0acf3a2f92@m45g2000hsb.googlegroups.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 Thread-Index: Ackhbiuya/vRYp4jTl2jhzL8fW7gRQACNaEA X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 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:58164 Archived-At: > This took me forever to find :) I am a total newb, and wanted to use > the facilities of Emacs that allow for editing of diff patch files > (like hunk row calculations, etc)... As soon as I installed the latest > version, and opened a patch file, and chosen font-lock-mode (I guess > the syntax coloring mode), I could see that *only* the patch headers > are colored, but not the added/removed files (i.e. those starting with > + / - in a patch file). (As I also messed up the diff-mode display, ow > I als have to start it by using Alt-X, then type "diff-mode" and > Enter, an say no to "convert contents back to binary format"). > > Once you're sure you're in diff-mode, and syntax-coloring is on, heres > how to get those rows to color: > - Options / Edit Faces... > - scroll down, and find Diff Added Face, and Diff Changed Face, and > change those by clicking the little trangle, clicking the box next to > Foreground/Background in the subsequently opened options, and type in > a color like 'red', preview will be enabled > --- Note that these options (Diff Added Face) will NOT be present, > unless diff-mode is currently active > --- notice that Diff Context Face should already be defaulted to a > gray color > - to save, right click, select Save > > After this, the patch should have th lines correspondingly colored. > This process should make a file, custom.el, with the following > contents: > (custom-set-variables) > (custom-set-faces > '(diff-added-face ((t (:foreground "red")))) > '(diff-changed-face ((t (:foreground "darkorange")))) > '(diff-removed-face ((t (:foreground "blue"))))) > > However, it seems these options do not get saved with xemacs, so I > have to re-do the procedure each time I start it... Dunno if it helps with XEmacs (probably not), but you might also want to take a look at http://www.emacswiki.org/cgi-bin/wiki/DiffEnhancements.