From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Alan Mackenzie 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: Mon, 2 Dec 2019 18:37:31 +0000 Message-ID: <20191202183731.GB4175@ACM> References: <20191130143638.GA6716@ACM> <20191201150738.GB5085@ACM> <20191201155842.GC5085@ACM> <83h82jncsl.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="58882"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mutt/1.10.1 (2018-07-13) Cc: yyoncho@gmail.com, 38406@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Dec 02 19:39:43 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 1ibqbm-000FCU-QT for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Dec 2019 19:39:42 +0100 Original-Received: from localhost ([::1]:43244 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ibqbl-0003aO-Iy for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Dec 2019 13:39:41 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33674) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ibqaB-0002m1-R9 for bug-gnu-emacs@gnu.org; Mon, 02 Dec 2019 13:38:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ibqaA-0001oN-PV for bug-gnu-emacs@gnu.org; Mon, 02 Dec 2019 13:38:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:32967) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ibqaA-0001oJ-Lb for bug-gnu-emacs@gnu.org; Mon, 02 Dec 2019 13:38:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ibqa9-0004gG-V8 for bug-gnu-emacs@gnu.org; Mon, 02 Dec 2019 13:38:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 02 Dec 2019 18:38:01 +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.157531185717962 (code B ref 38406); Mon, 02 Dec 2019 18:38:01 +0000 Original-Received: (at 38406) by debbugs.gnu.org; 2 Dec 2019 18:37:37 +0000 Original-Received: from localhost ([127.0.0.1]:38940 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ibqZl-0004fe-3m for submit@debbugs.gnu.org; Mon, 02 Dec 2019 13:37:37 -0500 Original-Received: from colin.muc.de ([193.149.48.1]:18993 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1ibqZj-0004fW-P3 for 38406@debbugs.gnu.org; Mon, 02 Dec 2019 13:37:36 -0500 Original-Received: (qmail 81770 invoked by uid 3782); 2 Dec 2019 18:37:34 -0000 Original-Received: from acm.muc.de (p4FE15992.dip0.t-ipconnect.de [79.225.89.146]) by colin.muc.de (tmda-ofmipd) with ESMTP; Mon, 02 Dec 2019 19:37:31 +0100 Original-Received: (qmail 4188 invoked by uid 1000); 2 Dec 2019 18:37:31 -0000 Content-Disposition: inline In-Reply-To: <83h82jncsl.fsf@gnu.org> X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de 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:172782 Archived-At: Hello, Eli. On Sun, Dec 01, 2019 at 20:03:38 +0200, Eli Zaretskii wrote: > > Date: Sun, 1 Dec 2019 15:58:42 +0000 > > From: Alan Mackenzie > > Cc: 38406@debbugs.gnu.org > > Why not use post-command-hook here instead? > I don't know what's Ivan's reason, but I know mine: post-command-hook > runs much more frequently (since self-insert-command's are a small > subset of commands in general), and therefore its use is much more > likely to make Emacs less responsive. E.g., cursor motion commands > will not call post-self-insert-hook. What we could do with here is a post-change-command-functions, something a bit like after-change-functions in what triggers it, and a bit like post-command-hook in when it gets triggered. Of course, one could say that we have too many hooks already ..... -- Alan Mackenzie (Nuremberg, Germany).