aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog23
-rw-r--r--lisp/allout.el42
2 files changed, 48 insertions, 17 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 9e2b44df3ee..2f4e7f8ec85 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,26 @@
12006-05-12 Ken Manheimer <ken.manheimer@gmail.com>
2
3 * allout.el: (allout-view-change-hook): Marked as being deprecated,
4 to be replaced by `allout-exposure-change-hook'.
5 (allout-exposure-change-hook): New, replacing
6 `allout-view-change-hook'.
7 (allout-flag-region): Run new hook `allout-exposure-change-hook',
8 in addition to `allout-view-change-hook'.
9 (allout-show-bodies, allout-old-style-prefixes)
10 (allout-stylish-prefixes, allout-use-hanging-indents): Quote the
11 lambda forms to prevent their showing up in variable help
12 presentations as inscrutable byte-compiled code.
13 (allout-numbered-bullet, allout-file-xref-bullet, allout-layout):
14 Use string-or-null-p to qualify safe-local-variable values.
15 (allout-reindent-bodies): Use memq to qualify matches against
16 valid safe-local-variable values. Also, quote the lambda as above.
17 (allout-use-mode-specific-leader): Add missing candidate-value
18 symbols, use memq, and quote the lambda.
19 (allout-overlay-interior-modification-handler): Remove unused
20 variables `msg' and 'opened'.
21 (allout-hidden-p): Constrain invisibility consideration to allout's
22 invisibility spec, disregarding invisibility for other reasons.
23
12006-05-12 Reiner Steib <Reiner.Steib@gmx.de> 242006-05-12 Reiner Steib <Reiner.Steib@gmx.de>
2 25
3 * files.el (version-control): Correct safe values. 26 * files.el (version-control): Correct safe values.
diff --git a/lisp/allout.el b/lisp/allout.el
index dc19c1fa15a..9166ef33078 100644
--- a/lisp/allout.el
+++ b/lisp/allout.el
@@ -199,7 +199,7 @@ just the header."
199(make-variable-buffer-local 'allout-show-bodies) 199(make-variable-buffer-local 'allout-show-bodies)
200;;;###autoload 200;;;###autoload
201(put 'allout-show-bodies 'safe-local-variable 201(put 'allout-show-bodies 'safe-local-variable
202 (lambda (x) (member x '(t nil)))) 202 '(lambda (x) (member x '(t nil))))
203 203
204;;;_ = allout-header-prefix 204;;;_ = allout-header-prefix
205(defcustom allout-header-prefix "." 205(defcustom allout-header-prefix "."
@@ -316,7 +316,8 @@ incorrect.]"
316 :group 'allout) 316 :group 'allout)
317;;;###autoload 317;;;###autoload
318(put 'allout-use-mode-specific-leader 'safe-local-variable 318(put 'allout-use-mode-specific-leader 'safe-local-variable
319 (lambda (x) (or (member x '(t nil)) (stringp x)))) 319 '(lambda (x) (or (memq x '(t nil allout-mode-leaders comment-start))
320 (stringp x))))
320;;;_ = allout-mode-leaders 321;;;_ = allout-mode-leaders
321(defvar allout-mode-leaders '() 322(defvar allout-mode-leaders '()
322 "Specific allout-prefix leading strings per major modes. 323 "Specific allout-prefix leading strings per major modes.
@@ -344,7 +345,7 @@ are always respected by the topic maneuvering functions."
344(make-variable-buffer-local 'allout-old-style-prefixes) 345(make-variable-buffer-local 'allout-old-style-prefixes)
345;;;###autoload 346;;;###autoload
346(put 'allout-old-style-prefixes 'safe-local-variable 347(put 'allout-old-style-prefixes 'safe-local-variable
347 (lambda (x) (member x '(t nil)))) 348 '(lambda (x) (member x '(t nil))))
348;;;_ = allout-stylish-prefixes - alternating bullets 349;;;_ = allout-stylish-prefixes - alternating bullets
349(defcustom allout-stylish-prefixes t 350(defcustom allout-stylish-prefixes t
350 "*Do fancy stuff with topic prefix bullets according to level, etc. 351 "*Do fancy stuff with topic prefix bullets according to level, etc.
@@ -393,7 +394,7 @@ is non-nil."
393(make-variable-buffer-local 'allout-stylish-prefixes) 394(make-variable-buffer-local 'allout-stylish-prefixes)
394;;;###autoload 395;;;###autoload
395(put 'allout-stylish-prefixes 'safe-local-variable 396(put 'allout-stylish-prefixes 'safe-local-variable
396 (lambda (x) (member x '(t nil)))) 397 '(lambda (x) (member x '(t nil))))
397 398
398;;;_ = allout-numbered-bullet 399;;;_ = allout-numbered-bullet
399(defcustom allout-numbered-bullet "#" 400(defcustom allout-numbered-bullet "#"
@@ -407,8 +408,7 @@ disables numbering maintenance."
407 :group 'allout) 408 :group 'allout)
408(make-variable-buffer-local 'allout-numbered-bullet) 409(make-variable-buffer-local 'allout-numbered-bullet)
409;;;###autoload 410;;;###autoload
410(put 'allout-numbered-bullet 'safe-local-variable 411(put 'allout-numbered-bullet 'safe-local-variable 'string-or-null-p)
411 (lambda (x) (or (not x) (stringp x))))
412;;;_ = allout-file-xref-bullet 412;;;_ = allout-file-xref-bullet
413(defcustom allout-file-xref-bullet "@" 413(defcustom allout-file-xref-bullet "@"
414 "*Bullet signifying file cross-references, for `allout-resolve-xref'. 414 "*Bullet signifying file cross-references, for `allout-resolve-xref'.
@@ -417,8 +417,7 @@ Set this var to the bullet you want to use for file cross-references."
417 :type '(choice (const nil) string) 417 :type '(choice (const nil) string)
418 :group 'allout) 418 :group 'allout)
419;;;###autoload 419;;;###autoload
420(put 'allout-file-xref-bullet 'safe-local-variable 420(put 'allout-file-xref-bullet 'safe-local-variable 'string-or-null-p)
421 (lambda (x) (or (not x) (stringp x))))
422;;;_ = allout-presentation-padding 421;;;_ = allout-presentation-padding
423(defcustom allout-presentation-padding 2 422(defcustom allout-presentation-padding 2
424 "*Presentation-format white-space padding factor, for greater indent." 423 "*Presentation-format white-space padding factor, for greater indent."
@@ -621,7 +620,7 @@ where auto-fill occurs."
621(make-variable-buffer-local 'allout-use-hanging-indents) 620(make-variable-buffer-local 'allout-use-hanging-indents)
622;;;###autoload 621;;;###autoload
623(put 'allout-use-hanging-indents 'safe-local-variable 622(put 'allout-use-hanging-indents 'safe-local-variable
624 (lambda (x) (member x '(t nil)))) 623 '(lambda (x) (member x '(t nil))))
625 624
626;;;_ = allout-reindent-bodies 625;;;_ = allout-reindent-bodies
627(defcustom allout-reindent-bodies (if allout-use-hanging-indents 626(defcustom allout-reindent-bodies (if allout-use-hanging-indents
@@ -641,7 +640,7 @@ those that do not have the variable `comment-start' set. A value of
641(make-variable-buffer-local 'allout-reindent-bodies) 640(make-variable-buffer-local 'allout-reindent-bodies)
642;;;###autoload 641;;;###autoload
643(put 'allout-reindent-bodies 'safe-local-variable 642(put 'allout-reindent-bodies 'safe-local-variable
644 (lambda (x) (member x '(nil t text force)))) 643 '(lambda (x) (memq x '(nil t text force))))
645 644
646;;;_ = allout-enable-file-variable-adjustment 645;;;_ = allout-enable-file-variable-adjustment
647(defcustom allout-enable-file-variable-adjustment t 646(defcustom allout-enable-file-variable-adjustment t
@@ -708,8 +707,7 @@ case the value of `allout-default-layout' is used.")
708(make-variable-buffer-local 'allout-layout) 707(make-variable-buffer-local 'allout-layout)
709;;;###autoload 708;;;###autoload
710(put 'allout-layout 'safe-local-variable 709(put 'allout-layout 'safe-local-variable
711 (lambda (x) (or (numberp x) (listp x) (integerp x) 710 '(lambda (x) (or (numberp x) (listp x) (memq x '(: * + -)))))
712 (member x '(: * + -)))))
713 711
714;;;_ : Topic header format 712;;;_ : Topic header format
715;;;_ = allout-regexp 713;;;_ = allout-regexp
@@ -1064,9 +1062,19 @@ from the list."
1064;;;_ = allout-overlay-category 1062;;;_ = allout-overlay-category
1065(defvar allout-overlay-category nil 1063(defvar allout-overlay-category nil
1066 "Symbol for use in allout invisible-text overlays as the category.") 1064 "Symbol for use in allout invisible-text overlays as the category.")
1067;;;_ = allout-view-change-hook 1065;;;_ x allout-view-change-hook
1068(defvar allout-view-change-hook nil 1066(defvar allout-view-change-hook nil
1069 "*Hook that's run after allout outline visibility changes.") 1067 "*\(Deprecated\) Hook that's run after allout outline exposure changes.
1068
1069Switch to using `allout-exposure-change-hook' instead. Both
1070variables are currently used if populated, but this one will be
1071ignored in a subsequent allout version.")
1072;;;_ = allout-exposure-change-hook
1073(defvar allout-exposure-change-hook nil
1074 "*Hook that's run after allout outline exposure changes.
1075
1076This variable will replace `allout-view-change-hook' in a subsequent allout
1077version, though both are currently checked and used, if populated.")
1070 1078
1071;;;_ = allout-outside-normal-auto-fill-function 1079;;;_ = allout-outside-normal-auto-fill-function
1072(defvar allout-outside-normal-auto-fill-function nil 1080(defvar allout-outside-normal-auto-fill-function nil
@@ -1727,7 +1735,7 @@ OPEN: A topic that is not closed, though its offspring or body may be."
1727;;;_ > allout-hidden-p (&optional pos) 1735;;;_ > allout-hidden-p (&optional pos)
1728(defsubst allout-hidden-p (&optional pos) 1736(defsubst allout-hidden-p (&optional pos)
1729 "Non-nil if the character after point is invisible." 1737 "Non-nil if the character after point is invisible."
1730 (get-char-property (or pos (point)) 'invisible)) 1738 (eq (get-char-property (or pos (point)) 'invisible) 'allout))
1731 1739
1732;;;_ > allout-overlay-insert-in-front-handler (ol after beg end 1740;;;_ > allout-overlay-insert-in-front-handler (ol after beg end
1733;;; &optional prelen) 1741;;; &optional prelen)
@@ -3831,7 +3839,8 @@ Text is shown if flag is nil and hidden otherwise."
3831 (let ((props (symbol-plist 'allout-overlay-category))) 3839 (let ((props (symbol-plist 'allout-overlay-category)))
3832 (while props 3840 (while props
3833 (overlay-put o (pop props) (pop props))))))) 3841 (overlay-put o (pop props) (pop props)))))))
3834 (run-hooks 'allout-view-change-hook)) 3842 (run-hooks 'allout-view-change-hook)
3843 (run-hooks 'allout-exposure-change-hook))
3835;;;_ > allout-flag-current-subtree (flag) 3844;;;_ > allout-flag-current-subtree (flag)
3836(defun allout-flag-current-subtree (flag) 3845(defun allout-flag-current-subtree (flag)
3837 "Conceal currently-visible topic's subtree if FLAG non-nil, else reveal it." 3846 "Conceal currently-visible topic's subtree if FLAG non-nil, else reveal it."
@@ -5888,7 +5897,6 @@ To ignore intangibility, bind `inhibit-point-motion-hooks' to t."
5888 (or (memq prop buffer-invisibility-spec) 5897 (or (memq prop buffer-invisibility-spec)
5889 (assq prop buffer-invisibility-spec)))))) 5898 (assq prop buffer-invisibility-spec))))))
5890 5899
5891
5892;;;_ #10 Unfinished 5900;;;_ #10 Unfinished
5893;;;_ > allout-bullet-isearch (&optional bullet) 5901;;;_ > allout-bullet-isearch (&optional bullet)
5894(defun allout-bullet-isearch (&optional bullet) 5902(defun allout-bullet-isearch (&optional bullet)