all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Patch to m4-mode.el
@ 2015-09-19  1:13 Drew Csillag
  2015-09-19 20:12 ` Stefan Monnier
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Drew Csillag @ 2015-09-19  1:13 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 2312 bytes --]

Hi,

Somebody noticed that if you use the m4_ prefixed versions of m4 keywords, they weren't being highlighted correctly.  I have a patch.  Also updated my email address as author and maintainer.

diff -u build/emacs-24.5/lisp/progmodes/m4-mode.el m4-mode.el
--- build/emacs-24.5/lisp/progmodes/m4-mode.el    2015-04-02 03:23:06.000000000 -0400
+++ m4-mode.el    2015-09-18 21:12:54.606254163 -0400
@@ -2,8 +2,8 @@
 
 ;; Copyright (C) 1996-1997, 2001-2015 Free Software Foundation, Inc.
 
-;; Author: Andrew Csillag 
-;; Maintainer: Andrew Csillag 
+;; Author: Andrew Csillag 
+;; Maintainer: Andrew Csillag 
 ;; Keywords: languages, faces
 
 ;; This file is part of GNU Emacs.
@@ -70,8 +70,7 @@
     ("\$[*#@0-9]" . font-lock-variable-name-face)
     ("\$\@" . font-lock-variable-name-face)
     ("\$\*" . font-lock-variable-name-face)
-    ("\b\(builtin\|change\(com\|quote\|word\)\|d\(e\(bug\(file\|mode\)\|cr\|f\(ine\|n\)\)\|iv\(ert\|num\)\|nl\|umpdef\)\|e\(rrprint\|syscmd\|val\)\|f\(ile\|ormat\)\|gnu\|i\(f\(def\|else\)\|n\(c\(lude\|r\)\|d\(ex\|ir\)\)\)\|l\(en\|ine\)\|m\(4\(exit\|wrap\)\|aketemp\)\|p\(atsubst\|opdef\|ushdef\)\|regexp\|s\(hift\|include\|ubstr\|ys\(cmd\|val\)\)\|tra\(ceo\(ff\|n\)\|nslit\)\|un\(d\(efine\|ivert\)\|ix\)\)\b" . font-lock-keyword-face)
-    ("\b\(m4_\(builtin\|change\(com\|quote\|word\)\|d\(e\(bug\(file\|mode\)\|cr\|f\(ine\|n\)\)\|iv\(ert\|num\)\|nl\|umpdef\)\|e\(rrprint\|syscmd\|val\)\|f\(ile\|ormat\)\|i\(f\(def\|else\)\|n\(c\(lude\|r\)\|d\(ex\|ir\)\)\)\|l\(en\|ine\)\|m\(4\(_undefine\|exit\|wrap\)\|aketemp\)\|p\(atsubst\|opdef\|ushdef\)\|regexp\|s\(hift\|include\|ubstr\|ys\(cmd\|val\)\)\|tra\(ceo\(ff\|n\)\|nslit\)\|undivert\)\)\b" . font-lock-keyword-face))
+    ("\b\(m4_\)?\(builtin\|change\(com\|quote\|word\)\|d\(e\(bug\(file\|mode\)\|cr\|f\(ine\|n\)\)\|iv\(ert\|num\)\|nl\|umpdef\)\|e\(rrprint\|syscmd\|val\)\|f\(ile\|ormat\)\|gnu\|i\(f\(def\|else\)\|n\(c\(lude\|r\)\|d\(ex\|ir\)\)\)\|l\(en\|ine\)\|m\(4\(exit\|wrap\)\|aketemp\)\|p\(atsubst\|opdef\|ushdef\)\|regexp\|s\(hift\|include\|ubstr\|ys\(cmd\|val\)\)\|tra\(ceo\(ff\|n\)\|nslit\)\|un\(d\(efine\|ivert\)\|ix\)\)\b" . font-lock-keyword-face))
   "Default font-lock-keywords for `m4 mode'.")
 
 (defcustom m4-mode-hook nil

Cheers,
Drew

[-- Attachment #2: Type: text/html, Size: 3013 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-09-20 19:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-19  1:13 Patch to m4-mode.el Drew Csillag
2015-09-19 20:12 ` Stefan Monnier
2015-09-20 17:28 ` Drew Csillag
2015-09-20 18:20   ` Paul Eggert
2015-09-20 19:35   ` Stefan Monnier
2015-09-20 18:48 ` Andreas Schwab

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.