From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Tobias C. Rittweiler" Newsgroups: gmane.emacs.devel Subject: Re: character syntax of linefeed? Date: Tue, 24 Nov 2009 13:09:53 +0100 Message-ID: <87zl6cunse.fsf@freebits.de> References: <874ookw69w.fsf@freebits.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1259064642 24303 80.91.229.12 (24 Nov 2009 12:10:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 24 Nov 2009 12:10:42 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 24 13:10:36 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NCuE6-0006Wy-PZ for ged-emacs-devel@m.gmane.org; Tue, 24 Nov 2009 13:10:35 +0100 Original-Received: from localhost ([127.0.0.1]:60513 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NCuE5-0002xH-Pu for ged-emacs-devel@m.gmane.org; Tue, 24 Nov 2009 07:10:33 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NCuDx-0002uJ-0Q for emacs-devel@gnu.org; Tue, 24 Nov 2009 07:10:25 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NCuDr-0002qA-NS for emacs-devel@gnu.org; Tue, 24 Nov 2009 07:10:24 -0500 Original-Received: from [199.232.76.173] (port=51327 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NCuDr-0002q1-Av for emacs-devel@gnu.org; Tue, 24 Nov 2009 07:10:19 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:50603) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NCuDq-0005jk-PT for emacs-devel@gnu.org; Tue, 24 Nov 2009 07:10:19 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.50) id 1NCuDo-0006PW-Uo for emacs-devel@gnu.org; Tue, 24 Nov 2009 13:10:16 +0100 Original-Received: from host146.natpool.mwn.de ([138.246.7.146]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 24 Nov 2009 13:10:16 +0100 Original-Received: from tcr by host146.natpool.mwn.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 24 Nov 2009 13:10:16 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 31 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: host146.natpool.mwn.de User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:nbJ63cqUsaepUmm66QpbAEyt0Hk= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:117672 Archived-At: Andreas Schwab writes: > "Tobias C. Rittweiler" 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.