HCoop
/
bpt
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c5def8
)
(add-log-current-defun): Add support for
author
Gerd Moellmann
<gerd@gnu.org>
Thu, 2 Mar 2000 09:32:23 +0000
(09:32 +0000)
committer
Gerd Moellmann
<gerd@gnu.org>
Thu, 2 Mar 2000 09:32:23 +0000
(09:32 +0000)
Autoconf mode.
lisp/add-log.el
patch
|
blob
|
blame
|
history
diff --git
a/lisp/add-log.el
b/lisp/add-log.el
index
1ded7db
..
a30e5eb
100644
(file)
--- a/
lisp/add-log.el
+++ b/
lisp/add-log.el
@@
-749,6
+749,10
@@
Has a preference of looking backwards."
(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))