(add-log-current-defun): Check major-mode for `cperl-mode' as well.
authorStefan Monnier <monnier@iro.umontreal.ca>
Tue, 6 Mar 2001 23:33:15 +0000 (23:33 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Tue, 6 Mar 2001 23:33:15 +0000 (23:33 +0000)
lisp/add-log.el

index ce8130c..3154fcf 100644 (file)
@@ -794,7 +794,7 @@ Has a preference of looking backwards."
                ((eq major-mode 'texinfo-mode)
                 (if (re-search-backward "^@node[ \t]+\\([^,\n]+\\)" nil t)
                     (match-string-no-properties 1)))
-               ((eq major-mode 'perl-mode)
+               ((memq major-mode '(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