changeset 27945:c11a0bbb5c88

(add-log-current-defun): Add support for Autoconf mode.
author Gerd Moellmann <gerd@gnu.org>
date Thu, 02 Mar 2000 09:32:23 +0000
parents b75299f3bc4c
children e27fde0193ef
files lisp/add-log.el
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/add-log.el	Thu Mar 02 09:29:36 2000 +0000
+++ b/lisp/add-log.el	Thu Mar 02 09:32:23 2000 +0000
@@ -749,6 +749,10 @@
 		 (if (re-search-backward "^sub[ \t]+\\([^ \t\n]+\\)" nil t)
 		     (buffer-substring (match-beginning 1)
 				       (match-end 1))))
+                ((eq major-mode 'autoconf-mode)
+                 (if (re-search-backward "^\\(\\(m4_\\)?define\\|A._DEFUN\\)(\\[?\\([A-Za-z0-9_]+\\)" nil t)
+                     (buffer-substring (match-beginning 3)
+                                       (match-end 3))))
                 ((or (eq major-mode 'fortran-mode)
 		     ;; Needs work for f90, but better than nothing.
 		     (eq major-mode 'f90-mode))