[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Avoiding loading cc-langs (was: Ordering in `source' property, and a
Re: Avoiding loading cc-langs (was: Ordering in `source' property, and auto-loading of c-lang-defconsts)
Sat, 6 Sep 2014 10:12:33 +0000
On Mon, Sep 01, 2014 at 06:43:37PM -0400, Stefan Monnier wrote:
> In my attempt to understand a bit more how cc-mode works, here's the
> next question:
> - why do we work so hard to try and make cc-langs unnecessary at run-time?
I think it more likely that when Martin created the c-lang-defvar
mechanism, he partitioned the code such that what was not needed at
run-time was placed in the separate file cc-langs.el, so as not to
burden the run-time store occupancy needlessly.
> I mean, if you look at c-lang-const, or c-make-init-lang-vars-fun,
> you'll see we have up to 3 different ways to do the same thing in
> different circumstances.
I think all these functions are cooperating to achieve one thing. I'm
not sure what you mean here by "the same thing".
> Is it only for performance reasons?
I don't think so. As I said, I think it [the not loading of cc-langs at
run time] is to reduce store occupancy.
Alan Mackenzie (Nuremberg, Germany).