GNU bug report logs -
#71354
Replace anonymous lambda timers with named functions for better tracing
Previous Next
Reported by: Matthew Bauer <mjbauer95 <at> gmail.com>
Date: Tue, 4 Jun 2024 03:35:02 UTC
Severity: wishlist
Tags: moreinfo, patch
Fixed in version 31.1
Done: Stefan Kangas <stefankangas <at> gmail.com>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 71354 in the body.
You can then email your comments to 71354 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#71354
; Package
emacs
.
(Tue, 04 Jun 2024 03:35:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Matthew Bauer <mjbauer95 <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Tue, 04 Jun 2024 03:35:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Tags: patch
I noticed a few timers found in ‘M-x list-timers’ were anonymous lambdas
that show up like this:
* 0.5s t #<subr F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_9>
That’s not particularly helpful when trying to figure out what timers
are being run. I tracked down the two that I have configured to eldoc
and jit-lock. This gives them names that can be traced.
In GNU Emacs 30.0.50 (build 1, aarch64-apple-darwin23.5.0, NS
appkit-2487.60 Version 14.5 (Build 23F79))
Repository revision: 0cb511b33bc96fc30d8e5286a474b4eea54817e3
Repository branch: master
Windowing system distributor 'Apple', version 10.3.2487
System Description: macOS 14.5
Configured using:
'configure
--prefix=/nix/store/bj6mdh15nkgh2xbdzzsly43m9q7mi0zp-emacs-git-20240531.0
--disable-build-details --with-modules --disable-ns-self-contained
--with-ns --with-compress-install --with-toolkit-scroll-bars
--with-native-compilation --without-imagemagick --with-mailutils
--without-small-ja-dic --with-tree-sitter --without-xinput2
--without-xwidgets --without-dbus --without-selinux'
[remove-anonymous-timer-lambdas.patch (text/patch, attachment)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#71354
; Package
emacs
.
(Tue, 04 Jun 2024 08:23:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 71354 <at> debbugs.gnu.org (full text, mbox):
Matthew Bauer <mjbauer95 <at> gmail.com> writes:
> Tags: patch
>
>
> I noticed a few timers found in ‘M-x list-timers’ were anonymous lambdas
> that show up like this:
>
> * 0.5s t #<subr F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_9>
>
> That’s not particularly helpful when trying to figure out what timers
> are being run. I tracked down the two that I have configured to eldoc
> and jit-lock. This gives them names that can be traced.
I'm okay with the change. Another fix maybe more general would have
having more information in the subr name. I think Alan is working on
this in bug#66750 but I suspect it will not go in for emacs 30.
Andrea
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#71354
; Package
emacs
.
(Tue, 11 Feb 2025 19:41:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 71354 <at> debbugs.gnu.org (full text, mbox):
Andrea Corallo <acorallo <at> gnu.org> writes:
> Matthew Bauer <mjbauer95 <at> gmail.com> writes:
>
>> Tags: patch
>>
>>
>> I noticed a few timers found in ‘M-x list-timers’ were anonymous lambdas
>> that show up like this:
>>
>> * 0.5s t #<subr F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_9>
>>
>> That’s not particularly helpful when trying to figure out what timers
>> are being run. I tracked down the two that I have configured to eldoc
>> and jit-lock. This gives them names that can be traced.
>
> I'm okay with the change. Another fix maybe more general would have
> having more information in the subr name. I think Alan is working on
> this in bug#66750 but I suspect it will not go in for emacs 30.
Thanks, but could you please resend this as a git patch as formatted by
git format-patch -1
and preferably also with a ChangeLog as per CONTRIBUTE.
Thanks in advance.
Severity set to 'wishlist' from 'normal'
Request was from
Stefan Kangas <stefankangas <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Wed, 12 Feb 2025 07:10:02 GMT)
Full text and
rfc822 format available.
Added tag(s) moreinfo.
Request was from
Stefan Kangas <stefankangas <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Sun, 23 Feb 2025 00:55:03 GMT)
Full text and
rfc822 format available.
Reply sent
to
Stefan Kangas <stefankangas <at> gmail.com>
:
You have taken responsibility.
(Tue, 04 Mar 2025 01:45:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Matthew Bauer <mjbauer95 <at> gmail.com>
:
bug acknowledged by developer.
(Tue, 04 Mar 2025 01:45:02 GMT)
Full text and
rfc822 format available.
Message #20 received at 71354-done <at> debbugs.gnu.org (full text, mbox):
Version: 31.1
Stefan Kangas <stefankangas <at> gmail.com> writes:
> Andrea Corallo <acorallo <at> gnu.org> writes:
>
>> Matthew Bauer <mjbauer95 <at> gmail.com> writes:
>>
>>> Tags: patch
>>>
>>>
>>> I noticed a few timers found in ‘M-x list-timers’ were anonymous lambdas
>>> that show up like this:
>>>
>>> * 0.5s t #<subr F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_9>
>>>
>>> That’s not particularly helpful when trying to figure out what timers
>>> are being run. I tracked down the two that I have configured to eldoc
>>> and jit-lock. This gives them names that can be traced.
>>
>> I'm okay with the change. Another fix maybe more general would have
>> having more information in the subr name. I think Alan is working on
>> this in bug#66750 but I suspect it will not go in for emacs 30.
>
> Thanks, but could you please resend this as a git patch as formatted by
>
> git format-patch -1
>
> and preferably also with a ChangeLog as per CONTRIBUTE.
>
> Thanks in advance.
I reformatted it, added a ChangeLog, and installed it in your name.
I'm therefore closing this bug report. Thanks for the patch!
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 01 Apr 2025 11:25:15 GMT)
Full text and
rfc822 format available.
This bug report was last modified 95 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.