From f7510c4036f4bd752b564a8d51db7854b52fe4ae Mon Sep 17 00:00:00 2001 From: Alan Mackenzie Date: Tue, 17 Apr 2007 20:48:43 +0000 Subject: [PATCH] (c-beginning-of-defun): With -ve arg and point too close to EOB, leave point at EOB rather than last `}'. --- lisp/progmodes/cc-cmds.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.2