From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Noam Postavsky 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:47:04 -0400 Message-ID: <87zhlq2bzb.fsf@gmail.com> 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="125796"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2.90 (gnu/linux) Cc: Michael Heerdegen , Lars Ingebrigtsen , 15998@debbugs.gnu.org, Shigeru Fukaya To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jul 07 15:48:11 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 1hk7WU-000Wb3-Dn for geb-bug-gnu-emacs@m.gmane.org; Sun, 07 Jul 2019 15:48:11 +0200 Original-Received: from localhost ([::1]:35440 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hk7WT-0001KY-0C for geb-bug-gnu-emacs@m.gmane.org; Sun, 07 Jul 2019 09:48:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42172) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hk7WN-0001KE-P3 for bug-gnu-emacs@gnu.org; Sun, 07 Jul 2019 09:48:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hk7WM-0002sw-Nw for bug-gnu-emacs@gnu.org; Sun, 07 Jul 2019 09:48:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47513) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hk7WM-0002si-KL for bug-gnu-emacs@gnu.org; Sun, 07 Jul 2019 09:48:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hk7WM-000765-FN for bug-gnu-emacs@gnu.org; Sun, 07 Jul 2019 09:48:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 07 Jul 2019 13:48:02 +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.156250723527214 (code B ref 15998); Sun, 07 Jul 2019 13:48:02 +0000 Original-Received: (at 15998) by debbugs.gnu.org; 7 Jul 2019 13:47:15 +0000 Original-Received: from localhost ([127.0.0.1]:56331 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hk7Va-00074q-Tx for submit@debbugs.gnu.org; Sun, 07 Jul 2019 09:47:15 -0400 Original-Received: from mail-io1-f49.google.com ([209.85.166.49]:34262) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hk7VX-00074c-Ce for 15998@debbugs.gnu.org; Sun, 07 Jul 2019 09:47:12 -0400 Original-Received: by mail-io1-f49.google.com with SMTP id k8so29053626iot.1 for <15998@debbugs.gnu.org>; Sun, 07 Jul 2019 06:47:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=iNJUD2bgfUhZiUMvu2quBauZOcIEvev3V/id6d8vOss=; b=q3ceG6+I31mTD9MCTWbm82Q1GLax6HzRvBAhJmEF873ulsxcj2SX1N1r9rFS2j0RpM sBQlEu2cLvqAeB57JCy1DbfsqCym6L724Gxi695xGqVPc0yp2x+84fcIa5PMxZNrcyKh 9CV94EZjJKH83VMKmGDoikilqIYn/oVMlEx1//mVroccw8Tbo+KzbCpiJGoCRkQVDomY 6CzOA8RuZfMQOofwJBD6Mx8P2MhIRjl8EHrw9fCB7JMN5rGcfWCs0/jvo5L1168vQyaw uK51PGZDoKXHDJUsjFiQuvI+XeSh3SBvx8ElQQuH22J/GyYJqOgIHhN+TaG6ZkI145Bj ngDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=iNJUD2bgfUhZiUMvu2quBauZOcIEvev3V/id6d8vOss=; b=N/lULRceLTyvCXbwmY1lg3hHo/M5+kTZqxYJOzjS4Ehi9S/7Kg+4ZvRRJ9NncClQMx 1yjHDaplecrbSg82aaSKo7SKV1N3vIwBx1vSAxJKmUDZY5eUGQGckntiso2RSzE5Ktw+ eUiZutPIr2vA49Uuszo6tJORLBl7DUMGAzrQrF1voG1L4qbZSdjD2MsXOG/uDmgNv9D/ cSLNhOQDWlFK0tfdTj8YkhyA9IUf7XsTnV5CWNU1QTc/a9hXRP3v1y1C6JZbGMx62pra cI9pw3qMiSKdxIo972wrq6p1tj9n23Z+peaSH6riqp8m6v497yPBbyfs9cojYXLK8J7g c5bA== X-Gm-Message-State: APjAAAXBZP2bHawsMoZt+uN3uztSMaYyWZEz43vCbAP9jSG6x+ixqnbQ 5l6C2TvAYr0//j0TBf3ZgwI= X-Google-Smtp-Source: APXvYqxbrj6K5dnGcETNjhecsB3NJ/riOkLCZ6wAO9O5JD91GgUEWWwYh5F9XuOF4foA2uZ2pP5Alw== X-Received: by 2002:a02:ab83:: with SMTP id t3mr15491766jan.133.1562507225641; Sun, 07 Jul 2019 06:47:05 -0700 (PDT) Original-Received: from minid (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.gmail.com with ESMTPSA id n21sm10923089ioh.30.2019.07.07.06.47.04 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 07 Jul 2019 06:47:05 -0700 (PDT) In-Reply-To: (Stefan Monnier's message of "Sun, 07 Jul 2019 09:28:08 -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:162280 Archived-At: Stefan Monnier writes: >>> 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. I tend to end up with those things in my *scratch* buffer, after evaluating various expressions (more so the #s(...) than #&"...", I don't have much call for messing with bool vectors). Michael bumped into an instance of ## in org-list.el (see merged Bug#30132), although that seems like a mistake in org. > So I'm not completely sure the cost imposed by this patch is worth > the benefit. On the benefit side, it would allow removing the hack I put in for indentation of #s(...) (that was for IELM, see Bug#31984). On the other hand, this seems to be breaking some edebug tests, so that needs more investigation before it could be installed.