From: "Tobias C. Rittweiler" <tcr@freebits.de>
To: emacs-devel@gnu.org
Subject: Re: character syntax of linefeed?
Date: Tue, 24 Nov 2009 13:09:53 +0100 [thread overview]
Message-ID: <87zl6cunse.fsf@freebits.de> (raw)
In-Reply-To: m36390tci5.fsf@hase.home
Andreas Schwab <schwab@linux-m68k.org> writes:
> "Tobias C. Rittweiler" <tcr@freebits.de> 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.
next prev parent reply other threads:[~2009-11-24 12:09 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-24 10:45 character syntax of linefeed? Tobias C. Rittweiler
2009-11-24 10:58 ` Andreas Schwab
2009-11-24 12:09 ` Tobias C. Rittweiler [this message]
2009-11-24 14:12 ` Stefan Monnier
2009-11-25 10:45 ` A Soare
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87zl6cunse.fsf@freebits.de \
--to=tcr@freebits.de \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.