From: Alan Mackenzie Date: Tue, 17 Apr 2007 20:48:43 +0000 (+0000) Subject: (c-beginning-of-defun): With -ve arg and point too close to EOB, leave X-Git-Tag: emacs-pretest-22.0.99~192 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f7510c4036f4bd752b564a8d51db7854b52fe4ae;p=emacs.git (c-beginning-of-defun): With -ve arg and point too close to EOB, leave point at EOB rather than last `}'. --- diff --git a/lisp/progmodes/cc-cmds.el b/lisp/progmodes/cc-cmds.el index 79043c87b63..2bda3a174cf 100644 --- a/lisp/progmodes/cc-cmds.el +++ b/lisp/progmodes/cc-cmds.el @@ -1531,7 +1531,7 @@ defun." (setq arg (c-forward-to-nth-EOF-} (- arg) where))) ;; Move forward to the next opening brace.... (when (and (= arg 0) - (c-syntactic-re-search-forward "{" nil t)) + (c-syntactic-re-search-forward "{" nil 'eob)) (backward-char) ;; ... and backward to the function header. (c-beginning-of-decl-1)