diff options
| -rw-r--r-- | lisp/progmodes/hideshow.el | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/progmodes/hideshow.el b/lisp/progmodes/hideshow.el index 9f01787b336..d94f6acf8e1 100644 --- a/lisp/progmodes/hideshow.el +++ b/lisp/progmodes/hideshow.el | |||
| @@ -705,7 +705,7 @@ and `case-fold-search' are both t." | |||
| 705 | (if (and c-reg (nth 0 c-reg)) | 705 | (if (and c-reg (nth 0 c-reg)) |
| 706 | ;; point is inside a comment, and that comment is hidable | 706 | ;; point is inside a comment, and that comment is hidable |
| 707 | (goto-char (nth 0 c-reg)) | 707 | (goto-char (nth 0 c-reg)) |
| 708 | (end-of-line) | 708 | (end-of-line) |
| 709 | (when (and (not c-reg) | 709 | (when (and (not c-reg) |
| 710 | (hs-find-block-beginning) | 710 | (hs-find-block-beginning) |
| 711 | (looking-at hs-block-start-regexp)) | 711 | (looking-at hs-block-start-regexp)) |
| @@ -906,9 +906,9 @@ Key bindings: | |||
| 906 | (progn | 906 | (progn |
| 907 | (hs-grok-mode-type) | 907 | (hs-grok-mode-type) |
| 908 | ;; Turn off this mode if we change major modes. | 908 | ;; Turn off this mode if we change major modes. |
| 909 | (add-hook 'change-major-mode-hook | 909 | (add-hook 'change-major-mode-hook |
| 910 | 'turn-off-hideshow | 910 | 'turn-off-hideshow |
| 911 | nil t) | 911 | nil t) |
| 912 | (easy-menu-add hs-minor-mode-menu) | 912 | (easy-menu-add hs-minor-mode-menu) |
| 913 | (set (make-local-variable 'line-move-ignore-invisible) t) | 913 | (set (make-local-variable 'line-move-ignore-invisible) t) |
| 914 | (add-to-invisibility-spec '(hs . t))) | 914 | (add-to-invisibility-spec '(hs . t))) |