diff options
author | Mattias EngdegÄrd <mattiase@acm.org> | 2022-07-23 18:42:11 +0200 |
---|---|---|
committer | Mattias EngdegÄrd <mattiase@acm.org> | 2022-07-23 18:42:11 +0200 |
commit | 96926fa6eb0f71f47586d50ac5532b57bff1ab54 (patch) | |
tree | 4f277a5e35b9c941b32d75b028e0900d31bbb214 /lisp/emacs-lisp | |
parent | 26f4bcc6d7cd541fab981836ee0b67259280ff4b (diff) | |
download | emacs-96926fa6eb0f71f47586d50ac5532b57bff1ab54.tar.gz emacs-96926fa6eb0f71f47586d50ac5532b57bff1ab54.tar.bz2 emacs-96926fa6eb0f71f47586d50ac5532b57bff1ab54.zip |
Fix `lsh` warning shortcomings (bug#56641)
Reported by Basil Contovounesios.
* etc/NEWS: Mention how to suppress the warning.
* lisp/emacs-lisp/byte-run.el (with-suppressed-warnings): Amend doc string.
* lisp/subr.el: Use `macroexp-warn-and-return` to delay the warning
until codegen time (which makes it suppressible) and to prevent
repeated warnings.
* test/lisp/international/ccl-tests.el (shift):
* test/src/data-tests.el (data-tests-ash-lsh):
Suppress warning in tests of `lsh` itself.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r-- | lisp/emacs-lisp/byte-run.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/byte-run.el b/lisp/emacs-lisp/byte-run.el index dd90bcf4d82..9370bd3a097 100644 --- a/lisp/emacs-lisp/byte-run.el +++ b/lisp/emacs-lisp/byte-run.el @@ -672,7 +672,7 @@ types. The types that can be suppressed with this macro are `suspicious'. For the `mapcar' case, only the `mapcar' function can be used in -the symbol list. For `suspicious', only `set-buffer' can be used." +the symbol list. For `suspicious', only `set-buffer' and `lsh' can be used." ;; Note: during compilation, this definition is overridden by the one in ;; byte-compile-initial-macro-environment. (declare (debug (sexp body)) (indent 1)) |