]> git.eshelyaron.com Git - emacs.git/commitdiff
(c-end-of-defun): Tidy up, to eliminate byte-compiler warning "value
authorAlan Mackenzie <acm@muc.de>
Sun, 8 Apr 2007 11:18:55 +0000 (11:18 +0000)
committerAlan Mackenzie <acm@muc.de>
Sun, 8 Apr 2007 11:18:55 +0000 (11:18 +0000)
unused".

lisp/progmodes/cc-cmds.el

index debdfe44cb4c039452285769716cf7a50a181738..7b28851b3bbd5c6a7a38320017913583d82d4923 100644 (file)
@@ -1630,10 +1630,8 @@ the open-parenthesis that starts a defun; see `beginning-of-defun'."
              (setq arg (1+ arg)))
          (if (< arg 0)
              (setq arg (c-backward-to-nth-BOF-{ (- arg) where)))
-         (when (and (= arg 0)
-                    (c-syntactic-skip-backward "^}")
-                    (eq (char-before) ?\}))
-           t))
+         (if (= arg 0)
+             (c-syntactic-skip-backward "^}")))
 
       ;; Move forward to the } of a function
       (if (> arg 0)