From: Lars Ingebrigtsen <larsi@gnus.org>
To: Daniel Mendler <mail@daniel-mendler.de>
Cc: 52457@debbugs.gnu.org
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 [thread overview]
Message-ID: <87mtkwrapo.fsf@gnus.org> (raw)
In-Reply-To: <b26604fc-6c69-7e84-4248-dd577b2fabaa@daniel-mendler.de> (Daniel Mendler's message of "Sun, 12 Dec 2021 20:43:54 +0100")
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
prev parent reply other threads:[~2021-12-19 13:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-12 19:43 bug#52457: 28.0.90; elp-restore-list and elp-reset-list cannot be used interactively, add elp-restore-package Daniel Mendler
2021-12-19 13:22 ` Lars Ingebrigtsen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87mtkwrapo.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=52457@debbugs.gnu.org \
--cc=mail@daniel-mendler.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).