Mercurial > emacs
comparison lisp/allout.el @ 112410:744ddded8b6a
* allout.el (allout-prefixed-keybindings): Bind (prefixed) '#' to
allout-number-siblings, in keeping with what obtained due to (now-defunct)
allout-keybindings-list. Ditch repeat binding to (prefixed) ?i.
(allout-before-change-handler): Better expose spots affected by undo.
author | Ken Manheimer <ken.manheimer@gmail.com> |
---|---|
date | Fri, 21 Jan 2011 23:41:57 -0500 |
parents | e5e8faa33346 |
children |
comparison
equal
deleted
inserted
replaced
112409:0222e3f822e3 | 112410:744ddded8b6a |
---|---|
202 ("[(control ?f)]" allout-forward-current-level) | 202 ("[(control ?f)]" allout-forward-current-level) |
203 ("[(control ?b)]" allout-backward-current-level) | 203 ("[(control ?b)]" allout-backward-current-level) |
204 ("[(control ?a)]" allout-beginning-of-current-entry) | 204 ("[(control ?a)]" allout-beginning-of-current-entry) |
205 ("[(control ?e)]" allout-end-of-entry) | 205 ("[(control ?e)]" allout-end-of-entry) |
206 ("[(control ?i)]" allout-show-children) | 206 ("[(control ?i)]" allout-show-children) |
207 ("[(control ?i)]" allout-show-children) | |
208 ("[(control ?s)]" allout-show-current-subtree) | 207 ("[(control ?s)]" allout-show-current-subtree) |
209 ("[(control ?t)]" allout-toggle-current-subtree-exposure) | 208 ("[(control ?t)]" allout-toggle-current-subtree-exposure) |
210 ;; Let user customize if they want to preempt describe-prefix-bindings ^h use. | 209 ;; Let user customize if they want to preempt describe-prefix-bindings ^h use. |
211 ;; ("[(control ?h)]" allout-hide-current-subtree) | 210 ;; ("[(control ?h)]" allout-hide-current-subtree) |
212 ("[?h]" allout-hide-current-subtree) | 211 ("[?h]" allout-hide-current-subtree) |
219 ("[?']" allout-shift-in) | 218 ("[?']" allout-shift-in) |
220 ("[?>]" allout-shift-in) | 219 ("[?>]" allout-shift-in) |
221 ("[?<]" allout-shift-out) | 220 ("[?<]" allout-shift-out) |
222 ("[(control ?m)]" allout-rebullet-topic) | 221 ("[(control ?m)]" allout-rebullet-topic) |
223 ("[?*]" allout-rebullet-current-heading) | 222 ("[?*]" allout-rebullet-current-heading) |
224 ("[?']" allout-number-siblings) | 223 ("[?#]" allout-number-siblings) |
225 ("[(control ?k)]" allout-kill-topic) | 224 ("[(control ?k)]" allout-kill-topic) |
226 ("[(meta ?k)]" allout-copy-topic-as-kill) | 225 ("[(meta ?k)]" allout-copy-topic-as-kill) |
227 ("[?@]" allout-resolve-xref) | 226 ("[?@]" allout-resolve-xref) |
228 ("[?=?c]" allout-copy-exposed-to-buffer) | 227 ("[?=?c]" allout-copy-exposed-to-buffer) |
229 ("[?=?i]" allout-indented-exposed-to-buffer) | 228 ("[?=?i]" allout-indented-exposed-to-buffer) |
1410 Functions on the hook should take two arguments: | 1409 Functions on the hook should take two arguments: |
1411 | 1410 |
1412 - NEW-START -- integer indicating position of start of the first new item. | 1411 - NEW-START -- integer indicating position of start of the first new item. |
1413 - NEW-END -- integer indicating position of end of the last new item. | 1412 - NEW-END -- integer indicating position of end of the last new item. |
1414 | 1413 |
1415 Some edits that introduce new items may missed by this hook: | |
1416 specifically edits that native allout routines do not control. | |
1417 | |
1418 This hook might be invoked multiple times by a single command.") | 1414 This hook might be invoked multiple times by a single command.") |
1419 ;;;_ = allout-structure-deleted-hook | 1415 ;;;_ = allout-structure-deleted-hook |
1420 (defvar allout-structure-deleted-hook nil | 1416 (defvar allout-structure-deleted-hook nil |
1421 "*Hook that's run after disciplined deletion of subtrees from the outline. | 1417 "*Hook that's run after disciplined deletion of subtrees from the outline. |
1422 | 1418 |
2190 (defun allout-before-change-handler (beg end) | 2186 (defun allout-before-change-handler (beg end) |
2191 "Protect against changes to invisible text. | 2187 "Protect against changes to invisible text. |
2192 | 2188 |
2193 See `allout-overlay-interior-modification-handler' for details." | 2189 See `allout-overlay-interior-modification-handler' for details." |
2194 | 2190 |
2195 (if (and (allout-mode-p) undo-in-progress (allout-hidden-p)) | 2191 (when (and (allout-mode-p) undo-in-progress (allout-hidden-p)) |
2196 (allout-show-to-offshoot)) | 2192 (allout-show-children)) |
2197 | 2193 |
2198 ;; allout-overlay-interior-modification-handler on an overlay handles | 2194 ;; allout-overlay-interior-modification-handler on an overlay handles |
2199 ;; this in other emacs, via `allout-exposure-category's 'modification-hooks. | 2195 ;; this in other emacs, via `allout-exposure-category's 'modification-hooks. |
2200 (when (and (featurep 'xemacs) (allout-mode-p)) | 2196 (when (and (featurep 'xemacs) (allout-mode-p)) |
2201 ;; process all of the pending overlays: | 2197 ;; process all of the pending overlays: |