From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: CC Mode Signals an Error Date: Mon, 25 Feb 2008 21:36:09 +0000 Message-ID: <20080225213609.GA4485@muc.de> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1203974609 26679 80.91.229.12 (25 Feb 2008 21:23:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 Feb 2008 21:23:29 +0000 (UTC) Cc: emacs-devel@gnu.org To: Herbert Euler Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 25 22:23:54 2008 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 1JTknf-0003gz-QC for ged-emacs-devel@m.gmane.org; Mon, 25 Feb 2008 22:23:52 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JTkn9-0004HE-NU for ged-emacs-devel@m.gmane.org; Mon, 25 Feb 2008 16:23:19 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JTkn3-0004Ev-0H for emacs-devel@gnu.org; Mon, 25 Feb 2008 16:23:13 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JTkn1-0004Bw-7A for emacs-devel@gnu.org; Mon, 25 Feb 2008 16:23:12 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JTkn1-0004Bi-2W for emacs-devel@gnu.org; Mon, 25 Feb 2008 16:23:11 -0500 Original-Received: from colin.muc.de ([193.149.48.1] helo=mail.muc.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JTkn0-0007HB-LF for emacs-devel@gnu.org; Mon, 25 Feb 2008 16:23:11 -0500 Original-Received: (qmail 19527 invoked by uid 3782); 25 Feb 2008 21:23:08 -0000 Original-Received: from acm.muc.de (p57AF4618.dip.t-dialin.net [87.175.70.24]) by colin2.muc.de (tmda-ofmipd) with ESMTP; Mon, 25 Feb 2008 22:23:06 +0100 Original-Received: (qmail 4535 invoked by uid 1000); 25 Feb 2008 21:36:09 -0000 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.9i X-Delivery-Agent: TMDA/1.1.5 (Fettercairn) X-Primary-Address: acm@muc.de X-detected-kernel: by monty-python.gnu.org: FreeBSD 4.6-4.9 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:90435 Archived-At: Hi, Guanpeng! On Mon, Feb 25, 2008 at 04:21:02PM +0800, Herbert Euler wrote: > Hi Alan, > I found cc mode signals an error. To reproduce: > 1. $ emacs -Q > 2. C-x C-f x.c (an empty file should be able to reproduce) > 3. Type `#' > Emacs signals an error: "End of buffer". I have located the position > that the error is signaled, it is in c-neutralize-syntax-in-CPP. In > the above use case, this function is invoked as follows: > (c-neutralize-syntax-in-CPP 1 2 0) > error--> End of buffer > Oops, I forgot to fill the subject field. No problems! I've fixed the bug and commited the fix to savannah (in cc-mode.el). Thanks for the report. > Regards, > Guanpeng Xu -- Alan Mackenzie (Nuremberg, Germany).