From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: npostavs@gmail.com Newsgroups: gmane.emacs.bugs Subject: bug#24749: Making sure syntax-propertize is called Date: Mon, 03 Jun 2019 16:04:05 -0400 Message-ID: <85r28abfm2.fsf@gmail.com> References: <87ef4awyb6.fsf@gmail.com> <87sgsqwjxp.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="199463"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.92 (windows-nt) Cc: 24749@debbugs.gnu.org, Vitalie Spinu To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jun 03 22:05: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.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hXtCg-000pln-NX for geb-bug-gnu-emacs@m.gmane.org; Mon, 03 Jun 2019 22:05:10 +0200 Original-Received: from localhost ([127.0.0.1]:40252 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hXtCf-00022s-Pu for geb-bug-gnu-emacs@m.gmane.org; Mon, 03 Jun 2019 16:05:09 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:53372) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hXtCZ-00022c-FL for bug-gnu-emacs@gnu.org; Mon, 03 Jun 2019 16:05:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hXtCY-0006bW-Gk for bug-gnu-emacs@gnu.org; Mon, 03 Jun 2019 16:05:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57906) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hXtCY-0006b0-Cr for bug-gnu-emacs@gnu.org; Mon, 03 Jun 2019 16:05:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hXtCY-0000z0-4J for bug-gnu-emacs@gnu.org; Mon, 03 Jun 2019 16:05:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: npostavs@gmail.com Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 03 Jun 2019 20:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24749 X-GNU-PR-Package: emacs Original-Received: via spool by 24749-submit@debbugs.gnu.org id=B24749.15595922553597 (code B ref 24749); Mon, 03 Jun 2019 20:05:02 +0000 Original-Received: (at 24749) by debbugs.gnu.org; 3 Jun 2019 20:04:15 +0000 Original-Received: from localhost ([127.0.0.1]:43217 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hXtBl-0000vv-Bx for submit@debbugs.gnu.org; Mon, 03 Jun 2019 16:04:15 -0400 Original-Received: from mail-it1-f174.google.com ([209.85.166.174]:39095) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hXtBj-0000vO-Gd for 24749@debbugs.gnu.org; Mon, 03 Jun 2019 16:04:11 -0400 Original-Received: by mail-it1-f174.google.com with SMTP id j204so23320471ite.4 for <24749@debbugs.gnu.org>; Mon, 03 Jun 2019 13:04: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=1eoGMoZD5a/B0ab3B6Gg4LGZSlNcWvRMiTbjbJWB9kI=; b=iocS85DvgXiFbE8fv5aFEhIY1nzPBtuJbu54I4m2/k1nyvTHpZhIp9amSW77BGUkoB MerR2CX1GhsI1fBkpn2NIo4HOXUywpU2ESlbhoqWDlqGFJmDLTo4lh1+nIFsHvIr/VfC tw2dRaOcS4Y2jix1zli4v5lnXiEX3yLyvovSbRl9XavVofNG/GatLDwaYp8n6vuWb57k YUQdVPjZDjLglwfROvVT8O/WDWpiTz92MxMcZp15g1WyGJVXTHgrm8RDXpiEV+0YKR7o douAbI+bZjHJYmHwYwAXmGRgljnZCWaPEVzqHCkif63Ko4eYwQIl2lGbnzHT5man4P5f +7jw== 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=1eoGMoZD5a/B0ab3B6Gg4LGZSlNcWvRMiTbjbJWB9kI=; b=mEVy2KRvoxiLRJNQuBEtToV7xWNzRBq8Z4rrnNFQ8vYlz0h0Fw1ncsC8SWdS0Bb608 mensoMZ8tUiVwxddqGIV2NBKagtCTxpb7zOHvLROCc/15iR0mRSylRE7YKAiQhlcpk7S mlyLjSEROwAVqHAQsB4Y0v0Rhi5y7Qc5hyuSM9mULC5iVkbU7S1aokyHicGF7ERAN94X 4BB8Bl2WIr9TtGCcFiWy1nSUQ4RfHv3SbpSquOzJlFomX3u1E8Qedl7B1vjs1NiC6xvh V82AdXn+l88k9Dm5gfDDvu5aa3RzdSOuJKf2ylJWhiQ1fjencmkl7hD4XWcZPlMnwOIp tnjQ== X-Gm-Message-State: APjAAAV0q9M4p3i6FfIiCojHvPewB1doSbn7xSFfCQnce6nrFFQz8C00 D+6s4bZiZDrUMnTazTbElx4bhDPG X-Google-Smtp-Source: APXvYqyS1PC3mrh+Tw+nPNaOOCqPuLC7HZ81PZeBkK44bHwRianLhqYPp6fL4RJa1G1rh5XIv0GgAg== X-Received: by 2002:a24:67d1:: with SMTP id u200mr17965322itc.131.1559592245603; Mon, 03 Jun 2019 13:04:05 -0700 (PDT) Original-Received: from vhost2 (CPE001143542e1f-CMf81d0f809fa0.cpe.net.cable.rogers.com. [99.230.51.196]) by smtp.gmail.com with ESMTPSA id c91sm259608itd.4.2019.06.03.13.04.04 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 03 Jun 2019 13:04:05 -0700 (PDT) In-Reply-To: (Stefan Monnier's message of "Mon, 03 Jun 2019 15:45:06 -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:160087 Archived-At: Stefan Monnier writes: >> It seems that the only(?) use case for a nil `parse-sexp-lookup-properties` is >> to set it to nil dynamically in specialized lookup code for performance >> reasons. Such code does let-bind it to nil already. > > I can't remember binding it to nil for performance reasons (tho maybe > that's the reason behind yasnippet.el's case), but we do let-bind it > temporarily to nil in a few cases as a hackish way to have a "different > view" of the buffer which happens to fit our needs. E.g. this is done > in font-latex.el and sm-c-mode.el. A "different view" of the buffer is the reason for yasnippet.el's use of it too: it's parsing braces in "snippet syntax", which is not related to the major mode's syntax. (Really, parsing of the snippet syntax should be done in a separate buffer to remove the need for this, but the parsing code is intertwined with the evaluation of lisp in some snippet constructs, so it's tricky to do that.)