]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix example code in hideshow.el
authorMichael Heerdegen <michael_heerdegen@web.de>
Fri, 2 Aug 2019 19:04:22 +0000 (21:04 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Fri, 2 Aug 2019 19:04:28 +0000 (21:04 +0200)
* lisp/progmodes/hideshow.el: The original example would infloop
(bug#19892).

lisp/progmodes/hideshow.el

index 1d62bb58750d58b58f0fb105140b5b3b274997f2..4cfcd3d09a3233a18c14a304cfb8c3bf66f1ec8c 100644 (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)
 ;;