From b7d5033c39b82d8ae6cde701edcbf94f1575a622 Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Tue, 16 Jun 2015 20:45:35 -0400 Subject: [PATCH] * lisp/emacs-lisp/check-declare.el (check-declare-warn): Don't print filename twice (it's in the prefix now). --- lisp/emacs-lisp/check-declare.el | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lisp/emacs-lisp/check-declare.el b/lisp/emacs-lisp/check-declare.el index ecdb6d8983c..ea865f22f57 100644 --- a/lisp/emacs-lisp/check-declare.el +++ b/lisp/emacs-lisp/check-declare.el @@ -279,10 +279,8 @@ TYPE is a string giving the nature of the error. Warning is displayed in entry)) (warning-fill-prefix " ")) (display-warning 'check-declare - (format "%s said `%s' was defined in %s: %s" - (file-name-nondirectory file) fn - (file-name-nondirectory fnfile) - type) + (format "said `%s' was defined in %s: %s" + fn (file-name-nondirectory fnfile) type) nil check-declare-warning-buffer))) (declare-function compilation-forget-errors "compile" ()) -- 2.11.4.GIT