Commit 81ccc378 authored by Karl Heuer's avatar Karl Heuer
Browse files

(beginning-of-defun-raw): Don't err when called at end of buffer.

parent 857a1de6
......@@ -145,7 +145,7 @@ open-parenthesis, and point ends up at the beginning of the line."
This is identical to beginning-of-defun, except that point does not move
to the beginning of the line when `defun-prompt-regexp' is non-nil."
(interactive "p")
(and arg (< arg 0) (forward-char 1))
(and arg (< arg 0) (not (eobp)) (forward-char 1))
(and (re-search-backward (if defun-prompt-regexp
(concat "^\\s(\\|"
"\\(" defun-prompt-regexp "\\)\\s(")
......
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