From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#15998: 24.3; forward-sexp (scan-sexps) doesn't do well with some SEXPs Date: Sun, 07 Jul 2019 09:28:08 -0400 Message-ID: References: <6CEED119478A9shigeru.fukaya@gmail.com> <7CEEED1244961shigeru.fukaya@gmail.com> <8CEF00CAB165Bshigeru.fukaya@gmail.com> <875zoe4mvs.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="53922"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Lars Ingebrigtsen , Shigeru Fukaya , 15998@debbugs.gnu.org To: Noam Postavsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jul 07 15:29:09 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hk7E4-000Dw5-AE for geb-bug-gnu-emacs@m.gmane.org; Sun, 07 Jul 2019 15:29:08 +0200 Original-Received: from localhost ([::1]:35412 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hk7E3-00084u-BR for geb-bug-gnu-emacs@m.gmane.org; Sun, 07 Jul 2019 09:29:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38889) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hk7Dy-00084o-Tu for bug-gnu-emacs@gnu.org; Sun, 07 Jul 2019 09:29:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hk7Dx-0002Bk-V5 for bug-gnu-emacs@gnu.org; Sun, 07 Jul 2019 09:29:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47497) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hk7Dx-0002Bb-RM for bug-gnu-emacs@gnu.org; Sun, 07 Jul 2019 09:29:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hk7Dx-0004Tv-MU for bug-gnu-emacs@gnu.org; Sun, 07 Jul 2019 09:29:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 07 Jul 2019 13:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15998 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 15998-submit@debbugs.gnu.org id=B15998.156250610517177 (code B ref 15998); Sun, 07 Jul 2019 13:29:01 +0000 Original-Received: (at 15998) by debbugs.gnu.org; 7 Jul 2019 13:28:25 +0000 Original-Received: from localhost ([127.0.0.1]:56318 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hk7DM-0004Sy-ND for submit@debbugs.gnu.org; Sun, 07 Jul 2019 09:28:24 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:57252) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hk7DJ-0004Sk-5w for 15998@debbugs.gnu.org; Sun, 07 Jul 2019 09:28:23 -0400 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id CE1638116B; Sun, 7 Jul 2019 09:28:14 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 9E26380748; Sun, 7 Jul 2019 09:28:09 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1562506089; bh=8kEHvV735t7w0Q8/BSt+0RGdXAs7cXDmcVA4OLwEdw8=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=FU7rd7NVosfgtJTWp9jDHYVTFH+4gQCOOwwj0CKqNjq1Sj3yaqEh4WfoTFgdoklM9 XC8HyilhNADfNG6qXklauYab5mWdC4kh+UVk7J5fh/mk4WqGFQETpcHF0RNsMXk3OF 0UKRP818jhJ5Ar2iOLTJviy+NHFpwLdcW126Q26Ut3/vGV323igygcx/gkc0+lg1tD Mpy7hKrgsTXYQa7ggxl5CEku7JBK93CVIvW5wtMhDuRxzy5UAvw7ERedXYKDs/OkBd 0+tWExGI+ToUCxoz6CtIySsdoclsaICj05NNrGYZw23buY6NKEiGE+sc82CZDkCDiL XYBVMRVJAxvdQ== Original-Received: from pastel (76-10-138-228.dsl.teksavvy.com [76.10.138.228]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 648A912096F; Sun, 7 Jul 2019 09:28:09 -0400 (EDT) In-Reply-To: <875zoe4mvs.fsf@gmail.com> (Noam Postavsky's message of "Sat, 06 Jul 2019 22:08:39 -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: 209.51.188.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:162279 Archived-At: >> No, but I think syntax-propertize can take care of those things. > The patch below seems to work, no new sexp movement commands needed? It should work indeed, tho I'm not sure it'll fix the original problem, because I don't know *where* the original problem happened and this patch only fixes the case where we do such navigation in emacs-lisp-mode, but things #s(...) and #&"..." are *very* rare in those buffers. So I'm not completely sure the cost imposed by this patch is worth the benefit. Maybe we could start by adding those rules to the elisp-byte-code-mode? Stefan