GNU bug report logs - #6025
Add font-lock highlighting for some more macros.

Previous Next

Package: emacs;

Reported by: Štěpán Němec <stepnem <at> gmail.com>

Date: Sat, 24 Apr 2010 10:35:02 UTC

Severity: normal

Tags: patch

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 6025 in the body.
You can then email your comments to 6025 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6025; Package emacs. (Sat, 24 Apr 2010 10:35:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Štěpán Němec <stepnem <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 24 Apr 2010 10:35:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Štěpán Němec <stepnem <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Add font-lock highlighting for some more macros.
Date: Sat, 24 Apr 2010 12:34:57 +0200
[Message part 1 (text/plain, inline)]
Tags: patch

Hello,

in case their omission is not intentional, this patch adds font-lock
support for a few more macros.


[0001-Add-a-few-more-macros-to-lisp-font-lock-keywords-2.patch (text/x-diff, inline)]
From 3617a54f3d6573c254da7a48dc7f879c27a44cdc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C5=A0t=C4=9Bp=C3=A1n=20N=C4=9Bmec?= <stepnem <at> gmail.com>
Date: Sat, 24 Apr 2010 12:23:38 +0200
Subject: [PATCH] Add a few more macros to `lisp-font-lock-keywords-2'.

Namely, `combine-after-change-calls', `condition-case-no-debug',
`with-demoted-errors' and `with-silent-modifications'.
---
 lisp/ChangeLog    |    6 ++++++
 lisp/font-lock.el |   13 +++++++------
 2 files changed, 13 insertions(+), 6 deletions(-)

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 52d2910..2c25ac5 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
+2010-04-24  Štěpán Němec  <stepnem <at> gmail.com>
+
+	* font-lock.el (lisp-font-lock-keywords-2): Add entries for
+	`combine-after-change-calls', `condition-case-no-debug',
+	`with-demoted-errors' and `with-silent-modifications'.
+
 2010-04-24  Glenn Morris  <rgm <at> gnu.org>
 
 	* emacs-lisp/authors.el (authors-obsolete-files-regexps):
diff --git a/lisp/font-lock.el b/lisp/font-lock.el
index 7e8562c..8f2f45e 100644
--- a/lisp/font-lock.el
+++ b/lisp/font-lock.el
@@ -2275,19 +2275,20 @@ in which C preprocessor directives are used. e.g. `asm-mode' and
      `(;; Control structures.  Emacs Lisp forms.
        (,(concat
 	  "(" (regexp-opt
-	       '("cond" "if" "while" "while-no-input" "let" "let*"
+	       '("combine-after-change-calls" "cond" "if" "let" "let*"
 		 "prog" "progn" "progv" "prog1" "prog2" "prog*"
 		 "inline" "lambda" "save-restriction" "save-excursion"
 		 "save-selected-window" "save-window-excursion"
 		 "save-match-data" "save-current-buffer"
-		 "unwind-protect" "condition-case" "track-mouse"
+		 "unwind-protect" "condition-case" "condition-case-no-debug"
 		 "eval-after-load" "eval-and-compile" "eval-when-compile"
-		 "eval-when" "eval-next-after-load"
-		 "with-case-table" "with-category-table"
-		 "with-current-buffer" "with-electric-help"
+		 "eval-when" "eval-next-after-load" "track-mouse" "while"
+		 "while-no-input" "with-case-table" "with-category-table"
+		 "with-current-buffer" "with-demoted-errors" "with-electric-help"
 		 "with-local-quit" "with-no-warnings"
 		 "with-output-to-string" "with-output-to-temp-buffer"
-		 "with-selected-window" "with-selected-frame" "with-syntax-table"
+		 "with-selected-window" "with-selected-frame"
+		 "with-silent-modifications" "with-syntax-table"
 		 "with-temp-buffer" "with-temp-file" "with-temp-message"
 		 "with-timeout" "with-timeout-handler") t)
 	  "\\>")
-- 
1.7.0.83.g241b9.dirty


Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6025; Package emacs. (Sat, 14 Aug 2010 23:43:02 GMT) Full text and rfc822 format available.

Message #8 received at 6025 <at> debbugs.gnu.org (full text, mbox):

From: Chong Yidong <cyd <at> stupidchicken.com>
To: Štěpán Němec <stepnem <at> gmail.com>
Cc: 6025 <at> debbugs.gnu.org
Subject: Re: Add font-lock highlighting for some more macros.
Date: Sat, 14 Aug 2010 19:42:56 -0400
> in case their omission is not intentional, this patch adds font-lock
> support for a few more macros.

Thanks.  I've checked it in.




bug closed, send any further explanations to Štěpán Němec <stepnem <at> gmail.com> Request was from Chong Yidong <cyd <at> stupidchicken.com> to control <at> debbugs.gnu.org. (Sat, 14 Aug 2010 23:43:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 12 Sep 2010 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 14 years and 345 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.