Commit 37f31acf authored by Karl Heuer's avatar Karl Heuer
Browse files

(end-of-defun): Fix check for trailing comment.

parent 5ca2ef64
......@@ -184,7 +184,7 @@ the open-parenthesis that starts a defun; see `beginning-of-defun'."
(forward-list 1)
(skip-chars-forward " \t")
(if (looking-at "[;\n]")
(if (looking-at "\\s<\\|\n")
(forward-line 1)))
(goto-char (point-min)))))
(setq arg (1+ arg)))))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment