diff options
| author | Alan Mackenzie | 2007-04-17 20:48:43 +0000 |
|---|---|---|
| committer | Alan Mackenzie | 2007-04-17 20:48:43 +0000 |
| commit | f7510c4036f4bd752b564a8d51db7854b52fe4ae (patch) | |
| tree | cc5674c6be508c853b25ba7e1aabe700e7c35c46 | |
| parent | c825c7249f3556e8312ee3ab7346b6c76792749a (diff) | |
| download | emacs-f7510c4036f4bd752b564a8d51db7854b52fe4ae.tar.gz emacs-f7510c4036f4bd752b564a8d51db7854b52fe4ae.zip | |
(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." | |||
| 1531 | (setq arg (c-forward-to-nth-EOF-} (- arg) where))) | 1531 | (setq arg (c-forward-to-nth-EOF-} (- arg) where))) |
| 1532 | ;; Move forward to the next opening brace.... | 1532 | ;; Move forward to the next opening brace.... |
| 1533 | (when (and (= arg 0) | 1533 | (when (and (= arg 0) |
| 1534 | (c-syntactic-re-search-forward "{" nil t)) | 1534 | (c-syntactic-re-search-forward "{" nil 'eob)) |
| 1535 | (backward-char) | 1535 | (backward-char) |
| 1536 | ;; ... and backward to the function header. | 1536 | ;; ... and backward to the function header. |
| 1537 | (c-beginning-of-decl-1) | 1537 | (c-beginning-of-decl-1) |