From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#23443: 25.0.93; Temporary change to syntax-table is in effect during syntax-propertize Date: Sun, 8 May 2016 14:58:24 -0400 Message-ID: References: <1c56743e-4817-8373-fba9-3a3e21e37af7@yandex.ru> <318abec3-4ff6-f647-5754-dc061be63eaf@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1462733991 4605 80.91.229.3 (8 May 2016 18:59:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 8 May 2016 18:59:51 +0000 (UTC) Cc: 23443@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun May 08 20:59:40 2016 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 1azTv6-0003pj-Tf for geb-bug-gnu-emacs@m.gmane.org; Sun, 08 May 2016 20:59:13 +0200 Original-Received: from localhost ([::1]:37771 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1azTv6-0006E7-46 for geb-bug-gnu-emacs@m.gmane.org; Sun, 08 May 2016 14:59:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42042) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1azTv0-00069p-KH for bug-gnu-emacs@gnu.org; Sun, 08 May 2016 14:59:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1azTuw-0006go-6f for bug-gnu-emacs@gnu.org; Sun, 08 May 2016 14:59:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:59360) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1azTuw-0006gk-32 for bug-gnu-emacs@gnu.org; Sun, 08 May 2016 14:59:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1azTuv-0007FV-QS for bug-gnu-emacs@gnu.org; Sun, 08 May 2016 14:59:01 -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, 08 May 2016 18:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23443 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23443-submit@debbugs.gnu.org id=B23443.146273391227827 (code B ref 23443); Sun, 08 May 2016 18:59:01 +0000 Original-Received: (at 23443) by debbugs.gnu.org; 8 May 2016 18:58:32 +0000 Original-Received: from localhost ([127.0.0.1]:43464 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1azTuS-0007El-2I for submit@debbugs.gnu.org; Sun, 08 May 2016 14:58:32 -0400 Original-Received: from mail-oi0-f45.google.com ([209.85.218.45]:35386) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1azTuQ-0007EY-JL for 23443@debbugs.gnu.org; Sun, 08 May 2016 14:58:30 -0400 Original-Received: by mail-oi0-f45.google.com with SMTP id x19so189717271oix.2 for <23443@debbugs.gnu.org>; Sun, 08 May 2016 11:58:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc; bh=qmJ4frlVZfggr+OGyl7Cg7yIHcnQq+bZXlgIjv9tt3U=; b=R6DaqHiSzRPHbsEedFsXx1OwlQ9M40PiwNV68qIPTDSp1LO9Y7PpBlvtkOnuj9/Ltk VxZMFoJtft3yrbsffCJ4z14f1yiiQiqbLw7oFYkE15kYM7iylfeU2FdzJbT+MFgW0y4L ++NZ3uC6cSffLpjJ+8Tgj57uSbCNm6CFplZSla+WjPYokaYeDShFSD1X8FekMh2eDheL ehpbjrXoENGyGfVqVDuUBCpRMo8xBaqMJv3GyLNaLcQfcmXkvULDFspfp9XM5kqo4rQp ozxQtEb+6er/X/KlXEfs/qlJa3y8Ra8xM9R/hFsRaLssc0codicgNz/n8KOzw2JUj9PJ LuCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc; bh=qmJ4frlVZfggr+OGyl7Cg7yIHcnQq+bZXlgIjv9tt3U=; b=S30kKz1zj3fs0+ZL3vjD3n5J0T3xxqJA39UBniiEIcSEAT03aJjOT3jkix9O7E4TnW N/BK9tPawMOQ7a7Jytunnmmxv2WrZezCVU/xCy93BlqHsLjaD+MM2LGqlZ1eHOgmhV29 aLCPrHrkHFXnF1ew43wZb6D555j6o/FJdOmqXKqOP1UF/KDetrMXxCGjRwrscuno9Crp WhjwS8hSVHtgWlH8B3imD3llIH0pMTHV7Eh2MPS5rsD1BtUUM5nHf90KnqIlbit/xmwJ dUcDhd5QRqOf6PubwGjDw53z0hugIJCz8em2Jf1jU9LoIKTePbeSGA6VbieUkX4YTxzV 1g7g== X-Gm-Message-State: AOPr4FV8b1aatURVCs87hZ3yJRo1uJ7GMuJGV0nvFQWfbR4XKLdZ23+HpOPc6g/0EqDdksfkejNRYtFVHY/UlQ== X-Received: by 10.202.51.133 with SMTP id z127mr12232872oiz.202.1462733904801; Sun, 08 May 2016 11:58:24 -0700 (PDT) Original-Received: by 10.157.45.138 with HTTP; Sun, 8 May 2016 11:58:24 -0700 (PDT) In-Reply-To: <318abec3-4ff6-f647-5754-dc061be63eaf@yandex.ru> X-Google-Sender-Auth: 5ytPjYmFzQYUJNWBJ661L49kqWk 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:117993 Archived-At: On Sun, May 8, 2016 at 2:53 PM, Dmitry Gutov wrote: > On 05/08/2016 09:51 PM, Noam Postavsky wrote: > >> So yasnippet mustn't use scan-sexps whilst the syntax-table has been >> changed? > > > I don't know the whole issue, but it should be possible to reorganize the > code that when scan-sexps is called, the current syntax table is the > appropriate one. > > But I don't know why you're changing it in the first place. That scan-sexps is being to parse the snippet syntax, which is why it's not using the major-mode's syntax table. I suppose the proper way to fix this is to parse the whole snippet before inserting it into the buffer, but I was hoping to put off the code reorganization that would entail for a while longer.