From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: character syntax of linefeed? Date: Tue, 24 Nov 2009 11:58:58 +0100 Message-ID: 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 1259060526 10831 80.91.229.12 (24 Nov 2009 11:02:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 24 Nov 2009 11:02:06 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Tobias C. Rittweiler" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 24 12:01:59 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 1NCt8H-0003Iw-8H for ged-emacs-devel@m.gmane.org; Tue, 24 Nov 2009 12:00:29 +0100 Original-Received: from localhost ([127.0.0.1]:45010 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NCt8G-0002Bc-Jj for ged-emacs-devel@m.gmane.org; Tue, 24 Nov 2009 06:00:28 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NCt89-0002BR-HT for emacs-devel@gnu.org; Tue, 24 Nov 2009 06:00:21 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NCt84-0002Ad-7Q for emacs-devel@gnu.org; Tue, 24 Nov 2009 06:00:20 -0500 Original-Received: from [199.232.76.173] (port=51610 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NCt84-0002AY-2C for emacs-devel@gnu.org; Tue, 24 Nov 2009 06:00:16 -0500 Original-Received: from mx1.redhat.com ([209.132.183.28]:10571) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NCt83-0005yb-Nx for emacs-devel@gnu.org; Tue, 24 Nov 2009 06:00:15 -0500 Original-Received: from int-mx04.intmail.prod.int.phx2.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.17]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id nAOAx1QV029800 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 24 Nov 2009 05:59:01 -0500 Original-Received: from hase.home (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx04.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id nAOAwwHP006235; Tue, 24 Nov 2009 05:59:00 -0500 X-Yow: .. Do you like ``TENDER VITTLES?''? In-Reply-To: <874ookw69w.fsf@freebits.de> (Tobias C. Rittweiler's message of "Tue, 24 Nov 2009 11:45:15 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) X-Scanned-By: MIMEDefang 2.67 on 10.5.11.17 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:117668 Archived-At: "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"? Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."