From: Alan Mackenzie Date: Sun, 8 Apr 2007 11:18:55 +0000 (+0000) Subject: (c-end-of-defun): Tidy up, to eliminate byte-compiler warning "value X-Git-Tag: emacs-pretest-22.0.98~206 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=de5c0bc1bc15715ec50abfe562912ca7a2c00b75;p=emacs.git (c-end-of-defun): Tidy up, to eliminate byte-compiler warning "value unused". --- diff --git a/lisp/progmodes/cc-cmds.el b/lisp/progmodes/cc-cmds.el index debdfe44cb4..7b28851b3bb 100644 --- a/lisp/progmodes/cc-cmds.el +++ b/lisp/progmodes/cc-cmds.el @@ -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)