diff options
| author | Ken Manheimer | 2011-01-01 19:35:15 -0500 |
|---|---|---|
| committer | Ken Manheimer | 2011-01-01 19:35:15 -0500 |
| commit | 7927f48d454f33668f9dcef6b2d9476d24fe54bb (patch) | |
| tree | 97507c5b46dd97456fa7714763e22cb292b25bc1 | |
| parent | 3afff00e6f188170ef5eca34d435e7a0730df3fc (diff) | |
| download | emacs-7927f48d454f33668f9dcef6b2d9476d24fe54bb.tar.gz emacs-7927f48d454f33668f9dcef6b2d9476d24fe54bb.zip | |
(allout-auto-fill): Do not infinitely recurse - use do-auto-fill if
everything points back to allout-auto-fill.
(allout-mode-deactivate-hook): Declare obsolete, in favor of
standard-formed minor-mode deactivate hook, allout-mode-off-hook.
| -rw-r--r-- | lisp/allout.el | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/lisp/allout.el b/lisp/allout.el index 37650e2ff39..8bc6b6fb6bb 100644 --- a/lisp/allout.el +++ b/lisp/allout.el | |||
| @@ -1432,6 +1432,8 @@ their settings before allout-mode was started." | |||
| 1432 | ;;;_ = allout-mode-deactivate-hook | 1432 | ;;;_ = allout-mode-deactivate-hook |
| 1433 | (defvar allout-mode-deactivate-hook nil | 1433 | (defvar allout-mode-deactivate-hook nil |
| 1434 | "*Hook that's run when allout mode ends.") | 1434 | "*Hook that's run when allout mode ends.") |
| 1435 | (define-obsolete-variable-alias 'allout-mode-deactivate-hook | ||
| 1436 | 'allout-mode-off-hook "future") | ||
| 1435 | ;;;_ = allout-exposure-category | 1437 | ;;;_ = allout-exposure-category |
| 1436 | (defvar allout-exposure-category nil | 1438 | (defvar allout-exposure-category nil |
| 1437 | "Symbol for use as allout invisible-text overlay category.") | 1439 | "Symbol for use as allout invisible-text overlay category.") |
| @@ -3983,9 +3985,13 @@ Maintains outline hanging topic indentation if | |||
| 3983 | (make-string (progn (allout-end-of-prefix) | 3985 | (make-string (progn (allout-end-of-prefix) |
| 3984 | (current-column)) | 3986 | (current-column)) |
| 3985 | ?\ )))))) | 3987 | ?\ )))))) |
| 3986 | (use-auto-fill-function (or allout-outside-normal-auto-fill-function | 3988 | (use-auto-fill-function |
| 3987 | auto-fill-function | 3989 | (if (and (eq allout-outside-normal-auto-fill-function |
| 3988 | 'do-auto-fill))) | 3990 | 'allout-auto-fill) |
| 3991 | (eq auto-fill-function 'allout-auto-fill)) | ||
| 3992 | 'do-auto-fill | ||
| 3993 | (or allout-outside-normal-auto-fill-function | ||
| 3994 | auto-fill-function)))) | ||
| 3989 | (if (or allout-former-auto-filler allout-use-hanging-indents) | 3995 | (if (or allout-former-auto-filler allout-use-hanging-indents) |
| 3990 | (funcall use-auto-fill-function))))) | 3996 | (funcall use-auto-fill-function))))) |
| 3991 | ;;;_ > allout-reindent-body (old-depth new-depth &optional number) | 3997 | ;;;_ > allout-reindent-body (old-depth new-depth &optional number) |