* bug#17463: 24.3.90; invoking c-mode always loads `cl'
@ 2014-05-11 13:49 Shigeru Fukaya
2014-05-11 18:18 ` Glenn Morris
2014-09-10 21:50 ` Alan Mackenzie
0 siblings, 2 replies; 7+ messages in thread
From: Shigeru Fukaya @ 2014-05-11 13:49 UTC (permalink / raw)
To: 17463
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#17463: 24.3.90; invoking c-mode always loads `cl'
2014-05-11 13:49 bug#17463: 24.3.90; invoking c-mode always loads `cl' Shigeru Fukaya
@ 2014-05-11 18:18 ` Glenn Morris
2014-05-11 20:08 ` Glenn Morris
2014-09-10 21:50 ` Alan Mackenzie
1 sibling, 1 reply; 7+ messages in thread
From: Glenn Morris @ 2014-05-11 18:18 UTC (permalink / raw)
To: Shigeru Fukaya; +Cc: 17463
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#17463: 24.3.90; invoking c-mode always loads `cl'
2014-05-11 18:18 ` Glenn Morris
@ 2014-05-11 20:08 ` Glenn Morris
2014-05-11 20:27 ` Shigeru Fukaya
0 siblings, 1 reply; 7+ messages in thread
From: Glenn Morris @ 2014-05-11 20:08 UTC (permalink / raw)
To: Shigeru Fukaya; +Cc: 17463
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.
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#17463: 24.3.90; invoking c-mode always loads `cl'
2014-05-11 20:08 ` Glenn Morris
@ 2014-05-11 20:27 ` Shigeru Fukaya
2014-05-13 17:59 ` Glenn Morris
0 siblings, 1 reply; 7+ messages in thread
From: Shigeru Fukaya @ 2014-05-11 20:27 UTC (permalink / raw)
To: Glenn Morris; +Cc: 17463
>>> 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
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#17463: 24.3.90; invoking c-mode always loads `cl'
2014-05-11 20:27 ` Shigeru Fukaya
@ 2014-05-13 17:59 ` Glenn Morris
2014-06-14 23:54 ` Glenn Morris
0 siblings, 1 reply; 7+ messages in thread
From: Glenn Morris @ 2014-05-13 17:59 UTC (permalink / raw)
To: Stefan Monnier; +Cc: 17463, Shigeru Fukaya
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.
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#17463: 24.3.90; invoking c-mode always loads `cl'
2014-05-13 17:59 ` Glenn Morris
@ 2014-06-14 23:54 ` Glenn Morris
0 siblings, 0 replies; 7+ messages in thread
From: Glenn Morris @ 2014-06-14 23:54 UTC (permalink / raw)
To: Stefan Monnier; +Cc: 17463, Shigeru Fukaya
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.
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#17463: 24.3.90; invoking c-mode always loads `cl'
2014-05-11 13:49 bug#17463: 24.3.90; invoking c-mode always loads `cl' Shigeru Fukaya
2014-05-11 18:18 ` Glenn Morris
@ 2014-09-10 21:50 ` Alan Mackenzie
1 sibling, 0 replies; 7+ messages in thread
From: Alan Mackenzie @ 2014-09-10 21:50 UTC (permalink / raw)
To: 17463-done
Bug fixed (in revision #117860).
--
Alan Mackenzie (Nuremberg, Germany).
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2014-09-10 21:50 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-11 13:49 bug#17463: 24.3.90; invoking c-mode always loads `cl' Shigeru Fukaya
2014-05-11 18:18 ` Glenn Morris
2014-05-11 20:08 ` Glenn Morris
2014-05-11 20:27 ` Shigeru Fukaya
2014-05-13 17:59 ` Glenn Morris
2014-06-14 23:54 ` Glenn Morris
2014-09-10 21:50 ` Alan Mackenzie
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.