Warn about overly long docstring in lambda
* lisp/emacs-lisp/bytecomp.el (byte-compile-docstring-length-warn): Warn about overly long docstring in lambda. (Bug#44858) (byte-compile--wide-docstring-p): Improve comment. * test/lisp/emacs-lisp/bytecomp-tests.el ("warn-wide-docstring-defun.el"): Update to test for the above new warning.
This commit is contained in:
parent
89bac05aaa
commit
c51b1c02db
2 changed files with 9 additions and 16 deletions
|
@ -937,10 +937,9 @@ byte-compiled. Run with dynamic binding."
|
|||
"warn-wide-docstring-define-obsolete-variable-alias.el"
|
||||
"defvaralias .foo. docstring wider than .* characters")
|
||||
|
||||
;; TODO: We don't yet issue warnings for defuns.
|
||||
(bytecomp--define-warning-file-test
|
||||
"warn-wide-docstring-defun.el"
|
||||
"wider than .* characters" 'reverse)
|
||||
"wider than .* characters")
|
||||
|
||||
(bytecomp--define-warning-file-test
|
||||
"warn-wide-docstring-defvar.el"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue