From 0d26d7c4dc79554439ad96fb7d9f75aa2085e0ca Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Wed, 1 Aug 2012 00:34:28 -0700 Subject: [PATCH] Small tweaks for autoconf mode * lisp/progmodes/autoconf.el (autoconf-definition-regexp): Add AH_TEMPLATE, adjust submatch numbering. (autoconf-font-lock-keywords, autoconf-imenu-generic-expression) (autoconf-current-defun-function): Update for above change. (autoconf-current-defun-function): First skip to end of current word. --- lisp/ChangeLog | 8 ++++++++ lisp/progmodes/autoconf.el | 9 +++++---- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index f854e4b1c07..bc0496e0ca6 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,11 @@ +2012-08-01 Glenn Morris + + * progmodes/autoconf.el (autoconf-definition-regexp): + Add AH_TEMPLATE, adjust submatch numbering. + (autoconf-font-lock-keywords, autoconf-imenu-generic-expression) + (autoconf-current-defun-function): Update for above change. + (autoconf-current-defun-function): First skip to end of current word. + 2012-08-01 Rupert Swarbrick (tiny change) * calendar/cal-html.el (cal-html-insert-agenda-days): diff --git a/lisp/progmodes/autoconf.el b/lisp/progmodes/autoconf.el index 3225fef2dfa..c9c6a0b9dc6 100644 --- a/lisp/progmodes/autoconf.el +++ b/lisp/progmodes/autoconf.el @@ -43,12 +43,12 @@ "Hook run by `autoconf-mode'.") (defconst autoconf-definition-regexp - "AC_\\(SUBST\\|DEFINE\\(_UNQUOTED\\)?\\)(\\[*\\(\\sw+\\)\\]*") + "A\\(?:H_TEMPLATE\\|C_\\(?:SUBST\\|DEFINE\\(?:_UNQUOTED\\)?\\)\\)(\\[*\\(\\sw+\\)\\]*") (defvar autoconf-font-lock-keywords `(("\\_