aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuanma Barranquero2009-09-25 00:32:21 +0000
committerJuanma Barranquero2009-09-25 00:32:21 +0000
commitfb652bb5c38ab92605d38829bf1c5cecb7ea2b33 (patch)
treef64fc940d1e10f9302fc549fe7acd718a400febc
parent4561f7e0f3fd7f228d6a37322bae9d136f5afc4b (diff)
downloademacs-fb652bb5c38ab92605d38829bf1c5cecb7ea2b33.tar.gz
emacs-fb652bb5c38ab92605d38829bf1c5cecb7ea2b33.zip
* progmodes/hideshow.el (hs-show-block): Run `hs-show-hook'. (Bug#4548)
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/progmodes/hideshow.el10
2 files changed, 9 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 669c27f5fce..0e1a547425b 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12009-09-25 David Engster <deng@randomsample.de>
2
3 * progmodes/hideshow.el (hs-show-block): Run `hs-show-hook'. (Bug#4548)
4
12009-09-24 Chong Yidong <cyd@stupidchicken.com> 52009-09-24 Chong Yidong <cyd@stupidchicken.com>
2 6
3 * nxml/nxml-mode.el: Alias xml-mode to nxml-mode. 7 * nxml/nxml-mode.el: Alias xml-mode to nxml-mode.
diff --git a/lisp/progmodes/hideshow.el b/lisp/progmodes/hideshow.el
index 80bd91d4dd5..5928d18e46f 100644
--- a/lisp/progmodes/hideshow.el
+++ b/lisp/progmodes/hideshow.el
@@ -371,7 +371,7 @@ Use the command `hs-minor-mode' to toggle or set this variable.")
371 ["Toggle Hiding" hs-toggle-hiding 371 ["Toggle Hiding" hs-toggle-hiding
372 :help "Toggle the hiding state of the current block"] 372 :help "Toggle the hiding state of the current block"]
373 "----" 373 "----"
374 ["Hide comments when hiding all" 374 ["Hide comments when hiding all"
375 (setq hs-hide-comments-when-hiding-all 375 (setq hs-hide-comments-when-hiding-all
376 (not hs-hide-comments-when-hiding-all)) 376 (not hs-hide-comments-when-hiding-all))
377 :help "If t also hide comment blocks when doing `hs-hide-all'" 377 :help "If t also hide comment blocks when doing `hs-hide-all'"
@@ -869,8 +869,8 @@ See documentation for functions `hs-hide-block' and `run-hooks'."
869 q (progn (hs-forward-sexp (match-data t) 1) (point))))) 869 q (progn (hs-forward-sexp (match-data t) 1) (point)))))
870 (when (and p q) 870 (when (and p q)
871 (hs-discard-overlays p q) 871 (hs-discard-overlays p q)
872 (goto-char (if end q (1+ p))))) 872 (goto-char (if end q (1+ p))))))
873 (run-hooks 'hs-show-hook)))) 873 (run-hooks 'hs-show-hook)))
874 874
875(defun hs-hide-level (arg) 875(defun hs-hide-level (arg)
876 "Hide all blocks ARG levels below this block. 876 "Hide all blocks ARG levels below this block.
@@ -919,7 +919,7 @@ This can be useful if you have huge RCS logs in those comments."
919 919
920;;;###autoload 920;;;###autoload
921(define-minor-mode hs-minor-mode 921(define-minor-mode hs-minor-mode
922 "Minor mode to selectively hide/show code and comment blocks. 922 "Minor mode to selectively hide/show code and comment blocks.
923When hideshow minor mode is on, the menu bar is augmented with hideshow 923When hideshow minor mode is on, the menu bar is augmented with hideshow
924commands and the hideshow commands are enabled. 924commands and the hideshow commands are enabled.
925The value '(hs . t) is added to `buffer-invisibility-spec'. 925The value '(hs . t) is added to `buffer-invisibility-spec'.
@@ -935,7 +935,7 @@ Lastly, the normal hook `hs-minor-mode-hook' is run using `run-hooks'.
935 935
936Key bindings: 936Key bindings:
937\\{hs-minor-mode-map}" 937\\{hs-minor-mode-map}"
938 :group 'hideshow 938 :group 'hideshow
939 :lighter " hs" 939 :lighter " hs"
940 :keymap hs-minor-mode-map 940 :keymap hs-minor-mode-map
941 (setq hs-headline nil) 941 (setq hs-headline nil)