GNU bug report logs -
#24802
emacs -Q -nw loads cl-lib
Previous Next
Reported by: Glenn Morris <rgm <at> gnu.org>
Date: Wed, 26 Oct 2016 16:41:02 UTC
Severity: normal
Found in version 26.0.50
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 24802 in the body.
You can then email your comments to 24802 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#24802
; Package
emacs
.
(Wed, 26 Oct 2016 16:41:02 GMT)
Full text and
rfc822 format available.
Message #3 received at submit <at> debbugs.gnu.org (full text, mbox):
Package: emacs
Version: 26.0.50
Current trunk on GNU/Linux in an xterm:
emacs -Q -nw
(featurep 'cl-lib) -> t
I believe this is because term/xterm.el now requires cl-lib at run-time.
You might want to consider:
i) Preload cl-lib - see previous discussions in list archives.
ii) Make term/*.el subject to same rules as files that are explicitly
listed in loadup.el - ie no requirements beyond those of loadup.
Added indication that bug 24802 blocks24655
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Wed, 26 Oct 2016 16:46:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#24802
; Package
emacs
.
(Wed, 26 Oct 2016 18:35:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 24802 <at> debbugs.gnu.org (full text, mbox):
> From: Glenn Morris <rgm <at> gnu.org>
> Date: Wed, 26 Oct 2016 12:40:16 -0400
>
> emacs -Q -nw
> (featurep 'cl-lib) -> t
>
> I believe this is because term/xterm.el now requires cl-lib at run-time.
>
> You might want to consider:
>
> i) Preload cl-lib - see previous discussions in list archives.
>
> ii) Make term/*.el subject to same rules as files that are explicitly
> listed in loadup.el - ie no requirements beyond those of loadup.
But why is it bad that a specific file loaded only by some sessions
needs to load cl-lib? Maybe I'm missing something, but I don't see
anything wrong here that needs to be fixed. E.g., how is it different
from, say, starting to compose email, which then causes message.el to
load half a dozen of additional packages?
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#24802
; Package
emacs
.
(Sun, 30 Oct 2016 23:50:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 24802 <at> debbugs.gnu.org (full text, mbox):
I'm saying that simply starting Emacs (and no more) should not load
any extra libraries beyond those of loadup [1].
This is obviously not comparable to starting Emacs and then
doing some arbitrary operation, like composing a mail.
As you said in
http://lists.gnu.org/archive/html/emacs-devel/2015-10/msg00095.html
Up until now, the rules for pre-loading package X were that either
(a) some preloaded package requires X, or (b) X will be
auto-loaded at the beginning of every session by some very
frequent operation, like visiting the first file or creating a
window or a frame.
Here we have case b), without needing any operation at all.
OK, it's not "every session", it's "every -nw session in an
xterm-like terminal", but IMO the same should apply.
[1] I don't count the actual term/*.el files themselves in this,
because those that aren't preloaded have traditionally been trivial.
Perhaps xterm.el has become so large, and is used (I guess) in such a
large fraction of without-x builds, that it should be preloaded in
such builds, as x-win.el is in with-x builds. I think that's a
separate issue though. It would however make the issue in this report
obvious.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#24802
; Package
emacs
.
(Mon, 31 Oct 2016 15:46:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 24802 <at> debbugs.gnu.org (full text, mbox):
> From: Glenn Morris <rgm <at> gnu.org>
> Cc: 24802 <at> debbugs.gnu.org
> Date: Sun, 30 Oct 2016 19:49:26 -0400
>
> As you said in
>
> http://lists.gnu.org/archive/html/emacs-devel/2015-10/msg00095.html
>
> Up until now, the rules for pre-loading package X were that either
> (a) some preloaded package requires X, or (b) X will be
> auto-loaded at the beginning of every session by some very
> frequent operation, like visiting the first file or creating a
> window or a frame.
>
> Here we have case b), without needing any operation at all.
>
> OK, it's not "every session", it's "every -nw session in an
> xterm-like terminal", but IMO the same should apply.
>
> [1] I don't count the actual term/*.el files themselves in this,
> because those that aren't preloaded have traditionally been trivial.
> Perhaps xterm.el has become so large, and is used (I guess) in such a
> large fraction of without-x builds, that it should be preloaded in
> such builds, as x-win.el is in with-x builds. I think that's a
> separate issue though. It would however make the issue in this report
> obvious.
That's exactly my line of reasoning: as long as we don't preload
xterm.el, we shouldn't regard its loading of other files a problem.
Reply sent
to
Eli Zaretskii <eliz <at> gnu.org>
:
You have taken responsibility.
(Sat, 02 Sep 2017 13:33:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
Glenn Morris <rgm <at> gnu.org>
:
bug acknowledged by developer.
(Sat, 02 Sep 2017 13:33:02 GMT)
Full text and
rfc822 format available.
Message #19 received at 24802-done <at> debbugs.gnu.org (full text, mbox):
> Date: Mon, 31 Oct 2016 17:45:16 +0200
> From: Eli Zaretskii <eliz <at> gnu.org>
> Cc: 24802 <at> debbugs.gnu.org
>
> > From: Glenn Morris <rgm <at> gnu.org>
> > Cc: 24802 <at> debbugs.gnu.org
> > Date: Sun, 30 Oct 2016 19:49:26 -0400
> >
> > As you said in
> >
> > http://lists.gnu.org/archive/html/emacs-devel/2015-10/msg00095.html
> >
> > Up until now, the rules for pre-loading package X were that either
> > (a) some preloaded package requires X, or (b) X will be
> > auto-loaded at the beginning of every session by some very
> > frequent operation, like visiting the first file or creating a
> > window or a frame.
> >
> > Here we have case b), without needing any operation at all.
> >
> > OK, it's not "every session", it's "every -nw session in an
> > xterm-like terminal", but IMO the same should apply.
> >
> > [1] I don't count the actual term/*.el files themselves in this,
> > because those that aren't preloaded have traditionally been trivial.
> > Perhaps xterm.el has become so large, and is used (I guess) in such a
> > large fraction of without-x builds, that it should be preloaded in
> > such builds, as x-win.el is in with-x builds. I think that's a
> > separate issue though. It would however make the issue in this report
> > obvious.
>
> That's exactly my line of reasoning: as long as we don't preload
> xterm.el, we shouldn't regard its loading of other files a problem.
In any case, your recipe yields nil with the current master, so even
if you disagree with the above reasoning, the original problem is now
gone, and I'm therefore closing this bug report.
Thanks.
Message #20 received at 24802-quiet <at> debbugs.gnu.org (full text, mbox):
e5cdb5c fixed this.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 01 Oct 2017 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 7 years and 264 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.