From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: npostavs@users.sourceforge.net Newsgroups: gmane.emacs.bugs Subject: bug#11321: 24.0.95; forward-sexp fails on string Date: Sat, 05 Nov 2016 15:47:09 -0400 Message-ID: <87fun5ogjm.fsf@users.sourceforge.net> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1478375255 29503 195.159.176.226 (5 Nov 2016 19:47:35 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 5 Nov 2016 19:47:35 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) Cc: 11321@debbugs.gnu.org, Leo To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Nov 05 20:47:30 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c36vn-0004ye-IB for geb-bug-gnu-emacs@m.gmane.org; Sat, 05 Nov 2016 20:47:11 +0100 Original-Received: from localhost ([::1]:56207 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c36vq-0003jt-H7 for geb-bug-gnu-emacs@m.gmane.org; Sat, 05 Nov 2016 15:47:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51625) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c36vj-0003j7-Fc for bug-gnu-emacs@gnu.org; Sat, 05 Nov 2016 15:47:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c36ve-0002Bh-Jb for bug-gnu-emacs@gnu.org; Sat, 05 Nov 2016 15:47:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:58993) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c36ve-0002BY-GH for bug-gnu-emacs@gnu.org; Sat, 05 Nov 2016 15:47:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1c36ve-0005hj-AD for bug-gnu-emacs@gnu.org; Sat, 05 Nov 2016 15:47:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: npostavs@users.sourceforge.net Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 05 Nov 2016 19: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.147837519120824 (code B ref 11321); Sat, 05 Nov 2016 19:47:02 +0000 Original-Received: (at 11321) by debbugs.gnu.org; 5 Nov 2016 19:46:31 +0000 Original-Received: from localhost ([127.0.0.1]:46159 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c36v8-0005PR-RW for submit@debbugs.gnu.org; Sat, 05 Nov 2016 15:46:31 -0400 Original-Received: from mail-it0-f51.google.com ([209.85.214.51]:38688) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c36v6-0005Ix-Il; Sat, 05 Nov 2016 15:46:28 -0400 Original-Received: by mail-it0-f51.google.com with SMTP id q124so45819483itd.1; Sat, 05 Nov 2016 12:46:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=PbpmhmG4z603x1Wwv5zRVdNPMoTsFBSxQk2H+64toCk=; b=kwc3h3iAC8Ky3opnIm0xSDZr0S46WtoxOtJpJ0M4cVEeEA0jbmwDk0TtQ2SKVA249J xIkbBkWMIgffIkzTVq5DyKwv9aVEwWPCygu7zIu7OAzT0QNGdZm3qGy5UvS1zA4pOkiy i2Qmyptihu/+MsOW83tPaqsXe9OK7pa4f8Zm9r9T4bM+UnS0VwKEQnT0qPxAl0B6FBZe xoyhlRUxg7aPUzz817QIf3tULX9yNmP6LXW99fDIot5Sk26fWvzRelEBSxdPVYgNPXGa LXIZ+n2DiTqVZXp+o79VdP4xecO0jjbDB8yqzqZRd+DLNI2gWh4s5gxDH6XBMvL9h1cD JkZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=PbpmhmG4z603x1Wwv5zRVdNPMoTsFBSxQk2H+64toCk=; b=GPm5fR+PMBbuf7rQ544qoNZwCXlepFpK6PJnOjk71/pu+CyQUUOqAymd749lahlbb2 ul/ZjkfVDgScZSKMoVwV7MwkHh77PR43aTG7i1eofFCZA3sLDdz7rqlcqX5GHIyrUJNy pno6tZ71dyzVwTEEvpeLVs43SJRKzlNBfMJzs93ZZVv63QFkXGU5GMpv6swjx/yWiF7q ZLmtLzrtwUtVfvdyZnvXhjuCi+W1c7OystvqugxqQLPABPj37BqRnQY2sUbxlFCR59yy YTI/p0bksxpjY8zTjTQ1x+AYwDn/+MB26WBHTkgKzYtQaQugegKrZOOxmP85u5oL66yw RPSA== X-Gm-Message-State: ABUngvcHpDUwKJO/FrsxgvuNlnVh3Dsf84vQt8oyvhgns2zuCfjw05G4VnDo3YFAj9Uy+Q== X-Received: by 10.36.33.5 with SMTP id e5mr233076ita.89.1478375183192; Sat, 05 Nov 2016 12:46:23 -0700 (PDT) Original-Received: from zony ([45.2.7.130]) by smtp.googlemail.com with ESMTPSA id 62sm1070201itl.19.2016.11.05.12.46.22 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 05 Nov 2016 12:46:22 -0700 (PDT) In-Reply-To: (Stefan Monnier's message of "Tue, 24 Apr 2012 08:45:29 -0400") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:125382 Archived-At: found 11321 24.2 tags 11321 fixed close 11321 24.3 quit Stefan Monnier writes: >> 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. I can reproduce in 24.2 and below, but seems to be fixed in 24.3 and above.