From 53b1e6f96cb03a461061e1e21cd185dd8a82ce6b Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Fri, 15 Jul 2022 18:08:34 +0200 Subject: [PATCH] Make outline-view-change-hook obsolete According to a comment, this hook "Seems only used by lazy-lock. I.e. obsolete." But lazy-lock has been deleted. * lisp/outline.el (outline-view-change-hook): Make obsolete. --- lisp/outline.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/outline.el b/lisp/outline.el index 6ec7d95d3a1..a68f648bd82 100644 --- a/lisp/outline.el +++ b/lisp/outline.el @@ -327,6 +327,7 @@ data reflects the `outline-regexp'.") (defvar outline-view-change-hook nil "Normal hook to be run after outline visibility changes.") +(make-obsolete-variable 'outline-view-change-hook nil "29.1") (defvar outline-mode-hook nil "This hook is run when outline mode starts.") @@ -864,7 +865,6 @@ If FLAG is nil then text is shown, while if FLAG is t the text is hidden." (or outline-isearch-open-invisible-function #'outline-isearch-open-invisible)))) (outline--fix-up-all-buttons from to) - ;; Seems only used by lazy-lock. I.e. obsolete. (run-hooks 'outline-view-change-hook)) (defun outline-reveal-toggle-invisible (o hidep) -- 2.39.5