]> git.eshelyaron.com Git - emacs.git/commitdiff
(c-beginning-of-defun): With -ve arg and point too close to EOB, leave
authorAlan Mackenzie <acm@muc.de>
Tue, 17 Apr 2007 20:48:43 +0000 (20:48 +0000)
committerAlan Mackenzie <acm@muc.de>
Tue, 17 Apr 2007 20:48:43 +0000 (20:48 +0000)
point at EOB rather than last `}'.

lisp/progmodes/cc-cmds.el

index 79043c87b630009319fd760ba377b0f9a53bf7d4..2bda3a174cfd7cb087bbce4ba78812c84ee689b7 100644 (file)
@@ -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)