GNU bug report logs - #52400
[PATCH] Don't generate separate autoload file for htmlfontify.el

Previous Next

Package: emacs;

Reported by: Stefan Kangas <stefan <at> marxist.se>

Date: Fri, 10 Dec 2021 02:08:02 UTC

Severity: wishlist

Tags: patch

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.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 52400 in the body.
You can then email your comments to 52400 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#52400; Package emacs. (Fri, 10 Dec 2021 02:08:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Stefan Kangas <stefan <at> marxist.se>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 10 Dec 2021 02:08:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefan <at> marxist.se>
To: bug-gnu-emacs <at> gnu.org
Subject: [PATCH] Don't generate separate autoload file for htmlfontify.el
Date: Thu, 9 Dec 2021 18:07:24 -0800
[Message part 1 (text/plain, inline)]
Severity: wishlist

Is there any need for generating a separate file htmlfontify-loaddefs.el
file given that it only contains three definitions?  Or should we just
get rid of it as in the attached?
[0001-Don-t-generate-separate-autoload-file-for-htmlfontif.patch (text/x-diff, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#52400; Package emacs. (Fri, 10 Dec 2021 08:44:01 GMT) Full text and rfc822 format available.

Message #8 received at 52400 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Stefan Kangas <stefan <at> marxist.se>
Cc: 52400 <at> debbugs.gnu.org
Subject: Re: bug#52400: [PATCH] Don't generate separate autoload file for
 htmlfontify.el
Date: Fri, 10 Dec 2021 10:42:52 +0200
> From: Stefan Kangas <stefan <at> marxist.se>
> Date: Thu, 9 Dec 2021 18:07:24 -0800
> 
> Is there any need for generating a separate file htmlfontify-loaddefs.el
> file given that it only contains three definitions?  Or should we just
> get rid of it as in the attached?

I wouldn't touch these issues with a 3-mile pole.  They are fragile,
and once they work, having an extra file with 3 definitions is a price
I take every day.  It just isn't worth the effort to awaken these
sleeping dogs.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#52400; Package emacs. (Fri, 10 Dec 2021 13:34:02 GMT) Full text and rfc822 format available.

Message #11 received at 52400 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefan <at> marxist.se>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 52400 <at> debbugs.gnu.org
Subject: Re: bug#52400: [PATCH] Don't generate separate autoload file for
 htmlfontify.el
Date: Fri, 10 Dec 2021 13:32:51 +0000
Eli Zaretskii <eliz <at> gnu.org> writes:

> I wouldn't touch these issues with a 3-mile pole.  They are fragile,
> and once they work, having an extra file with 3 definitions is a price
> I take every day.  It just isn't worth the effort to awaken these
> sleeping dogs.

What are the risks in a case like this?  It seems to me that they are
low, in the sense that if we run into any problems we can just revert it
and live happily ever after.  What am I missing?

The main benefit for me is just a general reduction of complexity, but
admittedly it is small.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#52400; Package emacs. (Fri, 10 Dec 2021 13:38:02 GMT) Full text and rfc822 format available.

Message #14 received at 52400 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Stefan Kangas <stefan <at> marxist.se>
Cc: 52400 <at> debbugs.gnu.org
Subject: Re: bug#52400: [PATCH] Don't generate separate autoload file for
 htmlfontify.el
Date: Fri, 10 Dec 2021 15:37:19 +0200
> From: Stefan Kangas <stefan <at> marxist.se>
> Date: Fri, 10 Dec 2021 13:32:51 +0000
> Cc: 52400 <at> debbugs.gnu.org
> 
> Eli Zaretskii <eliz <at> gnu.org> writes:
> 
> > I wouldn't touch these issues with a 3-mile pole.  They are fragile,
> > and once they work, having an extra file with 3 definitions is a price
> > I take every day.  It just isn't worth the effort to awaken these
> > sleeping dogs.
> 
> What are the risks in a case like this?

That the build breaks.  Two possible variants of breakage:

  . the autoloads aren't updated when they should be
  . the rule for updating the autoloads is executedevery time you say
    "make", even if there was no change anywhere in Emacs

> It seems to me that they are low, in the sense that if we run into
> any problems we can just revert it and live happily ever after.

I say why take the risks, however low, if the problem is not serious
enough?

> The main benefit for me is just a general reduction of complexity, but
> admittedly it is small.

Exactly.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#52400; Package emacs. (Fri, 10 Dec 2021 15:23:02 GMT) Full text and rfc822 format available.

Message #17 received at 52400 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefan <at> marxist.se>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 52400 <at> debbugs.gnu.org
Subject: Re: bug#52400: [PATCH] Don't generate separate autoload file for
 htmlfontify.el
Date: Fri, 10 Dec 2021 15:22:12 +0000
Eli Zaretskii <eliz <at> gnu.org> writes:

> That the build breaks.  Two possible variants of breakage:
>
>   . the autoloads aren't updated when they should be
>   . the rule for updating the autoloads is executedevery time you say
>     "make", even if there was no change anywhere in Emacs

FWIW, I didn't see any of those issues in my testing.

> I say why take the risks, however low, if the problem is not serious
> enough?

Cruft inevitably adds to cognitive load.  A lot of it adds more, little
adds little.  We have a lot of it, IMO, so every little bit helps.

The problem is that if it exists, you will sometimes happen to look at
it and think "hmm, why is this file here".  I think this is the second
(or third?) time I stumble upon this particular file.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#52400; Package emacs. (Fri, 10 Dec 2021 16:48:01 GMT) Full text and rfc822 format available.

Message #20 received at 52400 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Stefan Kangas <stefan <at> marxist.se>
Cc: 52400 <at> debbugs.gnu.org
Subject: Re: bug#52400: [PATCH] Don't generate separate autoload file for
 htmlfontify.el
Date: Fri, 10 Dec 2021 18:46:45 +0200
> From: Stefan Kangas <stefan <at> marxist.se>
> Date: Fri, 10 Dec 2021 15:22:12 +0000
> Cc: 52400 <at> debbugs.gnu.org
> 
> > I say why take the risks, however low, if the problem is not serious
> > enough?
> 
> Cruft inevitably adds to cognitive load.

But it isn't cruft.  You tend to declare something "cruft" too easily.

> We have a lot of it, IMO, so every little bit helps.

No, we don't.  Please don't consider cruft anything that you think is
not right; there's more than one way to skin a fish.  People who
worked on Emacs before us weren't exactly incompetent, you know.

> The problem is that if it exists, you will sometimes happen to look at
> it and think "hmm, why is this file here".  I think this is the second
> (or third?) time I stumble upon this particular file.

Just get used to it being there, I say.  It doesn't do any harm,
although you seem to think it does.

We have enough real problems to deal with.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#52400; Package emacs. (Fri, 10 Dec 2021 19:46:01 GMT) Full text and rfc822 format available.

Message #23 received at 52400 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefan <at> marxist.se>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 52400 <at> debbugs.gnu.org
Subject: Re: bug#52400: [PATCH] Don't generate separate autoload file for
 htmlfontify.el
Date: Fri, 10 Dec 2021 19:45:35 +0000
Eli Zaretskii <eliz <at> gnu.org> writes:

> But it isn't cruft.  You tend to declare something "cruft" too easily.

This file is the result of an old optimization (some autoloads) that
were subsequently cleaned up.  (The non-optimized version would have
been to just require hfy-cmap.el.)  However, the clean-up didn't go far
enough, and thus we ended up with a file that I think can be accurately
described as cruft.

> No, we don't.  Please don't consider cruft anything that you think is
> not right; there's more than one way to skin a fish.  People who
> worked on Emacs before us weren't exactly incompetent, you know.

I don't think saying that some things have outgrown their usefulness or
could be done better reflects negatively on previous authors.

> Just get used to it being there, I say.  It doesn't do any harm,
> although you seem to think it does.

The "harm" here is exactly having to get used to it.  IOW, you may argue
that this is a very minor cleanup, but on the other hand the cost of
doing nothing is also non-zero.  Hackers will have to look at this for
another couple of decades, or until someone else thinks to install a
patch like the one I wrote.

However, since you seem to feel strongly about it, I won't insist.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#52400; Package emacs. (Sun, 05 Jun 2022 16:25:01 GMT) Full text and rfc822 format available.

Message #26 received at 52400 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Stefan Kangas <stefan <at> marxist.se>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 52400 <at> debbugs.gnu.org
Subject: Re: bug#52400: [PATCH] Don't generate separate autoload file for
 htmlfontify.el
Date: Sun, 05 Jun 2022 18:24:05 +0200
Stefan Kangas <stefan <at> marxist.se> writes:

> This file is the result of an old optimization (some autoloads) that
> were subsequently cleaned up.  (The non-optimized version would have
> been to just require hfy-cmap.el.)  However, the clean-up didn't go far
> enough, and thus we ended up with a file that I think can be accurately
> described as cruft.

I think that's the correct analysis here, so I've pushed Stefan's patch
to Emacs 29.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




bug marked as fixed in version 29.1, send any further explanations to 52400 <at> debbugs.gnu.org and Stefan Kangas <stefan <at> marxist.se> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sun, 05 Jun 2022 16:25:02 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. (Mon, 04 Jul 2022 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 296 days ago.

Previous Next


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