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
..
2020-01-01 00:59:52 +00:00
2020-04-25 07:59:28 +02:00
2020-01-01 01:01:53 +00:00
2020-01-01 00:59:52 +00:00
2020-12-15 09:24:21 -08:00
2020-11-02 15:57:52 +01:00
2020-02-20 16:03:30 +01:00
2020-10-24 20:23:27 +02:00
2020-11-28 13:36:54 +01:00
2020-12-18 10:13:53 -05:00
2020-01-01 00:59:52 +00:00
2020-10-03 12:53:51 +02:00
2020-10-03 12:53:51 +02:00
2020-02-28 15:21:55 +02:00
2019-11-01 13:54:51 +01:00
2020-01-01 00:59:52 +00:00
2020-04-24 11:48:25 +02:00
2020-01-01 00:59:52 +00:00
2020-08-06 17:45:09 +02:00
2020-01-01 00:59:52 +00:00
2020-12-14 17:59:58 +01:00
2020-08-09 15:57:51 +02:00
2020-01-01 00:59:52 +00:00
2020-01-01 00:59:52 +00:00
2020-12-19 19:41:18 +02:00
2020-01-01 00:59:52 +00:00
2020-01-01 00:59:52 +00:00
2020-12-09 21:16:03 +02:00
2020-10-31 16:05:03 +02:00
2020-08-04 21:41:07 +02:00
2020-08-05 17:38:41 -07:00
2020-01-01 00:59:52 +00:00
2020-12-28 06:26:52 +01:00
2020-09-21 15:32:46 +02:00
2020-01-01 00:59:52 +00:00
2020-01-01 00:59:52 +00:00
2020-01-01 00:59:52 +00:00
2020-01-01 00:59:52 +00:00
2020-07-10 15:22:27 +01:00
2020-07-10 15:22:27 +01:00
2020-01-01 18:30:58 +02:00
2020-05-27 14:09:23 -04:00
2020-01-01 00:59:52 +00:00
2020-11-23 09:41:53 -08:00
2020-10-24 20:23:27 +02:00
2020-01-01 00:59:52 +00:00
2020-12-13 13:44:15 +01:00
2020-11-16 09:05:31 -08:00
2020-01-01 00:59:52 +00:00
2020-01-01 00:59:52 +00:00
2020-12-09 11:52:59 +01:00
2020-01-01 00:59:52 +00:00
2020-01-01 00:59:52 +00:00
2020-01-01 00:59:52 +00:00
2020-12-28 06:26:52 +01:00
2020-08-24 22:44:21 +01:00