]> git.eshelyaron.com Git - emacs.git/commitdiff
Add space before messsage in byte compiler warnings
authorRĂ¼diger Sonderfeld <ruediger@c-plusplus.de>
Sun, 19 Jan 2020 01:02:28 +0000 (02:02 +0100)
committerStefan Kangas <stefankangas@gmail.com>
Sun, 19 Jan 2020 01:02:28 +0000 (02:02 +0100)
According to the GNU coding standards (info "(standards) Errors"):
> If you want to mention the column number, use one of these formats:
>      SOURCE-FILE-NAME:LINENO:COLUMN: MESSAGE
>      SOURCE-FILE-NAME:LINENO.COLUMN: MESSAGE

* lisp/emacs-lisp/bytecomp.el (byte-compile-warning-prefix): Add space
before message in byte compiler warnings to comply with the GNU coding
standards.  (Bug#18969)

lisp/emacs-lisp/bytecomp.el

index 20c0fc32fa8b66dd08aca2f917649260b1ed1421..234ee34f477a32ef8a3265ce6f26afc830d3377d 100644 (file)
@@ -1202,7 +1202,7 @@ message buffer `default-directory'."
                            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)