From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#38406: 27.0.50; post-self-insert-hook does not hold its contract in cc-mode derived modes Date: Wed, 4 Dec 2019 23:04:27 +0200 Message-ID: <798bda88-41a7-361c-c01b-22ca4d6138e0@yandex.ru> References: <20191130143638.GA6716@ACM> <20191201150738.GB5085@ACM> <83imn0lyed.fsf@gnu.org> <20191201192709.GE5085@ACM> <83blsrn58a.fsf@gnu.org> <20191204204159.GA7587@ACM> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="13032"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 Cc: 38406@debbugs.gnu.org To: Alan Mackenzie , Eli Zaretskii , yyoncho@gmail.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Dec 04 22:26:21 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 1iccA8-0003E3-P2 for geb-bug-gnu-emacs@m.gmane.org; Wed, 04 Dec 2019 22:26:20 +0100 Original-Received: from localhost ([::1]:47350 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iccA7-0008Tc-GB for geb-bug-gnu-emacs@m.gmane.org; Wed, 04 Dec 2019 16:26:19 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41986) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1icc9u-0008Sh-Ir for bug-gnu-emacs@gnu.org; Wed, 04 Dec 2019 16:26:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1icc9s-0006gh-7U for bug-gnu-emacs@gnu.org; Wed, 04 Dec 2019 16:26:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36780) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1icc9p-0006dk-CI for bug-gnu-emacs@gnu.org; Wed, 04 Dec 2019 16:26:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1icbqU-0005Bc-65 for bug-gnu-emacs@gnu.org; Wed, 04 Dec 2019 16:06:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 04 Dec 2019 21:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38406 X-GNU-PR-Package: emacs Original-Received: via spool by 38406-submit@debbugs.gnu.org id=B38406.157549350419824 (code B ref 38406); Wed, 04 Dec 2019 21:06:02 +0000 Original-Received: (at 38406) by debbugs.gnu.org; 4 Dec 2019 21:05:04 +0000 Original-Received: from localhost ([127.0.0.1]:42748 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1icbpX-00059g-Mn for submit@debbugs.gnu.org; Wed, 04 Dec 2019 16:05:03 -0500 Original-Received: from mail-wr1-f41.google.com ([209.85.221.41]:40424) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1icbpV-00058c-BR for 38406@debbugs.gnu.org; Wed, 04 Dec 2019 16:05:01 -0500 Original-Received: by mail-wr1-f41.google.com with SMTP id c14so894130wrn.7 for <38406@debbugs.gnu.org>; Wed, 04 Dec 2019 13:05:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=7JlDxUDtNZf7Jus0YxZljp2tdUp3ELd+Zbc4LcflzJk=; b=YzhQdk9STIs0c8TQqNUjNqIyNkMeeiK7Fgsr/qwyRSUO0sA6vNZ9USWoUqlIYLWJY+ aCuy4r+cIGMJJ40VpVBBbBfPZ+Bzwr6xxb3D+h9p4n8Zxkfgd5QBs1Rw03wXdRYhGA3R 7LmoJv4toK0njvx5ToX7KFU29N6uoCMzUIeLhbgdZO6wkZd5o7yKzvRv4rh7TI5EPr4N 4wq3Rnx149i9m8SA8bIkKYqUsVvOHVCOmFb0nQcSAdHAZoolr2cS5CGOooYxSDqfxPwA 8/v3pJiSHFqYE9zldQ2M9OMhA3win9VbTZShB7GaIvJlajvYtcbEclS6mNwC8eyjT9S0 KRAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=7JlDxUDtNZf7Jus0YxZljp2tdUp3ELd+Zbc4LcflzJk=; b=D0t4r3290ruZhnXBvAJVM5T/ID5EwV/bs42UEPMJbtRHsBgin5mijLbbDFN6WWf4wp /xT4XFppRmpVugGty4V9dWZOiDsHX9uYrFQsq2bLB7EttfT3efih8s41E9v9+8DEUbz3 s5ITNNwfg+JqiQeLjVYhBkDHWVDhMgGNqpc2M2Tr46XZ6TTNHPfB3IMi7e74I65+Biz8 +TUJSM1CAkA5qjedBP/b35S+O92qpWNqWmv6V0OFvTWZn0Pzsv2gcnVSaG+8Ka4LQb8z i01twsTlfhDLHG58ufVr1Cx48mhmjGs0X91ymQXAoxT1/K5lSmt1n30jMEF+PpsXohCo 2ZpA== X-Gm-Message-State: APjAAAVLG6YsfDwD2/mTsQlA9fNQHyCsDFGkrmdhW2y1d1A+qtQ92EEh DtOIq6JBUQ9wZi90/BRSTj8J8MbN X-Google-Smtp-Source: APXvYqwgFf6Q/N61gCr7AVta3YljJtj8J4aw9OP5rFDLQL5n3ez1q8WIqbm+3MICTZr7Vcp3nisYkw== X-Received: by 2002:a5d:55d1:: with SMTP id i17mr6123330wrw.165.1575493470490; Wed, 04 Dec 2019 13:04:30 -0800 (PST) Original-Received: from [192.168.0.5] ([212.50.117.215]) by smtp.googlemail.com with ESMTPSA id z13sm8324550wmi.18.2019.12.04.13.04.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Dec 2019 13:04:29 -0800 (PST) In-Reply-To: <20191204204159.GA7587@ACM> Content-Language: en-US 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:172856 Archived-At: On 04.12.2019 22:41, Alan Mackenzie wrote: > +(defvar c--unsafe-post-self-insert-hook-functions > + '(smie-blink-matching-open > + electric-pair-post-self-insert-function > + blink-paren-post-self-insert-function > + electric-indent-post-self-insert-function > + electric-layout-post-self-insert-function > + electric-quote-post-self-insert-function) > + "Known unsafe functions when members of `post-self-insert-hook' in CC Mode") I don't see how filtering out a bunch of popular consumers of post-self-insert-hook can make it "act as per its contract again". More surprisingly, what did smie-blink-matching-open and blink-paren-post-self-insert-function ever do so wrong? Neither of them modifies the buffer's contents.