1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-25 07:28:20 +00:00

(add-log-current-defun): Fix thinko w.r.t derived-mode-p.

This commit is contained in:
Stefan Monnier 2007-09-20 14:06:13 +00:00
parent d60a4e3a42
commit fb1b68a482
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
* add-log.el (add-log-current-defun): Fix thinko w.r.t derived-mode-p.
2007-09-20 Glenn Morris <rgm@gnu.org>
* textmodes/tex-mode.el (tex-validate-buffer): Use paragraph

View File

@ -1016,7 +1016,7 @@ Has a preference of looking backwards."
((derived-mode-p 'texinfo-mode)
(if (re-search-backward "^@node[ \t]+\\([^,\n]+\\)" nil t)
(match-string-no-properties 1)))
((derived-mode-p '(perl-mode cperl-mode))
((derived-mode-p 'perl-mode 'cperl-mode)
(if (re-search-backward "^sub[ \t]+\\([^({ \t\n]+\\)" nil t)
(match-string-no-properties 1)))
;; Emacs's autoconf-mode installs its own