From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Zoltan Kemenczy" Newsgroups: gmane.emacs.devel Subject: cc-engine:c-guess-basic-syntax related problem in latest CVS Date: Mon, 7 Jul 2003 22:11:46 -0400 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <000901c344f6$48b52320$0701a8c0@rim.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1057630438 20400 80.91.224.249 (8 Jul 2003 02:13:58 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 8 Jul 2003 02:13:58 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue Jul 08 04:13:57 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19ZhzQ-0005Iu-00 for ; Tue, 08 Jul 2003 04:13:56 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19Zi9Y-00050J-00 for ; Tue, 08 Jul 2003 04:24:24 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19ZhzX-0003ov-Vu for emacs-devel@quimby.gnus.org; Mon, 07 Jul 2003 22:14:03 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19Zhyw-0003cc-Jl for emacs-devel@gnu.org; Mon, 07 Jul 2003 22:13:26 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19Zhyq-0003Lm-Dz for emacs-devel@gnu.org; Mon, 07 Jul 2003 22:13:21 -0400 Original-Received: from fep03-mail.bloor.is.net.cable.rogers.com ([66.185.86.73]) by monty-python.gnu.org with esmtp (Exim 4.20) id 19ZhxM-00027N-2r for emacs-devel@gnu.org; Mon, 07 Jul 2003 22:11:48 -0400 Original-Received: from zkemenczylt ([24.112.238.47]) by fep03-mail.bloor.is.net.cable.rogers.comESMTP <20030708021147.DIAK509514.fep03-mail.bloor.is.net.cable.rogers.com@zkemenczylt> for ; Mon, 7 Jul 2003 22:11:47 -0400 Original-To: X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4920.2300 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4920.2300 X-Authentication-Info: Submitted using SMTP AUTH LOGIN at fep03-mail.bloor.is.net.cable.rogers.com from [24.112.238.47] using ID at Mon, 7 Jul 2003 22:11:47 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:15476 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:15476 Try S-M-; (c-guess-basic-syntax) at different points within a buffer visiting a C source file that is *write-protected*... - I get a "Buffer is read-only: #" message in many places. If the buffer is made writeable, the syntactic information is returned... I poked around a bit with the debugger and since I don't know much about cc-engine I only got as far as 'c-remove-in-sws' being invoked from 'c-backward-sws' (something about removing `c-in-sws' properties...), couldn't come up with a fix... :-( A related question (that started all this) is that the point value of the syntactic information is now returned as '(syntax-symbol point-integer) list (it used to be a cons cell: '(symbol . point-integer)). This breaks my gud-find-class function inside gud.el. I fixed that function (to use more maintainable predicate functions on the syntactic info as opposed to the (car (cdr...)), but before I submit the patch, I'd like to ask if this change to the '(syntax-symbol point-integer) is there to stay... Regards, Zoltan Kemenczy (gud-jdb)