Subject: bug#52457: 28.0.90; elp-restore-list and elp-reset-list cannot be used interactively, add elp-restore-package

From: Lars Ingebrigtsen <[email-masked]>
Date: Sun, 19 Dec 2021 14:22:11 +0100

Daniel Mendler <[email-masked]> writes:

> The Emacs profiler elp.el provides two commands elp-restore-list and
> elp-reset-list, which are supposed to be used interactively.
> However these commands have an invalid interactive specification. See
> the FIXMEs in elp.el.

I've now fixed this in Emacs 29.

> Furthermore I propose the addition of an elp-restore-package command,
> which would be symmetric with elp-instrument-package and the pair of
> commands elp-instrument-function/elp-restore-function.
>
> (defun elp-restore-package (prefix)
>   "Remove instrumentation from functions with names starting with PREFIX."
>   (interactive "SPrefix: ")
>   (elp-restore-list
>    (mapcar #'intern
>            (all-completions (symbol-name prefix)
>                             obarray 'elp-profilable-p))))

Makes sense to me; pushed to Emacs 29.

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