aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSusanne Oberhauser2016-02-24 15:13:41 +1100
committerLars Ingebrigtsen2016-02-24 15:13:41 +1100
commitbed990a747b0cc6d9d91ca08afc84473642f8cb3 (patch)
tree9097bb19d43989d9d92ddf9b1f24d8237c057140
parent3c36fc13c9eb78af073008d2b5f0d8a295110df1 (diff)
downloademacs-bed990a747b0cc6d9d91ca08afc84473642f8cb3.tar.gz
emacs-bed990a747b0cc6d9d91ca08afc84473642f8cb3.zip
Add hideshow bindings analogous to outline mode
* lisp/progmodes/hideshow.el (hs-minor-mode-map): Add bindings analogous to outline mode bindings (bug#15324). Copyright-paperwork-exempt: yes
-rw-r--r--etc/NEWS4
-rw-r--r--lisp/progmodes/hideshow.el4
2 files changed, 8 insertions, 0 deletions
diff --git a/etc/NEWS b/etc/NEWS
index ce84b48e9ab..679532b89c7 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -1547,6 +1547,10 @@ Use the INSIDE_EMACS environment variable instead.
1547mode to send the same escape sequences that xterm does. This makes 1547mode to send the same escape sequences that xterm does. This makes
1548things like forward-word in readline work. 1548things like forward-word in readline work.
1549 1549
1550---
1551** hideshow mode got four key bindings that are analogous to outline
1552mode bindings: `C-c @ C-a', `C-c @ C-t', `C-c @ C-d', and `C-c @ C-e.'
1553
1550+++ 1554+++
1551** `save-excursion' does not save&restore the mark any more. 1555** `save-excursion' does not save&restore the mark any more.
1552Use `save-mark-and-excursion' if you want the old behavior. 1556Use `save-mark-and-excursion' if you want the old behavior.
diff --git a/lisp/progmodes/hideshow.el b/lisp/progmodes/hideshow.el
index e5460009a56..cabdf45458a 100644
--- a/lisp/progmodes/hideshow.el
+++ b/lisp/progmodes/hideshow.el
@@ -351,6 +351,10 @@ Use the command `hs-minor-mode' to toggle or set this variable.")
351 (define-key map "\C-c@\C-\M-s" 'hs-show-all) 351 (define-key map "\C-c@\C-\M-s" 'hs-show-all)
352 (define-key map "\C-c@\C-l" 'hs-hide-level) 352 (define-key map "\C-c@\C-l" 'hs-hide-level)
353 (define-key map "\C-c@\C-c" 'hs-toggle-hiding) 353 (define-key map "\C-c@\C-c" 'hs-toggle-hiding)
354 (define-key map "\C-c@\C-a" 'hs-show-all)
355 (define-key map "\C-c@\C-t" 'hs-hide-all)
356 (define-key map "\C-c@\C-d" 'hs-hide-block)
357 (define-key map "\C-c@\C-e" 'hs-toggle-hiding)
354 (define-key map [(shift mouse-2)] 'hs-mouse-toggle-hiding) 358 (define-key map [(shift mouse-2)] 'hs-mouse-toggle-hiding)
355 map) 359 map)
356 "Keymap for hideshow minor mode.") 360 "Keymap for hideshow minor mode.")