Changeset 4073 for trunk/lisp/allout.el
- Timestamp:
- 05/03/06 18:37:43 (3 years ago)
- Files:
-
- trunk (modified) (1 prop)
- trunk/lisp/allout.el (modified) (26 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk
- Property svn:ignore changed from
bin
to
bin
site-lisp
- Property svn:ignore changed from
trunk/lisp/allout.el
r4058 r4073 85 85 (require 'overlay) 86 86 )) 87 (autoload 'pgg-gpg-symmetric-key-p "pgg-gpg"88 "True if decoded armor MESSAGE-KEYS has symmetric encryption indicator.")89 87 90 88 ;;;_* USER CUSTOMIZATION VARIABLES: … … 200 198 :group 'allout) 201 199 (make-variable-buffer-local 'allout-show-bodies) 200 ;;;###autoload 201 (put 'allout-show-bodies 'safe-local-variable 202 (lambda (x) (member x '(t nil)))) 202 203 203 204 ;;;_ = allout-header-prefix … … 213 214 :group 'allout) 214 215 (make-variable-buffer-local 'allout-header-prefix) 216 ;;;###autoload 217 (put 'allout-header-prefix 'safe-local-variable 'stringp) 215 218 ;;;_ = allout-primary-bullet 216 219 (defcustom allout-primary-bullet "*" … … 228 231 :group 'allout) 229 232 (make-variable-buffer-local 'allout-primary-bullet) 233 ;;;###autoload 234 (put 'allout-primary-bullet 'safe-local-variable 'stringp) 230 235 ;;;_ = allout-plain-bullets-string 231 236 (defcustom allout-plain-bullets-string ".," … … 242 247 :group 'allout) 243 248 (make-variable-buffer-local 'allout-plain-bullets-string) 249 ;;;###autoload 250 (put 'allout-plain-bullets-string 'safe-local-variable 'stringp) 244 251 ;;;_ = allout-distinctive-bullets-string 245 252 (defcustom allout-distinctive-bullets-string "*+-=>()[{}&!?#%\"X@$~_\\:;^" … … 275 282 :group 'allout) 276 283 (make-variable-buffer-local 'allout-distinctive-bullets-string) 284 ;;;###autoload 285 (put 'allout-distinctive-bullets-string 'safe-local-variable 'stringp) 277 286 278 287 ;;;_ = allout-use-mode-specific-leader … … 306 315 (const comment-start)) 307 316 :group 'allout) 317 ;;;###autoload 318 (put 'allout-use-mode-specific-leader 'safe-local-variable 319 (lambda (x) (or (member x '(t nil)) (stringp x)))) 308 320 ;;;_ = allout-mode-leaders 309 321 (defvar allout-mode-leaders '() … … 331 343 :group 'allout) 332 344 (make-variable-buffer-local 'allout-old-style-prefixes) 345 ;;;###autoload 346 (put 'allout-old-style-prefixes 'safe-local-variable 347 (lambda (x) (member x '(t nil)))) 333 348 ;;;_ = allout-stylish-prefixes - alternating bullets 334 349 (defcustom allout-stylish-prefixes t … … 377 392 :group 'allout) 378 393 (make-variable-buffer-local 'allout-stylish-prefixes) 394 ;;;###autoload 395 (put 'allout-stylish-prefixes 'safe-local-variable 396 (lambda (x) (member x '(t nil)))) 379 397 380 398 ;;;_ = allout-numbered-bullet … … 389 407 :group 'allout) 390 408 (make-variable-buffer-local 'allout-numbered-bullet) 409 ;;;###autoload 410 (put 'allout-numbered-bullet 'safe-local-variable 411 (lambda (x) (or (not x) (stringp x)))) 391 412 ;;;_ = allout-file-xref-bullet 392 413 (defcustom allout-file-xref-bullet "@" … … 396 417 :type '(choice (const nil) string) 397 418 :group 'allout) 419 ;;;###autoload 420 (put 'allout-file-xref-bullet 'safe-local-variable 421 (lambda (x) (or (not x) (stringp x)))) 398 422 ;;;_ = allout-presentation-padding 399 423 (defcustom allout-presentation-padding 2 … … 403 427 404 428 (make-variable-buffer-local 'allout-presentation-padding) 429 ;;;###autoload 430 (put 'allout-presentation-padding 'safe-local-variable 'integerp) 405 431 406 432 ;;;_ = allout-abbreviate-flattened-numbering … … 456 482 457 483 ;;;_ + Topic encryption 484 ;;;_ = allout-encryption group 485 (defgroup allout-encryption nil 486 "Settings for topic encryption features of allout outliner." 487 :group 'allout) 458 488 ;;;_ = allout-topic-encryption-bullet 459 489 (defcustom allout-topic-encryption-bullet "~" 460 490 "*Bullet signifying encryption of the entry's body." 461 491 :type '(choice (const nil) string) 462 :group 'allout) 492 :version "22.0" 493 :group 'allout-encryption) 463 494 ;;;_ = allout-passphrase-verifier-handling 464 495 (defcustom allout-passphrase-verifier-handling t … … 468 499 variable for details about allout ajustment of file variables." 469 500 :type 'boolean 470 :group 'allout) 501 :version "22.0" 502 :group 'allout-encryption) 471 503 (make-variable-buffer-local 'allout-passphrase-verifier-handling) 472 504 ;;;_ = allout-passphrase-hint-handling … … 483 515 (const needed) 484 516 (const disabled)) 485 :group 'allout) 517 :version "22.0" 518 :group 'allout-encryption) 486 519 (make-variable-buffer-local 'allout-passphrase-hint-handling) 487 520 ;;;_ = allout-encrypt-unencrypted-on-saves … … 515 548 (const :tag "All except current topic" except-current) 516 549 (const :tag "No" nil)) 517 :group 'allout) 550 :version "22.0" 551 :group 'allout-encryption) 518 552 (make-variable-buffer-local 'allout-encrypt-unencrypted-on-saves) 519 553 … … 586 620 :group 'allout) 587 621 (make-variable-buffer-local 'allout-use-hanging-indents) 622 ;;;###autoload 623 (put 'allout-use-hanging-indents 'safe-local-variable 624 (lambda (x) (member x '(t nil)))) 588 625 589 626 ;;;_ = allout-reindent-bodies … … 603 640 604 641 (make-variable-buffer-local 'allout-reindent-bodies) 642 ;;;###autoload 643 (put 'allout-reindent-bodies 'safe-local-variable 644 (lambda (x) (member x '(nil t text force)))) 605 645 606 646 ;;;_ = allout-enable-file-variable-adjustment … … 668 708 (make-variable-buffer-local 'allout-layout) 669 709 ;;;###autoload 670 (put 'allout-layout 'safe-local-variable t) 710 (put 'allout-layout 'safe-local-variable 711 (lambda (x) (or (numberp x) (listp x) (integerp x) 712 (member x '(: * + -))))) 671 713 672 714 ;;;_ : Topic header format … … 1054 1096 `allout-enable-file-variable-adjustment' for details about that.") 1055 1097 (make-variable-buffer-local 'allout-passphrase-verifier-string) 1056 (put 'allout-passphrase-verifier-string 'safe-local-variable t) 1098 ;;;###autoload 1099 (put 'allout-passphrase-verifier-string 'safe-local-variable 'stringp) 1057 1100 ;;;_ = allout-passphrase-hint-string 1058 1101 (defvar allout-passphrase-hint-string "" … … 1066 1109 `allout-enable-file-variable-adjustment' for details about that.") 1067 1110 (make-variable-buffer-local 'allout-passphrase-hint-string) 1068 (put 'allout-passphrase-hint-string 'safe-local-variable t)1069 1111 (setq-default allout-passphrase-hint-string "") 1112 ;;;###autoload 1113 (put 'allout-passphrase-hint-string 'safe-local-variable 'stringp) 1070 1114 ;;;_ = allout-after-save-decrypt 1071 1115 (defvar allout-after-save-decrypt nil … … 1574 1618 (setq allout-mode-map 1575 1619 (produce-allout-mode-map allout-keybindings-list)) 1620 (substitute-key-definition 'beginning-of-line 1621 'move-beginning-of-line 1622 allout-mode-map global-map) 1623 (substitute-key-definition 'end-of-line 1624 'move-end-of-line 1625 allout-mode-map global-map) 1576 1626 (produce-allout-mode-menubar-entries) 1577 1627 (fset 'allout-mode-map allout-mode-map) … … 5779 5829 (condition-case nil (line-move (1- arg)) (error nil))) 5780 5830 5781 (let ((orig (point))) 5782 ;; Move to beginning-of-line, ignoring fields and invisibles. 5783 (skip-chars-backward "^\n") 5784 (while (and (not (bobp)) (line-move-invisible-p (1- (point)))) 5785 (goto-char (if (featurep 'xemacs) 5786 (previous-property-change (point)) 5787 (previous-char-property-change (point)))) 5788 (skip-chars-backward "^\n")) 5789 (vertical-motion 0) 5790 (if (/= orig (point)) 5791 (goto-char orig)))) 5831 ;; Move to beginning-of-line, ignoring fields and invisibles. 5832 (skip-chars-backward "^\n") 5833 (while (and (not (bobp)) (line-move-invisible-p (1- (point)))) 5834 (goto-char (if (featurep 'xemacs) 5835 (previous-property-change (point)) 5836 (previous-char-property-change (point)))) 5837 (skip-chars-backward "^\n")) 5838 (vertical-motion 0)) 5792 5839 ) 5793 5840 ;;;_ > move-end-of-line if necessary - older emacs, xemacs … … 5803 5850 (interactive "p") 5804 5851 (or arg (setq arg 1)) 5805 (let ((orig (point)) 5806 done) 5852 (let (done) 5807 5853 (while (not done) 5808 5854 (let ((newpos … … 5814 5860 (not (bobp)) 5815 5861 (progn 5816 (while (and (not (bobp)) (line-move-invisible-p (1- (point)))) 5817 (goto-char (previous-char-property-change (point)))) 5862 (while (and (not (bobp)) 5863 (line-move-invisible-p (1- (point)))) 5864 (goto-char 5865 (previous-char-property-change (point)))) 5818 5866 (backward-char 1))) 5819 5867 (point))))) … … 5828 5876 ;; keep going. 5829 5877 (setq arg 1) 5830 (setq done t))))) 5831 (if (/= orig (point)) 5832 (goto-char orig)))) 5878 (setq done t))))))) 5833 5879 ) 5834 5880 ;;;_ > line-move-invisible-p if necessary
