Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
64bd2d51
Commit
64bd2d51
authored
Oct 05, 1994
by
Richard M. Stallman
Browse files
(add-log-current-defun): Handle Perl specially.
parent
f793dc6c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
lisp/add-log.el
lisp/add-log.el
+5
-1
No files found.
lisp/add-log.el
View file @
64bd2d51
...
...
@@ -289,7 +289,7 @@ Prefix arg means justify as well."
"Return name of function definition point is in, or nil.
Understands C, Lisp, LaTeX (\"functions\" are chapters, sections, ...),
Texinfo (@node titles), and Fortran.
Texinfo (@node titles),
Perl,
and Fortran.
Other modes are handled by a heuristic that looks in the 10K before
point for uppercase headings starting in the first column or
...
...
@@ -423,6 +423,10 @@ Has a preference of looking backwards."
(if (re-search-backward "
^@node[
\t]+\\
(
[^,]+\\
)
,
" nil t)
(buffer-substring (match-beginning 1)
(match-end 1))))
((eq major-mode 'perl-mode)
(if (re-search-backward "
^sub[
\t]+\\
(
[^
\t\n]+\\
)
" nil t)
(buffer-substring (match-beginning 1)
(match-end 1))))
((eq major-mode 'fortran-mode)
;; must be inside function body for this to work
(beginning-of-fortran-subprogram)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment