From de5c0bc1bc15715ec50abfe562912ca7a2c00b75 Mon Sep 17 00:00:00 2001 From: Alan Mackenzie Date: Sun, 8 Apr 2007 11:18:55 +0000 Subject: [PATCH] (c-end-of-defun): Tidy up, to eliminate byte-compiler warning "value unused". --- lisp/progmodes/cc-cmds.el | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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) -- 2.39.5