]> git.eshelyaron.com Git - emacs.git/commitdiff
Shoosh byte-compilation warning in lisp/emacs-lisp/eldoc.el
authorJoão Távora <joaotavora@gmail.com>
Fri, 30 Oct 2020 22:09:36 +0000 (22:09 +0000)
committerJoão Távora <joaotavora@gmail.com>
Fri, 30 Oct 2020 22:31:20 +0000 (22:31 +0000)
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.

lisp/emacs-lisp/eldoc.el

index 10dc3be44da72dc653c453336327f6361db4eb1b..78cb8f08c34731463309bd3ebcb8e06e56f867b4 100644 (file)
@@ -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