all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* character syntax of linefeed?
@ 2009-11-24 10:45 Tobias C. Rittweiler
  2009-11-24 10:58 ` Andreas Schwab
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Tobias C. Rittweiler @ 2009-11-24 10:45 UTC (permalink / raw
  To: emacs-devel


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.





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-11-25 10:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2009-11-25 10:45 ` A Soare

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.