mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-11 16:08:13 +00:00
(add-log-current-defun): Check major-mode for `cperl-mode' as well.
This commit is contained in:
parent
c83965c448
commit
c06e9d8bcc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user