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: Stefan Monnier
Subject: Re: Towards a cleaner build: ehelp
Date: Fri, 17 May 2019 09:01:40 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

> ;; 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?

Maybe even better: call it with call-interactively?


        Stefan




reply via email to

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