aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Moellmann2000-03-02 09:32:23 +0000
committerGerd Moellmann2000-03-02 09:32:23 +0000
commitf654865f83808432e27bfc4c330c70ad466316cf (patch)
tree333e9ae5f8d67a176c326b46dfd5b42436c8567e
parent6c5def8e73e36cab0377f5d2e05d27b181d1b3d3 (diff)
downloademacs-f654865f83808432e27bfc4c330c70ad466316cf.tar.gz
emacs-f654865f83808432e27bfc4c330c70ad466316cf.zip
(add-log-current-defun): Add support for
Autoconf mode.
-rw-r--r--lisp/add-log.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/add-log.el b/lisp/add-log.el
index 1ded7dbe35d..a30e5eb9b7e 100644
--- a/lisp/add-log.el
+++ b/lisp/add-log.el
@@ -749,6 +749,10 @@ Has a preference of looking backwards."
749 (if (re-search-backward "^sub[ \t]+\\([^ \t\n]+\\)" nil t) 749 (if (re-search-backward "^sub[ \t]+\\([^ \t\n]+\\)" nil t)
750 (buffer-substring (match-beginning 1) 750 (buffer-substring (match-beginning 1)
751 (match-end 1)))) 751 (match-end 1))))
752 ((eq major-mode 'autoconf-mode)
753 (if (re-search-backward "^\\(\\(m4_\\)?define\\|A._DEFUN\\)(\\[?\\([A-Za-z0-9_]+\\)" nil t)
754 (buffer-substring (match-beginning 3)
755 (match-end 3))))
752 ((or (eq major-mode 'fortran-mode) 756 ((or (eq major-mode 'fortran-mode)
753 ;; Needs work for f90, but better than nothing. 757 ;; Needs work for f90, but better than nothing.
754 (eq major-mode 'f90-mode)) 758 (eq major-mode 'f90-mode))