From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: C++ mode and c-beginning-of-current-token Date: Thu, 17 May 2007 15:51:32 +0200 Message-ID: <464C5DE4.1010500@gmx.at> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1179410239 20546 80.91.229.12 (17 May 2007 13:57:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 17 May 2007 13:57:19 +0000 (UTC) Cc: acm@muc.de, emacs-devel@gnu.org, monnier@iro.umontreal.ca, handa@m17n.org To: Herbert Euler Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 17 15:57:16 2007 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 1HogTf-0004aB-EA for ged-emacs-devel@m.gmane.org; Thu, 17 May 2007 15:57:11 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hogbl-0001J5-Bh for ged-emacs-devel@m.gmane.org; Thu, 17 May 2007 10:05:33 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HogWi-0005wH-87 for emacs-devel@gnu.org; Thu, 17 May 2007 10:00:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HogWf-0005vJ-Qs for emacs-devel@gnu.org; Thu, 17 May 2007 10:00:19 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HogWf-0005vC-Gm for emacs-devel@gnu.org; Thu, 17 May 2007 10:00:17 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1HogOY-0000BZ-C6 for emacs-devel@gnu.org; Thu, 17 May 2007 09:51:54 -0400 Original-Received: (qmail invoked by alias); 17 May 2007 13:51:53 -0000 Original-Received: from M3141P015.adsl.highway.telekom.at (EHLO [88.117.40.143]) [88.117.40.143] by mail.gmx.net (mp010) with SMTP; 17 May 2007 15:51:53 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1+aIs0r7HSa0obKKCe3J9jLONDTsruWSA+ld9wIRz EzIqkUzLVbUgia User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: de-DE, de, en-us, en In-Reply-To: X-Y-GMX-Trusted: 0 X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) 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:71240 Archived-At: > Can I ask a silly question, too? There are two "calling"s of > UPDATE_SYNTAX_TABLE_BACKWARD in `skip_chars', one with the "argument" > (pos), the other with (pos - 1). To me, the second one does not look > like a typo, but a correct piece of code on purpose. Yes, changing it > >> from (pos - 1) to (pos) works, but it seems to be dangerous to me. I do have my own problems with UPDATE_SYNTAX_TABLE_BACKWARD. To reproduce with Emacs -Q define foo as (defun foo () (interactive) (put-text-property (1- (point)) (point) 'syntax-table '(2)) (setq parse-sexp-lookup-properties t)) open a text-mode buffer, insert a couple of non-word chars in the buffer, leave point after them, and type M-x foo followed by M-b. On my system it goes back by _two_ characters instead of one. I'm yet too silly to understand what's going on.