From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#37455: 27.0.50; insert-behind-hooks and insert-in-front-hooks in text properties do nothing when font-lock-mode is on Date: Thu, 19 Sep 2019 20:35:13 +0300 Message-ID: <83h858tcj2.fsf@gnu.org> References: <87tv99az5y.fsf@yantar92-laptop.i-did-not-set--mail-host-address--so-tickle-me> <83pnjwtlxy.fsf@gnu.org> <87ef0cb5dv.fsf@yantar92-laptop.i-did-not-set--mail-host-address--so-tickle-me> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="139943"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 37455-done@debbugs.gnu.org To: Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 19 19:54:02 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 1iB0cz-000a9i-5x for geb-bug-gnu-emacs@m.gmane.org; Thu, 19 Sep 2019 19:54:01 +0200 Original-Received: from localhost ([::1]:47354 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iB0cx-0000Vn-N1 for geb-bug-gnu-emacs@m.gmane.org; Thu, 19 Sep 2019 13:53:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53002) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iB0Lb-0007MX-Id for bug-gnu-emacs@gnu.org; Thu, 19 Sep 2019 13:36:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iB0La-0001PD-IJ for bug-gnu-emacs@gnu.org; Thu, 19 Sep 2019 13:36:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47558) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iB0La-0001P3-Fr for bug-gnu-emacs@gnu.org; Thu, 19 Sep 2019 13:36:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iB0La-0004if-BJ for bug-gnu-emacs@gnu.org; Thu, 19 Sep 2019 13:36:02 -0400 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Thu, 19 Sep 2019 17:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 37455 X-GNU-PR-Package: emacs Mail-Followup-To: 37455@debbugs.gnu.org, eliz@gnu.org, yantar92@gmail.com Original-Received: via spool by 37455-done@debbugs.gnu.org id=D37455.156891451918069 (code D ref 37455); Thu, 19 Sep 2019 17:36:01 +0000 Original-Received: (at 37455-done) by debbugs.gnu.org; 19 Sep 2019 17:35:19 +0000 Original-Received: from localhost ([127.0.0.1]:56378 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iB0Kt-0004hN-D8 for submit@debbugs.gnu.org; Thu, 19 Sep 2019 13:35:19 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:44346) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iB0Ks-0004h3-NZ for 37455-done@debbugs.gnu.org; Thu, 19 Sep 2019 13:35:18 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:54003) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iB0Kn-00013f-Ia; Thu, 19 Sep 2019 13:35:13 -0400 Original-Received: from [176.228.60.248] (port=4984 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iB0Km-0002mR-Jx; Thu, 19 Sep 2019 13:35:13 -0400 In-reply-to: <87ef0cb5dv.fsf@yantar92-laptop.i-did-not-set--mail-host-address--so-tickle-me> (message from Ihor Radchenko on Fri, 20 Sep 2019 00:46:52 +0800) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:166728 Archived-At: > From: Ihor Radchenko > Cc: 37455@debbugs.gnu.org > Date: Fri, 20 Sep 2019 00:46:52 +0800 > > Thanks! > I can confirm that the hooks work as expected in master. Thanks, I'm therefore closing this bug report. > "Too bad they have names that end in -hooks, which is misleading. Even > if they were actually hooks (which are variables), because their > functions take arguments they would be considered "abnormal > hooks", and abnormal hooks are conventionally named with the > suffix -functions (not -hooks). Following that convention would > also be less misleading, lessening the suggestion that they're > hooks." > > Would it make sense to change the text and overlay property names to > something like insert-in-front-functions, insert-behind-functions, and > modification-functions? I don't see a serious enough reason to change names of these properties, which were introduced in Emacs 19(!). The person who wrote that raises many similar arguments, so I'm not surprised to hear this one. IOW, this ship has sailed decades ago, and it's too late to rename it now. Thanks.