From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: jakanakaevangeli Newsgroups: gmane.emacs.bugs Subject: bug#46414: 27.1; remove-hook doesn't remove entries from hook--depth-alist Date: Wed, 10 Feb 2021 00:56:14 +0100 Message-ID: <878s7w94o1.fsf@miha-pc> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35407"; mail-complaints-to="usenet@ciao.gmane.io" To: 46414@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Feb 10 00:53:45 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l9cpE-00097C-VF for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 10 Feb 2021 00:53:44 +0100 Original-Received: from localhost ([::1]:42510 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l9cpD-0002BQ-AF for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 09 Feb 2021 18:53:43 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45700) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l9coa-0002BH-Ak for bug-gnu-emacs@gnu.org; Tue, 09 Feb 2021 18:53:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43527) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l9coX-0004AI-Qj for bug-gnu-emacs@gnu.org; Tue, 09 Feb 2021 18:53:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l9coX-0000sb-On for bug-gnu-emacs@gnu.org; Tue, 09 Feb 2021 18:53:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: jakanakaevangeli Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 09 Feb 2021 23:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 46414 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16129147483339 (code B ref -1); Tue, 09 Feb 2021 23:53:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 9 Feb 2021 23:52:28 +0000 Original-Received: from localhost ([127.0.0.1]:55073 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l9co0-0000rn-3K for submit@debbugs.gnu.org; Tue, 09 Feb 2021 18:52:28 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:44116) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l9cnx-0000rf-Q3 for submit@debbugs.gnu.org; Tue, 09 Feb 2021 18:52:26 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45614) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l9cnx-0002Ab-Ie for bug-gnu-emacs@gnu.org; Tue, 09 Feb 2021 18:52:25 -0500 Original-Received: from chiru.no ([142.4.209.132]:56124) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1l9cnv-0003vI-HV for bug-gnu-emacs@gnu.org; Tue, 09 Feb 2021 18:52:25 -0500 Original-Received: from localhost (BSN-77-156-43.static.siol.net [193.77.156.43]) by chiru.no (Postfix) with ESMTPSA id AD715128001B for ; Tue, 9 Feb 2021 23:52:21 +0000 (UTC) Received-SPF: none client-ip=142.4.209.132; envelope-from=jakanakaevangeli@chiru.no; helo=chiru.no X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:199745 Archived-At: add-hook can add an entry to the hook symbol's hook--depth-alist property and remove-hook doesn't remove it. This means that for each call to eval-after-load, after-load-functions' hook--depth-alist gets a new element when the feature is loaded, which can hinder performance. This can also cause problems if your completing-read-function uses (minibuffer-with-setup-hook (:append generated-function-symbol) (read-from-minibuffer ...)) This will add a new element to minibuffer-setup-hook's the depth alist for each completing-read session (such is the case when using selectrum.el [1] completion function). [1] https://github.com/raxod502/selectrum/