diff options
author | Alan Mackenzie <acm@muc.de> | 2007-04-17 20:48:43 +0000 |
---|---|---|
committer | Alan Mackenzie <acm@muc.de> | 2007-04-17 20:48:43 +0000 |
commit | f7510c4036f4bd752b564a8d51db7854b52fe4ae (patch) | |
tree | cc5674c6be508c853b25ba7e1aabe700e7c35c46 | |
parent | c825c7249f3556e8312ee3ab7346b6c76792749a (diff) | |
download | emacs-f7510c4036f4bd752b564a8d51db7854b52fe4ae.tar.gz |
(c-beginning-of-defun): With -ve arg and point too close to EOB, leave
point at EOB rather than last `}'.
-rw-r--r-- | lisp/progmodes/cc-cmds.el | 2 |
1 files changed, 1 insertions, 1 deletions
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) |