Skip to content

Commit f9b61ba

Browse files
committed
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.
1 parent f2071b6 commit f9b61ba

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lisp/ehelp.el

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,10 @@ will select it.)"
355355
(defun electric-help-execute-extended (_prefixarg)
356356
(interactive "p")
357357
(setq electric-help-form-to-execute
358-
(lambda () (execute-extended-command nil)))
358+
(lambda ()
359+
(with-suppressed-warnings ((interactive-only
360+
execute-extended-command))
361+
(execute-extended-command nil))))
359362
(electric-help-retain))
360363

361364
;; This is to be buond to C-x in ehelp mode. Retains ehelp buffer and then

0 commit comments

Comments
 (0)