Commit b5ed9def authored by Stefan Monnier's avatar Stefan Monnier

(beginning-of-defun-raw): Use shy-group.

parent 1d88c1b3
......@@ -192,7 +192,7 @@ is called as a function to find the defun's beginning."
(and (re-search-backward (if defun-prompt-regexp
(concat (if open-paren-in-column-0-is-defun-start
"^\\s(\\|" "")
"\\(" defun-prompt-regexp "\\)\\s(")
"\\(?:" defun-prompt-regexp "\\)\\s(")
nil 'move (or arg 1))
(progn (goto-char (1- (match-end 0)))) t)))
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