diff options
| author | Ken Manheimer | 2011-01-06 02:19:05 -0500 |
|---|---|---|
| committer | Ken Manheimer | 2011-01-06 02:19:05 -0500 |
| commit | 1e004a83aaaf612baa3a972ac72fcbdb418c3f56 (patch) | |
| tree | 57e8a2c8e4b6922a9e8c957123944935d9843d7d | |
| parent | b0a8e46b53d2794508a679c59b9520e38a76eebd (diff) | |
| download | emacs-1e004a83aaaf612baa3a972ac72fcbdb418c3f56.tar.gz emacs-1e004a83aaaf612baa3a972ac72fcbdb418c3f56.zip | |
allout.el: (allout-back-to-current-heading): Ensure return to the visible
containing topic, rather than a collapsed one.
(allout-view-change-hook): Remove hook that was deprecated long ago.
(allout-exposure-change-hook): Remove documentation remarks concerning
removed allout-view-change-hook.
(allout-flag-region): Remove invocation of and documentation remarks
concerning allout-view-change-hook.
| -rw-r--r-- | lisp/ChangeLog | 11 | ||||
| -rw-r--r-- | lisp/allout.el | 34 |
2 files changed, 24 insertions, 21 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 47b5f9069ac..ac976549fee 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,14 @@ | |||
| 1 | 2011-01-06 Ken Manheimer <ken.manheimer@gmail.com> | ||
| 2 | |||
| 3 | * allout.el: (allout-back-to-current-heading): Ensure return to | ||
| 4 | the visible containing topic, rather than a collapsed one. | ||
| 5 | (allout-view-change-hook): Remove hook that was deprecated long | ||
| 6 | ago. | ||
| 7 | (allout-exposure-change-hook): Remove documentation remarks | ||
| 8 | concerning removed allout-view-change-hook. | ||
| 9 | (allout-flag-region): Remove invocation of and documentation | ||
| 10 | remarks concerning allout-view-change-hook. | ||
| 11 | |||
| 1 | 2011-01-06 Glenn Morris <rgm@gnu.org> | 12 | 2011-01-06 Glenn Morris <rgm@gnu.org> |
| 2 | 13 | ||
| 3 | * vc/vc-bzr.el (vc-bzr-annotate-command, vc-bzr-annotate-time) | 14 | * vc/vc-bzr.el (vc-bzr-annotate-command, vc-bzr-annotate-time) |
diff --git a/lisp/allout.el b/lisp/allout.el index be7480dd619..0df2d2bb153 100644 --- a/lisp/allout.el +++ b/lisp/allout.el | |||
| @@ -1437,14 +1437,6 @@ their settings before allout-mode was started." | |||
| 1437 | ;;;_ = allout-exposure-category | 1437 | ;;;_ = allout-exposure-category |
| 1438 | (defvar allout-exposure-category nil | 1438 | (defvar allout-exposure-category nil |
| 1439 | "Symbol for use as allout invisible-text overlay category.") | 1439 | "Symbol for use as allout invisible-text overlay category.") |
| 1440 | ;;;_ x allout-view-change-hook | ||
| 1441 | (defvar allout-view-change-hook nil | ||
| 1442 | "*(Deprecated) A hook run after allout outline exposure changes. | ||
| 1443 | |||
| 1444 | Switch to using `allout-exposure-change-hook' instead. Both hooks are | ||
| 1445 | currently respected, but the other conveys the details of the exposure | ||
| 1446 | change via explicit parameters, and this one will eventually be disabled in | ||
| 1447 | a subsequent allout version.") | ||
| 1448 | ;;;_ = allout-exposure-change-hook | 1440 | ;;;_ = allout-exposure-change-hook |
| 1449 | (defvar allout-exposure-change-hook nil | 1441 | (defvar allout-exposure-change-hook nil |
| 1450 | "*Hook that's run after allout outline subtree exposure changes. | 1442 | "*Hook that's run after allout outline subtree exposure changes. |
| @@ -1457,10 +1449,7 @@ Functions on the hook must take three arguments: | |||
| 1457 | - TO -- integer indicating the point of the end of the change. | 1449 | - TO -- integer indicating the point of the end of the change. |
| 1458 | - FLAG -- change mode: nil for exposure, otherwise concealment. | 1450 | - FLAG -- change mode: nil for exposure, otherwise concealment. |
| 1459 | 1451 | ||
| 1460 | This hook might be invoked multiple times by a single command. | 1452 | This hook might be invoked multiple times by a single command.") |
| 1461 | |||
| 1462 | This hook is replacing `allout-view-change-hook', which is being deprecated | ||
| 1463 | and eventually will not be invoked.") | ||
| 1464 | ;;;_ = allout-structure-added-hook | 1453 | ;;;_ = allout-structure-added-hook |
| 1465 | (defvar allout-structure-added-hook nil | 1454 | (defvar allout-structure-added-hook nil |
| 1466 | "*Hook that's run after addition of items to the outline. | 1455 | "*Hook that's run after addition of items to the outline. |
| @@ -2996,13 +2985,19 @@ of (before any) topics, in which case we return nil." | |||
| 2996 | 2985 | ||
| 2997 | (allout-beginning-of-current-line) | 2986 | (allout-beginning-of-current-line) |
| 2998 | (let ((bol-point (point))) | 2987 | (let ((bol-point (point))) |
| 2999 | (if (allout-goto-prefix-doublechecked) | 2988 | (when (allout-goto-prefix-doublechecked) |
| 3000 | (if (<= (point) bol-point) | 2989 | (if (<= (point) bol-point) |
| 2990 | (progn | ||
| 2991 | (setq bol-point (point)) | ||
| 2992 | (allout-beginning-of-current-line) | ||
| 2993 | (if (not (= bol-point (point))) | ||
| 2994 | (if (looking-at allout-regexp) | ||
| 2995 | (allout-prefix-data))) | ||
| 3001 | (if interactive | 2996 | (if interactive |
| 3002 | (allout-end-of-prefix) | 2997 | (allout-end-of-prefix) |
| 3003 | (point)) | 2998 | (point))) |
| 3004 | (goto-char (point-min)) | 2999 | (goto-char (point-min)) |
| 3005 | nil)))) | 3000 | nil)))) |
| 3006 | ;;;_ > allout-back-to-heading () | 3001 | ;;;_ > allout-back-to-heading () |
| 3007 | (defalias 'allout-back-to-heading 'allout-back-to-current-heading) | 3002 | (defalias 'allout-back-to-heading 'allout-back-to-current-heading) |
| 3008 | ;;;_ > allout-pre-next-prefix () | 3003 | ;;;_ > allout-pre-next-prefix () |
| @@ -4867,9 +4862,7 @@ by pops to non-distinctive yanks. Bug..." | |||
| 4867 | "Conceal text between FROM and TO if FLAG is non-nil, else reveal it. | 4862 | "Conceal text between FROM and TO if FLAG is non-nil, else reveal it. |
| 4868 | 4863 | ||
| 4869 | Exposure-change hook `allout-exposure-change-hook' is run with the same | 4864 | Exposure-change hook `allout-exposure-change-hook' is run with the same |
| 4870 | arguments as this function, after the exposure changes are made. (The old | 4865 | arguments as this function, after the exposure changes are made." |
| 4871 | `allout-view-change-hook' is being deprecated, and eventually will not be | ||
| 4872 | invoked.)" | ||
| 4873 | 4866 | ||
| 4874 | ;; We use outline invisibility spec. | 4867 | ;; We use outline invisibility spec. |
| 4875 | (remove-overlays from to 'category 'allout-exposure-category) | 4868 | (remove-overlays from to 'category 'allout-exposure-category) |
| @@ -4883,7 +4876,6 @@ invoked.)" | |||
| 4883 | ;; as of 2008-02-27, xemacs lacks modification-hooks | 4876 | ;; as of 2008-02-27, xemacs lacks modification-hooks |
| 4884 | (overlay-put o (pop props) (pop props)) | 4877 | (overlay-put o (pop props) (pop props)) |
| 4885 | (error nil))))))) | 4878 | (error nil))))))) |
| 4886 | (run-hooks 'allout-view-change-hook) | ||
| 4887 | (run-hook-with-args 'allout-exposure-change-hook from to flag)) | 4879 | (run-hook-with-args 'allout-exposure-change-hook from to flag)) |
| 4888 | ;;;_ > allout-flag-current-subtree (flag) | 4880 | ;;;_ > allout-flag-current-subtree (flag) |
| 4889 | (defun allout-flag-current-subtree (flag) | 4881 | (defun allout-flag-current-subtree (flag) |