emacs-devel
[Top][All Lists]
Advanced

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

Re: Towards a cleaner build: ehelp


From: Lars Ingebrigtsen
Subject: Re: Towards a cleaner build: ehelp
Date: Fri, 17 May 2019 12:41:55 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

In electric-help-execute-extended:
ehelp.el:358:10:Warning: ‘execute-extended-command’ is for interactive use
    only; use ‘command-execute’ instead.

This is the function definition:

;; This is to be bound to M-x in ehelp mode. Retains ehelp buffer and then
;; continues with execute-extended-command.
(defun electric-help-execute-extended (_prefixarg)
  (interactive "p")
  (setq electric-help-form-to-execute
        (lambda () (execute-extended-command nil)))
  (electric-help-retain))

I think ehelp is perhaps doing exactly the right thing here?  It's
creating a variation of `M-x', so calling `execute-extended-command' is
the right thing to do here?

Slap a with-no-warnings around it?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




reply via email to

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