comparison lisp/allout.el @ 50855:31ce4fcda3d8

(allout-auto-activation, allout-use-mode-specific-leader) (allout-reindent-bodies, allout-unprotected): Don't quote nil and t in docstrings.
author Juanma Barranquero <lekktu@gmail.com>
date Tue, 06 May 2003 17:38:32 +0000
parents 4a0a4a66f5b1
children 695cf19ef79e
comparison
equal deleted inserted replaced
50854:bb29b3dba5ac 50855:31ce4fcda3d8
3 ;; Copyright (C) 1992, 1993, 1994, 2001, 2002 Free Software Foundation, Inc. 3 ;; Copyright (C) 1992, 1993, 1994, 2001, 2002 Free Software Foundation, Inc.
4 4
5 ;; Author: Ken Manheimer <klm@zope.com> 5 ;; Author: Ken Manheimer <klm@zope.com>
6 ;; Maintainer: Ken Manheimer <klm@zope.com> 6 ;; Maintainer: Ken Manheimer <klm@zope.com>
7 ;; Created: Dec 1991 - first release to usenet 7 ;; Created: Dec 1991 - first release to usenet
8 ;; Version: $Id: allout.el,v 1.41 2003/02/24 17:28:28 lektu Exp $|| 8 ;; Version: $Id: allout.el,v 1.42 2003/02/24 17:29:49 lektu 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.
12 12
13 ;; GNU Emacs is free software; you can redistribute it and/or modify 13 ;; GNU Emacs is free software; you can redistribute it and/or modify
80 Setq-default by `allout-init' to regulate whether or not allout 80 Setq-default by `allout-init' to regulate whether or not allout
81 outline mode is automatically activated when the buffer-specific 81 outline mode is automatically activated when the buffer-specific
82 variable `allout-layout' is non-nil, and whether or not the layout 82 variable `allout-layout' is non-nil, and whether or not the layout
83 dictated by `allout-layout' should be imposed on mode activation. 83 dictated by `allout-layout' should be imposed on mode activation.
84 84
85 With value `t', auto-mode-activation and auto-layout are enabled. 85 With value t, auto-mode-activation and auto-layout are enabled.
86 \(This also depends on `allout-find-file-hook' being installed in 86 \(This also depends on `allout-find-file-hook' being installed in
87 `find-file-hooks', which is also done by `allout-init'.) 87 `find-file-hooks', which is also done by `allout-init'.)
88 88
89 With value `ask', auto-mode-activation is enabled, and endorsement for 89 With value `ask', auto-mode-activation is enabled, and endorsement for
90 performing auto-layout is asked of the user each time. 90 performing auto-layout is asked of the user each time.
91 91
92 With value `activate', only auto-mode-activation is enabled, 92 With value `activate', only auto-mode-activation is enabled,
93 auto-layout is not. 93 auto-layout is not.
94 94
95 With value `nil', neither auto-mode-activation nor auto-layout are 95 With value nil, neither auto-mode-activation nor auto-layout are
96 enabled. 96 enabled.
97 97
98 See the docstring for `allout-init' for the proper interface to 98 See the docstring for `allout-init' for the proper interface to
99 this variable." 99 this variable."
100 :type '(choice (const :tag "On" t) 100 :type '(choice (const :tag "On" t)
224 and/or comment-start string, if any, to lead the topic prefix string, 224 and/or comment-start string, if any, to lead the topic prefix string,
225 so topic headers look like comments in the programming language. 225 so topic headers look like comments in the programming language.
226 226
227 String values are used as they stand. 227 String values are used as they stand.
228 228
229 Value `t' means to first check for assoc value in `allout-mode-leaders' 229 Value t means to first check for assoc value in `allout-mode-leaders'
230 alist, then use comment-start string, if any, then use default \(`.'). 230 alist, then use comment-start string, if any, then use default \(`.').
231 \(See note about use of comment-start strings, below.) 231 \(See note about use of comment-start strings, below.)
232 232
233 Set to the symbol for either of `allout-mode-leaders' or 233 Set to the symbol for either of `allout-mode-leaders' or
234 `comment-start' to use only one of them, respectively. 234 `comment-start' to use only one of them, respectively.
235 235
236 Value `nil' means to always use the default \(`.'). 236 Value nil means to always use the default \(`.').
237 237
238 comment-start strings that do not end in spaces are tripled, and an 238 comment-start strings that do not end in spaces are tripled, and an
239 `_' underscore is tacked on the end, to distinguish them from regular 239 `_' underscore is tacked on the end, to distinguish them from regular
240 comment strings. comment-start strings that do end in spaces are not 240 comment strings. comment-start strings that do end in spaces are not
241 tripled, but an underscore is substituted for the space. [This 241 tripled, but an underscore is substituted for the space. [This
478 478
479 When active, topic body lines that are indented even with or beyond 479 When active, topic body lines that are indented even with or beyond
480 their topic header are reindented to correspond with depth shifts of 480 their topic header are reindented to correspond with depth shifts of
481 the header. 481 the header.
482 482
483 A value of `t' enables reindent in non-programming-code buffers, ie 483 A value of t enables reindent in non-programming-code buffers, ie
484 those that do not have the variable `comment-start' set. A value of 484 those that do not have the variable `comment-start' set. A value of
485 `force' enables reindent whether or not `comment-start' is set." 485 `force' enables reindent whether or not `comment-start' is set."
486 :type '(choice (const nil) (const t) (const text) (const force)) 486 :type '(choice (const nil) (const t) (const text) (const force))
487 :group 'allout) 487 :group 'allout)
488 488
506 506
507 ;;;_ #1 Internal Outline Formatting and Configuration 507 ;;;_ #1 Internal Outline Formatting and Configuration
508 ;;;_ : Version 508 ;;;_ : Version
509 ;;;_ = allout-version 509 ;;;_ = allout-version
510 (defvar allout-version 510 (defvar allout-version
511 (let ((rcs-rev "$Revision: 1.41 $")) 511 (let ((rcs-rev "$Revision: 1.42 $"))
512 (condition-case err 512 (condition-case err
513 (save-match-data 513 (save-match-data
514 (string-match "Revision: \\([0-9]+\\.[0-9]+\\)" rcs-rev) 514 (string-match "Revision: \\([0-9]+\\.[0-9]+\\)" rcs-rev)
515 (substring rcs-rev (match-beginning 1) (match-end 1))) 515 (substring rcs-rev (match-beginning 1) (match-end 1)))
516 ('error rcs-rev))) 516 ('error rcs-rev)))
891 native outline functions to temporarily override that protection. 891 native outline functions to temporarily override that protection.
892 It's automatically reset to nil after every buffer modification.") 892 It's automatically reset to nil after every buffer modification.")
893 (make-variable-buffer-local 'allout-override-protect) 893 (make-variable-buffer-local 'allout-override-protect)
894 ;;;_ > allout-unprotected (expr) 894 ;;;_ > allout-unprotected (expr)
895 (defmacro allout-unprotected (expr) 895 (defmacro allout-unprotected (expr)
896 "Evaluate EXPRESSION with `allout-override-protect' let-bound `t'." 896 "Evaluate EXPRESSION with `allout-override-protect' let-bound t."
897 `(let ((allout-override-protect t)) 897 `(let ((allout-override-protect t))
898 ,expr)) 898 ,expr))
899 ;;;_ = allout-undo-aggregation 899 ;;;_ = allout-undo-aggregation
900 (defvar allout-undo-aggregation 30 900 (defvar allout-undo-aggregation 30
901 "Amount of successive self-insert actions to bunch together per undo. 901 "Amount of successive self-insert actions to bunch together per undo.