GNU bug report logs -
#18969
25.0.50; byte compiler warnings don't conform to GCS
Previous Next
Reported by: Tom Tromey <tom <at> tromey.com>
Date: Thu, 6 Nov 2014 02:59:02 UTC
Severity: minor
Tags: patch
Found in version 25.0.50
Fixed in version 28.1
Done: Stefan Kangas <stefan <at> marxist.se>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
On Wednesday 05 November 2014 19:58:04 Tom Tromey wrote:
> The output here is missing a space after the ":".
I wrote a quick fix for it. But I'm not sure if this is the best approach:
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el
index 392f6ee..d2bbefa 100644
--- a/lisp/emacs-lisp/bytecomp.el
+++ b/lisp/emacs-lisp/bytecomp.el
@@ -1082,7 +1082,7 @@ (defun byte-compile-warning-prefix (level entry)
byte-compile-last-warned-form))))
(insert (format "\nIn %s:\n" form)))
(when level
- (insert (format "%s%s" file pos))))
+ (insert (format "%s%s " file pos))))
(setq byte-compile-last-logged-file byte-compile-current-file
byte-compile-last-warned-form byte-compile-current-form)
entry)
> Also I think the "W" in warning should probably not be capitalized.
> I note that GCC doesn't do this.
Not sure if there is a good solution for this. The warning levels are
predefined in the variable `warning-levels'. They could be changed to lower
case but that would break cases when there is no prefix.
Regards,
RĂ¼diger
This bug report was last modified 5 years and 126 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.