# HG changeset patch # User Alan Mackenzie # Date 1176842923 0 # Node ID 1f5115cdbed555149e82398134788ce532ab01e4 # Parent a77b41cb3431a4da95210607a42d1f815b37b8f6 (c-beginning-of-defun): With -ve arg and point too close to EOB, leave point at EOB rather than last `}'. diff -r a77b41cb3431 -r 1f5115cdbed5 lisp/progmodes/cc-cmds.el --- a/lisp/progmodes/cc-cmds.el Tue Apr 17 20:44:18 2007 +0000 +++ b/lisp/progmodes/cc-cmds.el Tue Apr 17 20:48:43 2007 +0000 @@ -1531,7 +1531,7 @@ (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)