From: Glenn Morris Date: Wed, 17 Jun 2015 00:45:35 +0000 (-0400) Subject: * lisp/emacs-lisp/check-declare.el (check-declare-warn): X-Git-Tag: emacs-25.0.90~1729 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b7d5033c39b82d8ae6cde701edcbf94f1575a622;p=emacs.git * lisp/emacs-lisp/check-declare.el (check-declare-warn): Don't print filename twice (it's in the prefix now). --- 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" ())