aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Rost2002-12-16 00:42:23 +0000
committerMarkus Rost2002-12-16 00:42:23 +0000
commitaad94676b75af17436d50b9ede870d098700a694 (patch)
tree3ec01a4a675d2588ce65fcc62a8998be70060034
parent2265e0170df99e8bc005e7604781a404b0e4790d (diff)
downloademacs-aad94676b75af17436d50b9ede870d098700a694.tar.gz
emacs-aad94676b75af17436d50b9ede870d098700a694.zip
Avoid name conflicts with outline.el. Use 3 installments to keep
diffs understandable. Change 3: Doc changes to adjust to the change to prefix "allout-". Don't provide 'outline. Use " Allout" as mode line string, not " Outl". Put group 'allout in group 'editing. Update Copyright notice. Autoload `allout-init'.
-rw-r--r--lisp/allout.el66
1 files changed, 33 insertions, 33 deletions
diff --git a/lisp/allout.el b/lisp/allout.el
index 17ccac19138..6c9aaefa8ff 100644
--- a/lisp/allout.el
+++ b/lisp/allout.el
@@ -1,11 +1,11 @@
1;;; allout.el --- extensive outline mode for use alone and with other modes 1;;; allout.el --- extensive outline mode for use alone and with other modes
2 2
3;; Copyright (C) 1992, 1993, 1994, 2001 Free Software Foundation, Inc. 3;; Copyright (C) 1992, 1993, 1994, 2001, 2002 Free Software Foundation, Inc.
4 4
5;; Author: Ken Manheimer <klm@python.org> 5;; Author: Ken Manheimer <klm@python.org>
6;; Maintainer: Ken Manheimer <klm@python.org> 6;; Maintainer: Ken Manheimer <klm@python.org>
7;; Created: Dec 1991 - first release to usenet 7;; Created: Dec 1991 - first release to usenet
8;; Version: $Id: allout.el,v 1.35 2002/12/16 00:20:42 rost Exp $|| 8;; Version: $Id: allout.el,v 1.36 2002/12/16 00:26:22 rost Exp $||
9;; Keywords: outlines mode wp languages 9;; Keywords: outlines mode wp languages
10 10
11;; This file is part of GNU Emacs. 11;; This file is part of GNU Emacs.
@@ -46,7 +46,7 @@
46;; and many other features. 46;; and many other features.
47;; 47;;
48;; The outline menubar additions provide quick reference to many of 48;; The outline menubar additions provide quick reference to many of
49;; the features, and see the docstring of the variable `allout-init' 49;; the features, and see the docstring of the function `allout-init'
50;; for instructions on priming your emacs session for automatic 50;; for instructions on priming your emacs session for automatic
51;; activation of `allout-mode'. 51;; activation of `allout-mode'.
52;; 52;;
@@ -63,14 +63,13 @@
63;;; Code: 63;;; Code:
64 64
65;;;_* Provide 65;;;_* Provide
66(provide 'outline)
67(provide 'allout) 66(provide 'allout)
68 67
69;;;_* USER CUSTOMIZATION VARIABLES: 68;;;_* USER CUSTOMIZATION VARIABLES:
70(defgroup allout nil 69(defgroup allout nil
71 "Extensive outline mode for use alone and with other modes." 70 "Extensive outline mode for use alone and with other modes."
72 :prefix "allout-" 71 :prefix "allout-"
73 :group 'outlines) 72 :group 'editing)
74 73
75;;;_ + Layout, Mode, and Topic Header Configuration 74;;;_ + Layout, Mode, and Topic Header Configuration
76 75
@@ -84,7 +83,7 @@ variable `allout-layout' is non-nil, and whether or not the layout
84dictated by `allout-layout' should be imposed on mode activation. 83dictated by `allout-layout' should be imposed on mode activation.
85 84
86With value `t', auto-mode-activation and auto-layout are enabled. 85With value `t', auto-mode-activation and auto-layout are enabled.
87\(This also depends on `allout-find-file-hooks' being installed in 86\(This also depends on `allout-find-file-hook' being installed in
88`find-file-hooks', which is also done by `allout-init'.) 87`find-file-hooks', which is also done by `allout-init'.)
89 88
90With value `ask', auto-mode-activation is enabled, and endorsement for 89With value `ask', auto-mode-activation is enabled, and endorsement for
@@ -110,8 +109,8 @@ this variable."
110Buffer-specific. 109Buffer-specific.
111 110
112A list value specifies a default layout for the current buffer, to be 111A list value specifies a default layout for the current buffer, to be
113applied upon activation of allout `allout-mode'. Any non-nil value will 112applied upon activation of `allout-mode'. Any non-nil value will
114automatically trigger allout `allout-mode', provided `allout-init' 113automatically trigger `allout-mode', provided `allout-init'
115has been called to enable it. 114has been called to enable it.
116 115
117See the docstring for `allout-init' for details on setting up for 116See the docstring for `allout-init' for details on setting up for
@@ -261,7 +260,7 @@ from regular comments that start at bol.")
261 260
262;;;_ = allout-old-style-prefixes 261;;;_ = allout-old-style-prefixes
263(defcustom allout-old-style-prefixes nil 262(defcustom allout-old-style-prefixes nil
264 "*When non-nil, use only old-and-crusty allout-mode `*' topic prefixes. 263 "*When non-nil, use only old-and-crusty `outline-mode' `*' topic prefixes.
265 264
266Non-nil restricts the topic creation and modification 265Non-nil restricts the topic creation and modification
267functions to asterix-padded prefixes, so they look exactly 266functions to asterix-padded prefixes, so they look exactly
@@ -509,7 +508,7 @@ behavior."
509;;;_ : Version 508;;;_ : Version
510;;;_ = allout-version 509;;;_ = allout-version
511(defvar allout-version 510(defvar allout-version
512 (let ((rcs-rev "$Revision: 1.35 $")) 511 (let ((rcs-rev "$Revision: 1.36 $"))
513 (condition-case err 512 (condition-case err
514 (save-match-data 513 (save-match-data
515 (string-match "Revision: \\([0-9]+\\.[0-9]+\\)" rcs-rev) 514 (string-match "Revision: \\([0-9]+\\.[0-9]+\\)" rcs-rev)
@@ -547,7 +546,7 @@ and `allout-distinctive-bullets-string'.")
547(make-variable-buffer-local 'allout-bullets-string-len) 546(make-variable-buffer-local 'allout-bullets-string-len)
548;;;_ = allout-line-boundary-regexp 547;;;_ = allout-line-boundary-regexp
549(defvar allout-line-boundary-regexp () 548(defvar allout-line-boundary-regexp ()
550 "Allout-regexp with allout-style beginning-of-line anchor. 549 "`allout-regexp' with outline style beginning-of-line anchor.
551 550
552\(Ie, C-j, *or* C-m, for prefixes of hidden topics). This is properly 551\(Ie, C-j, *or* C-m, for prefixes of hidden topics). This is properly
553set when `allout-regexp' is produced by `set-allout-regexp', so 552set when `allout-regexp' is produced by `set-allout-regexp', so
@@ -799,7 +798,7 @@ activation. Being deprecated.")
799;;;_ : Mode-Specific Variable Maintenance Utilities 798;;;_ : Mode-Specific Variable Maintenance Utilities
800;;;_ = allout-mode-prior-settings 799;;;_ = allout-mode-prior-settings
801(defvar allout-mode-prior-settings nil 800(defvar allout-mode-prior-settings nil
802 "Internal outline mode use; settings to be resumed on mode deactivation.") 801 "Internal `allout-mode' use; settings to be resumed on mode deactivation.")
803(make-variable-buffer-local 'allout-mode-prior-settings) 802(make-variable-buffer-local 'allout-mode-prior-settings)
804;;;_ > allout-resumptions (name &optional value) 803;;;_ > allout-resumptions (name &optional value)
805(defun allout-resumptions (name &optional value) 804(defun allout-resumptions (name &optional value)
@@ -911,9 +910,9 @@ mode from prop-line file-var activation. Used by `allout-mode' function
911to track repeats.") 910to track repeats.")
912;;;_ > allout-write-file-hook () 911;;;_ > allout-write-file-hook ()
913(defun allout-write-file-hook () 912(defun allout-write-file-hook ()
914 "In outline mode, run as a `local-write-file-hooks' activity. 913 "In `allout-mode', run as a `local-write-file-hooks' activity.
915 914
916Currently just sets `allout-during-write-cue', so allout-change-protection 915Currently just sets `allout-during-write-cue', so outline change-protection
917knows to keep inactive during file write." 916knows to keep inactive during file write."
918 (setq allout-during-write-cue t) 917 (setq allout-during-write-cue t)
919 nil) 918 nil)
@@ -928,10 +927,11 @@ knows to keep inactive during file write."
928 'allout-mode) 927 'allout-mode)
929;;;_ = allout-explicitly-deactivated 928;;;_ = allout-explicitly-deactivated
930(defvar allout-explicitly-deactivated nil 929(defvar allout-explicitly-deactivated nil
931 "Allout-mode was last deliberately deactivated. 930 "Non-nil if `allout-mode' was last deliberately deactivated.
932So `allout-post-command-business' should not reactivate it...") 931So `allout-post-command-business' should not reactivate it...")
933(make-variable-buffer-local 'allout-explicitly-deactivated) 932(make-variable-buffer-local 'allout-explicitly-deactivated)
934;;;_ > allout-init (&optional mode) 933;;;_ > allout-init (&optional mode)
934;;;###autoload
935(defun allout-init (&optional mode) 935(defun allout-init (&optional mode)
936 "Prime `allout-mode' to enable/disable auto-activation, wrt `allout-layout'. 936 "Prime `allout-mode' to enable/disable auto-activation, wrt `allout-layout'.
937 937
@@ -950,9 +950,9 @@ of allout outline mode, contingent to the buffer-specific setting of
950the `allout-layout' variable. (See `allout-layout' and 950the `allout-layout' variable. (See `allout-layout' and
951`allout-expose-topic' docstrings for more details on auto layout). 951`allout-expose-topic' docstrings for more details on auto layout).
952 952
953`allout-init' works by setting up (or removing) the allout-mode 953`allout-init' works by setting up (or removing)
954find-file-hook, and giving `allout-auto-activation' a suitable 954`allout-find-file-hook' in `find-file-hooks', and giving
955setting. 955`allout-auto-activation' a suitable setting.
956 956
957To prime your emacs session for full auto-outline operation, include 957To prime your emacs session for full auto-outline operation, include
958the following two lines in your emacs init file: 958the following two lines in your emacs init file:
@@ -1008,7 +1008,7 @@ the following two lines in your emacs init file:
1008 1008
1009;;;_ > allout-setup-menubar () 1009;;;_ > allout-setup-menubar ()
1010(defun allout-setup-menubar () 1010(defun allout-setup-menubar ()
1011 "Populate the current buffer's menubar with allout allout-mode stuff." 1011 "Populate the current buffer's menubar with `allout-mode' stuff."
1012 (let ((menus (list allout-mode-exposure-menu 1012 (let ((menus (list allout-mode-exposure-menu
1013 allout-mode-editing-menu 1013 allout-mode-editing-menu
1014 allout-mode-navigation-menu 1014 allout-mode-navigation-menu
@@ -1027,7 +1027,7 @@ the following two lines in your emacs init file:
1027Optional arg forces mode to re-initialize iff arg is positive num or 1027Optional arg forces mode to re-initialize iff arg is positive num or
1028symbol. Allout outline mode always runs as a minor mode. 1028symbol. Allout outline mode always runs as a minor mode.
1029 1029
1030Allout outline mode provides extensive allout-oriented formatting and 1030Allout outline mode provides extensive outline oriented formatting and
1031manipulation. It enables structural editing of outlines, as well as 1031manipulation. It enables structural editing of outlines, as well as
1032navigation and exposure. It also is specifically aimed at 1032navigation and exposure. It also is specifically aimed at
1033accommodating syntax-sensitive text like programming languages. \(For 1033accommodating syntax-sensitive text like programming languages. \(For
@@ -1176,7 +1176,7 @@ PREFIX-LEAD:
1176 `allout-header-prefix' and then reinitializing `allout-mode'. 1176 `allout-header-prefix' and then reinitializing `allout-mode'.
1177 1177
1178 By setting the prefix-lead to the comment-string of a 1178 By setting the prefix-lead to the comment-string of a
1179 programming language, you can embed allout-structuring in 1179 programming language, you can embed outline structuring in
1180 program code without interfering with the language processing 1180 program code without interfering with the language processing
1181 of that code. See `allout-use-mode-specific-leader' 1181 of that code. See `allout-use-mode-specific-leader'
1182 docstring for more detail. 1182 docstring for more detail.
@@ -1237,7 +1237,7 @@ OPEN: A topic that is not closed, though its offspring or body may be."
1237 ;; off on second invocation, so we detect it as best we can, and 1237 ;; off on second invocation, so we detect it as best we can, and
1238 ;; skip everything. 1238 ;; skip everything.
1239 ((and same-complex-command ; Still in same complex command 1239 ((and same-complex-command ; Still in same complex command
1240 ; as last time `allout-mode' invoked. 1240 ; as last time `allout-mode' invoked.
1241 active ; Already activated. 1241 active ; Already activated.
1242 (not explicit-activation) ; Prop-line file-vars don't have args. 1242 (not explicit-activation) ; Prop-line file-vars don't have args.
1243 (string-match "^19.1[89]" ; Bug only known to be in v19.18 and 1243 (string-match "^19.1[89]" ; Bug only known to be in v19.18 and
@@ -1364,7 +1364,7 @@ OPEN: A topic that is not closed, though its offspring or body may be."
1364 1364
1365 (or (assq 'allout-mode minor-mode-alist) 1365 (or (assq 'allout-mode minor-mode-alist)
1366 (setq minor-mode-alist 1366 (setq minor-mode-alist
1367 (cons '(allout-mode " Outl") minor-mode-alist))) 1367 (cons '(allout-mode " Allout") minor-mode-alist)))
1368 1368
1369 (allout-setup-menubar) 1369 (allout-setup-menubar)
1370 1370
@@ -1650,7 +1650,7 @@ Optional argument LEVELS specifies the depth \(relative to start
1650depth) for the chart. Subsequent optional args are not for public 1650depth) for the chart. Subsequent optional args are not for public
1651use. 1651use.
1652 1652
1653Charts are used to capture outline structure, so that allout-altering 1653Charts are used to capture outline structure, so that outline altering
1654routines need assess the structure only once, and then use the chart 1654routines need assess the structure only once, and then use the chart
1655for their elaborate manipulations. 1655for their elaborate manipulations.
1656 1656
@@ -2019,7 +2019,7 @@ Return depth if successful, nil otherwise."
2019 nil)))) 2019 nil))))
2020;;;_ > allout-previous-sibling (&optional depth backward) 2020;;;_ > allout-previous-sibling (&optional depth backward)
2021(defun allout-previous-sibling (&optional depth backward) 2021(defun allout-previous-sibling (&optional depth backward)
2022 "Like `allout-forward-current-level',but backwards & respect invisible topics. 2022 "Like `allout-forward-current-level', but backwards & respect invisible topics.
2023 2023
2024Optional DEPTH specifies depth to traverse, default current depth. 2024Optional DEPTH specifies depth to traverse, default current depth.
2025 2025
@@ -2333,7 +2333,7 @@ are mapped to the command of the corresponding control-key on the
2333Implements special behavior when cursor is on bullet char. 2333Implements special behavior when cursor is on bullet char.
2334 2334
2335Self-insert characters are reinterpreted control-character references 2335Self-insert characters are reinterpreted control-character references
2336into the `allout-mode-map'. The `allout-mode' post-command hook will 2336into the `allout-mode-map'. The `allout-mode' `post-command-hook' will
2337position a cursor that has moved as a result of such reinterpretation, 2337position a cursor that has moved as a result of such reinterpretation,
2338on the destination topic's bullet, when the cursor wound up in the 2338on the destination topic's bullet, when the cursor wound up in the
2339 2339
@@ -2494,7 +2494,7 @@ actual quits."
2494;;; Prevent unnecessary font-lock while isearching! 2494;;; Prevent unnecessary font-lock while isearching!
2495(defvar isearch-was-font-locking nil) 2495(defvar isearch-was-font-locking nil)
2496(defun isearch-inhibit-font-lock () 2496(defun isearch-inhibit-font-lock ()
2497 "Inhibit font-lock while isearching - for use on `isearch-mode-hook'." 2497 "Inhibit `font-lock-mode' while isearching - for use on `isearch-mode-hook'."
2498 (if (and (allout-mode-p) (boundp 'font-lock-mode) font-lock-mode) 2498 (if (and (allout-mode-p) (boundp 'font-lock-mode) font-lock-mode)
2499 (setq isearch-was-font-locking t 2499 (setq isearch-was-font-locking t
2500 font-lock-mode nil))) 2500 font-lock-mode nil)))
@@ -2907,7 +2907,7 @@ topic prior to the current one."
2907 "Name of modal fill function being wrapped by `allout-auto-fill'.") 2907 "Name of modal fill function being wrapped by `allout-auto-fill'.")
2908;;;_ > allout-auto-fill () 2908;;;_ > allout-auto-fill ()
2909(defun allout-auto-fill () 2909(defun allout-auto-fill ()
2910 "Allout-mode autofill function. 2910 "`allout-mode' autofill function.
2911 2911
2912Maintains outline hanging topic indentation if 2912Maintains outline hanging topic indentation if
2913`allout-use-hanging-indents' is set." 2913`allout-use-hanging-indents' is set."
@@ -3322,7 +3322,7 @@ Leaves primary topic's trailing vertical whitespace, if any."
3322;;;_ > allout-yank-processing () 3322;;;_ > allout-yank-processing ()
3323(defun allout-yank-processing (&optional arg) 3323(defun allout-yank-processing (&optional arg)
3324 3324
3325 "Incidental allout-specific business to be done just after text yanks. 3325 "Incidental outline specific business to be done just after text yanks.
3326 3326
3327Does depth adjustment of yanked topics, when: 3327Does depth adjustment of yanked topics, when:
3328 3328
@@ -3338,7 +3338,7 @@ header into which it's being yanked.
3338 3338
3339The point is left in front of yanked, adjusted topics, rather than 3339The point is left in front of yanked, adjusted topics, rather than
3340at the end (and vice-versa with the mark). Non-adjusted yanks, 3340at the end (and vice-versa with the mark). Non-adjusted yanks,
3341however, are left exactly like normal, non-allout-specific yanks." 3341however, are left exactly like normal, not outline specific yanks."
3342 3342
3343 (interactive "*P") 3343 (interactive "*P")
3344 ; Get to beginning, leaving 3344 ; Get to beginning, leaving
@@ -3448,7 +3448,7 @@ however, are left exactly like normal, non-allout-specific yanks."
3448 (exchange-point-and-mark)))) 3448 (exchange-point-and-mark))))
3449;;;_ > allout-yank (&optional arg) 3449;;;_ > allout-yank (&optional arg)
3450(defun allout-yank (&optional arg) 3450(defun allout-yank (&optional arg)
3451 "Allout-mode yank, with depth and numbering adjustment of yanked topics. 3451 "`allout-mode' yank, with depth and numbering adjustment of yanked topics.
3452 3452
3453Non-topic yanks work no differently than normal yanks. 3453Non-topic yanks work no differently than normal yanks.
3454 3454
@@ -3472,7 +3472,7 @@ exactly like normal yanks.
3472Numbering of yanked topics, and the successive siblings at the depth 3472Numbering of yanked topics, and the successive siblings at the depth
3473into which they're being yanked, is adjusted. 3473into which they're being yanked, is adjusted.
3474 3474
3475`Allout-yank-pop' works with `allout-yank' just like normal yank-pop 3475`allout-yank-pop' works with `allout-yank' just like normal yank-pop
3476works with normal yank in non-outline buffers." 3476works with normal yank in non-outline buffers."
3477 3477
3478 (interactive "*P") 3478 (interactive "*P")
@@ -3561,7 +3561,7 @@ See `allout-flag-region' for more details."
3561 3561
3562This is a way to give restricted peek at a concealed locality without the 3562This is a way to give restricted peek at a concealed locality without the
3563expense of exposing its context, but can leave the outline with aberrant 3563expense of exposing its context, but can leave the outline with aberrant
3564exposure. `allout-hide-current-entry-completely' or `allout-show-offshoot' 3564exposure. `allout-hide-current-entry-completely' or `allout-show-to-offshoot'
3565should be used after the peek to rectify the exposure." 3565should be used after the peek to rectify the exposure."
3566 3566
3567 (interactive) 3567 (interactive)