emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: character syntax of linefeed?


From: Tobias C. Rittweiler
Subject: Re: character syntax of linefeed?
Date: Tue, 24 Nov 2009 13:09:53 +0100
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/23.0.60 (gnu/linux)

Andreas Schwab <address@hidden> writes:

> "Tobias C. Rittweiler" <address@hidden> writes:
>
>> Quoting 35.2.1 Table of Syntax Classes:
>>
>>   -- Syntax class: whitespace character
>>      "Whitespace characters" (designated by ` ' or `-') separate symbols
>>      and words from each other.  [...]  Space, tab, newline and formfeed
>>      are classified as whitespace in almost all major modes.
>>
>> However, if I open, say, an empty foo.el or foo.c file, press RET
>> and then M-: (list (string (char-before))
>>                    (string (char-syntax (char-before))))
>>
>> I get ("
>>        " ">"), i.e. a syntax of type 'endcomment'.
>>
>> This behaviour seems to go through 23,22, and 21, so it's definitively
>> not new. :-)
>>
>> My question is, is the above paragraph just wrong?
>
> In which way does that contradict "almost all major modes"?

It seems to exclude most programming modes. If you can speak of "almost
all major modes" even though it excludes almost all programming modes,
probably depends on what you use Emacs for. Though I agree that "just
wrong" in my OP was worded too strong.

  -T.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]