all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#46414: 27.1; remove-hook doesn't remove entries from hook--depth-alist
@ 2021-02-09 23:56 jakanakaevangeli
  2022-06-16 13:40 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 3+ messages in thread
From: jakanakaevangeli @ 2021-02-09 23:56 UTC (permalink / raw)
  To: 46414

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/





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-06-16 14:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-09 23:56 bug#46414: 27.1; remove-hook doesn't remove entries from hook--depth-alist jakanakaevangeli
2022-06-16 13:40 ` Lars Ingebrigtsen
2022-06-16 14:18   ` jakanakaevangeli

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.