diff options
| author | Susanne Oberhauser | 2016-02-24 15:13:41 +1100 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2016-02-24 15:13:41 +1100 |
| commit | bed990a747b0cc6d9d91ca08afc84473642f8cb3 (patch) | |
| tree | 9097bb19d43989d9d92ddf9b1f24d8237c057140 | |
| parent | 3c36fc13c9eb78af073008d2b5f0d8a295110df1 (diff) | |
| download | emacs-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/NEWS | 4 | ||||
| -rw-r--r-- | lisp/progmodes/hideshow.el | 4 |
2 files changed, 8 insertions, 0 deletions
| @@ -1547,6 +1547,10 @@ Use the INSIDE_EMACS environment variable instead. | |||
| 1547 | mode to send the same escape sequences that xterm does. This makes | 1547 | mode to send the same escape sequences that xterm does. This makes |
| 1548 | things like forward-word in readline work. | 1548 | things like forward-word in readline work. |
| 1549 | 1549 | ||
| 1550 | --- | ||
| 1551 | ** hideshow mode got four key bindings that are analogous to outline | ||
| 1552 | mode 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. |
| 1552 | Use `save-mark-and-excursion' if you want the old behavior. | 1556 | Use `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.") |