aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog2
-rw-r--r--lisp/progmodes/hideshow.el8
2 files changed, 6 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 5a7b81d40d1..c6ca51424bc 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -7,6 +7,8 @@
7 * progmodes/hideshow.el (hs-show-block): Use line-end-position. 7 * progmodes/hideshow.el (hs-show-block): Use line-end-position.
8 (hs-hide-block-at-point, hs-hide-comment-region): Likewise. 8 (hs-hide-block-at-point, hs-hide-comment-region): Likewise.
9 9
10 * progmodes/hideshow.el (hs-hide-all): Use progress reporter.
11
102007-06-22 Jay Belanger <jay.p.belanger@gmail.com> 122007-06-22 Jay Belanger <jay.p.belanger@gmail.com>
11 13
12 * calc/calc-comb.el (math-small-factorial-table): New variable. 14 * calc/calc-comb.el (math-small-factorial-table): New variable.
diff --git a/lisp/progmodes/hideshow.el b/lisp/progmodes/hideshow.el
index f39fb477c9e..7720b441700 100644
--- a/lisp/progmodes/hideshow.el
+++ b/lisp/progmodes/hideshow.el
@@ -733,12 +733,12 @@ Move point to the beginning of the line, and run the normal hook
733If `hs-hide-comments-when-hiding-all' is non-nil, also hide the comments." 733If `hs-hide-comments-when-hiding-all' is non-nil, also hide the comments."
734 (interactive) 734 (interactive)
735 (hs-life-goes-on 735 (hs-life-goes-on
736 (message "Hiding all blocks ...")
737 (save-excursion 736 (save-excursion
738 (unless hs-allow-nesting 737 (unless hs-allow-nesting
739 (hs-discard-overlays (point-min) (point-max))) 738 (hs-discard-overlays (point-min) (point-max)))
740 (goto-char (point-min)) 739 (goto-char (point-min))
741 (let ((count 0) 740 (let ((spew (make-progress-reporter "Hiding all blocks..."
741 (point-min) (point-max)))
742 (re (concat "\\(" 742 (re (concat "\\("
743 hs-block-start-regexp 743 hs-block-start-regexp
744 "\\)" 744 "\\)"
@@ -764,9 +764,9 @@ If `hs-hide-comments-when-hiding-all' is non-nil, also hide the comments."
764 (if (> (count-lines (car c-reg) (nth 1 c-reg)) 1) 764 (if (> (count-lines (car c-reg) (nth 1 c-reg)) 1)
765 (hs-hide-block-at-point t c-reg) 765 (hs-hide-block-at-point t c-reg)
766 (goto-char (nth 1 c-reg)))))) 766 (goto-char (nth 1 c-reg))))))
767 (message "Hiding ... %d" (setq count (1+ count)))))) 767 (progress-reporter-update spew (point)))
768 (progress-reporter-done spew)))
768 (beginning-of-line) 769 (beginning-of-line)
769 (message "Hiding all blocks ... done")
770 (run-hooks 'hs-hide-hook))) 770 (run-hooks 'hs-hide-hook)))
771 771
772(defun hs-show-all () 772(defun hs-show-all ()