GNU bug report logs - #52457
28.0.90; elp-restore-list and elp-reset-list cannot be used interactively, add elp-restore-package

Previous Next

Package: emacs;

Reported by: Daniel Mendler <mail <at> daniel-mendler.de>

Date: Sun, 12 Dec 2021 19:45:02 UTC

Severity: normal

Found in version 28.0.90

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Daniel Mendler <mail <at> daniel-mendler.de>
Cc: 52457 <at> 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
Daniel Mendler <mail <at> 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




This bug report was last modified 3 years and 152 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.