emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master f9b61ba 1/3: ehelp.el: Suppress warning


From: Lars Ingebrigtsen
Subject: [Emacs-diffs] master f9b61ba 1/3: ehelp.el: Suppress warning
Date: Wed, 12 Jun 2019 10:19:07 -0400 (EDT)

branch: master
commit f9b61ba72e619b6801e71436793b3c05e5d0efee
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>

    ehelp.el: Suppress warning
    
    * lisp/ehelp.el (electric-help-execute-extended): Suppress warning
    about `execute-extended-command' only being interactive, because
    we're still using it interactively, but via a wrapper.
---
 lisp/ehelp.el | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/lisp/ehelp.el b/lisp/ehelp.el
index 2a24c98..ec6e7af 100644
--- a/lisp/ehelp.el
+++ b/lisp/ehelp.el
@@ -355,7 +355,10 @@ will select it.)"
 (defun electric-help-execute-extended (_prefixarg)
   (interactive "p")
   (setq electric-help-form-to-execute
-        (lambda () (execute-extended-command nil)))
+        (lambda ()
+          (with-suppressed-warnings ((interactive-only
+                                      execute-extended-command))
+            (execute-extended-command nil))))
   (electric-help-retain))
 
 ;; This is to be buond to C-x in ehelp mode. Retains ehelp buffer and then



reply via email to

[Prev in Thread] Current Thread [Next in Thread]