From b75db97f3168ac55986d1f8ed9861646e16486bb Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Tue, 25 May 2021 22:31:00 +0200 Subject: [PATCH] Make hs-set-up-overlay into user option * lisp/progmodes/hideshow.el (hs-set-up-overlay): Make into defcustom (bug#48513). --- lisp/progmodes/hideshow.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lisp/progmodes/hideshow.el b/lisp/progmodes/hideshow.el index 81ba0d86954..b2557587c6c 100644 --- a/lisp/progmodes/hideshow.el +++ b/lisp/progmodes/hideshow.el @@ -310,7 +310,7 @@ a block), `hs-hide-all', `hs-hide-block' and `hs-hide-level'.") These commands include the toggling commands (when the result is to show a block), `hs-show-all' and `hs-show-block'.") -(defvar hs-set-up-overlay #'ignore +(defcustom hs-set-up-overlay #'ignore "Function called with one arg, OV, a newly initialized overlay. Hideshow puts a unique overlay on each range of text to be hidden in the buffer. Here is a simple example of how to use this variable: @@ -326,7 +326,9 @@ in the buffer. Here is a simple example of how to use this variable: This example shows how to get information from the overlay as well as how to set its `display' property. See `hs-make-overlay' and -info node `(elisp)Overlays'.") +info node `(elisp)Overlays'." + :type 'function + :version "28.1") ;;--------------------------------------------------------------------------- ;; internal variables -- 2.39.5