diff options
| author | Chong Yidong | 2012-05-02 18:57:03 +0800 |
|---|---|---|
| committer | Chong Yidong | 2012-05-02 18:57:03 +0800 |
| commit | 7b97c76414846f8982b7f96afca4cda5e9ecfcc5 (patch) | |
| tree | 8c7bcc9fdb1342eb86de5e2ecd37b0953ee20acc | |
| parent | 1e6f32f816c83b5a78e514d77b8f1d7052561d2e (diff) | |
| download | emacs-7b97c76414846f8982b7f96afca4cda5e9ecfcc5.tar.gz emacs-7b97c76414846f8982b7f96afca4cda5e9ecfcc5.zip | |
Fix naming of abnormal hook vars in allout.el.
* lisp/allout.el (allout-exposure-change-functions)
(allout-structure-added-functions)
(allout-structure-deleted-functions)
(allout-structure-shifted-functions): Rename abnormal hooks from *-hook,
and convert to defcustoms.
(allout-after-copy-or-kill-hook, allout-post-undo-hook): Convert
to defcustoms.
(allout-mode-hook, allout-mode-deactivate-hook): Doc fix.
* lisp/allout-widgets.el: Hook callers changed.
| -rw-r--r-- | lisp/ChangeLog | 13 | ||||
| -rw-r--r-- | lisp/allout-widgets.el | 26 | ||||
| -rw-r--r-- | lisp/allout.el | 114 |
3 files changed, 96 insertions, 57 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index e144bf1507e..d1a6cd0dcd2 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,16 @@ | |||
| 1 | 2012-05-02 Chong Yidong <cyd@gnu.org> | ||
| 2 | |||
| 3 | * allout.el (allout-exposure-change-functions) | ||
| 4 | (allout-structure-added-functions) | ||
| 5 | (allout-structure-deleted-functions) | ||
| 6 | (allout-structure-shifted-functions): Rename abnormal hooks from | ||
| 7 | *-hook, and convert to defcustoms. | ||
| 8 | (allout-after-copy-or-kill-hook, allout-post-undo-hook): Convert | ||
| 9 | to defcustoms. | ||
| 10 | (allout-mode-hook, allout-mode-deactivate-hook): Doc fix. | ||
| 11 | |||
| 12 | * allout-widgets.el: Hook callers changed. | ||
| 13 | |||
| 1 | 2012-05-02 Eli Zaretskii <eliz@gnu.org> | 14 | 2012-05-02 Eli Zaretskii <eliz@gnu.org> |
| 2 | 15 | ||
| 3 | * mail/rmail.el (rmail-yank-current-message): Use the encoding of | 16 | * mail/rmail.el (rmail-yank-current-message): Use the encoding of |
diff --git a/lisp/allout-widgets.el b/lisp/allout-widgets.el index 16420d8af27..6a5b0d5f7bf 100644 --- a/lisp/allout-widgets.el +++ b/lisp/allout-widgets.el | |||
| @@ -579,13 +579,13 @@ outline hot-spot navigation \(see `allout-mode')." | |||
| 579 | (if (current-local-map) | 579 | (if (current-local-map) |
| 580 | (set-keymap-parent allout-item-body-keymap (current-local-map))) | 580 | (set-keymap-parent allout-item-body-keymap (current-local-map))) |
| 581 | 581 | ||
| 582 | (add-hook 'allout-exposure-change-hook | 582 | (add-hook 'allout-exposure-change-functions |
| 583 | 'allout-widgets-exposure-change-recorder nil 'local) | 583 | 'allout-widgets-exposure-change-recorder nil 'local) |
| 584 | (add-hook 'allout-structure-added-hook | 584 | (add-hook 'allout-structure-added-functions |
| 585 | 'allout-widgets-additions-recorder nil 'local) | 585 | 'allout-widgets-additions-recorder nil 'local) |
| 586 | (add-hook 'allout-structure-deleted-hook | 586 | (add-hook 'allout-structure-deleted-functions |
| 587 | 'allout-widgets-deletions-recorder nil 'local) | 587 | 'allout-widgets-deletions-recorder nil 'local) |
| 588 | (add-hook 'allout-structure-shifted-hook | 588 | (add-hook 'allout-structure-shifted-functions |
| 589 | 'allout-widgets-shifts-recorder nil 'local) | 589 | 'allout-widgets-shifts-recorder nil 'local) |
| 590 | (add-hook 'allout-after-copy-or-kill-hook | 590 | (add-hook 'allout-after-copy-or-kill-hook |
| 591 | 'allout-widgets-after-copy-or-kill-function nil 'local) | 591 | 'allout-widgets-after-copy-or-kill-function nil 'local) |
| @@ -626,13 +626,13 @@ outline hot-spot navigation \(see `allout-mode')." | |||
| 626 | 626 | ||
| 627 | (remove-hook 'after-change-functions | 627 | (remove-hook 'after-change-functions |
| 628 | 'allout-widgets-after-change-handler 'local) | 628 | 'allout-widgets-after-change-handler 'local) |
| 629 | (remove-hook 'allout-exposure-change-hook | 629 | (remove-hook 'allout-exposure-change-functions |
| 630 | 'allout-widgets-exposure-change-recorder 'local) | 630 | 'allout-widgets-exposure-change-recorder 'local) |
| 631 | (remove-hook 'allout-structure-added-hook | 631 | (remove-hook 'allout-structure-added-functions |
| 632 | 'allout-widgets-additions-recorder 'local) | 632 | 'allout-widgets-additions-recorder 'local) |
| 633 | (remove-hook 'allout-structure-deleted-hook | 633 | (remove-hook 'allout-structure-deleted-functions |
| 634 | 'allout-widgets-deletions-recorder 'local) | 634 | 'allout-widgets-deletions-recorder 'local) |
| 635 | (remove-hook 'allout-structure-shifted-hook | 635 | (remove-hook 'allout-structure-shifted-functions |
| 636 | 'allout-widgets-shifts-recorder 'local) | 636 | 'allout-widgets-shifts-recorder 'local) |
| 637 | (remove-hook 'allout-after-copy-or-kill-hook | 637 | (remove-hook 'allout-after-copy-or-kill-hook |
| 638 | 'allout-widgets-after-copy-or-kill-function 'local) | 638 | 'allout-widgets-after-copy-or-kill-function 'local) |
| @@ -992,7 +992,7 @@ Records changes in `allout-widgets-changes-record'." | |||
| 992 | (defun allout-widgets-exposure-change-processor (changes) | 992 | (defun allout-widgets-exposure-change-processor (changes) |
| 993 | "Widgetize and adjust item widgets tracking allout outline exposure changes. | 993 | "Widgetize and adjust item widgets tracking allout outline exposure changes. |
| 994 | 994 | ||
| 995 | Generally invoked via `allout-exposure-change-hook'." | 995 | Generally invoked via `allout-exposure-change-functions'." |
| 996 | 996 | ||
| 997 | (let ((changes (sort changes (function (lambda (this next) | 997 | (let ((changes (sort changes (function (lambda (this next) |
| 998 | (< (cadr this) (cadr next)))))) | 998 | (< (cadr this) (cadr next)))))) |
| @@ -1059,7 +1059,7 @@ Generally invoked via `allout-exposure-change-hook'." | |||
| 1059 | (defun allout-widgets-additions-recorder (from to) | 1059 | (defun allout-widgets-additions-recorder (from to) |
| 1060 | "Record allout item additions for tracking during post-command processing. | 1060 | "Record allout item additions for tracking during post-command processing. |
| 1061 | 1061 | ||
| 1062 | Intended for use on `allout-structure-added-hook'. | 1062 | Intended for use on `allout-structure-added-functions'. |
| 1063 | 1063 | ||
| 1064 | FROM point at the start of the first new item and TO is point at the start | 1064 | FROM point at the start of the first new item and TO is point at the start |
| 1065 | of the last one. | 1065 | of the last one. |
| @@ -1106,8 +1106,7 @@ Dispatched by `allout-widgets-post-command-business' in response to | |||
| 1106 | ;;;_ > allout-widgets-deletions-recorder (depth from) | 1106 | ;;;_ > allout-widgets-deletions-recorder (depth from) |
| 1107 | (defun allout-widgets-deletions-recorder (depth from) | 1107 | (defun allout-widgets-deletions-recorder (depth from) |
| 1108 | "Record allout item deletions for tracking during post-command processing. | 1108 | "Record allout item deletions for tracking during post-command processing. |
| 1109 | 1109 | Intended for use on `allout-structure-deleted-functions'. | |
| 1110 | Intended for use on `allout-structure-deleted-hook'. | ||
| 1111 | 1110 | ||
| 1112 | DEPTH is the depth of the deleted subtree, and FROM is the point from which | 1111 | DEPTH is the depth of the deleted subtree, and FROM is the point from which |
| 1113 | the subtree was deleted. | 1112 | the subtree was deleted. |
| @@ -1134,8 +1133,7 @@ Dispatched by `allout-widgets-post-command-business' in response to | |||
| 1134 | ;;;_ > allout-widgets-shifts-recorder (shifted-amount at) | 1133 | ;;;_ > allout-widgets-shifts-recorder (shifted-amount at) |
| 1135 | (defun allout-widgets-shifts-recorder (shifted-amount at) | 1134 | (defun allout-widgets-shifts-recorder (shifted-amount at) |
| 1136 | "Record outline subtree shifts for tracking during post-command processing. | 1135 | "Record outline subtree shifts for tracking during post-command processing. |
| 1137 | 1136 | Intended for use on `allout-structure-shifted-functions'. | |
| 1138 | Intended for use on `allout-structure-shifted-hook'. | ||
| 1139 | 1137 | ||
| 1140 | SHIFTED-AMOUNT is the depth change and AT is the point at the start of the | 1138 | SHIFTED-AMOUNT is the depth change and AT is the point at the start of the |
| 1141 | subtree that's been shifted. | 1139 | subtree that's been shifted. |
diff --git a/lisp/allout.el b/lisp/allout.el index 4883e4244a8..6e544716247 100644 --- a/lisp/allout.el +++ b/lisp/allout.el | |||
| @@ -1403,19 +1403,19 @@ their settings before allout-mode was started." | |||
| 1403 | ,expr)) | 1403 | ,expr)) |
| 1404 | ;;;_ = allout-mode-hook | 1404 | ;;;_ = allout-mode-hook |
| 1405 | (defvar allout-mode-hook nil | 1405 | (defvar allout-mode-hook nil |
| 1406 | "Hook that's run when allout mode starts.") | 1406 | "Hook run when allout mode starts.") |
| 1407 | ;;;_ = allout-mode-deactivate-hook | 1407 | ;;;_ = allout-mode-deactivate-hook |
| 1408 | (defvar allout-mode-deactivate-hook nil | 1408 | (defvar allout-mode-deactivate-hook nil |
| 1409 | "Hook that's run when allout mode ends.") | 1409 | "Hook run when allout mode ends.") |
| 1410 | (define-obsolete-variable-alias 'allout-mode-deactivate-hook | 1410 | (define-obsolete-variable-alias 'allout-mode-deactivate-hook |
| 1411 | 'allout-mode-off-hook "24.1") | 1411 | 'allout-mode-off-hook "24.1") |
| 1412 | ;;;_ = allout-exposure-category | 1412 | ;;;_ = allout-exposure-category |
| 1413 | (defvar allout-exposure-category nil | 1413 | (defvar allout-exposure-category nil |
| 1414 | "Symbol for use as allout invisible-text overlay category.") | 1414 | "Symbol for use as allout invisible-text overlay category.") |
| 1415 | ;;;_ = allout-exposure-change-hook | ||
| 1416 | (defvar allout-exposure-change-hook nil | ||
| 1417 | "Hook that's run after allout outline subtree exposure changes. | ||
| 1418 | 1415 | ||
| 1416 | ;;;_ = allout-exposure-change-functions | ||
| 1417 | (defcustom allout-exposure-change-functions nil | ||
| 1418 | "Abnormal hook run after allout outline subtree exposure changes. | ||
| 1419 | It is run at the conclusion of `allout-flag-region'. | 1419 | It is run at the conclusion of `allout-flag-region'. |
| 1420 | 1420 | ||
| 1421 | Functions on the hook must take three arguments: | 1421 | Functions on the hook must take three arguments: |
| @@ -1424,21 +1424,33 @@ Functions on the hook must take three arguments: | |||
| 1424 | - TO -- integer indicating the point of the end of the change. | 1424 | - TO -- integer indicating the point of the end of the change. |
| 1425 | - FLAG -- change mode: nil for exposure, otherwise concealment. | 1425 | - FLAG -- change mode: nil for exposure, otherwise concealment. |
| 1426 | 1426 | ||
| 1427 | This hook might be invoked multiple times by a single command.") | 1427 | This hook might be invoked multiple times by a single command." |
| 1428 | ;;;_ = allout-structure-added-hook | 1428 | :type 'hook |
| 1429 | (defvar allout-structure-added-hook nil | 1429 | :group 'allout |
| 1430 | "Hook that's run after addition of items to the outline. | 1430 | :version "24.2") |
| 1431 | 1431 | ||
| 1432 | (define-obsolete-variable-alias 'allout-exposure-change-hook | ||
| 1433 | 'allout-exposure-change-functions "24.2") | ||
| 1434 | |||
| 1435 | ;;;_ = allout-structure-added-functions | ||
| 1436 | (defcustom allout-structure-added-functions nil | ||
| 1437 | "Abnormal hook run after adding items to an Allout outline. | ||
| 1432 | Functions on the hook should take two arguments: | 1438 | Functions on the hook should take two arguments: |
| 1433 | 1439 | ||
| 1434 | - NEW-START -- integer indicating position of start of the first new item. | 1440 | - NEW-START -- integer indicating position of start of the first new item. |
| 1435 | - NEW-END -- integer indicating position of end of the last new item. | 1441 | - NEW-END -- integer indicating position of end of the last new item. |
| 1436 | 1442 | ||
| 1437 | This hook might be invoked multiple times by a single command.") | 1443 | This hook might be invoked multiple times by a single command." |
| 1438 | ;;;_ = allout-structure-deleted-hook | 1444 | :type 'hook |
| 1439 | (defvar allout-structure-deleted-hook nil | 1445 | :group 'allout |
| 1440 | "Hook that's run after disciplined deletion of subtrees from the outline. | 1446 | :version "24.2") |
| 1447 | |||
| 1448 | (define-obsolete-variable-alias 'allout-structure-added-hook | ||
| 1449 | 'allout-structure-added-functions "24.2") | ||
| 1441 | 1450 | ||
| 1451 | ;;;_ = allout-structure-deleted-functions | ||
| 1452 | (defcustom allout-structure-deleted-functions nil | ||
| 1453 | "Abnormal hook run after deleting subtrees from an Allout outline. | ||
| 1442 | Functions on the hook must take two arguments: | 1454 | Functions on the hook must take two arguments: |
| 1443 | 1455 | ||
| 1444 | - DEPTH -- integer indicating the depth of the subtree that was deleted. | 1456 | - DEPTH -- integer indicating the depth of the subtree that was deleted. |
| @@ -1447,11 +1459,17 @@ Functions on the hook must take two arguments: | |||
| 1447 | Some edits that remove or invalidate items may be missed by this hook: | 1459 | Some edits that remove or invalidate items may be missed by this hook: |
| 1448 | specifically edits that native allout routines do not control. | 1460 | specifically edits that native allout routines do not control. |
| 1449 | 1461 | ||
| 1450 | This hook might be invoked multiple times by a single command.") | 1462 | This hook might be invoked multiple times by a single command." |
| 1451 | ;;;_ = allout-structure-shifted-hook | 1463 | :type 'hook |
| 1452 | (defvar allout-structure-shifted-hook nil | 1464 | :group 'allout |
| 1453 | "Hook that's run after shifting of items in the outline. | 1465 | :version "24.2") |
| 1454 | 1466 | ||
| 1467 | (define-obsolete-variable-alias 'allout-structure-deleted-hook | ||
| 1468 | 'allout-structure-deleted-functions "24.2") | ||
| 1469 | |||
| 1470 | ;;;_ = allout-structure-shifted-functions | ||
| 1471 | (defcustom allout-structure-shifted-functions nil | ||
| 1472 | "Abnormal hook run after shifting items in an Allout outline. | ||
| 1455 | Functions on the hook should take two arguments: | 1473 | Functions on the hook should take two arguments: |
| 1456 | 1474 | ||
| 1457 | - DEPTH-CHANGE -- integer indicating depth increase, negative for decrease | 1475 | - DEPTH-CHANGE -- integer indicating depth increase, negative for decrease |
| @@ -1460,20 +1478,30 @@ Functions on the hook should take two arguments: | |||
| 1460 | Some edits that shift items can be missed by this hook: specifically edits | 1478 | Some edits that shift items can be missed by this hook: specifically edits |
| 1461 | that native allout routines do not control. | 1479 | that native allout routines do not control. |
| 1462 | 1480 | ||
| 1463 | This hook might be invoked multiple times by a single command.") | 1481 | This hook might be invoked multiple times by a single command." |
| 1482 | :type 'hook | ||
| 1483 | :group 'allout | ||
| 1484 | :version "24.2") | ||
| 1485 | |||
| 1486 | (define-obsolete-variable-alias 'allout-structure-shifted-hook | ||
| 1487 | 'allout-structure-shifted-functions "24.2") | ||
| 1488 | |||
| 1464 | ;;;_ = allout-after-copy-or-kill-hook | 1489 | ;;;_ = allout-after-copy-or-kill-hook |
| 1465 | (defvar allout-after-copy-or-kill-hook nil | 1490 | (defcustom allout-after-copy-or-kill-hook nil |
| 1466 | "Hook that's run after copying outline text. | 1491 | "Normal hook run after copying outline text.." |
| 1492 | :type 'hook | ||
| 1493 | :group 'allout | ||
| 1494 | :version "24.2") | ||
| 1467 | 1495 | ||
| 1468 | Functions on the hook should not require any arguments.") | ||
| 1469 | ;;;_ = allout-post-undo-hook | 1496 | ;;;_ = allout-post-undo-hook |
| 1470 | (defvar allout-post-undo-hook nil | 1497 | (defcustom allout-post-undo-hook nil |
| 1471 | "Hook that's run after undo activity. | 1498 | "Normal hook run after undo activity. |
| 1472 | |||
| 1473 | The item that's current when the hook is run *may* be the one | 1499 | The item that's current when the hook is run *may* be the one |
| 1474 | that was affected by the undo. | 1500 | that was affected by the undo.." |
| 1501 | :type 'hook | ||
| 1502 | :group 'allout | ||
| 1503 | :version "24.2") | ||
| 1475 | 1504 | ||
| 1476 | Functions on the hook should not require any arguments.") | ||
| 1477 | ;;;_ = allout-outside-normal-auto-fill-function | 1505 | ;;;_ = allout-outside-normal-auto-fill-function |
| 1478 | (defvar allout-outside-normal-auto-fill-function nil | 1506 | (defvar allout-outside-normal-auto-fill-function nil |
| 1479 | "Value of `normal-auto-fill-function' outside of allout mode. | 1507 | "Value of `normal-auto-fill-function' outside of allout mode. |
| @@ -1883,10 +1911,10 @@ without changes to the allout core. Here are key ones: | |||
| 1883 | `allout-mode-hook' | 1911 | `allout-mode-hook' |
| 1884 | `allout-mode-deactivate-hook' (deprecated) | 1912 | `allout-mode-deactivate-hook' (deprecated) |
| 1885 | `allout-mode-off-hook' | 1913 | `allout-mode-off-hook' |
| 1886 | `allout-exposure-change-hook' | 1914 | `allout-exposure-change-functions' |
| 1887 | `allout-structure-added-hook' | 1915 | `allout-structure-added-functions' |
| 1888 | `allout-structure-deleted-hook' | 1916 | `allout-structure-deleted-functions' |
| 1889 | `allout-structure-shifted-hook' | 1917 | `allout-structure-shifted-functions' |
| 1890 | `allout-after-copy-or-kill-hook' | 1918 | `allout-after-copy-or-kill-hook' |
| 1891 | `allout-post-undo-hook' | 1919 | `allout-post-undo-hook' |
| 1892 | 1920 | ||
| @@ -3845,7 +3873,7 @@ Nuances: | |||
| 3845 | (allout-show-children))) | 3873 | (allout-show-children))) |
| 3846 | (end-of-line) | 3874 | (end-of-line) |
| 3847 | 3875 | ||
| 3848 | (run-hook-with-args 'allout-structure-added-hook start end) | 3876 | (run-hook-with-args 'allout-structure-added-functions start end) |
| 3849 | ) | 3877 | ) |
| 3850 | ) | 3878 | ) |
| 3851 | ) | 3879 | ) |
| @@ -3970,7 +3998,7 @@ Note that refill of indented paragraphs is not done." | |||
| 3970 | nil ;;; number-control | 3998 | nil ;;; number-control |
| 3971 | nil ;;; index | 3999 | nil ;;; index |
| 3972 | t) ;;; do-successors | 4000 | t) ;;; do-successors |
| 3973 | (run-hook-with-args 'allout-exposure-change-hook | 4001 | (run-hook-with-args 'allout-exposure-change-functions |
| 3974 | from to t)) | 4002 | from to t)) |
| 3975 | (setq arg (1- arg)) | 4003 | (setq arg (1- arg)) |
| 3976 | (if (<= arg 0) | 4004 | (if (<= arg 0) |
| @@ -4071,7 +4099,7 @@ this function." | |||
| 4071 | (not (allout-encrypted-topic-p))) | 4099 | (not (allout-encrypted-topic-p))) |
| 4072 | (allout-reindent-body current-depth new-depth)) | 4100 | (allout-reindent-body current-depth new-depth)) |
| 4073 | 4101 | ||
| 4074 | (run-hook-with-args 'allout-exposure-change-hook mb me nil) | 4102 | (run-hook-with-args 'allout-exposure-change-functions mb me nil) |
| 4075 | 4103 | ||
| 4076 | ;; Recursively rectify successive siblings of orig topic if | 4104 | ;; Recursively rectify successive siblings of orig topic if |
| 4077 | ;; caller elected for it: | 4105 | ;; caller elected for it: |
| @@ -4333,7 +4361,7 @@ the file can be adjusted to any positive depth, however." | |||
| 4333 | (allout-show-children)))))) | 4361 | (allout-show-children)))))) |
| 4334 | (let ((where (point))) | 4362 | (let ((where (point))) |
| 4335 | (allout-rebullet-topic 1 (and (> arg 1) 'sans-offspring)) | 4363 | (allout-rebullet-topic 1 (and (> arg 1) 'sans-offspring)) |
| 4336 | (run-hook-with-args 'allout-structure-shifted-hook arg where)))) | 4364 | (run-hook-with-args 'allout-structure-shifted-functions arg where)))) |
| 4337 | ;;;_ > allout-shift-out (arg) | 4365 | ;;;_ > allout-shift-out (arg) |
| 4338 | (defun allout-shift-out (arg) | 4366 | (defun allout-shift-out (arg) |
| 4339 | "Decrease depth of current heading and any topics collapsed within it. | 4367 | "Decrease depth of current heading and any topics collapsed within it. |
| @@ -4373,7 +4401,7 @@ subtopics into siblings of the item." | |||
| 4373 | (goto-char child-point) | 4401 | (goto-char child-point) |
| 4374 | (allout-shift-out 1)))) | 4402 | (allout-shift-out 1)))) |
| 4375 | (allout-rebullet-topic (* arg -1)))) | 4403 | (allout-rebullet-topic (* arg -1)))) |
| 4376 | (run-hook-with-args 'allout-structure-shifted-hook (* arg -1) where)))) | 4404 | (run-hook-with-args 'allout-structure-shifted-functions (* arg -1) where)))) |
| 4377 | ;;;_ : Surgery (kill-ring) functions with special provisions for outlines: | 4405 | ;;;_ : Surgery (kill-ring) functions with special provisions for outlines: |
| 4378 | ;;;_ > allout-kill-line (&optional arg) | 4406 | ;;;_ > allout-kill-line (&optional arg) |
| 4379 | (defun allout-kill-line (&optional arg) | 4407 | (defun allout-kill-line (&optional arg) |
| @@ -4408,7 +4436,7 @@ subtopics into siblings of the item." | |||
| 4408 | (if (not (save-match-data (looking-at allout-regexp))) | 4436 | (if (not (save-match-data (looking-at allout-regexp))) |
| 4409 | (allout-next-heading)) | 4437 | (allout-next-heading)) |
| 4410 | (allout-renumber-to-depth depth))) | 4438 | (allout-renumber-to-depth depth))) |
| 4411 | (run-hook-with-args 'allout-structure-deleted-hook depth (point)))))) | 4439 | (run-hook-with-args 'allout-structure-deleted-functions depth (point)))))) |
| 4412 | ;;;_ > allout-copy-line-as-kill () | 4440 | ;;;_ > allout-copy-line-as-kill () |
| 4413 | (defun allout-copy-line-as-kill () | 4441 | (defun allout-copy-line-as-kill () |
| 4414 | "Like `allout-kill-topic', but save to kill ring instead of deleting." | 4442 | "Like `allout-kill-topic', but save to kill ring instead of deleting." |
| @@ -4456,7 +4484,7 @@ Topic exposure is marked with text-properties, to be used by | |||
| 4456 | 4484 | ||
| 4457 | (save-excursion | 4485 | (save-excursion |
| 4458 | (allout-renumber-to-depth depth)) | 4486 | (allout-renumber-to-depth depth)) |
| 4459 | (run-hook-with-args 'allout-structure-deleted-hook depth (point))))) | 4487 | (run-hook-with-args 'allout-structure-deleted-functions depth (point))))) |
| 4460 | ;;;_ > allout-copy-topic-as-kill () | 4488 | ;;;_ > allout-copy-topic-as-kill () |
| 4461 | (defun allout-copy-topic-as-kill () | 4489 | (defun allout-copy-topic-as-kill () |
| 4462 | "Like `allout-kill-topic', but save to kill ring instead of deleting." | 4490 | "Like `allout-kill-topic', but save to kill ring instead of deleting." |
| @@ -4668,7 +4696,7 @@ however, are left exactly like normal, non-allout-specific yanks." | |||
| 4668 | (allout-deannotate-hidden (allout-mark-marker t) (point))) | 4696 | (allout-deannotate-hidden (allout-mark-marker t) (point))) |
| 4669 | (if (not resituate) | 4697 | (if (not resituate) |
| 4670 | (exchange-point-and-mark)) | 4698 | (exchange-point-and-mark)) |
| 4671 | (run-hook-with-args 'allout-structure-added-hook subj-beg subj-end)))) | 4699 | (run-hook-with-args 'allout-structure-added-functions subj-beg subj-end)))) |
| 4672 | ;;;_ > allout-yank (&optional arg) | 4700 | ;;;_ > allout-yank (&optional arg) |
| 4673 | (defun allout-yank (&optional arg) | 4701 | (defun allout-yank (&optional arg) |
| 4674 | "`allout-mode' yank, with depth and numbering adjustment of yanked topics. | 4702 | "`allout-mode' yank, with depth and numbering adjustment of yanked topics. |
| @@ -4765,9 +4793,9 @@ by pops to non-distinctive yanks. Bug..." | |||
| 4765 | ;;;_ > allout-flag-region (from to flag) | 4793 | ;;;_ > allout-flag-region (from to flag) |
| 4766 | (defun allout-flag-region (from to flag) | 4794 | (defun allout-flag-region (from to flag) |
| 4767 | "Conceal text between FROM and TO if FLAG is non-nil, else reveal it. | 4795 | "Conceal text between FROM and TO if FLAG is non-nil, else reveal it. |
| 4768 | 4796 | After the exposure changes are made, run the abnormal hook | |
| 4769 | Exposure-change hook `allout-exposure-change-hook' is run with the same | 4797 | `allout-exposure-change-functions' with the same arguments as |
| 4770 | arguments as this function, after the exposure changes are made." | 4798 | this function." |
| 4771 | 4799 | ||
| 4772 | ;; We use outline invisibility spec. | 4800 | ;; We use outline invisibility spec. |
| 4773 | (remove-overlays from to 'category 'allout-exposure-category) | 4801 | (remove-overlays from to 'category 'allout-exposure-category) |
| @@ -4783,7 +4811,7 @@ arguments as this function, after the exposure changes are made." | |||
| 4783 | (overlay-put o (pop props) (pop props)) | 4811 | (overlay-put o (pop props) (pop props)) |
| 4784 | (error nil)))))) | 4812 | (error nil)))))) |
| 4785 | (setq allout-this-command-hid-text t)) | 4813 | (setq allout-this-command-hid-text t)) |
| 4786 | (run-hook-with-args 'allout-exposure-change-hook from to flag)) | 4814 | (run-hook-with-args 'allout-exposure-change-functions from to flag)) |
| 4787 | ;;;_ > allout-flag-current-subtree (flag) | 4815 | ;;;_ > allout-flag-current-subtree (flag) |
| 4788 | (defun allout-flag-current-subtree (flag) | 4816 | (defun allout-flag-current-subtree (flag) |
| 4789 | "Conceal currently-visible topic's subtree if FLAG non-nil, else reveal it." | 4817 | "Conceal currently-visible topic's subtree if FLAG non-nil, else reveal it." |
| @@ -6022,7 +6050,7 @@ See `allout-toggle-current-subtree-encryption' for more details." | |||
| 6022 | (allout-inhibit-auto-save-info-for-decryption was-buffer-saved-size) | 6050 | (allout-inhibit-auto-save-info-for-decryption was-buffer-saved-size) |
| 6023 | (allout-maybe-resume-auto-save-info-after-encryption)) | 6051 | (allout-maybe-resume-auto-save-info-after-encryption)) |
| 6024 | 6052 | ||
| 6025 | (run-hook-with-args 'allout-structure-added-hook | 6053 | (run-hook-with-args 'allout-structure-added-functions |
| 6026 | bullet-pos subtree-end)))) | 6054 | bullet-pos subtree-end)))) |
| 6027 | ;;;_ > allout-encrypt-string (text decrypt allout-buffer keymode-cue | 6055 | ;;;_ > allout-encrypt-string (text decrypt allout-buffer keymode-cue |
| 6028 | ;;; &optional rejected) | 6056 | ;;; &optional rejected) |