From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#11321: 24.0.95; forward-sexp fails on string Date: Tue, 24 Apr 2012 08:45:29 -0400 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1335271586 4923 80.91.229.3 (24 Apr 2012 12:46:26 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 24 Apr 2012 12:46:26 +0000 (UTC) Cc: 11321@debbugs.gnu.org To: Leo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Apr 24 14:46:25 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SMf8T-00026I-CZ for geb-bug-gnu-emacs@m.gmane.org; Tue, 24 Apr 2012 14:46:25 +0200 Original-Received: from localhost ([::1]:34691 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SMf8S-0001LC-2W for geb-bug-gnu-emacs@m.gmane.org; Tue, 24 Apr 2012 08:46:24 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:53224) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SMf8O-0001HH-Mg for bug-gnu-emacs@gnu.org; Tue, 24 Apr 2012 08:46:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SMf8J-0006eB-OU for bug-gnu-emacs@gnu.org; Tue, 24 Apr 2012 08:46:20 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49256) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SMf8J-0006e6-Kh for bug-gnu-emacs@gnu.org; Tue, 24 Apr 2012 08:46:15 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SMf94-0004i5-8O for bug-gnu-emacs@gnu.org; Tue, 24 Apr 2012 08:47:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 24 Apr 2012 12:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11321 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 11321-submit@debbugs.gnu.org id=B11321.133527158318038 (code B ref 11321); Tue, 24 Apr 2012 12:47:02 +0000 Original-Received: (at 11321) by debbugs.gnu.org; 24 Apr 2012 12:46:23 +0000 Original-Received: from localhost ([127.0.0.1]:50286 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SMf8R-0004gt-HS for submit@debbugs.gnu.org; Tue, 24 Apr 2012 08:46:23 -0400 Original-Received: from ironport-out.teksavvy.com ([206.248.143.162]:37380) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SMf8Q-0004ge-O1 for 11321@debbugs.gnu.org; Tue, 24 Apr 2012 08:46:22 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AjEKACxOgk/O+LN8/2dsb2JhbABDtheCDAOBDIEIggkBAQQBViMFCws0EhQYDSSIHAW2MothhHkEpEWBXYMD X-IronPort-AV: E=Sophos;i="4.75,391,1330923600"; d="scan'208";a="176411568" Original-Received: from 206-248-179-124.dsl.teksavvy.com (HELO pastel.home) ([206.248.179.124]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 24 Apr 2012 08:45:29 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 34A1F58F68; Tue, 24 Apr 2012 08:45:29 -0400 (EDT) In-Reply-To: (Leo's message of "Tue, 24 Apr 2012 12:12:07 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:59441 Archived-At: > Could someone explain what is going on? Is this a bug? Thanks. Here's my explanation: when you do the first C-M-f, syntax-propertize has not yet been applied to the end of the triple-quoted-string, so its end is not properly marked and forward-sexp doesn't find it. The C-M-f at point 6 moves point such that the end of the string does get displayed, thus forcing application of syntax-propertize to the problematic area, so the C-M-f at point 8 finds that the string has already been processed in its entirety (or at least both the beginning and the end have been processed, which are the only parts that matter), leading to C-M-f working right this time. IOW, the problem is that syntax-propertize is currently applied "just in time" for font-lock, but not "just in time" for forward-sexp. Stefan