From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: A Soare Newsgroups: gmane.emacs.devel Subject: Re: HELP, PLEASE! Syntax problem! Date: Fri, 27 Nov 2009 08:16:24 +0000 (UTC) Message-ID: References: <20091125125810.GA4734@muc.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1259309835 22138 80.91.229.12 (27 Nov 2009 08:17:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 27 Nov 2009 08:17:15 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 27 09:17:08 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 1NDw0o-0001Xg-MD for ged-emacs-devel@m.gmane.org; Fri, 27 Nov 2009 09:17:07 +0100 Original-Received: from localhost ([127.0.0.1]:55289 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NDw0o-0008JY-6j for ged-emacs-devel@m.gmane.org; Fri, 27 Nov 2009 03:17:06 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NDw0i-0008Hp-TP for emacs-devel@gnu.org; Fri, 27 Nov 2009 03:17:00 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NDw0e-0008D0-6a for emacs-devel@gnu.org; Fri, 27 Nov 2009 03:17:00 -0500 Original-Received: from [199.232.76.173] (port=50417 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NDw0e-0008Cx-19 for emacs-devel@gnu.org; Fri, 27 Nov 2009 03:16:56 -0500 Original-Received: from mx20.gnu.org ([199.232.41.8]:63502) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NDw0d-00082E-Pc for emacs-devel@gnu.org; Fri, 27 Nov 2009 03:16:55 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NDw0a-0005mM-Jt for emacs-devel@gnu.org; Fri, 27 Nov 2009 03:16:52 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.50) id 1NDw0U-0001RC-3e for emacs-devel@gnu.org; Fri, 27 Nov 2009 09:16:46 +0100 Original-Received: from nat-240.ro.66.com ([91.201.80.240]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 27 Nov 2009 09:16:46 +0100 Original-Received: from alinsoar by nat-240.ro.66.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 27 Nov 2009 09:16:46 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 41 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 91.201.80.240 (Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.5) Gecko/20091109 Ubuntu/9.10 (karmic) Firefox/3.5.5) X-detected-operating-system: by mx20.gnu.org: GNU/Linux 2.6 (newer, 3) 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:117854 Archived-At: > Hello Stefan, Hello Emacs, > > In the following fragment of code: > > 1 int a = foo ( > 2 1); > 3 #define X(A, B) \ > 4 do { \ > 5 printf (A, B); \ > 6 } while (0) > > 7 int a = foo ( > 8 1); > > , there is a C macro between lines 3 and 6. The syntax-table properties > here have been manipulated (see below). Putting point at the "(" in L5 > and doing C-M-n takes point to after ")" ON LINE 8. Similar things > happen with C-M-p, C-M-u from various places inside the macro > For me it works correctly: GNU Emacs 23.1.50.1 (i686-pc-linux-gnu, GTK+ Version 2.18.3) of 2009-11-23 Have you tried also the semantic-mode? Normally the semantic mode should never miss (locally or globally), unless the code has bugs. Alin