From: "Tobias C. Rittweiler" <tcr@freebits.de>
To: emacs-devel@gnu.org
Subject: character syntax of linefeed?
Date: Tue, 24 Nov 2009 11:45:15 +0100 [thread overview]
Message-ID: <874ookw69w.fsf@freebits.de> (raw)
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? Can I count on it
being ">"?
Additionally: It seems that CR has a syntax type of `symbol' since
version 22, but it was ">" on 21.
-T.
next reply other threads:[~2009-11-24 10:45 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-24 10:45 Tobias C. Rittweiler [this message]
2009-11-24 10:58 ` character syntax of linefeed? Andreas Schwab
2009-11-24 12:09 ` Tobias C. Rittweiler
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=874ookw69w.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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).