diff options
author | Michael Heerdegen <michael_heerdegen@web.de> | 2019-08-02 21:04:22 +0200 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2019-08-02 21:04:28 +0200 |
commit | 0393cd2f721f8e44b4cef3b0864f1b4903ab9ba3 (patch) | |
tree | c023c149c65df9610696c9f7565862289f54cd70 /lisp/progmodes/hideshow.el | |
parent | 3e943ebc34d3583480546da24ecb65ca74119297 (diff) | |
download | emacs-0393cd2f721f8e44b4cef3b0864f1b4903ab9ba3.tar.gz |
Fix example code in hideshow.el
* lisp/progmodes/hideshow.el: The original example would infloop
(bug#19892).
Diffstat (limited to 'lisp/progmodes/hideshow.el')
-rw-r--r-- | lisp/progmodes/hideshow.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/progmodes/hideshow.el b/lisp/progmodes/hideshow.el index 1d62bb58750..4cfcd3d09a3 100644 --- a/lisp/progmodes/hideshow.el +++ b/lisp/progmodes/hideshow.el @@ -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) ;; |