summaryrefslogtreecommitdiff
path: root/test/lisp/emacs-lisp/bytecomp-tests.el
diff options
context:
space:
mode:
authorStefan Kangas <stefankangas@gmail.com>2022-09-16 22:24:20 +0200
committerStefan Kangas <stefankangas@gmail.com>2022-09-16 22:28:46 +0200
commit6938a2ddd2d9861a0f04e79d05ba976bdf91cc8c (patch)
treef9127391fe41200867cf71ca3aa7f057d8831ad3 /test/lisp/emacs-lisp/bytecomp-tests.el
parentaaf39c38784198353b61bf6086f48a689b199f0d (diff)
downloademacs-6938a2ddd2d9861a0f04e79d05ba976bdf91cc8c.tar.gz
emacs-6938a2ddd2d9861a0f04e79d05ba976bdf91cc8c.tar.bz2
emacs-6938a2ddd2d9861a0f04e79d05ba976bdf91cc8c.zip
Accept more wide function signatures in docstrings
* test/lisp/emacs-lisp/bytecomp-tests.el ("warn-wide-docstring-ignore-function-signature.el"): New test. * lisp/emacs-lisp/bytecomp.el (byte-compile--wide-docstring-p): Make regexp more allowing to silence warning. * test/lisp/emacs-lisp/bytecomp-resources/warn-wide-docstring-ignore-function-signature.el: New file.
Diffstat (limited to 'test/lisp/emacs-lisp/bytecomp-tests.el')
-rw-r--r--test/lisp/emacs-lisp/bytecomp-tests.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/lisp/emacs-lisp/bytecomp-tests.el b/test/lisp/emacs-lisp/bytecomp-tests.el
index bc9f8d802a6..1ca44dc7a48 100644
--- a/test/lisp/emacs-lisp/bytecomp-tests.el
+++ b/test/lisp/emacs-lisp/bytecomp-tests.el
@@ -1007,6 +1007,10 @@ byte-compiled. Run with dynamic binding."
"defvar .foo-bar. docstring wider than .* characters" 'reverse)
(bytecomp--define-warning-file-test
+ "warn-wide-docstring-ignore-function-signature.el"
+ "defvar .foo-bar. docstring wider than .* characters" 'reverse)
+
+(bytecomp--define-warning-file-test
"warn-wide-docstring-ignore-override.el"
"defvar .foo-bar. docstring wider than .* characters" 'reverse)