aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorStefan Kangas2021-09-24 19:10:46 +0200
committerStefan Kangas2021-09-24 19:11:11 +0200
commit35c459fd88cbf8dbd71fa81437ff78c1ee84aaa4 (patch)
tree2e1185c0053c9604d994a100f04e83f56ead1caf /test
parent60edb5da34c2cdf1e156cbf48fe3d426894bcc99 (diff)
downloademacs-scratch/bug-44858.tar.gz
emacs-scratch/bug-44858.zip
Warn about overly long docstring in lambdascratch/bug-44858
* 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.
Diffstat (limited to 'test')
-rw-r--r--test/lisp/emacs-lisp/bytecomp-tests.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/lisp/emacs-lisp/bytecomp-tests.el b/test/lisp/emacs-lisp/bytecomp-tests.el
index a76038938f5..4f32e8fcc36 100644
--- a/test/lisp/emacs-lisp/bytecomp-tests.el
+++ b/test/lisp/emacs-lisp/bytecomp-tests.el
@@ -892,10 +892,9 @@ byte-compiled. Run with dynamic binding."
892 "warn-wide-docstring-define-obsolete-variable-alias.el" 892 "warn-wide-docstring-define-obsolete-variable-alias.el"
893 "defvaralias .foo. docstring wider than .* characters") 893 "defvaralias .foo. docstring wider than .* characters")
894 894
895;; TODO: We don't yet issue warnings for defuns.
896(bytecomp--define-warning-file-test 895(bytecomp--define-warning-file-test
897 "warn-wide-docstring-defun.el" 896 "warn-wide-docstring-defun.el"
898 "wider than .* characters" 'reverse) 897 "wider than .* characters")
899 898
900(bytecomp--define-warning-file-test 899(bytecomp--define-warning-file-test
901 "warn-wide-docstring-defvar.el" 900 "warn-wide-docstring-defvar.el"