GNU bug report logs -
#70696
[PATCH] Autoload `re-disassemble'
Previous Next
Reported by: Ihor Radchenko <yantar92 <at> posteo.net>
Date: Wed, 1 May 2024 11:29:01 UTC
Severity: normal
Tags: notabug, patch, wontfix
Done: Eli Zaretskii <eliz <at> gnu.org>
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 70696 in the body.
You can then email your comments to 70696 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#70696
; Package
emacs
.
(Wed, 01 May 2024 11:29:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Ihor Radchenko <yantar92 <at> posteo.net>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Wed, 01 May 2024 11:29: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
Hi,
I have recently discovered a new `re-disassemble' command while reading
NEWS. However, the command is not available by default - one needs to
(require 'disass). I think it should be autoloaded, just like another
function in disass.el - `disassemble'.
In GNU Emacs 30.0.50 (build 4, x86_64-pc-linux-gnu, GTK+ Version
3.24.41, cairo version 1.18.0) of 2024-05-01 built on localhost
Repository revision: cde58b309588008707cc8b00919eb24801e42eb6
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12101013
System Description: Gentoo Linux
Configured using:
'configure --enable-checking=yes,glyphs CFLAGS=-g3'
[0001-Autoload-re-disassemble.patch (text/patch, attachment)]
[Message part 3 (text/plain, inline)]
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#70696
; Package
emacs
.
(Thu, 02 May 2024 10:14:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 70696 <at> debbugs.gnu.org (full text, mbox):
> From: Ihor Radchenko <yantar92 <at> posteo.net>
> Date: Wed, 01 May 2024 11:28:48 +0000
>
> I have recently discovered a new `re-disassemble' command while reading
> NEWS. However, the command is not available by default - one needs to
> (require 'disass). I think it should be autoloaded, just like another
> function in disass.el - `disassemble'.
The doc string says:
This function is mainly intended for maintenance of Emacs itself
and may change at any time. It requires Emacs to be built with
`--enable-checking'."
So I'm not sure we want this auto-loaded. Adding Mattias and Stefan
to the discussion.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#70696
; Package
emacs
.
(Thu, 02 May 2024 10:23:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 70696 <at> debbugs.gnu.org (full text, mbox):
2 maj 2024 kl. 12.13 skrev Eli Zaretskii <eliz <at> gnu.org>:
> This function is mainly intended for maintenance of Emacs itself
> and may change at any time. It requires Emacs to be built with
> `--enable-checking'."
>
> So I'm not sure we want this auto-loaded.
I don't think it's important to auto-load it either.
(Ihor, see it like this: the fact that you want it conveniently accessible means that you are one of a select few who have a reason to use it, and cool enough to add your own local autoload.)
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#70696
; Package
emacs
.
(Thu, 02 May 2024 10:28:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 70696 <at> debbugs.gnu.org (full text, mbox):
"Mattias Engdegård" <mattias.engdegard <at> gmail.com> writes:
>> This function is mainly intended for maintenance of Emacs itself
>> and may change at any time. It requires Emacs to be built with
>> `--enable-checking'."
>>
>> So I'm not sure we want this auto-loaded.
>
> I don't think it's important to auto-load it either.
>
> (Ihor, see it like this: the fact that you want it conveniently accessible means that you are one of a select few who have a reason to use it, and cool enough to add your own local autoload.)
AFAIK, these kinds of helper functions are usually defined in C code and
are available without any requires as long as Emacs is compiled with
right flags. Having to do (require 'disass) was a surprise - I had to
search Emacs sources.
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#70696
; Package
emacs
.
(Thu, 02 May 2024 11:20:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 70696 <at> debbugs.gnu.org (full text, mbox):
> From: Ihor Radchenko <yantar92 <at> posteo.net>
> Cc: Eli Zaretskii <eliz <at> gnu.org>, 70696 <at> debbugs.gnu.org, Stefan Monnier
> <monnier <at> iro.umontreal.ca>
> Date: Thu, 02 May 2024 10:27:39 +0000
>
> "Mattias Engdegård" <mattias.engdegard <at> gmail.com> writes:
>
> > (Ihor, see it like this: the fact that you want it conveniently accessible means that you are one of a select few who have a reason to use it, and cool enough to add your own local autoload.)
>
> AFAIK, these kinds of helper functions are usually defined in C code and
> are available without any requires as long as Emacs is compiled with
> right flags. Having to do (require 'disass) was a surprise - I had to
> search Emacs sources.
I wonder why it was a surprise. I'm quite used to the fact that some
functions and variables are not known until I load their package. You
seem to say that it never happens to you? How come? Emacs has gobs of
stuff that is not autoloaded, including commands and user options.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#70696
; Package
emacs
.
(Thu, 02 May 2024 11:25:02 GMT)
Full text and
rfc822 format available.
Message #20 received at 70696 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> gnu.org> writes:
>> AFAIK, these kinds of helper functions are usually defined in C code and
>> are available without any requires as long as Emacs is compiled with
>> right flags. Having to do (require 'disass) was a surprise - I had to
>> search Emacs sources.
>
> I wonder why it was a surprise. I'm quite used to the fact that some
> functions and variables are not known until I load their package. You
> seem to say that it never happens to you? How come? Emacs has gobs of
> stuff that is not autoloaded, including commands and user options.
Not in general. I was surprised in the context of regexp-related
function. I generally have an expectation that regular expressions are
available out of the box, leading to assumption that debug functionality
for regular expressions will be available too.
That said, I am OK with either decision you make about this. It is just
_me_ who were surprised. If others are not, there is no reason to change
upstream to meet my intuition.
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#70696
; Package
emacs
.
(Thu, 02 May 2024 13:29:02 GMT)
Full text and
rfc822 format available.
Message #23 received at 70696 <at> debbugs.gnu.org (full text, mbox):
> I have recently discovered a new `re-disassemble' command while reading
> NEWS. However, the command is not available by default - one needs to
> (require 'disass). I think it should be autoloaded, just like another
> function in disass.el - `disassemble'.
The functionality was designed under the assumption that it's used for
the benefit of those working on the regexp engine.
AFAIK you're not working on the regexp engine (are you?), so I'm curious
what you're using this function for: maybe it is more generally useful
than we thought and it deserves to be less hidden.
Stefan
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#70696
; Package
emacs
.
(Thu, 02 May 2024 14:27:02 GMT)
Full text and
rfc822 format available.
Message #26 received at 70696 <at> debbugs.gnu.org (full text, mbox):
Stefan Monnier <monnier <at> iro.umontreal.ca> writes:
> The functionality was designed under the assumption that it's used for
> the benefit of those working on the regexp engine.
>
> AFAIK you're not working on the regexp engine (are you?), so I'm curious
> what you're using this function for: maybe it is more generally useful
> than we thought and it deserves to be less hidden.
I saw the NEWS entry:
** New function 're-disassemble' to see the innards of a regexp.
If you compiled with '--enable-checking', you can use this to help debug
either your regexp performance problems or the regexp engine.
and I noticed the "regexp performance" part, which Org mode sometimes
struggles with (we just had a bug report recently where the problem lies
with way too complex regexp that makes things slow)
So, I tried to play around with this new function, attempting to see if
it can be of any use to simplify regular expressions. (Spoiler: alas, it
is not by itself useful, without knowing the internals of Emacs regexp
engine.)
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#70696
; Package
emacs
.
(Thu, 02 May 2024 14:41:02 GMT)
Full text and
rfc822 format available.
Message #29 received at 70696 <at> debbugs.gnu.org (full text, mbox):
> So, I tried to play around with this new function, attempting to see if
> it can be of any use to simplify regular expressions. (Spoiler: alas, it
> is not by itself useful, without knowing the internals of Emacs regexp
> engine.)
Thanks. That confirms my impression that it's useful only for people
working on the regexp engine.
Stefan
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#70696
; Package
emacs
.
(Sat, 04 May 2024 11:42:02 GMT)
Full text and
rfc822 format available.
Message #32 received at 70696 <at> debbugs.gnu.org (full text, mbox):
tags 70696 notabug wontfix
close 70696
thanks
> Cc: 70696 <at> debbugs.gnu.org
> Date: Thu, 02 May 2024 10:40:04 -0400
> From: Stefan Monnier via "Bug reports for GNU Emacs,
> the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
>
> > So, I tried to play around with this new function, attempting to see if
> > it can be of any use to simplify regular expressions. (Spoiler: alas, it
> > is not by itself useful, without knowing the internals of Emacs regexp
> > engine.)
>
> Thanks. That confirms my impression that it's useful only for people
> working on the regexp engine.
I guess this means we don't want to autoload this command, and I'm
therefore closing this bug as wontfix.
Thanks.
Added tag(s) wontfix and notabug.
Request was from
Eli Zaretskii <eliz <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Sat, 04 May 2024 11:42:02 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
70696 <at> debbugs.gnu.org and Ihor Radchenko <yantar92 <at> posteo.net>
Request was from
Eli Zaretskii <eliz <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Sat, 04 May 2024 11:42:03 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 02 Jun 2024 11:24:10 GMT)
Full text and
rfc822 format available.
This bug report was last modified 1 year and 75 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.