GNU bug report logs - #17463
cc-langs loaded at runtime

Previous Next

Packages: cc-mode, emacs;

Reported by: Shigeru Fukaya <shigeru.fukaya <at> gmail.com>

Date: Sun, 11 May 2014 13:50:02 UTC

Severity: normal

Found in version 24.3.90

Done: Alan Mackenzie <acm <at> muc.de>

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 17463 in the body.
You can then email your comments to 17463 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#17463; Package emacs. (Sun, 11 May 2014 13:50:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Shigeru Fukaya <shigeru.fukaya <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 11 May 2014 13:50:03 GMT) Full text and rfc822 format available.

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

From: Shigeru Fukaya <shigeru.fukaya <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.3.90; invoking c-mode always loads `cl'
Date: Sun, 11 May 2014 22:49:25 +0900
c-mode loads `cc-langs' and it always, as it is execution time, loads `cl'.
I suspect in cc-langs

    (cc-external-require 'cl)

sholud be simply changed to

    (eval-when-compile 'cl)

as in cc-defs.


-- Shigeru




Information forwarded to bug-gnu-emacs <at> gnu.org, bug-cc-mode <at> gnu.org:
bug#17463; Package emacs,cc-mode. (Sun, 11 May 2014 18:19:01 GMT) Full text and rfc822 format available.

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

From: Glenn Morris <rgm <at> gnu.org>
To: Shigeru Fukaya <shigeru.fukaya <at> gmail.com>
Cc: 17463 <at> debbugs.gnu.org
Subject: Re: bug#17463: 24.3.90; invoking c-mode always loads `cl'
Date: Sun, 11 May 2014 14:18:25 -0400
Shigeru Fukaya wrote:

> c-mode loads `cc-langs' and it always, as it is execution time, loads `cl'.
> I suspect in cc-langs
>
>     (cc-external-require 'cl)
>
> sholud be simply changed to
>
>     (eval-when-compile 'cl)

It would be great if we were allowed to replace cc-bytecomp more
generally with standard syntax, as proposed in
http://debbugs.gnu.org/14496




Information forwarded to bug-gnu-emacs <at> gnu.org, bug-cc-mode <at> gnu.org:
bug#17463; Package emacs,cc-mode. (Sun, 11 May 2014 20:09:02 GMT) Full text and rfc822 format available.

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

From: Glenn Morris <rgm <at> gnu.org>
To: Shigeru Fukaya <shigeru.fukaya <at> gmail.com>
Cc: 17463 <at> debbugs.gnu.org
Subject: Re: bug#17463: 24.3.90; invoking c-mode always loads `cl'
Date: Sun, 11 May 2014 16:08:27 -0400
Glenn Morris wrote:

> Shigeru Fukaya wrote:
>
>> c-mode loads `cc-langs' and it always, as it is execution time, loads `cl'.
>> I suspect in cc-langs
>>
>>     (cc-external-require 'cl)
>>
>> sholud be simply changed to
>>
>>     (eval-when-compile 'cl)

Anyway, I don't think that's the real cause.

emacs -Q -f c-mode

is not supposed to load cc-langs, yet it does since 24.3.




Information forwarded to bug-gnu-emacs <at> gnu.org, bug-cc-mode <at> gnu.org:
bug#17463; Package emacs,cc-mode. (Sun, 11 May 2014 20:28:02 GMT) Full text and rfc822 format available.

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

From: Shigeru Fukaya <shigeru.fukaya <at> gmail.com>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 17463 <at> debbugs.gnu.org
Subject: Re: bug#17463: 24.3.90; invoking c-mode always loads `cl'
Date: Mon, 12 May 2014 05:27:52 +0900
>>> c-mode loads `cc-langs' and it always, as it is execution time, loads `cl'.
>>> I suspect in cc-langs
>>>
>>>     (cc-external-require 'cl)
>>>
>>> sholud be simply changed to
>>>
>>>     (eval-when-compile 'cl)
>
>Anyway, I don't think that's the real cause.
>
>emacs -Q -f c-mode
>
>is not supposed to load cc-langs, yet it does since 24.3.

I don't know well the real cause, at least in my environments (MingW
24.3, Cygwin 24.4),

(list (featurep 'cl) (featurep 'cc-langs))

return (t t) after "emacs -Q -f c-mode".

-- Shigeru




Severity set to 'important' from 'normal' Request was from Stefan Monnier <monnier <at> iro.umontreal.ca> to control <at> debbugs.gnu.org. (Sun, 11 May 2014 21:00:04 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org, bug-cc-mode <at> gnu.org:
bug#17463; Package emacs,cc-mode. (Tue, 13 May 2014 18:00:05 GMT) Full text and rfc822 format available.

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

From: Glenn Morris <rgm <at> gnu.org>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 17463 <at> debbugs.gnu.org, Shigeru Fukaya <shigeru.fukaya <at> gmail.com>
Subject: Re: bug#17463: 24.3.90; invoking c-mode always loads `cl'
Date: Tue, 13 May 2014 13:59:30 -0400
I think I bisected this to somewhere around r108513 on the current
emacs-24 branch. These are changes related to macro expansion.

108512 is ok  (emacs -Q -f c-mode does not load cc-langs)
108513 fails to build
108514 build infloops?
108515 build infloops?
108516 emacs -Q -f c-mode loads cc-langs

cc-mode tries to do different things in compiled code and uncompiled
code (yay; eg c-make-init-lang-vars-fun, which is what I think is
loading cc-langs). Perhaps we are getting the wrong version.




Information forwarded to bug-gnu-emacs <at> gnu.org, bug-cc-mode <at> gnu.org:
bug#17463; Package emacs,cc-mode. (Sat, 14 Jun 2014 23:55:01 GMT) Full text and rfc822 format available.

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

From: Glenn Morris <rgm <at> gnu.org>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 17463 <at> debbugs.gnu.org, Shigeru Fukaya <shigeru.fukaya <at> gmail.com>
Subject: Re: bug#17463: 24.3.90; invoking c-mode always loads `cl'
Date: Sat, 14 Jun 2014 19:54:54 -0400
The only things cc-langs uses from cl are delete-duplicates (perhaps
delete-dups would do) and mapcan (perhaps apply+mapcar would do).
I simply replaced them by their cl- versions.

Figuring out why cc-langs is loaded at runtime is beyond me.
I'll leave this aspect open as a cc-mode bug of normal priority.




Changed bug title to 'cc-langs loaded at runtime' from '24.3.90; invoking c-mode always loads `cl'' Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Sat, 14 Jun 2014 23:56:02 GMT) Full text and rfc822 format available.

Severity set to 'normal' from 'important' Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Sat, 14 Jun 2014 23:56:02 GMT) Full text and rfc822 format available.

Reply sent to Alan Mackenzie <acm <at> muc.de>:
You have taken responsibility. (Wed, 10 Sep 2014 21:56:02 GMT) Full text and rfc822 format available.

Notification sent to Shigeru Fukaya <shigeru.fukaya <at> gmail.com>:
bug acknowledged by developer. (Wed, 10 Sep 2014 21:56:03 GMT) Full text and rfc822 format available.

Message #31 received at 17463-done <at> debbugs.gnu.org (full text, mbox):

From: Alan Mackenzie <acm <at> muc.de>
To: 17463-done <at> debbugs.gnu.org
Subject: Re: bug#17463: 24.3.90; invoking c-mode always loads `cl'
Date: Wed, 10 Sep 2014 21:50:02 +0000
Bug fixed (in revision #117860).

-- 
Alan Mackenzie (Nuremberg, Germany).




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 09 Oct 2014 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 9 years and 202 days ago.

Previous Next


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