]> git.eshelyaron.com Git - emacs.git/commitdiff
Make outline-view-change-hook obsolete
authorStefan Kangas <stefan@marxist.se>
Fri, 15 Jul 2022 16:08:34 +0000 (18:08 +0200)
committerStefan Kangas <stefan@marxist.se>
Sat, 30 Jul 2022 09:36:36 +0000 (11:36 +0200)
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

index 6ec7d95d3a18a6c502aaba0d04eab8a1fbe0696c..a68f648bd82c62cb190462284636fe463db7714c 100644 (file)
@@ -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)