From: Stefan Monnier <monnier@iro.umontreal.ca>
To: "Tobias C. Rittweiler" <tcr@freebits.de>
Cc: emacs-devel@gnu.org
Subject: Re: character syntax of linefeed?
Date: Tue, 24 Nov 2009 09:12:10 -0500 [thread overview]
Message-ID: <jwviqd010br.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <874ookw69w.fsf@freebits.de> (Tobias C. Rittweiler's message of "Tue, 24 Nov 2009 11:45:15 +0100")
> 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'.
Elisp has comments of the form ;...\n, so clearly LF needs to be an
end-comment marker. The same will hold for any major mode where there
are comments that end at LF.
> Can I count on it being ">"?
In Elisp mode, yes. In general of course not: that's why we have
syntax-tables: so that its contents can be different in
different situations.
Stefan
next prev parent reply other threads:[~2009-11-24 14:12 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
2009-11-24 14:12 ` Stefan Monnier [this message]
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=jwviqd010br.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
--cc=tcr@freebits.de \
/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.