[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: c-submode-indicators at wrong place in minor-mode-alist
From: |
Alan Mackenzie |
Subject: |
Re: c-submode-indicators at wrong place in minor-mode-alist |
Date: |
Sun, 18 Dec 2005 09:26:49 +0000 (GMT) |
Hi, Eli!
On Sat, 17 Dec 2005, Eli Zaretskii wrote:
>> Date: Fri, 16 Dec 2005 10:18:35 +0000 (GMT)
>> From: Alan Mackenzie <address@hidden>
>> Cc: address@hidden, Stefan Monnier <address@hidden>,
>> address@hidden
>> >CC mode seems to have become much more complicated, but that might be
>> >because its much more powerful. I don't know, I just find it hard to
>> >understand.
>> It is hard to understand. Partly, it's because C and friends are such a
>> dreadful languages (to parse, that is ;-)
>Really? as compared to what?
As compared with Emacs Lisp, certainly. ;-)
>From what I know, C is actually a relatively easily parsable language.
It is for a compiler, which parses from beginning to end. It's more
difficult for Emacs, which has to parse incomplete text, often backwards.
It's very context dependent: when is a "<" a less-than sign, when is a
template delimiter (OK, we're talking about C++ now)?
>From font-lock.el:
;; I am most proud and humbly honoured today [murmur murmur cough] to present
;; to you good people, the winner of the Second Millennium Award for The Most
;; Hairy Language Syntax. [Ahhh!] All rise please. [Shuffle shuffle
;; shuffle.] And a round of applause please. For... The C Language! [Roar.]
I don't know who wrote that, though. Jamie Zawinski? Simon Marshall?
--
Alan Mackenzie (Munich, Germany)