aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/cc-cmds.el
diff options
context:
space:
mode:
authorAlan Mackenzie <[email protected]>2007-04-17 20:48:43 +0000
committerAlan Mackenzie <[email protected]>2007-04-17 20:48:43 +0000
commitf7510c4036f4bd752b564a8d51db7854b52fe4ae (patch)
treecc5674c6be508c853b25ba7e1aabe700e7c35c46 /lisp/progmodes/cc-cmds.el
parentc825c7249f3556e8312ee3ab7346b6c76792749a (diff)
(c-beginning-of-defun): With -ve arg and point too close to EOB, leave
point at EOB rather than last `}'.
Diffstat (limited to 'lisp/progmodes/cc-cmds.el')
-rw-r--r--lisp/progmodes/cc-cmds.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/progmodes/cc-cmds.el b/lisp/progmodes/cc-cmds.el
index 79043c87b6..2bda3a174c 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)