emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 0393cd2: Fix example code in hideshow.el


From: Lars Ingebrigtsen
Subject: [Emacs-diffs] master 0393cd2: Fix example code in hideshow.el
Date: Fri, 2 Aug 2019 15:04:35 -0400 (EDT)

branch: master
commit 0393cd2f721f8e44b4cef3b0864f1b4903ab9ba3
Author: Michael Heerdegen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>

    Fix example code in hideshow.el
    
    * lisp/progmodes/hideshow.el: The original example would infloop
    (bug#19892).
---
 lisp/progmodes/hideshow.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/progmodes/hideshow.el b/lisp/progmodes/hideshow.el
index 1d62bb5..4cfcd3d 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)
 ;;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]