diff options
| author | Lars Ingebrigtsen | 2019-06-12 16:15:30 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2019-06-12 16:15:30 +0200 |
| commit | f9b61ba72e619b6801e71436793b3c05e5d0efee (patch) | |
| tree | c65773e4187c70d275e01368fdcf5852f7c71e6a | |
| parent | f2071b6de417ea079ab55298e8ca8f7bb2ad8d14 (diff) | |
| download | emacs-f9b61ba72e619b6801e71436793b3c05e5d0efee.tar.gz emacs-f9b61ba72e619b6801e71436793b3c05e5d0efee.zip | |
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.
| -rw-r--r-- | lisp/ehelp.el | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/ehelp.el b/lisp/ehelp.el index 2a24c9857c2..ec6e7afeb14 100644 --- a/lisp/ehelp.el +++ b/lisp/ehelp.el | |||
| @@ -355,7 +355,10 @@ will select it.)" | |||
| 355 | (defun electric-help-execute-extended (_prefixarg) | 355 | (defun electric-help-execute-extended (_prefixarg) |
| 356 | (interactive "p") | 356 | (interactive "p") |
| 357 | (setq electric-help-form-to-execute | 357 | (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)))) | ||
| 359 | (electric-help-retain)) | 362 | (electric-help-retain)) |
| 360 | 363 | ||
| 361 | ;; This is to be buond to C-x in ehelp mode. Retains ehelp buffer and then | 364 | ;; This is to be buond to C-x in ehelp mode. Retains ehelp buffer and then |