From: Glenn Morris Date: Wed, 1 Aug 2012 07:34:28 +0000 (-0700) Subject: Small tweaks for autoconf mode X-Git-Tag: emacs-24.2.90~931 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=0d26d7c4dc79554439ad96fb7d9f75aa2085e0ca;p=emacs.git 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. --- 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 `(("\\_