]> git.eshelyaron.com Git - emacs.git/commitdiff
Remove spurious space in byte-compiler warning
authorStefan Kangas <stefan@marxist.se>
Mon, 6 Dec 2021 20:51:37 +0000 (21:51 +0100)
committerStefan Kangas <stefan@marxist.se>
Mon, 6 Dec 2021 21:19:58 +0000 (22:19 +0100)
* lisp/emacs-lisp/bytecomp.el
(byte-compile-docstring-length-warn): Remove spurious space in
byte-compiler warning.
* test/lisp/emacs-lisp/bytecomp-tests.el
("warn-wide-docstring-defun.el"): Update test.

lisp/emacs-lisp/bytecomp.el
test/lisp/emacs-lisp/bytecomp-tests.el

index d6b25e02795321710f4d2fd40397d2dee722829d..b1afa6fe611936f6fa38cd4c7b8b3211fb8bdb6a 100644 (file)
@@ -1712,10 +1712,10 @@ It is too wide if it has any lines longer than the largest of
                           (nth 2 form)))))
       (when (and (consp name) (eq (car name) 'quote))
         (setq name (cadr name)))
-      (setq name (if name (format " `%s'" name) ""))
+      (setq name (if name (format " `%s' " name) ""))
       (when (and kind docs (stringp docs)
                  (byte-compile--wide-docstring-p docs col))
-        (byte-compile-warn "%s%s docstring wider than %s characters"
+        (byte-compile-warn "%s%sdocstring wider than %s characters"
                            kind name col))))
   form)
 
index 468b9b32f74f4f7e457df7bee338d46ff0e027e5..7e51f820b7026abee550c928a8112eb1ba9219d5 100644 (file)
@@ -979,7 +979,7 @@ byte-compiled.  Run with dynamic binding."
 
 (bytecomp--define-warning-file-test
  "warn-wide-docstring-defun.el"
- "wider than .* characters")
+ "Warning: docstring wider than .* characters")
 
 (bytecomp--define-warning-file-test
  "warn-wide-docstring-defvar.el"