[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#52457: 28.0.90; elp-restore-list and elp-reset-list cannot be used i
From: |
Lars Ingebrigtsen |
Subject: |
bug#52457: 28.0.90; elp-restore-list and elp-reset-list cannot be used interactively, add elp-restore-package |
Date: |
Sun, 19 Dec 2021 14:22:11 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Daniel Mendler <mail@daniel-mendler.de> 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