Fix example code in hideshow.el

* lisp/progmodes/hideshow.el: The original example would infloop
(bug#19892).
This commit is contained in:
Michael Heerdegen 2019-08-02 21:04:22 +02:00 committed by Lars Ingebrigtsen
parent 3e943ebc34
commit 0393cd2f72

View file

@ -97,7 +97,8 @@
;; nested level in addition to the top-level:
;;
;; (defun ttn-hs-hide-level-1 ()
;; (hs-hide-level 1)
;; (when (hs-looking-at-block-start-p)
;; (hs-hide-level 1))
;; (forward-sexp 1))
;; (setq hs-hide-all-non-comment-function 'ttn-hs-hide-level-1)
;;