emacs/test/lisp/emacs-lisp
Stefan Kangas 0ebea8ffbf Make byte-compiler warn about wide docstrings
* lisp/emacs-lisp/bytecomp.el (byte-compile--wide-docstring-p):
(byte-compile-docstring-length-warn): New defuns.
(byte-compile-docstring-max-column): New defcustom.
(byte-compile--wide-docstring-substitution-len): New variable.
(byte-compile-warning-types, byte-compile-warnings): New value
'docstrings'.
(byte-compile-file-form-autoload, byte-compile-file-form-defvar):
(byte-compile-file-form-defvar-function, byte-compile-lambda):
(byte-compile-defvar, byte-compile-file-form-defalias): Warn about too
wide docstrings.  (Bug#44858)

* test/lisp/emacs-lisp/bytecomp-tests.el
(bytecomp-warn-wide-docstring/defconst)
(bytecomp-warn-wide-docstring/defvar): New tests.
(bytecomp--define-warning-file-test): New macro.
(bytecomp/warn-wide-docstring-autoload\.el)
(bytecomp/warn-wide-docstring-custom-declare-variable\.el)
(bytecomp/warn-wide-docstring-defalias\.el)
(bytecomp/warn-wide-docstring-defconst\.el)
(bytecomp/warn-wide-docstring-define-abbrev-table\.el)
(bytecomp/warn-wide-docstring-define-obsolete-function-alias\.el)
(bytecomp/warn-wide-docstring-define-obsolete-variable-alias\.el)
(bytecomp/warn-wide-docstring-defun\.el)
(bytecomp/warn-wide-docstring-defvar\.el)
(bytecomp/warn-wide-docstring-defvaralias\.el)
(bytecomp/warn-wide-docstring-ignore-fill-column\.el)
(bytecomp/warn-wide-docstring-ignore-override\.el)
(bytecomp/warn-wide-docstring-ignore\.el)
(bytecomp/warn-wide-docstring-multiline-first\.el)
(bytecomp/warn-wide-docstring-multiline\.el): New tests.
* test/lisp/emacs-lisp/bytecomp-resources/warn-wide-docstring-autoload.el:
* test/lisp/emacs-lisp/bytecomp-resources/warn-wide-docstring-custom-declare-variable.el:
* test/lisp/emacs-lisp/bytecomp-resources/warn-wide-docstring-defalias.el:
* test/lisp/emacs-lisp/bytecomp-resources/warn-wide-docstring-defconst.el:
* test/lisp/emacs-lisp/bytecomp-resources/warn-wide-docstring-define-abbrev-table.el:
* test/lisp/emacs-lisp/bytecomp-resources/warn-wide-docstring-define-obsolete-function-alias.el:
* test/lisp/emacs-lisp/bytecomp-resources/warn-wide-docstring-define-obsolete-variable-alias.el:
* test/lisp/emacs-lisp/bytecomp-resources/warn-wide-docstring-defun.el:
* test/lisp/emacs-lisp/bytecomp-resources/warn-wide-docstring-defvar.el:
* test/lisp/emacs-lisp/bytecomp-resources/warn-wide-docstring-defvaralias.el:
* test/lisp/emacs-lisp/bytecomp-resources/warn-wide-docstring-ignore-fill-column.el:
* test/lisp/emacs-lisp/bytecomp-resources/warn-wide-docstring-ignore-override.el:
* test/lisp/emacs-lisp/bytecomp-resources/warn-wide-docstring-ignore.el:
* test/lisp/emacs-lisp/bytecomp-resources/warn-wide-docstring-multiline-first.el:
* test/lisp/emacs-lisp/bytecomp-resources/warn-wide-docstring-multiline.el:
New files.
2020-12-28 06:26:52 +01:00
..
bytecomp-resources Make byte-compiler warn about wide docstrings 2020-12-28 06:26:52 +01:00
edebug-resources Use lexical-binding in most remaining emacs-lisp tests 2020-04-30 12:09:51 +02:00
eieio-tests Un-deprecate oset and oset-default 2020-06-06 17:24:00 +01:00
faceup-resources Prefer setq-local in tests 2020-12-08 08:57:22 +01:00
faceup-tests Use lexical-binding in most remaining emacs-lisp tests 2020-04-30 12:09:51 +02:00
package-resources Tweak test data for signed package installation 2020-10-20 18:26:38 +02:00
shadow-resources Use lexical-binding in most remaining emacs-lisp tests 2020-04-30 12:09:51 +02:00
testcover-resources Update copyright year to 2020 2020-01-01 00:59:52 +00:00
backquote-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
backtrace-tests.el ; Fix many typos in symbols in docs and comments 2020-10-02 13:29:45 +02:00
benchmark-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
bindat-tests.el Remove incorrect use of decode-coding-string 2020-10-22 20:34:15 +02:00
bytecomp-tests.el Make byte-compiler warn about wide docstrings 2020-12-28 06:26:52 +01:00
cconv-tests.el Mark two cconv tests as :unstable 2020-08-06 09:09:57 +02:00
check-declare-tests.el Use lexical-binding in check-declare.el and add tests 2020-05-03 19:50:57 +02:00
checkdoc-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
cl-extra-tests.el Fix cl-concatenate (Bug#40180) 2020-03-22 23:06:31 -04:00
cl-generic-tests.el Adjust some tests so that they work in symlinked environs 2020-10-16 10:33:19 +02:00
cl-lib-tests.el Add tests for cl-{incf,decf} 2020-08-13 22:04:59 +02:00
cl-macs-tests.el Allow destructuring in &aux sections when using edebug (Bug#40431) 2020-06-10 15:34:41 +02:00
cl-preloaded-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
cl-print-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
cl-seq-tests.el Mark some tests as expensive 2020-09-10 20:25:19 +02:00
copyright-tests.el Use lexical-binding in copyright.el and add tests 2020-10-24 13:35:49 +02:00
derived-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
easy-mmode-tests.el ; Silence byte-compiler warnings in tests 2020-11-05 18:25:40 +01:00
edebug-tests.el Unbreak a few unit tests that rely on lack of backtraces 2020-12-07 11:59:06 +01:00
ert-tests.el Fix bug in how ERT invokes its debugger. 2020-12-07 21:41:40 +01:00
ert-x-tests.el Remove some unnecessary compat code 2020-09-22 01:00:06 +02:00
find-func-tests.el Improve "find definition" in *Help* buffers 2020-12-27 09:04:56 +01:00
float-sup-tests.el Use lexical-binding in float-sup.el and add tests 2020-04-29 09:25:02 +02:00
generator-tests.el Merge from origin/emacs-27 2020-08-03 08:32:39 -07:00
gv-tests.el Unbreak a few unit tests that rely on lack of backtraces 2020-12-07 11:59:06 +01:00
hierarchy-tests.el Use lexical-binding in more tests 2020-08-29 22:41:51 +02:00
let-alist-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
lisp-mode-tests.el Convert manual indent test for lisp-mode into unit test 2020-09-21 16:46:21 +02:00
lisp-tests.el Update a failing lisp test 2020-09-24 12:46:19 -07:00
map-tests.el Merge from origin/emacs-27 2020-02-06 07:50:29 -08:00
memory-report-tests.el Fix copyright line 2020-12-11 23:18:01 +01:00
nadvice-tests.el Use lexical-binding in many emacs-lisp tests 2020-04-28 18:14:24 +02:00
package-tests.el Clean up temporary files after package tests 2020-10-23 12:58:01 +02:00
pcase-tests.el Use lexical-binding in many emacs-lisp tests 2020-04-28 18:14:24 +02:00
pp-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
regexp-opt-tests.el ; * test/lisp/emacs-lisp/regexp-opt-tests.el: Fix last change 2020-02-21 20:34:40 +01:00
ring-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
rmc-tests.el ; Fix license statements. 2020-08-27 02:53:25 +02:00
rx-tests.el Better warning suppression in rx-tests 2020-11-09 18:05:08 +01:00
seq-tests.el Use lexical-binding in many emacs-lisp tests 2020-04-28 18:14:24 +02:00
shadow-tests.el Use new resource directory macros in tests (Bug#43792) 2020-10-16 11:28:09 +02:00
subr-x-tests.el Allow `string-limit' to work on encoded strings 2020-12-25 05:58:09 +01:00
syntax-tests.el Allow back-references in syntax-propertize-rules. 2020-05-19 20:50:14 +02:00
tabulated-list-test.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
testcover-tests.el Fix file-name problems in several tests 2020-10-16 16:49:47 +03:00
text-property-search-tests.el ; Fix typo in my last commit 2020-10-30 14:16:25 +01:00
thunk-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
timer-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
unsafep-tests.el Trim and explain set of safe forms for 'unsafep' (bug#44018) 2020-10-31 13:42:07 +01:00
warnings-tests.el Use lexical-binding in warnings.el and add tests 2020-08-28 17:33:44 +02:00