]> git.eshelyaron.com Git - emacs.git/commitdiff
Improve byte-compile-warnings doc string
authorLars Ingebrigtsen <larsi@gnus.org>
Mon, 23 Aug 2021 00:04:55 +0000 (02:04 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Mon, 23 Aug 2021 00:04:55 +0000 (02:04 +0200)
* lisp/emacs-lisp/bytecomp.el (byte-compile-warnings): Mention
'byte-compile-docstring-max-column'.

etc/NEWS
lisp/emacs-lisp/bytecomp.el

index 3793bc46265d37dcbcd9e83357c7ce1198a1784e..1866ed0d6d01561c4fcef175ccc618a19931f1be 100644 (file)
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -3736,10 +3736,11 @@ file can affect code in another.  For details, see the manual section
 *** 'byte-recompile-directory' can now compile symlinked ".el" files.
 This is achieved by giving a non-nil FOLLOW-SYMLINKS parameter.
 
+---
 *** The byte-compiler now warns about too wide documentation strings.
 By default, it will warn if a documentation string is wider than the
-largest of 80 characters or 'fill-column'.  This is controlled by the
-new user option 'byte-compile-docstring-max-column'.
+largest of 'byte-compile-docstring-max-column' or 'fill-column'
+characters.
 
 +++
 *** 'byte-compile-file' optional argument LOAD is now obsolete.
@@ -3788,6 +3789,7 @@ presented to users or passed on to other applications.
 ** 'start-process-shell-command' and 'start-file-process-shell-command'
 do not support the old calling conventions any longer.
 
+---
 ** Functions operating on local file names now check that the file names
 don't contain any NUL bytes.  This avoids subtle bugs caused by
 silently using only the part of the file name until the first NUL byte.
index 7bd642d2b239493c2ba096c308e7af5e1beb5673..145cdbaa6edfbd06d3f0bd29a82b8986946f8da4 100644 (file)
@@ -322,8 +322,9 @@ Elements of the list may be:
   make-local  calls to make-variable-buffer-local that may be incorrect.
   mapcar      mapcar called for effect.
   constants   let-binding of, or assignment to, constants/nonvariables.
-  docstrings  docstrings that are too wide (longer than 80 characters,
-              or `fill-column', whichever is bigger)
+  docstrings  docstrings that are too wide (longer than
+              `byte-compile-docstring-max-column' or
+              `fill-column' characters, whichever is bigger).
   suspicious  constructs that usually don't do what the coder wanted.
 
 If the list begins with `not', then the remaining elements specify warnings to