diff options
author | João Távora <joaotavora@gmail.com> | 2020-10-30 22:09:36 +0000 |
---|---|---|
committer | João Távora <joaotavora@gmail.com> | 2020-10-30 22:31:20 +0000 |
commit | 74c45a62e1e48d7c52dc513b6911e65dcc38aa23 (patch) | |
tree | f57cf6f4f34b6eaff19de999efb9086ae31433c6 /lisp/emacs-lisp | |
parent | 3758be484e0a3f54eab968a0ee8bec31b9cd92c3 (diff) | |
download | emacs-74c45a62e1e48d7c52dc513b6911e65dcc38aa23.tar.gz emacs-74c45a62e1e48d7c52dc513b6911e65dcc38aa23.tar.bz2 emacs-74c45a62e1e48d7c52dc513b6911e65dcc38aa23.zip |
Shoosh byte-compilation warning in lisp/emacs-lisp/eldoc.el
Per bug#43609, elisp-eldoc-documentation-function is again in master,
but since it's now officially obsoleted, this backward compatibility
shim in eldoc--eval-expression-setup shouldn't unnecessarily trigger
warnings in master's code.
* lisp/emacs-lisp/eldoc.el (eldoc--eval-expression-setup): Shoosh
by-compilation warning.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r-- | lisp/emacs-lisp/eldoc.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/eldoc.el b/lisp/emacs-lisp/eldoc.el index 10dc3be44da..78cb8f08c34 100644 --- a/lisp/emacs-lisp/eldoc.el +++ b/lisp/emacs-lisp/eldoc.el @@ -241,8 +241,9 @@ expression point is on." :lighter eldoc-minor-mode-string ;; `emacs-lisp-mode' itself? (cond ((<= emacs-major-version 27) (declare-function elisp-eldoc-documentation-function "elisp-mode") - (add-function :before-until (local 'eldoc-documentation-function) - #'elisp-eldoc-documentation-function)) + (with-no-warnings + (add-function :before-until (local 'eldoc-documentation-function) + #'elisp-eldoc-documentation-function))) (t (add-hook 'eldoc-documentation-functions #'elisp-eldoc-var-docstring nil t) (add-hook 'eldoc-documentation-functions |