2001-07-16 11:39:42 +00:00
|
|
|
;;; allout.el --- extensive outline mode for use alone and with other modes
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
|
2005-08-06 22:13:43 +00:00
|
|
|
;; Copyright (C) 1992, 1993, 1994, 2001, 2002, 2003, 2004,
|
|
|
|
;; 2005 Free Software Foundation, Inc.
|
1993-06-02 17:53:31 +00:00
|
|
|
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
;; Author: Ken Manheimer <ken dot manheimer at gmail dot com>
|
|
|
|
;; Maintainer: Ken Manheimer <ken dot manheimer at gmail dot com>
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
;; Created: Dec 1991 - first release to usenet
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
;; Version: 2.1
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
;; Keywords: outlines wp languages
|
1993-06-02 17:53:31 +00:00
|
|
|
|
|
|
|
;; This file is part of GNU Emacs.
|
|
|
|
|
1994-04-07 20:30:18 +00:00
|
|
|
;; GNU Emacs is free software; you can redistribute it and/or modify
|
|
|
|
;; it under the terms of the GNU General Public License as published by
|
|
|
|
;; the Free Software Foundation; either version 2, or (at your option)
|
|
|
|
;; any later version.
|
|
|
|
|
1993-06-02 17:53:31 +00:00
|
|
|
;; GNU Emacs is distributed in the hope that it will be useful,
|
1994-04-07 20:30:18 +00:00
|
|
|
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
;; GNU General Public License for more details.
|
|
|
|
|
|
|
|
;; You should have received a copy of the GNU General Public License
|
1996-01-14 07:34:30 +00:00
|
|
|
;; along with GNU Emacs; see the file COPYING. If not, write to the
|
2005-07-04 23:32:44 +00:00
|
|
|
;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
|
|
|
;; Boston, MA 02110-1301, USA.
|
1993-06-02 17:53:31 +00:00
|
|
|
|
2001-07-16 11:39:42 +00:00
|
|
|
;;; Commentary:
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
|
|
|
|
;; Allout outline mode provides extensive outline formatting and
|
2000-06-07 13:25:06 +00:00
|
|
|
;; and manipulation beyond standard emacs outline mode. It provides
|
|
|
|
;; for structured editing of outlines, as well as navigation and
|
|
|
|
;; exposure. It also provides for syntax-sensitive text like
|
|
|
|
;; programming languages. (For an example, see the allout code
|
|
|
|
;; itself, which is organized in ;; an outline framework.)
|
2003-02-04 11:26:42 +00:00
|
|
|
;;
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
;; Some features:
|
2003-02-04 11:26:42 +00:00
|
|
|
;;
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
;; - classic outline-mode topic-oriented navigation and exposure adjustment
|
|
|
|
;; - topic-oriented editing including coherent topic and subtopic
|
|
|
|
;; creation, promotion, demotion, cut/paste across depths, etc
|
|
|
|
;; - incremental search with dynamic exposure and reconcealment of text
|
|
|
|
;; - customizable bullet format enbles programming-language specific
|
|
|
|
;; outlining, for ultimate code-folding editing. (allout code itself is
|
|
|
|
;; formatted as an outline - do ESC-x eval-current-buffer in allout.el
|
|
|
|
;; to try it out.)
|
|
|
|
;; - configurable per-file initial exposure settings
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
;; - symmetric-key and key-pair topic encryption, plus symmetric passphrase
|
|
|
|
;; mnemonic support, with verification against an established passphrase
|
|
|
|
;; (using a stashed encrypted dummy string) and user-supplied hint
|
|
|
|
;; maintenance. (see allout-toggle-current-subtree-encryption docstring.)
|
2000-06-07 13:25:06 +00:00
|
|
|
;; - automatic topic-number maintenance
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
;; - "hot-spot" operation, for single-keystroke maneuvering and
|
|
|
|
;; exposure control (see the allout-mode docstring)
|
|
|
|
;; - easy rendering of exposed portions into numbered, latex, indented, etc
|
|
|
|
;; outline styles
|
2003-02-04 11:26:42 +00:00
|
|
|
;;
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
;; and more.
|
2003-02-04 11:26:42 +00:00
|
|
|
;;
|
2000-06-07 13:25:06 +00:00
|
|
|
;; The outline menubar additions provide quick reference to many of
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
;; the features, and see the docstring of the variable `allout-init'
|
|
|
|
;; for instructions on priming your emacs session for automatic
|
|
|
|
;; activation of allout-mode.
|
2003-02-04 11:26:42 +00:00
|
|
|
;;
|
2002-12-16 00:20:42 +00:00
|
|
|
;; See the docstring of the variables `allout-layout' and
|
|
|
|
;; `allout-auto-activation' for details on automatic activation of
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
;; `allout-mode' as a minor mode. (It has changed since allout
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
;; 3.x, for those of you that depend on the old method.)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
;;
|
(outline-auto-activation, outline-layout)
(outline-primary-bullet, outline-plain-bullets-string)
(outline-distinctive-bullets-string, outline-old-style-prefixes)
(outline-stylish-prefixes, outline-file-xref-bullet)
(outline-use-hanging-indents, outline-bullets-string)
(outline-write-file-hook, outline-mode, outline-prefix-data)
(outline-before-change-protect, outline-make-topic-prefix)
(outline-rebullet-current-heading, outline-rebullet-heading)
(outline-listify-exposed, outline-expose-topic)
(outline-old-expose-topic, outline-exposure)
(outline-latex-verbatim-quote-curr-line)
(outline-show-current-subtree, outline-hide-current-subtree)
(outline-hide-current-leaves, outline-new-exposure): Doc fix.
1996-07-13 18:46:08 +00:00
|
|
|
;; Note - the lines beginning with `;;;_' are outline topic headers.
|
|
|
|
;; Just `ESC-x eval-current-buffer' to give it a whirl.
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
;; ken manheimer (ken dot manheimer at gmail dot com)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
2001-07-16 11:39:42 +00:00
|
|
|
;;; Code:
|
|
|
|
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
;;;_* Provide
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
;(provide 'outline)
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
(provide 'allout)
|
|
|
|
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
;;;_* Dependency autoloads
|
|
|
|
(eval-when-compile 'cl) ; otherwise, flet compilation fouls
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
(eval-when-compile (progn (require 'pgg)
|
|
|
|
(require 'pgg-gpg)))
|
|
|
|
(autoload 'pgg-gpg-symmetric-key-p "pgg-gpg"
|
|
|
|
"True if decoded armor MESSAGE-KEYS has symmetric encryption indicator.")
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
;;;_* USER CUSTOMIZATION VARIABLES:
|
1998-03-07 18:19:38 +00:00
|
|
|
(defgroup allout nil
|
|
|
|
"Extensive outline mode for use alone and with other modes."
|
2002-12-16 00:20:42 +00:00
|
|
|
:prefix "allout-"
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
:group 'outlines)
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
|
|
|
|
;;;_ + Layout, Mode, and Topic Header Configuration
|
|
|
|
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ = allout-auto-activation
|
|
|
|
(defcustom allout-auto-activation nil
|
|
|
|
"*Regulates auto-activation modality of allout outlines - see `allout-init'.
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
|
2002-12-16 00:20:42 +00:00
|
|
|
Setq-default by `allout-init' to regulate whether or not allout
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
outline mode is automatically activated when the buffer-specific
|
2002-12-16 00:20:42 +00:00
|
|
|
variable `allout-layout' is non-nil, and whether or not the layout
|
|
|
|
dictated by `allout-layout' should be imposed on mode activation.
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
|
2003-05-06 17:38:32 +00:00
|
|
|
With value t, auto-mode-activation and auto-layout are enabled.
|
2002-12-16 00:42:23 +00:00
|
|
|
\(This also depends on `allout-find-file-hook' being installed in
|
2004-04-17 19:53:58 +00:00
|
|
|
`find-file-hook', which is also done by `allout-init'.)
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
|
|
|
|
With value `ask', auto-mode-activation is enabled, and endorsement for
|
|
|
|
performing auto-layout is asked of the user each time.
|
|
|
|
|
2003-02-04 11:26:42 +00:00
|
|
|
With value `activate', only auto-mode-activation is enabled,
|
(outline-auto-activation, outline-layout)
(outline-primary-bullet, outline-plain-bullets-string)
(outline-distinctive-bullets-string, outline-old-style-prefixes)
(outline-stylish-prefixes, outline-file-xref-bullet)
(outline-use-hanging-indents, outline-bullets-string)
(outline-write-file-hook, outline-mode, outline-prefix-data)
(outline-before-change-protect, outline-make-topic-prefix)
(outline-rebullet-current-heading, outline-rebullet-heading)
(outline-listify-exposed, outline-expose-topic)
(outline-old-expose-topic, outline-exposure)
(outline-latex-verbatim-quote-curr-line)
(outline-show-current-subtree, outline-hide-current-subtree)
(outline-hide-current-leaves, outline-new-exposure): Doc fix.
1996-07-13 18:46:08 +00:00
|
|
|
auto-layout is not.
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
|
2003-05-06 17:38:32 +00:00
|
|
|
With value nil, neither auto-mode-activation nor auto-layout are
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
enabled.
|
|
|
|
|
2002-12-16 00:20:42 +00:00
|
|
|
See the docstring for `allout-init' for the proper interface to
|
2000-06-07 13:25:06 +00:00
|
|
|
this variable."
|
|
|
|
:type '(choice (const :tag "On" t)
|
|
|
|
(const :tag "Ask about layout" "ask")
|
|
|
|
(const :tag "Mode only" "activate")
|
|
|
|
(const :tag "Off" nil))
|
|
|
|
:group 'allout)
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ = allout-layout
|
|
|
|
(defvar allout-layout nil
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
"*Layout specification and provisional mode trigger for allout outlines.
|
1993-06-02 17:53:31 +00:00
|
|
|
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
Buffer-specific.
|
|
|
|
|
|
|
|
A list value specifies a default layout for the current buffer, to be
|
2002-12-16 00:42:23 +00:00
|
|
|
applied upon activation of `allout-mode'. Any non-nil value will
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
automatically trigger `allout-mode' \(provided `allout-init' has been called
|
|
|
|
to enable this behavior).
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
|
2002-12-16 00:20:42 +00:00
|
|
|
See the docstring for `allout-init' for details on setting up for
|
|
|
|
auto-mode-activation, and for `allout-expose-topic' for the format of
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
the layout specification.
|
|
|
|
|
|
|
|
You can associate a particular outline layout with a file by setting
|
|
|
|
this var via the file's local variables. For example, the following
|
1995-03-16 04:34:29 +00:00
|
|
|
lines at the bottom of an Emacs Lisp file:
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
|
|
|
|
;;;Local variables:
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;allout-layout: \(0 : -1 -1 0)
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
;;;End:
|
|
|
|
|
|
|
|
will, modulo the above-mentioned conditions, cause the mode to be
|
|
|
|
activated when the file is visited, followed by the equivalent of
|
2002-12-16 00:20:42 +00:00
|
|
|
`\(allout-expose-topic 0 : -1 -1 0)'. \(This is the layout used for
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
the allout.el, itself.)
|
|
|
|
|
(outline-auto-activation, outline-layout)
(outline-primary-bullet, outline-plain-bullets-string)
(outline-distinctive-bullets-string, outline-old-style-prefixes)
(outline-stylish-prefixes, outline-file-xref-bullet)
(outline-use-hanging-indents, outline-bullets-string)
(outline-write-file-hook, outline-mode, outline-prefix-data)
(outline-before-change-protect, outline-make-topic-prefix)
(outline-rebullet-current-heading, outline-rebullet-heading)
(outline-listify-exposed, outline-expose-topic)
(outline-old-expose-topic, outline-exposure)
(outline-latex-verbatim-quote-curr-line)
(outline-show-current-subtree, outline-hide-current-subtree)
(outline-hide-current-leaves, outline-new-exposure): Doc fix.
1996-07-13 18:46:08 +00:00
|
|
|
Also, allout's mode-specific provisions will make topic prefixes default
|
|
|
|
to the comment-start string, if any, of the language of the file. This
|
2002-12-16 00:20:42 +00:00
|
|
|
is modulo the setting of `allout-use-mode-specific-leader', which see.")
|
|
|
|
(make-variable-buffer-local 'allout-layout)
|
|
|
|
;;;_ = allout-show-bodies
|
|
|
|
(defcustom allout-show-bodies nil
|
2000-06-07 13:25:06 +00:00
|
|
|
"*If non-nil, show entire body when exposing a topic, rather than
|
|
|
|
just the header."
|
|
|
|
:type 'boolean
|
|
|
|
:group 'allout)
|
2002-12-16 00:20:42 +00:00
|
|
|
(make-variable-buffer-local 'allout-show-bodies)
|
1993-06-02 17:53:31 +00:00
|
|
|
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ = allout-header-prefix
|
|
|
|
(defcustom allout-header-prefix "."
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
"*Leading string which helps distinguish topic headers.
|
|
|
|
|
|
|
|
Outline topic header lines are identified by a leading topic
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
header prefix, which mostly have the value of this var at their front.
|
|
|
|
\(Level 1 topics are exceptions. They consist of only a single
|
2002-12-16 00:26:22 +00:00
|
|
|
character, which is typically set to the `allout-primary-bullet'. Many
|
1998-03-07 18:19:38 +00:00
|
|
|
outlines start at level 2 to avoid this discrepancy."
|
|
|
|
:type 'string
|
|
|
|
:group 'allout)
|
2002-12-16 00:20:42 +00:00
|
|
|
(make-variable-buffer-local 'allout-header-prefix)
|
|
|
|
;;;_ = allout-primary-bullet
|
|
|
|
(defcustom allout-primary-bullet "*"
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
"Bullet used for top-level outline topics.
|
|
|
|
|
|
|
|
Outline topic header lines are identified by a leading topic header
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
prefix, which is concluded by bullets that includes the value of this
|
2002-12-16 00:20:42 +00:00
|
|
|
var and the respective allout-*-bullets-string vars.
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
(outline-auto-activation, outline-layout)
(outline-primary-bullet, outline-plain-bullets-string)
(outline-distinctive-bullets-string, outline-old-style-prefixes)
(outline-stylish-prefixes, outline-file-xref-bullet)
(outline-use-hanging-indents, outline-bullets-string)
(outline-write-file-hook, outline-mode, outline-prefix-data)
(outline-before-change-protect, outline-make-topic-prefix)
(outline-rebullet-current-heading, outline-rebullet-heading)
(outline-listify-exposed, outline-expose-topic)
(outline-old-expose-topic, outline-exposure)
(outline-latex-verbatim-quote-curr-line)
(outline-show-current-subtree, outline-hide-current-subtree)
(outline-hide-current-leaves, outline-new-exposure): Doc fix.
1996-07-13 18:46:08 +00:00
|
|
|
The value of an asterisk (`*') provides for backwards compatibility
|
(allout-chart-subtree, allout-rebullet-topic-grunt): Don't mention in the
docstring these arguments meant for internal (recursive) use only.
(allout-char-spec): Comment out (it's not implemented).
(allout-old-expose-topic, allout-exposure): Fix docstring and add obsolescence
declaration.
(allout-flatten-exposed-to-buffer, allout-indented-exposed-to-buffer): Fix typos
in docstring.
(my-mark-marker): Doc fix.
(produce-allout-mode-map, allout-sibling-index, allout-isearch-expose)
(allout-distinctive-bullet, allout-open-topic, allout-reindent-body)
(allout-rebullet-heading, allout-process-exposed, allout-insert-listified)
(allout-latex-verb-quote, allout-insert-latex-header)
(allout-insert-latex-trailer): Make arguments match their use in
docstring.
(allout-primary-bullet, allout-old-style-prefixes, allout-inhibit-protection)
(allout-init, allout-mode, allout-before-change-protect, allout-flag-region):
Use "Emacs" instead of "emacs" in docstrings.
2004-05-21 18:10:21 +00:00
|
|
|
with the original Emacs outline mode. See `allout-plain-bullets-string'
|
2002-12-16 00:26:22 +00:00
|
|
|
and `allout-distinctive-bullets-string' for the range of available
|
1998-03-07 18:19:38 +00:00
|
|
|
bullets."
|
|
|
|
:type 'string
|
|
|
|
:group 'allout)
|
2002-12-16 00:20:42 +00:00
|
|
|
(make-variable-buffer-local 'allout-primary-bullet)
|
|
|
|
;;;_ = allout-plain-bullets-string
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
(defcustom allout-plain-bullets-string ".,"
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
"*The bullets normally used in outline topic prefixes.
|
|
|
|
|
2002-12-16 00:20:42 +00:00
|
|
|
See `allout-distinctive-bullets-string' for the other kind of
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
bullets.
|
1993-06-02 17:53:31 +00:00
|
|
|
|
(outline-auto-activation, outline-layout)
(outline-primary-bullet, outline-plain-bullets-string)
(outline-distinctive-bullets-string, outline-old-style-prefixes)
(outline-stylish-prefixes, outline-file-xref-bullet)
(outline-use-hanging-indents, outline-bullets-string)
(outline-write-file-hook, outline-mode, outline-prefix-data)
(outline-before-change-protect, outline-make-topic-prefix)
(outline-rebullet-current-heading, outline-rebullet-heading)
(outline-listify-exposed, outline-expose-topic)
(outline-old-expose-topic, outline-exposure)
(outline-latex-verbatim-quote-curr-line)
(outline-show-current-subtree, outline-hide-current-subtree)
(outline-hide-current-leaves, outline-new-exposure): Doc fix.
1996-07-13 18:46:08 +00:00
|
|
|
DO NOT include the close-square-bracket, `]', as a bullet.
|
1993-06-02 17:53:31 +00:00
|
|
|
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
Outline mode has to be reactivated in order for changes to the value
|
1998-03-07 18:19:38 +00:00
|
|
|
of this var to take effect."
|
|
|
|
:type 'string
|
|
|
|
:group 'allout)
|
2002-12-16 00:20:42 +00:00
|
|
|
(make-variable-buffer-local 'allout-plain-bullets-string)
|
|
|
|
;;;_ = allout-distinctive-bullets-string
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
(defcustom allout-distinctive-bullets-string "*+-=>()[{}&!?#%\"X@$~_\\:;^"
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
"*Persistent outline header bullets used to distinguish special topics.
|
1993-06-02 17:53:31 +00:00
|
|
|
|
2000-06-07 13:25:06 +00:00
|
|
|
These bullets are used to distinguish topics from the run-of-the-mill
|
|
|
|
ones. They are not used in the standard topic headers created by
|
2003-02-04 11:26:42 +00:00
|
|
|
the topic-opening, shifting, and rebulleting \(eg, on topic shift,
|
2000-06-07 13:25:06 +00:00
|
|
|
topic paste, blanket rebulleting) routines, but are offered among the
|
|
|
|
choices for rebulleting. They are not altered by the above automatic
|
|
|
|
rebulleting, so they can be used to characterize topics, eg:
|
|
|
|
|
|
|
|
`?' question topics
|
|
|
|
`\(' parenthetic comment \(with a matching close paren inside)
|
|
|
|
`[' meta-note \(with a matching close ] inside)
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
`\"' a quotation
|
2000-06-07 13:25:06 +00:00
|
|
|
`=' value settings
|
|
|
|
`~' \"more or less\"
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
`^' see above
|
2000-06-07 13:25:06 +00:00
|
|
|
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
... for example. (`#' typically has a special meaning to the software,
|
|
|
|
according to the value of `allout-numbered-bullet'.)
|
2000-06-07 13:25:06 +00:00
|
|
|
|
2002-12-16 00:20:42 +00:00
|
|
|
See `allout-plain-bullets-string' for the selection of
|
2000-06-07 13:25:06 +00:00
|
|
|
alternating bullets.
|
1993-06-02 17:53:31 +00:00
|
|
|
|
2002-12-16 00:20:42 +00:00
|
|
|
You must run `set-allout-regexp' in order for outline mode to
|
2000-06-07 13:25:06 +00:00
|
|
|
reconcile to changes of this value.
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
|
(outline-auto-activation, outline-layout)
(outline-primary-bullet, outline-plain-bullets-string)
(outline-distinctive-bullets-string, outline-old-style-prefixes)
(outline-stylish-prefixes, outline-file-xref-bullet)
(outline-use-hanging-indents, outline-bullets-string)
(outline-write-file-hook, outline-mode, outline-prefix-data)
(outline-before-change-protect, outline-make-topic-prefix)
(outline-rebullet-current-heading, outline-rebullet-heading)
(outline-listify-exposed, outline-expose-topic)
(outline-old-expose-topic, outline-exposure)
(outline-latex-verbatim-quote-curr-line)
(outline-show-current-subtree, outline-hide-current-subtree)
(outline-hide-current-leaves, outline-new-exposure): Doc fix.
1996-07-13 18:46:08 +00:00
|
|
|
DO NOT include the close-square-bracket, `]', on either of the bullet
|
1998-03-07 18:19:38 +00:00
|
|
|
strings."
|
|
|
|
:type 'string
|
|
|
|
:group 'allout)
|
2002-12-16 00:20:42 +00:00
|
|
|
(make-variable-buffer-local 'allout-distinctive-bullets-string)
|
1993-06-02 17:53:31 +00:00
|
|
|
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ = allout-use-mode-specific-leader
|
|
|
|
(defcustom allout-use-mode-specific-leader t
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
"*When non-nil, use mode-specific topic-header prefixes.
|
|
|
|
|
2002-12-16 00:20:42 +00:00
|
|
|
Allout outline mode will use the mode-specific `allout-mode-leaders'
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
and/or comment-start string, if any, to lead the topic prefix string,
|
(outline-auto-activation, outline-layout)
(outline-primary-bullet, outline-plain-bullets-string)
(outline-distinctive-bullets-string, outline-old-style-prefixes)
(outline-stylish-prefixes, outline-file-xref-bullet)
(outline-use-hanging-indents, outline-bullets-string)
(outline-write-file-hook, outline-mode, outline-prefix-data)
(outline-before-change-protect, outline-make-topic-prefix)
(outline-rebullet-current-heading, outline-rebullet-heading)
(outline-listify-exposed, outline-expose-topic)
(outline-old-expose-topic, outline-exposure)
(outline-latex-verbatim-quote-curr-line)
(outline-show-current-subtree, outline-hide-current-subtree)
(outline-hide-current-leaves, outline-new-exposure): Doc fix.
1996-07-13 18:46:08 +00:00
|
|
|
so topic headers look like comments in the programming language.
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
|
|
|
|
String values are used as they stand.
|
|
|
|
|
2003-05-06 17:38:32 +00:00
|
|
|
Value t means to first check for assoc value in `allout-mode-leaders'
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
alist, then use comment-start string, if any, then use default \(`.').
|
2000-06-07 13:25:06 +00:00
|
|
|
\(See note about use of comment-start strings, below.)
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
|
2002-12-16 00:20:42 +00:00
|
|
|
Set to the symbol for either of `allout-mode-leaders' or
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
`comment-start' to use only one of them, respectively.
|
|
|
|
|
2003-05-06 17:38:32 +00:00
|
|
|
Value nil means to always use the default \(`.').
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
|
|
|
|
comment-start strings that do not end in spaces are tripled, and an
|
(outline-auto-activation, outline-layout)
(outline-primary-bullet, outline-plain-bullets-string)
(outline-distinctive-bullets-string, outline-old-style-prefixes)
(outline-stylish-prefixes, outline-file-xref-bullet)
(outline-use-hanging-indents, outline-bullets-string)
(outline-write-file-hook, outline-mode, outline-prefix-data)
(outline-before-change-protect, outline-make-topic-prefix)
(outline-rebullet-current-heading, outline-rebullet-heading)
(outline-listify-exposed, outline-expose-topic)
(outline-old-expose-topic, outline-exposure)
(outline-latex-verbatim-quote-curr-line)
(outline-show-current-subtree, outline-hide-current-subtree)
(outline-hide-current-leaves, outline-new-exposure): Doc fix.
1996-07-13 18:46:08 +00:00
|
|
|
`_' underscore is tacked on the end, to distinguish them from regular
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
comment strings. comment-start strings that do end in spaces are not
|
2000-06-07 13:25:06 +00:00
|
|
|
tripled, but an underscore is substituted for the space. [This
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
presumes that the space is for appearance, not comment syntax. You
|
2002-12-16 00:20:42 +00:00
|
|
|
can use `allout-mode-leaders' to override this behavior, when
|
1998-03-07 18:19:38 +00:00
|
|
|
incorrect.]"
|
2003-02-04 11:26:42 +00:00
|
|
|
:type '(choice (const t) (const nil) string
|
2002-12-16 00:20:42 +00:00
|
|
|
(const allout-mode-leaders)
|
1998-03-07 18:19:38 +00:00
|
|
|
(const comment-start))
|
|
|
|
:group 'allout)
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ = allout-mode-leaders
|
|
|
|
(defvar allout-mode-leaders '()
|
|
|
|
"Specific allout-prefix leading strings per major modes.
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
|
2000-06-07 13:25:06 +00:00
|
|
|
Entries will be used instead or in lieu of mode-specific
|
2002-12-16 00:20:42 +00:00
|
|
|
comment-start strings. See also `allout-use-mode-specific-leader'.
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
|
|
|
|
If you're constructing a string that will comment-out outline
|
|
|
|
structuring so it can be included in program code, append an extra
|
|
|
|
character, like an \"_\" underscore, to distinguish the lead string
|
|
|
|
from regular comments that start at bol.")
|
|
|
|
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ = allout-old-style-prefixes
|
|
|
|
(defcustom allout-old-style-prefixes nil
|
2002-12-16 00:42:23 +00:00
|
|
|
"*When non-nil, use only old-and-crusty `outline-mode' `*' topic prefixes.
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
|
|
|
|
Non-nil restricts the topic creation and modification
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
functions to asterix-padded prefixes, so they look exactly
|
(allout-chart-subtree, allout-rebullet-topic-grunt): Don't mention in the
docstring these arguments meant for internal (recursive) use only.
(allout-char-spec): Comment out (it's not implemented).
(allout-old-expose-topic, allout-exposure): Fix docstring and add obsolescence
declaration.
(allout-flatten-exposed-to-buffer, allout-indented-exposed-to-buffer): Fix typos
in docstring.
(my-mark-marker): Doc fix.
(produce-allout-mode-map, allout-sibling-index, allout-isearch-expose)
(allout-distinctive-bullet, allout-open-topic, allout-reindent-body)
(allout-rebullet-heading, allout-process-exposed, allout-insert-listified)
(allout-latex-verb-quote, allout-insert-latex-header)
(allout-insert-latex-trailer): Make arguments match their use in
docstring.
(allout-primary-bullet, allout-old-style-prefixes, allout-inhibit-protection)
(allout-init, allout-mode, allout-before-change-protect, allout-flag-region):
Use "Emacs" instead of "emacs" in docstrings.
2004-05-21 18:10:21 +00:00
|
|
|
like the original Emacs-outline style prefixes.
|
1993-06-02 17:53:31 +00:00
|
|
|
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
Whatever the setting of this variable, both old and new style prefixes
|
1998-03-07 18:19:38 +00:00
|
|
|
are always respected by the topic maneuvering functions."
|
|
|
|
:type 'boolean
|
|
|
|
:group 'allout)
|
2002-12-16 00:20:42 +00:00
|
|
|
(make-variable-buffer-local 'allout-old-style-prefixes)
|
|
|
|
;;;_ = allout-stylish-prefixes - alternating bullets
|
|
|
|
(defcustom allout-stylish-prefixes t
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
"*Do fancy stuff with topic prefix bullets according to level, etc.
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
Non-nil enables topic creation, modification, and repositioning
|
|
|
|
functions to vary the topic bullet char (the char that marks the topic
|
|
|
|
depth) just preceding the start of the topic text) according to level.
|
(outline-auto-activation, outline-layout)
(outline-primary-bullet, outline-plain-bullets-string)
(outline-distinctive-bullets-string, outline-old-style-prefixes)
(outline-stylish-prefixes, outline-file-xref-bullet)
(outline-use-hanging-indents, outline-bullets-string)
(outline-write-file-hook, outline-mode, outline-prefix-data)
(outline-before-change-protect, outline-make-topic-prefix)
(outline-rebullet-current-heading, outline-rebullet-heading)
(outline-listify-exposed, outline-expose-topic)
(outline-old-expose-topic, outline-exposure)
(outline-latex-verbatim-quote-curr-line)
(outline-show-current-subtree, outline-hide-current-subtree)
(outline-hide-current-leaves, outline-new-exposure): Doc fix.
1996-07-13 18:46:08 +00:00
|
|
|
Otherwise, only asterisks (`*') and distinctive bullets are used.
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
|
|
|
|
This is how an outline can look (but sans indentation) with stylish
|
|
|
|
prefixes:
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
|
|
|
* Top level
|
|
|
|
.* A topic
|
|
|
|
. + One level 3 subtopic
|
|
|
|
. . One level 4 subtopic
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
. . A second 4 subtopic
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
. + Another level 3 subtopic
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
. #1 A numbered level 4 subtopic
|
|
|
|
. #2 Another
|
|
|
|
. ! Another level 4 subtopic with a different distinctive bullet
|
|
|
|
. #4 And another numbered level 4 subtopic
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
This would be an outline with stylish prefixes inhibited (but the
|
|
|
|
numbered and other distinctive bullets retained):
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
|
|
|
* Top level
|
|
|
|
.* A topic
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
. * One level 3 subtopic
|
|
|
|
. * One level 4 subtopic
|
|
|
|
. * A second 4 subtopic
|
|
|
|
. * Another level 3 subtopic
|
|
|
|
. #1 A numbered level 4 subtopic
|
|
|
|
. #2 Another
|
|
|
|
. ! Another level 4 subtopic with a different distinctive bullet
|
|
|
|
. #4 And another numbered level 4 subtopic
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
|
|
|
Stylish and constant prefixes (as well as old-style prefixes) are
|
|
|
|
always respected by the topic maneuvering functions, regardless of
|
|
|
|
this variable setting.
|
|
|
|
|
2002-12-16 00:26:22 +00:00
|
|
|
The setting of this var is not relevant when `allout-old-style-prefixes'
|
1998-03-07 18:19:38 +00:00
|
|
|
is non-nil."
|
|
|
|
:type 'boolean
|
|
|
|
:group 'allout)
|
2002-12-16 00:20:42 +00:00
|
|
|
(make-variable-buffer-local 'allout-stylish-prefixes)
|
1993-06-02 17:53:31 +00:00
|
|
|
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ = allout-numbered-bullet
|
|
|
|
(defcustom allout-numbered-bullet "#"
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
"*String designating bullet of topics that have auto-numbering; nil for none.
|
|
|
|
|
(outline-primary-bullet, outline-numbered-bullet,
outline-override-protect, outline-explicitly-deactivated,
outline-init, outline-chart-subtree, outline-chart-spec,
outline-make-topic-prefix, outline-open-topic,
outline-reindent-body, outline-yank-processing, outline-yank,
outlineify-sticky): Doc fix.
1996-01-04 23:26:20 +00:00
|
|
|
Topics having this bullet have automatic maintenance of a sibling
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
sequence-number tacked on, just after the bullet. Conventionally set
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
to \"#\", you can set it to a bullet of your choice. A nil value
|
1998-03-07 18:19:38 +00:00
|
|
|
disables numbering maintenance."
|
|
|
|
:type '(choice (const nil) string)
|
|
|
|
:group 'allout)
|
2002-12-16 00:20:42 +00:00
|
|
|
(make-variable-buffer-local 'allout-numbered-bullet)
|
|
|
|
;;;_ = allout-file-xref-bullet
|
|
|
|
(defcustom allout-file-xref-bullet "@"
|
|
|
|
"*Bullet signifying file cross-references, for `allout-resolve-xref'.
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
|
2000-06-07 13:25:06 +00:00
|
|
|
Set this var to the bullet you want to use for file cross-references."
|
1998-03-07 18:19:38 +00:00
|
|
|
:type '(choice (const nil) string)
|
|
|
|
:group 'allout)
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ = allout-presentation-padding
|
|
|
|
(defcustom allout-presentation-padding 2
|
2000-06-07 13:25:06 +00:00
|
|
|
"*Presentation-format white-space padding factor, for greater indent."
|
|
|
|
:type 'integer
|
|
|
|
:group 'allout)
|
|
|
|
|
2002-12-16 00:20:42 +00:00
|
|
|
(make-variable-buffer-local 'allout-presentation-padding)
|
2000-06-07 13:25:06 +00:00
|
|
|
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ = allout-abbreviate-flattened-numbering
|
|
|
|
(defcustom allout-abbreviate-flattened-numbering nil
|
|
|
|
"*If non-nil, `allout-flatten-exposed-to-buffer' abbreviates topic
|
2000-06-07 13:25:06 +00:00
|
|
|
numbers to minimal amount with some context. Otherwise, entire
|
|
|
|
numbers are always used."
|
|
|
|
:type 'boolean
|
|
|
|
:group 'allout)
|
|
|
|
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
;;;_ + LaTeX formatting
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ - allout-number-pages
|
|
|
|
(defcustom allout-number-pages nil
|
1998-03-07 18:19:38 +00:00
|
|
|
"*Non-nil turns on page numbering for LaTeX formatting of an outline."
|
|
|
|
:type 'boolean
|
|
|
|
:group 'allout)
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ - allout-label-style
|
|
|
|
(defcustom allout-label-style "\\large\\bf"
|
1998-03-07 18:19:38 +00:00
|
|
|
"*Font and size of labels for LaTeX formatting of an outline."
|
|
|
|
:type 'string
|
|
|
|
:group 'allout)
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ - allout-head-line-style
|
|
|
|
(defcustom allout-head-line-style "\\large\\sl "
|
1998-03-07 18:19:38 +00:00
|
|
|
"*Font and size of entries for LaTeX formatting of an outline."
|
|
|
|
:type 'string
|
|
|
|
:group 'allout)
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ - allout-body-line-style
|
|
|
|
(defcustom allout-body-line-style " "
|
1998-03-07 18:19:38 +00:00
|
|
|
"*Font and size of entries for LaTeX formatting of an outline."
|
|
|
|
:type 'string
|
|
|
|
:group 'allout)
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ - allout-title-style
|
|
|
|
(defcustom allout-title-style "\\Large\\bf"
|
1998-03-07 18:19:38 +00:00
|
|
|
"*Font and size of titles for LaTeX formatting of an outline."
|
|
|
|
:type 'string
|
|
|
|
:group 'allout)
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ - allout-title
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
(defcustom allout-title '(or buffer-file-name (buffer-name))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
"*Expression to be evaluated to determine the title for LaTeX
|
1998-03-07 18:19:38 +00:00
|
|
|
formatted copy."
|
|
|
|
:type 'sexp
|
|
|
|
:group 'allout)
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ - allout-line-skip
|
|
|
|
(defcustom allout-line-skip ".05cm"
|
1998-03-07 18:19:38 +00:00
|
|
|
"*Space between lines for LaTeX formatting of an outline."
|
|
|
|
:type 'string
|
|
|
|
:group 'allout)
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ - allout-indent
|
|
|
|
(defcustom allout-indent ".3cm"
|
1998-03-07 18:19:38 +00:00
|
|
|
"*LaTeX formatted depth-indent spacing."
|
|
|
|
:type 'string
|
|
|
|
:group 'allout)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
;;;_ + Topic encryption
|
|
|
|
;;;_ = allout-topic-encryption-bullet
|
|
|
|
(defcustom allout-topic-encryption-bullet "~"
|
|
|
|
"*Bullet signifying encryption of the entry's body."
|
|
|
|
:type '(choice (const nil) string)
|
|
|
|
:group 'allout)
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
;;;_ = allout-passphrase-verifier-handling
|
|
|
|
(defcustom allout-passphrase-verifier-handling t
|
|
|
|
"*Enable use of symmetric encryption passphrase verifier if non-nil.
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
|
|
|
|
See the docstring for the `allout-enable-file-variable-adjustment'
|
|
|
|
variable for details about allout ajustment of file variables."
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
:type 'boolean
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
:group 'allout)
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
(make-variable-buffer-local 'allout-passphrase-verifier-handling)
|
|
|
|
;;;_ = allout-passphrase-hint-handling
|
|
|
|
(defcustom allout-passphrase-hint-handling 'always
|
|
|
|
"*Dictate outline encryption passphrase reminder handling:
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
|
|
|
|
always - always show reminder when prompting
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
needed - show reminder on passphrase entry failure
|
|
|
|
disabled - never present or adjust reminder
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
|
|
|
|
See the docstring for the `allout-enable-file-variable-adjustment'
|
|
|
|
variable for details about allout ajustment of file variables."
|
|
|
|
:type '(choice (const always)
|
|
|
|
(const needed)
|
|
|
|
(const disabled))
|
|
|
|
:group 'allout)
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
(make-variable-buffer-local 'allout-passphrase-hint-handling)
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
;;;_ = allout-encrypt-unencrypted-on-saves
|
|
|
|
(defcustom allout-encrypt-unencrypted-on-saves 'except-current
|
|
|
|
"*When saving, should topics pending encryption be encrypted?
|
|
|
|
|
|
|
|
The idea is to prevent file-system exposure of any un-encrypted stuff, and
|
|
|
|
mostly covers both deliberate file writes and auto-saves.
|
|
|
|
|
|
|
|
- Yes: encrypt all topics pending encryption, even if it's the one
|
|
|
|
currently being edited. \(In that case, the currently edited topic
|
|
|
|
will be automatically decrypted before any user interaction, so they
|
|
|
|
can continue editing but the copy on the file system will be
|
|
|
|
encrypted.)
|
|
|
|
Auto-saves will use the \"All except current topic\" mode if this
|
|
|
|
one is selected, to avoid practical difficulties - see below.
|
|
|
|
- All except current topic: skip the topic currently being edited, even if
|
|
|
|
it's pending encryption. This may expose the current topic on the
|
|
|
|
file sytem, but avoids the nuisance of prompts for the encryption
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
passphrase in the middle of editing for, eg, autosaves.
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
This mode is used for auto-saves for both this option and \"Yes\".
|
|
|
|
- No: leave it to the user to encrypt any unencrypted topics.
|
|
|
|
|
|
|
|
For practical reasons, auto-saves always use the 'except-current policy
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
when auto-encryption is enabled. \(Otherwise, spurious passphrase prompts
|
|
|
|
and unavoidable timing collisions are too disruptive.) If security for a
|
|
|
|
file requires that even the current topic is never auto-saved in the clear,
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
disable auto-saves for that file."
|
|
|
|
|
|
|
|
:type '(choice (const :tag "Yes" t)
|
|
|
|
(const :tag "All except current topic" except-current)
|
|
|
|
(const :tag "No" nil))
|
|
|
|
:group 'allout)
|
|
|
|
(make-variable-buffer-local 'allout-encrypt-unencrypted-on-saves)
|
|
|
|
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
;;;_ + Miscellaneous customization
|
|
|
|
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ = allout-command-prefix
|
|
|
|
(defcustom allout-command-prefix "\C-c"
|
2000-06-07 13:25:06 +00:00
|
|
|
"*Key sequence to be used as prefix for outline mode command key bindings."
|
|
|
|
:type 'string
|
|
|
|
:group 'allout)
|
|
|
|
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ = allout-keybindings-list
|
|
|
|
;;; You have to reactivate allout-mode - `(allout-mode t)' - to
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
;;; institute changes to this var.
|
2002-12-16 00:20:42 +00:00
|
|
|
(defvar allout-keybindings-list ()
|
2002-12-16 00:26:22 +00:00
|
|
|
"*List of `allout-mode' key / function bindings, for `allout-mode-map'.
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
|
2002-12-16 00:26:22 +00:00
|
|
|
String or vector key will be prefaced with `allout-command-prefix',
|
2000-06-07 13:25:06 +00:00
|
|
|
unless optional third, non-nil element is present.")
|
2002-12-16 00:20:42 +00:00
|
|
|
(setq allout-keybindings-list
|
1993-06-02 17:53:31 +00:00
|
|
|
'(
|
|
|
|
; Motion commands:
|
2002-12-16 00:20:42 +00:00
|
|
|
("\C-n" allout-next-visible-heading)
|
|
|
|
("\C-p" allout-previous-visible-heading)
|
|
|
|
("\C-u" allout-up-current-level)
|
|
|
|
("\C-f" allout-forward-current-level)
|
|
|
|
("\C-b" allout-backward-current-level)
|
|
|
|
("\C-a" allout-beginning-of-current-entry)
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
("\C-e" allout-end-of-entry)
|
1993-06-02 17:53:31 +00:00
|
|
|
; Exposure commands:
|
2002-12-16 00:20:42 +00:00
|
|
|
("\C-i" allout-show-children)
|
|
|
|
("\C-s" allout-show-current-subtree)
|
|
|
|
("\C-h" allout-hide-current-subtree)
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
("h" allout-hide-current-subtree)
|
2002-12-16 00:20:42 +00:00
|
|
|
("\C-o" allout-show-current-entry)
|
|
|
|
("!" allout-show-all)
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
("x" allout-toggle-current-subtree-encryption)
|
1993-06-02 17:53:31 +00:00
|
|
|
; Alteration commands:
|
2002-12-16 00:20:42 +00:00
|
|
|
(" " allout-open-sibtopic)
|
|
|
|
("." allout-open-subtopic)
|
|
|
|
("," allout-open-supertopic)
|
|
|
|
("'" allout-shift-in)
|
|
|
|
(">" allout-shift-in)
|
|
|
|
("<" allout-shift-out)
|
|
|
|
("\C-m" allout-rebullet-topic)
|
|
|
|
("*" allout-rebullet-current-heading)
|
|
|
|
("#" allout-number-siblings)
|
|
|
|
("\C-k" allout-kill-line t)
|
|
|
|
("\C-y" allout-yank t)
|
|
|
|
("\M-y" allout-yank-pop t)
|
|
|
|
("\C-k" allout-kill-topic)
|
1993-06-02 17:53:31 +00:00
|
|
|
; Miscellaneous commands:
|
2002-12-16 00:20:42 +00:00
|
|
|
;([?\C-\ ] allout-mark-topic)
|
|
|
|
("@" allout-resolve-xref)
|
|
|
|
("=c" allout-copy-exposed-to-buffer)
|
|
|
|
("=i" allout-indented-exposed-to-buffer)
|
|
|
|
("=t" allout-latexify-exposed)
|
|
|
|
("=p" allout-flatten-exposed-to-buffer)))
|
|
|
|
|
|
|
|
;;;_ = allout-isearch-dynamic-expose
|
|
|
|
(defcustom allout-isearch-dynamic-expose t
|
2000-06-07 13:25:06 +00:00
|
|
|
"*Non-nil enable dynamic exposure of hidden incremental-search
|
|
|
|
targets as they're encountered."
|
1998-03-07 18:19:38 +00:00
|
|
|
:type 'boolean
|
|
|
|
:group 'allout)
|
2002-12-16 00:20:42 +00:00
|
|
|
(make-variable-buffer-local 'allout-isearch-dynamic-expose)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ = allout-use-hanging-indents
|
|
|
|
(defcustom allout-use-hanging-indents t
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
"*If non-nil, topic body text auto-indent defaults to indent of the header.
|
|
|
|
Ie, it is indented to be just past the header prefix. This is
|
|
|
|
relevant mostly for use with indented-text-mode, or other situations
|
|
|
|
where auto-fill occurs.
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
(outline-auto-activation, outline-layout)
(outline-primary-bullet, outline-plain-bullets-string)
(outline-distinctive-bullets-string, outline-old-style-prefixes)
(outline-stylish-prefixes, outline-file-xref-bullet)
(outline-use-hanging-indents, outline-bullets-string)
(outline-write-file-hook, outline-mode, outline-prefix-data)
(outline-before-change-protect, outline-make-topic-prefix)
(outline-rebullet-current-heading, outline-rebullet-heading)
(outline-listify-exposed, outline-expose-topic)
(outline-old-expose-topic, outline-exposure)
(outline-latex-verbatim-quote-curr-line)
(outline-show-current-subtree, outline-hide-current-subtree)
(outline-hide-current-leaves, outline-new-exposure): Doc fix.
1996-07-13 18:46:08 +00:00
|
|
|
\[This feature no longer depends in any way on the `filladapt.el'
|
1998-03-07 18:19:38 +00:00
|
|
|
lisp-archive package.\]"
|
|
|
|
:type 'boolean
|
|
|
|
:group 'allout)
|
2002-12-16 00:20:42 +00:00
|
|
|
(make-variable-buffer-local 'allout-use-hanging-indents)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ = allout-reindent-bodies
|
|
|
|
(defcustom allout-reindent-bodies (if allout-use-hanging-indents
|
1994-05-17 09:48:53 +00:00
|
|
|
'text)
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
"*Non-nil enables auto-adjust of topic body hanging indent with depth shifts.
|
1993-06-02 17:53:31 +00:00
|
|
|
|
1994-05-17 09:48:53 +00:00
|
|
|
When active, topic body lines that are indented even with or beyond
|
|
|
|
their topic header are reindented to correspond with depth shifts of
|
|
|
|
the header.
|
|
|
|
|
2003-05-06 17:38:32 +00:00
|
|
|
A value of t enables reindent in non-programming-code buffers, ie
|
1994-05-17 09:48:53 +00:00
|
|
|
those that do not have the variable `comment-start' set. A value of
|
1998-03-07 18:19:38 +00:00
|
|
|
`force' enables reindent whether or not `comment-start' is set."
|
|
|
|
:type '(choice (const nil) (const t) (const text) (const force))
|
|
|
|
:group 'allout)
|
1994-05-17 09:48:53 +00:00
|
|
|
|
2002-12-16 00:20:42 +00:00
|
|
|
(make-variable-buffer-local 'allout-reindent-bodies)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
;;;_ = allout-enable-file-variable-adjustment
|
|
|
|
(defcustom allout-enable-file-variable-adjustment t
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
"*If non-nil, some allout outline actions edit Emacs local file var text.
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
|
|
|
|
This can range from changes to existing entries, addition of new ones,
|
|
|
|
and creation of a new local variables section when necessary.
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
Emacs file variables adjustments are also inhibited if `enable-local-variables'
|
|
|
|
is nil.
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
Operations potentially causing edits include allout encryption routines.
|
|
|
|
See the docstring for `allout-toggle-current-subtree-encryption' for
|
|
|
|
details."
|
1998-03-07 18:19:38 +00:00
|
|
|
:type 'boolean
|
|
|
|
:group 'allout)
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
(make-variable-buffer-local 'allout-enable-file-variable-adjustment)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
;;;_* CODE - no user customizations below.
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
2000-06-07 13:25:06 +00:00
|
|
|
;;;_ #1 Internal Outline Formatting and Configuration
|
|
|
|
;;;_ : Version
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ = allout-version
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
(defvar allout-version "2.1"
|
|
|
|
"Version of currently loaded outline package. \(allout.el)")
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-version
|
|
|
|
(defun allout-version (&optional here)
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
"Return string describing the loaded outline version."
|
|
|
|
(interactive "P")
|
2002-12-16 00:20:42 +00:00
|
|
|
(let ((msg (concat "Allout Outline Mode v " allout-version)))
|
2001-11-26 16:24:26 +00:00
|
|
|
(if here (insert msg))
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
(message "%s" msg)
|
|
|
|
msg))
|
2000-06-07 13:25:06 +00:00
|
|
|
;;;_ : Topic header format
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ = allout-regexp
|
|
|
|
(defvar allout-regexp ""
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
"*Regular expression to match the beginning of a heading line.
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
Any line whose beginning matches this regexp is considered a
|
|
|
|
heading. This var is set according to the user configuration vars
|
2002-12-16 00:26:22 +00:00
|
|
|
by `set-allout-regexp'.")
|
2002-12-16 00:20:42 +00:00
|
|
|
(make-variable-buffer-local 'allout-regexp)
|
|
|
|
;;;_ = allout-bullets-string
|
|
|
|
(defvar allout-bullets-string ""
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
"A string dictating the valid set of outline topic bullets.
|
|
|
|
|
2002-12-16 00:20:42 +00:00
|
|
|
This var should *not* be set by the user - it is set by `set-allout-regexp',
|
|
|
|
and is produced from the elements of `allout-plain-bullets-string'
|
|
|
|
and `allout-distinctive-bullets-string'.")
|
|
|
|
(make-variable-buffer-local 'allout-bullets-string)
|
|
|
|
;;;_ = allout-bullets-string-len
|
|
|
|
(defvar allout-bullets-string-len 0
|
2002-12-16 00:26:22 +00:00
|
|
|
"Length of current buffers' `allout-plain-bullets-string'.")
|
2002-12-16 00:20:42 +00:00
|
|
|
(make-variable-buffer-local 'allout-bullets-string-len)
|
|
|
|
;;;_ = allout-line-boundary-regexp
|
|
|
|
(defvar allout-line-boundary-regexp ()
|
2002-12-16 00:42:23 +00:00
|
|
|
"`allout-regexp' with outline style beginning-of-line anchor.
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
|
1994-05-22 22:14:17 +00:00
|
|
|
\(Ie, C-j, *or* C-m, for prefixes of hidden topics). This is properly
|
2002-12-16 00:26:22 +00:00
|
|
|
set when `allout-regexp' is produced by `set-allout-regexp', so
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
that (match-beginning 2) and (match-end 2) delimit the prefix.")
|
2002-12-16 00:20:42 +00:00
|
|
|
(make-variable-buffer-local 'allout-line-boundary-regexp)
|
|
|
|
;;;_ = allout-bob-regexp
|
|
|
|
(defvar allout-bob-regexp ()
|
2002-12-16 00:26:22 +00:00
|
|
|
"Like `allout-line-boundary-regexp', for headers at beginning of buffer.
|
2000-06-07 13:25:06 +00:00
|
|
|
\(match-beginning 2) and \(match-end 2) delimit the prefix.")
|
2002-12-16 00:20:42 +00:00
|
|
|
(make-variable-buffer-local 'allout-bob-regexp)
|
|
|
|
;;;_ = allout-header-subtraction
|
|
|
|
(defvar allout-header-subtraction (1- (length allout-header-prefix))
|
|
|
|
"Allout-header prefix length to subtract when computing topic depth.")
|
|
|
|
(make-variable-buffer-local 'allout-header-subtraction)
|
|
|
|
;;;_ = allout-plain-bullets-string-len
|
|
|
|
(defvar allout-plain-bullets-string-len (length allout-plain-bullets-string)
|
2002-12-16 00:26:22 +00:00
|
|
|
"Length of `allout-plain-bullets-string', updated by `set-allout-regexp'.")
|
2002-12-16 00:20:42 +00:00
|
|
|
(make-variable-buffer-local 'allout-plain-bullets-string-len)
|
|
|
|
|
|
|
|
|
|
|
|
;;;_ X allout-reset-header-lead (header-lead)
|
|
|
|
(defun allout-reset-header-lead (header-lead)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
"*Reset the leading string used to identify topic headers."
|
1993-06-02 17:53:31 +00:00
|
|
|
(interactive "sNew lead string: ")
|
2002-12-16 00:20:42 +00:00
|
|
|
(setq allout-header-prefix header-lead)
|
|
|
|
(setq allout-header-subtraction (1- (length allout-header-prefix)))
|
|
|
|
(set-allout-regexp))
|
|
|
|
;;;_ X allout-lead-with-comment-string (header-lead)
|
|
|
|
(defun allout-lead-with-comment-string (&optional header-lead)
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
"*Set the topic-header leading string to specified string.
|
|
|
|
|
|
|
|
Useful when for encapsulating outline structure in programming
|
|
|
|
language comments. Returns the leading string."
|
1993-06-02 17:53:31 +00:00
|
|
|
|
|
|
|
(interactive "P")
|
|
|
|
(if (not (stringp header-lead))
|
|
|
|
(setq header-lead (read-string
|
|
|
|
"String prefix for topic headers: ")))
|
2002-12-16 00:20:42 +00:00
|
|
|
(setq allout-reindent-bodies nil)
|
|
|
|
(allout-reset-header-lead header-lead)
|
1993-06-02 17:53:31 +00:00
|
|
|
header-lead)
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-infer-header-lead ()
|
|
|
|
(defun allout-infer-header-lead ()
|
|
|
|
"Determine appropriate `allout-header-prefix'.
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
|
|
|
|
Works according to settings of:
|
|
|
|
|
1994-05-17 09:48:53 +00:00
|
|
|
`comment-start'
|
2002-12-16 00:20:42 +00:00
|
|
|
`allout-header-prefix' (default)
|
|
|
|
`allout-use-mode-specific-leader'
|
|
|
|
and `allout-mode-leaders'.
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
|
2002-12-16 00:20:42 +00:00
|
|
|
Apply this via \(re)activation of `allout-mode', rather than
|
1994-05-17 09:48:53 +00:00
|
|
|
invoking it directly."
|
2002-12-16 00:20:42 +00:00
|
|
|
(let* ((use-leader (and (boundp 'allout-use-mode-specific-leader)
|
|
|
|
(if (or (stringp allout-use-mode-specific-leader)
|
|
|
|
(memq allout-use-mode-specific-leader
|
|
|
|
'(allout-mode-leaders
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
comment-start
|
|
|
|
t)))
|
2002-12-16 00:20:42 +00:00
|
|
|
allout-use-mode-specific-leader
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
;; Oops - garbled value, equate with effect of 't:
|
|
|
|
t)))
|
|
|
|
(leader
|
|
|
|
(cond
|
|
|
|
((not use-leader) nil)
|
|
|
|
;; Use the explicitly designated leader:
|
|
|
|
((stringp use-leader) use-leader)
|
2002-12-16 00:20:42 +00:00
|
|
|
(t (or (and (memq use-leader '(t allout-mode-leaders))
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
;; Get it from outline mode leaders?
|
2002-12-16 00:20:42 +00:00
|
|
|
(cdr (assq major-mode allout-mode-leaders)))
|
|
|
|
;; ... didn't get from allout-mode-leaders...
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
(and (memq use-leader '(t comment-start))
|
|
|
|
comment-start
|
|
|
|
;; Use comment-start, maybe tripled, and with
|
(outline-auto-activation, outline-layout)
(outline-primary-bullet, outline-plain-bullets-string)
(outline-distinctive-bullets-string, outline-old-style-prefixes)
(outline-stylish-prefixes, outline-file-xref-bullet)
(outline-use-hanging-indents, outline-bullets-string)
(outline-write-file-hook, outline-mode, outline-prefix-data)
(outline-before-change-protect, outline-make-topic-prefix)
(outline-rebullet-current-heading, outline-rebullet-heading)
(outline-listify-exposed, outline-expose-topic)
(outline-old-expose-topic, outline-exposure)
(outline-latex-verbatim-quote-curr-line)
(outline-show-current-subtree, outline-hide-current-subtree)
(outline-hide-current-leaves, outline-new-exposure): Doc fix.
1996-07-13 18:46:08 +00:00
|
|
|
;; underscore:
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
(concat
|
|
|
|
(if (string= " "
|
|
|
|
(substring comment-start
|
|
|
|
(1- (length comment-start))))
|
|
|
|
;; Use comment-start, sans trailing space:
|
|
|
|
(substring comment-start 0 -1)
|
|
|
|
(concat comment-start comment-start comment-start))
|
|
|
|
;; ... and append underscore, whichever:
|
|
|
|
"_")))))))
|
|
|
|
(if (not leader)
|
|
|
|
nil
|
2002-12-16 00:20:42 +00:00
|
|
|
(if (string= leader allout-header-prefix)
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
nil ; no change, nothing to do.
|
2002-12-16 00:20:42 +00:00
|
|
|
(setq allout-header-prefix leader)
|
|
|
|
allout-header-prefix))))
|
|
|
|
;;;_ > allout-infer-body-reindent ()
|
|
|
|
(defun allout-infer-body-reindent ()
|
|
|
|
"Determine proper setting for `allout-reindent-bodies'.
|
1994-05-17 09:48:53 +00:00
|
|
|
|
2002-12-16 00:20:42 +00:00
|
|
|
Depends on default setting of `allout-reindent-bodies' \(which see)
|
1994-05-17 09:48:53 +00:00
|
|
|
and presence of setting for `comment-start', to tell whether the
|
|
|
|
file is programming code."
|
2002-12-16 00:20:42 +00:00
|
|
|
(if (and allout-reindent-bodies
|
1994-05-17 09:48:53 +00:00
|
|
|
comment-start
|
2002-12-16 00:20:42 +00:00
|
|
|
(not (eq 'force allout-reindent-bodies)))
|
|
|
|
(setq allout-reindent-bodies nil)))
|
|
|
|
;;;_ > set-allout-regexp ()
|
|
|
|
(defun set-allout-regexp ()
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
"Generate proper topic-header regexp form for outline functions.
|
|
|
|
|
2002-12-16 00:20:42 +00:00
|
|
|
Works with respect to `allout-plain-bullets-string' and
|
|
|
|
`allout-distinctive-bullets-string'."
|
1993-06-02 17:53:31 +00:00
|
|
|
|
|
|
|
(interactive)
|
2002-12-16 00:20:42 +00:00
|
|
|
;; Derive allout-bullets-string from user configured components:
|
|
|
|
(setq allout-bullets-string "")
|
|
|
|
(let ((strings (list 'allout-plain-bullets-string
|
|
|
|
'allout-distinctive-bullets-string
|
|
|
|
'allout-primary-bullet))
|
1993-06-02 17:53:31 +00:00
|
|
|
cur-string
|
|
|
|
cur-len
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
cur-char
|
1993-06-02 17:53:31 +00:00
|
|
|
cur-char-string
|
|
|
|
index
|
|
|
|
new-string)
|
|
|
|
(while strings
|
|
|
|
(setq new-string "") (setq index 0)
|
|
|
|
(setq cur-len (length (setq cur-string (symbol-value (car strings)))))
|
|
|
|
(while (< index cur-len)
|
|
|
|
(setq cur-char (aref cur-string index))
|
2002-12-16 00:20:42 +00:00
|
|
|
(setq allout-bullets-string
|
|
|
|
(concat allout-bullets-string
|
1993-06-02 17:53:31 +00:00
|
|
|
(cond
|
|
|
|
; Single dash would denote a
|
|
|
|
; sequence, repeated denotes
|
|
|
|
; a dash:
|
|
|
|
((eq cur-char ?-) "--")
|
|
|
|
; literal close-square-bracket
|
|
|
|
; doesn't work right in the
|
|
|
|
; expr, exclude it:
|
|
|
|
((eq cur-char ?\]) "")
|
|
|
|
(t (regexp-quote (char-to-string cur-char))))))
|
|
|
|
(setq index (1+ index)))
|
|
|
|
(setq strings (cdr strings)))
|
|
|
|
)
|
2002-12-16 00:20:42 +00:00
|
|
|
;; Derive next for repeated use in allout-pending-bullet:
|
|
|
|
(setq allout-plain-bullets-string-len (length allout-plain-bullets-string))
|
|
|
|
(setq allout-header-subtraction (1- (length allout-header-prefix)))
|
|
|
|
;; Produce the new allout-regexp:
|
|
|
|
(setq allout-regexp (concat "\\(\\"
|
|
|
|
allout-header-prefix
|
1993-06-02 17:53:31 +00:00
|
|
|
"[ \t]*["
|
2002-12-16 00:20:42 +00:00
|
|
|
allout-bullets-string
|
1993-06-02 17:53:31 +00:00
|
|
|
"]\\)\\|\\"
|
2002-12-16 00:20:42 +00:00
|
|
|
allout-primary-bullet
|
1993-06-02 17:53:31 +00:00
|
|
|
"+\\|\^l"))
|
2002-12-16 00:20:42 +00:00
|
|
|
(setq allout-line-boundary-regexp
|
|
|
|
(concat "\\([\n\r]\\)\\(" allout-regexp "\\)"))
|
|
|
|
(setq allout-bob-regexp
|
|
|
|
(concat "\\(\\`\\)\\(" allout-regexp "\\)"))
|
1993-06-02 17:53:31 +00:00
|
|
|
)
|
2000-06-07 13:25:06 +00:00
|
|
|
;;;_ : Key bindings
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ = allout-mode-map
|
|
|
|
(defvar allout-mode-map nil "Keybindings for (allout) outline minor mode.")
|
|
|
|
;;;_ > produce-allout-mode-map (keymap-alist &optional base-map)
|
|
|
|
(defun produce-allout-mode-map (keymap-list &optional base-map)
|
(allout-chart-subtree, allout-rebullet-topic-grunt): Don't mention in the
docstring these arguments meant for internal (recursive) use only.
(allout-char-spec): Comment out (it's not implemented).
(allout-old-expose-topic, allout-exposure): Fix docstring and add obsolescence
declaration.
(allout-flatten-exposed-to-buffer, allout-indented-exposed-to-buffer): Fix typos
in docstring.
(my-mark-marker): Doc fix.
(produce-allout-mode-map, allout-sibling-index, allout-isearch-expose)
(allout-distinctive-bullet, allout-open-topic, allout-reindent-body)
(allout-rebullet-heading, allout-process-exposed, allout-insert-listified)
(allout-latex-verb-quote, allout-insert-latex-header)
(allout-insert-latex-trailer): Make arguments match their use in
docstring.
(allout-primary-bullet, allout-old-style-prefixes, allout-inhibit-protection)
(allout-init, allout-mode, allout-before-change-protect, allout-flag-region):
Use "Emacs" instead of "emacs" in docstrings.
2004-05-21 18:10:21 +00:00
|
|
|
"Produce keymap for use as allout-mode-map, from KEYMAP-LIST.
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
|
|
|
|
Built on top of optional BASE-MAP, or empty sparse map if none specified.
|
2002-12-16 00:20:42 +00:00
|
|
|
See doc string for allout-keybindings-list for format of binding list."
|
2000-06-07 13:25:06 +00:00
|
|
|
(let ((map (or base-map (make-sparse-keymap)))
|
2002-12-16 00:20:42 +00:00
|
|
|
(pref (list allout-command-prefix)))
|
2000-06-07 13:25:06 +00:00
|
|
|
(mapcar (function
|
|
|
|
(lambda (cell)
|
|
|
|
(let ((add-pref (null (cdr (cdr cell))))
|
|
|
|
(key-suff (list (car cell))))
|
|
|
|
(apply 'define-key
|
|
|
|
(list map
|
|
|
|
(apply 'concat (if add-pref
|
|
|
|
(append pref key-suff)
|
|
|
|
key-suff))
|
|
|
|
(car (cdr cell)))))))
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
keymap-list)
|
|
|
|
map))
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
;;;_ = allout-prior-bindings - being deprecated.
|
|
|
|
(defvar allout-prior-bindings nil
|
|
|
|
"Variable for use in V18, with allout-added-bindings, for
|
|
|
|
resurrecting, on mode deactivation, bindings that existed before
|
|
|
|
activation. Being deprecated.")
|
|
|
|
;;;_ = allout-added-bindings - being deprecated
|
|
|
|
(defvar allout-added-bindings nil
|
|
|
|
"Variable for use in V18, with allout-prior-bindings, for
|
|
|
|
resurrecting, on mode deactivation, bindings that existed before
|
|
|
|
activation. Being deprecated.")
|
2000-06-07 13:25:06 +00:00
|
|
|
;;;_ : Menu bar
|
2004-04-17 19:53:58 +00:00
|
|
|
(defvar allout-mode-exposure-menu)
|
|
|
|
(defvar allout-mode-editing-menu)
|
|
|
|
(defvar allout-mode-navigation-menu)
|
|
|
|
(defvar allout-mode-misc-menu)
|
2002-12-16 00:20:42 +00:00
|
|
|
(defun produce-allout-mode-menubar-entries ()
|
2000-06-07 13:25:06 +00:00
|
|
|
(require 'easymenu)
|
2002-12-16 00:20:42 +00:00
|
|
|
(easy-menu-define allout-mode-exposure-menu
|
|
|
|
allout-mode-map
|
2000-06-07 13:25:06 +00:00
|
|
|
"Allout outline exposure menu."
|
|
|
|
'("Exposure"
|
2002-12-16 00:20:42 +00:00
|
|
|
["Show Entry" allout-show-current-entry t]
|
|
|
|
["Show Children" allout-show-children t]
|
|
|
|
["Show Subtree" allout-show-current-subtree t]
|
|
|
|
["Hide Subtree" allout-hide-current-subtree t]
|
|
|
|
["Hide Leaves" allout-hide-current-leaves t]
|
2000-06-07 13:25:06 +00:00
|
|
|
"----"
|
2002-12-16 00:20:42 +00:00
|
|
|
["Show All" allout-show-all t]))
|
|
|
|
(easy-menu-define allout-mode-editing-menu
|
|
|
|
allout-mode-map
|
2000-06-07 13:25:06 +00:00
|
|
|
"Allout outline editing menu."
|
|
|
|
'("Headings"
|
2002-12-16 00:20:42 +00:00
|
|
|
["Open Sibling" allout-open-sibtopic t]
|
|
|
|
["Open Subtopic" allout-open-subtopic t]
|
|
|
|
["Open Supertopic" allout-open-supertopic t]
|
2000-06-07 13:25:06 +00:00
|
|
|
"----"
|
2002-12-16 00:20:42 +00:00
|
|
|
["Shift Topic In" allout-shift-in t]
|
|
|
|
["Shift Topic Out" allout-shift-out t]
|
|
|
|
["Rebullet Topic" allout-rebullet-topic t]
|
|
|
|
["Rebullet Heading" allout-rebullet-current-heading t]
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
["Number Siblings" allout-number-siblings t]
|
|
|
|
"----"
|
|
|
|
["Toggle Topic Encryption"
|
|
|
|
allout-toggle-current-subtree-encryption
|
|
|
|
(> (allout-current-depth) 1)]))
|
2002-12-16 00:20:42 +00:00
|
|
|
(easy-menu-define allout-mode-navigation-menu
|
|
|
|
allout-mode-map
|
2000-06-07 13:25:06 +00:00
|
|
|
"Allout outline navigation menu."
|
|
|
|
'("Navigation"
|
2002-12-16 00:20:42 +00:00
|
|
|
["Next Visible Heading" allout-next-visible-heading t]
|
2000-06-07 13:25:06 +00:00
|
|
|
["Previous Visible Heading"
|
2002-12-16 00:20:42 +00:00
|
|
|
allout-previous-visible-heading t]
|
2000-06-07 13:25:06 +00:00
|
|
|
"----"
|
2002-12-16 00:20:42 +00:00
|
|
|
["Up Level" allout-up-current-level t]
|
|
|
|
["Forward Current Level" allout-forward-current-level t]
|
2000-06-07 13:25:06 +00:00
|
|
|
["Backward Current Level"
|
2002-12-16 00:20:42 +00:00
|
|
|
allout-backward-current-level t]
|
2000-06-07 13:25:06 +00:00
|
|
|
"----"
|
|
|
|
["Beginning of Entry"
|
2002-12-16 00:20:42 +00:00
|
|
|
allout-beginning-of-current-entry t]
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
["End of Entry" allout-end-of-entry t]
|
2002-12-16 00:20:42 +00:00
|
|
|
["End of Subtree" allout-end-of-current-subtree t]))
|
|
|
|
(easy-menu-define allout-mode-misc-menu
|
|
|
|
allout-mode-map
|
2000-06-07 13:25:06 +00:00
|
|
|
"Allout outlines miscellaneous bindings."
|
|
|
|
'("Misc"
|
2002-12-16 00:20:42 +00:00
|
|
|
["Version" allout-version t]
|
2000-06-07 13:25:06 +00:00
|
|
|
"----"
|
2002-12-16 00:20:42 +00:00
|
|
|
["Duplicate Exposed" allout-copy-exposed-to-buffer t]
|
2000-06-07 13:25:06 +00:00
|
|
|
["Duplicate Exposed, numbered"
|
2003-02-04 11:26:42 +00:00
|
|
|
allout-flatten-exposed-to-buffer t]
|
2000-06-07 13:25:06 +00:00
|
|
|
["Duplicate Exposed, indented"
|
2003-02-04 11:26:42 +00:00
|
|
|
allout-indented-exposed-to-buffer t]
|
2000-06-07 13:25:06 +00:00
|
|
|
"----"
|
2002-12-16 00:20:42 +00:00
|
|
|
["Set Header Lead" allout-reset-header-lead t]
|
|
|
|
["Set New Exposure" allout-expose-topic t])))
|
2000-06-07 13:25:06 +00:00
|
|
|
;;;_ : Mode-Specific Variable Maintenance Utilities
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ = allout-mode-prior-settings
|
|
|
|
(defvar allout-mode-prior-settings nil
|
2002-12-16 00:42:23 +00:00
|
|
|
"Internal `allout-mode' use; settings to be resumed on mode deactivation.")
|
2002-12-16 00:20:42 +00:00
|
|
|
(make-variable-buffer-local 'allout-mode-prior-settings)
|
|
|
|
;;;_ > allout-resumptions (name &optional value)
|
|
|
|
(defun allout-resumptions (name &optional value)
|
1993-06-02 17:53:31 +00:00
|
|
|
|
2002-12-16 00:26:22 +00:00
|
|
|
"Registers or resumes settings over `allout-mode' activation/deactivation.
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
|
|
|
|
First arg is NAME of variable affected. Optional second arg is list
|
2002-12-16 00:20:42 +00:00
|
|
|
containing allout-mode-specific VALUE to be imposed on named
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
variable, and to be registered. (It's a list so you can specify
|
|
|
|
registrations of null values.) If no value is specified, the
|
|
|
|
registered value is returned (encapsulated in the list, so the caller
|
|
|
|
can distinguish nil vs no value), and the registration is popped
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
from the list."
|
1993-06-02 17:53:31 +00:00
|
|
|
|
2002-12-16 00:20:42 +00:00
|
|
|
(let ((on-list (assq name allout-mode-prior-settings))
|
(outline-auto-activation, outline-layout)
(outline-primary-bullet, outline-plain-bullets-string)
(outline-distinctive-bullets-string, outline-old-style-prefixes)
(outline-stylish-prefixes, outline-file-xref-bullet)
(outline-use-hanging-indents, outline-bullets-string)
(outline-write-file-hook, outline-mode, outline-prefix-data)
(outline-before-change-protect, outline-make-topic-prefix)
(outline-rebullet-current-heading, outline-rebullet-heading)
(outline-listify-exposed, outline-expose-topic)
(outline-old-expose-topic, outline-exposure)
(outline-latex-verbatim-quote-curr-line)
(outline-show-current-subtree, outline-hide-current-subtree)
(outline-hide-current-leaves, outline-new-exposure): Doc fix.
1996-07-13 18:46:08 +00:00
|
|
|
prior-capsule ; By `capsule' i mean a list
|
1993-06-02 17:53:31 +00:00
|
|
|
; containing a value, so we can
|
|
|
|
; distinguish nil from no value.
|
|
|
|
)
|
|
|
|
|
|
|
|
(if value
|
|
|
|
|
|
|
|
;; Registering:
|
|
|
|
(progn
|
|
|
|
(if on-list
|
|
|
|
nil ; Already preserved prior value - don't mess with it.
|
|
|
|
;; Register the old value, or nil if previously unbound:
|
2002-12-16 00:20:42 +00:00
|
|
|
(setq allout-mode-prior-settings
|
1993-06-02 17:53:31 +00:00
|
|
|
(cons (list name
|
|
|
|
(if (boundp name) (list (symbol-value name))))
|
2002-12-16 00:20:42 +00:00
|
|
|
allout-mode-prior-settings)))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
; And impose the new value, locally:
|
|
|
|
(progn (make-local-variable name)
|
|
|
|
(set name (car value))))
|
1993-06-02 17:53:31 +00:00
|
|
|
|
|
|
|
;; Relinquishing:
|
|
|
|
(if (not on-list)
|
|
|
|
|
|
|
|
;; Oops, not registered - leave it be:
|
|
|
|
nil
|
|
|
|
|
|
|
|
;; Some registration:
|
|
|
|
; reestablish it:
|
|
|
|
(setq prior-capsule (car (cdr on-list)))
|
|
|
|
(if prior-capsule
|
|
|
|
(set name (car prior-capsule)) ; Some prior value - reestablish it.
|
|
|
|
(makunbound name)) ; Previously unbound - demolish var.
|
|
|
|
; Remove registration:
|
|
|
|
(let (rebuild)
|
2002-12-16 00:20:42 +00:00
|
|
|
(while allout-mode-prior-settings
|
|
|
|
(if (not (eq (car allout-mode-prior-settings)
|
1993-06-02 17:53:31 +00:00
|
|
|
on-list))
|
|
|
|
(setq rebuild
|
2002-12-16 00:20:42 +00:00
|
|
|
(cons (car allout-mode-prior-settings)
|
1993-06-02 17:53:31 +00:00
|
|
|
rebuild)))
|
2002-12-16 00:20:42 +00:00
|
|
|
(setq allout-mode-prior-settings
|
|
|
|
(cdr allout-mode-prior-settings)))
|
|
|
|
(setq allout-mode-prior-settings rebuild)))))
|
1993-06-02 17:53:31 +00:00
|
|
|
)
|
2000-06-07 13:25:06 +00:00
|
|
|
;;;_ : Mode-specific incidentals
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ = allout-pre-was-isearching nil
|
|
|
|
(defvar allout-pre-was-isearching nil
|
2000-06-07 13:25:06 +00:00
|
|
|
"Cue for isearch-dynamic-exposure mechanism, implemented in
|
2002-12-16 00:20:42 +00:00
|
|
|
allout-pre- and -post-command-hooks.")
|
|
|
|
(make-variable-buffer-local 'allout-pre-was-isearching)
|
|
|
|
;;;_ = allout-isearch-prior-pos nil
|
|
|
|
(defvar allout-isearch-prior-pos nil
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
"Cue for isearch-dynamic-exposure tracking, used by
|
|
|
|
`allout-isearch-expose'.")
|
2002-12-16 00:20:42 +00:00
|
|
|
(make-variable-buffer-local 'allout-isearch-prior-pos)
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
;;;_ = allout-isearch-did-quit
|
|
|
|
(defvar allout-isearch-did-quit nil
|
|
|
|
"Distinguishes isearch conclusion and cancellation.
|
|
|
|
|
|
|
|
Maintained by allout-isearch-abort \(which is wrapped around the real
|
|
|
|
isearch-abort), and monitored by allout-isearch-expose for action.")
|
|
|
|
(make-variable-buffer-local 'allout-isearch-did-quit)
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-unprotected (expr)
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
(defmacro allout-unprotected (expr)
|
|
|
|
"Enable internal outline operations to alter read-only text."
|
|
|
|
`(let ((was-inhibit-r-o inhibit-read-only))
|
|
|
|
(unwind-protect
|
|
|
|
(progn
|
|
|
|
(setq inhibit-read-only t)
|
|
|
|
,expr)
|
|
|
|
(setq inhibit-read-only was-inhibit-r-o)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ = allout-undo-aggregation
|
|
|
|
(defvar allout-undo-aggregation 30
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
"Amount of successive self-insert actions to bunch together per undo.
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
This is purely a kludge variable, regulating the compensation for a bug in
|
(my-mark-marker, allout-isearch-prior-pos, allout-unprotected,
allout-undo-aggregation, allout-snug-back, allout-post-command-business,
allout-flag-region, isearch-reenable-font-lock, allout-yank,
allout-insert-latex-header, allout-insert-latex-trailer,
allout-latex-verbatim-quote-curr-line, allout-latexify-exposed,
allout-latex-verb-quote): Fix typos in docstrings.
(allout-enwrap-isearch, regexp-sans-escapes): Doc fix.
(allout-unprotected, allout-prefix-data): Improve argument/docstring
consistency.
(allout-chart-subtree): Fix argument spec.
(allout-open-topic): Rename `use_sib_bullet' argument to `use-sib-bullet'.
Doc fix.
2005-07-13 10:15:39 +00:00
|
|
|
the way that `before-change-functions' and undo interact.")
|
2002-12-16 00:20:42 +00:00
|
|
|
(make-variable-buffer-local 'allout-undo-aggregation)
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
;;;_ = file-var-bug hack
|
2002-12-16 00:20:42 +00:00
|
|
|
(defvar allout-v18/19-file-var-hack nil
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
"Horrible hack used to prevent invalid multiple triggering of outline
|
2002-12-16 00:26:22 +00:00
|
|
|
mode from prop-line file-var activation. Used by `allout-mode' function
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
to track repeats.")
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
;;;_ = allout-file-passphrase-verifier-string
|
|
|
|
(defvar allout-file-passphrase-verifier-string nil
|
|
|
|
"Name for use as a file variable for verifying encryption passphrase
|
|
|
|
across sessions.")
|
|
|
|
(make-variable-buffer-local 'allout-file-passphrase-verifier-string)
|
|
|
|
;;;_ = allout-passphrase-verifier-string
|
|
|
|
(defvar allout-passphrase-verifier-string nil
|
|
|
|
"Setting used to test solicited encryption passphrases against the one
|
|
|
|
already associated with a file.
|
|
|
|
|
|
|
|
It consists of an encrypted random string useful only to verify that a
|
|
|
|
passphrase entered by the user is effective for decryption. The passphrase
|
|
|
|
itself is \*not* recorded in the file anywhere, and the encrypted contents
|
|
|
|
are random binary characters to avoid exposing greater susceptibility to
|
|
|
|
search attacks.
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
|
|
|
|
The verifier string is retained as an Emacs file variable, as well as in
|
|
|
|
the emacs buffer state, if file variable adjustments are enabled. See
|
|
|
|
`allout-enable-file-variable-adjustment' for details about that.")
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
(make-variable-buffer-local 'allout-passphrase-verifier-string)
|
|
|
|
;;;_ = allout-passphrase-hint-string
|
|
|
|
(defvar allout-passphrase-hint-string ""
|
|
|
|
"Variable used to retain reminder string for file's encryption passphrase.
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
See the description of `allout-passphrase-hint-handling' for details about how
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
the reminder is deployed.
|
|
|
|
|
|
|
|
The hint is retained as an Emacs file variable, as well as in the emacs buffer
|
|
|
|
state, if file variable adjustments are enabled. See
|
|
|
|
`allout-enable-file-variable-adjustment' for details about that.")
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
(make-variable-buffer-local 'allout-passphrase-hint-string)
|
|
|
|
(setq-default allout-passphrase-hint-string "")
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
;;;_ = allout-after-save-decrypt
|
|
|
|
(defvar allout-after-save-decrypt nil
|
|
|
|
"Internal variable, is nil or has the value of two points:
|
|
|
|
|
|
|
|
- the location of a topic to be decrypted after saving is done
|
|
|
|
- where to situate the cursor after the decryption is performed
|
|
|
|
|
|
|
|
This is used to decrypt the topic that was currently being edited, if it
|
|
|
|
was encrypted automatically as part of a file write or autosave.")
|
|
|
|
(make-variable-buffer-local 'allout-after-save-decrypt)
|
|
|
|
;;;_ > allout-write-file-hook-handler ()
|
|
|
|
(defun allout-write-file-hook-handler ()
|
|
|
|
"Implement `allout-encrypt-unencrypted-on-saves' policy for file writes."
|
|
|
|
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
(if (or (not (allout-mode-p))
|
|
|
|
(not (boundp 'allout-encrypt-unencrypted-on-saves))
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
(not allout-encrypt-unencrypted-on-saves))
|
|
|
|
nil
|
|
|
|
(let ((except-mark (and (equal allout-encrypt-unencrypted-on-saves
|
|
|
|
'except-current)
|
|
|
|
(point-marker))))
|
|
|
|
(if (save-excursion (goto-char (point-min))
|
|
|
|
(allout-next-topic-pending-encryption except-mark))
|
|
|
|
(progn
|
|
|
|
(message "auto-encrypting pending topics")
|
|
|
|
(sit-for 2)
|
|
|
|
(condition-case failure
|
|
|
|
(setq allout-after-save-decrypt
|
|
|
|
(allout-encrypt-decrypted except-mark))
|
|
|
|
(error (progn
|
|
|
|
(message
|
|
|
|
"allout-write-file-hook-handler suppressing error %s"
|
|
|
|
failure)
|
|
|
|
(sit-for 2))))))
|
|
|
|
))
|
|
|
|
nil)
|
|
|
|
;;;_ > allout-auto-save-hook-handler ()
|
|
|
|
(defun allout-auto-save-hook-handler ()
|
|
|
|
"Implement `allout-encrypt-unencrypted-on-saves' policy for auto saves."
|
|
|
|
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
(if (and (allout-mode-p) allout-encrypt-unencrypted-on-saves)
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
;; Always implement 'except-current policy when enabled.
|
|
|
|
(let ((allout-encrypt-unencrypted-on-saves 'except-current))
|
|
|
|
(allout-write-file-hook-handler))))
|
|
|
|
;;;_ > allout-after-saves-handler ()
|
|
|
|
(defun allout-after-saves-handler ()
|
|
|
|
"Decrypt topic encrypted for save, if it's currently being edited.
|
|
|
|
|
|
|
|
Ie, if it was pending encryption and contained the point in its body before
|
|
|
|
the save.
|
|
|
|
|
|
|
|
We use values stored in `allout-after-save-decrypt' to locate the topic
|
|
|
|
and the place for the cursor after the decryption is done."
|
|
|
|
(if (not (and (allout-mode-p)
|
|
|
|
(boundp 'allout-after-save-decrypt)
|
|
|
|
allout-after-save-decrypt))
|
|
|
|
t
|
|
|
|
(goto-char (car allout-after-save-decrypt))
|
|
|
|
(let ((was-modified (buffer-modified-p)))
|
|
|
|
(allout-toggle-current-subtree-encryption)
|
|
|
|
(if (not was-modified)
|
|
|
|
(set-buffer-modified-p nil)))
|
|
|
|
(goto-char (cadr allout-after-save-decrypt))
|
|
|
|
(setq allout-after-save-decrypt nil))
|
|
|
|
)
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
|
|
|
|
;;;_ #2 Mode activation
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ = allout-mode
|
|
|
|
(defvar allout-mode () "Allout outline mode minor-mode flag.")
|
|
|
|
(make-variable-buffer-local 'allout-mode)
|
|
|
|
;;;_ > allout-mode-p ()
|
|
|
|
(defmacro allout-mode-p ()
|
2002-12-16 00:26:22 +00:00
|
|
|
"Return t if `allout-mode' is active in current buffer."
|
2002-12-16 00:20:42 +00:00
|
|
|
'allout-mode)
|
|
|
|
;;;_ = allout-explicitly-deactivated
|
|
|
|
(defvar allout-explicitly-deactivated nil
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
"If t, `allout-mode's last deactivation was deliberate.
|
2002-12-16 00:26:22 +00:00
|
|
|
So `allout-post-command-business' should not reactivate it...")
|
2002-12-16 00:20:42 +00:00
|
|
|
(make-variable-buffer-local 'allout-explicitly-deactivated)
|
|
|
|
;;;_ > allout-init (&optional mode)
|
|
|
|
(defun allout-init (&optional mode)
|
2002-12-16 00:26:22 +00:00
|
|
|
"Prime `allout-mode' to enable/disable auto-activation, wrt `allout-layout'.
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
|
1994-05-17 09:48:53 +00:00
|
|
|
MODE is one of the following symbols:
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
|
(outline-auto-activation, outline-layout)
(outline-primary-bullet, outline-plain-bullets-string)
(outline-distinctive-bullets-string, outline-old-style-prefixes)
(outline-stylish-prefixes, outline-file-xref-bullet)
(outline-use-hanging-indents, outline-bullets-string)
(outline-write-file-hook, outline-mode, outline-prefix-data)
(outline-before-change-protect, outline-make-topic-prefix)
(outline-rebullet-current-heading, outline-rebullet-heading)
(outline-listify-exposed, outline-expose-topic)
(outline-old-expose-topic, outline-exposure)
(outline-latex-verbatim-quote-curr-line)
(outline-show-current-subtree, outline-hide-current-subtree)
(outline-hide-current-leaves, outline-new-exposure): Doc fix.
1996-07-13 18:46:08 +00:00
|
|
|
- nil \(or no argument) deactivate auto-activation/layout;
|
|
|
|
- `activate', enable auto-activation only;
|
|
|
|
- `ask', enable auto-activation, and enable auto-layout but with
|
(outline-primary-bullet, outline-numbered-bullet,
outline-override-protect, outline-explicitly-deactivated,
outline-init, outline-chart-subtree, outline-chart-spec,
outline-make-topic-prefix, outline-open-topic,
outline-reindent-body, outline-yank-processing, outline-yank,
outlineify-sticky): Doc fix.
1996-01-04 23:26:20 +00:00
|
|
|
confirmation for layout operation solicited from user each time;
|
(outline-auto-activation, outline-layout)
(outline-primary-bullet, outline-plain-bullets-string)
(outline-distinctive-bullets-string, outline-old-style-prefixes)
(outline-stylish-prefixes, outline-file-xref-bullet)
(outline-use-hanging-indents, outline-bullets-string)
(outline-write-file-hook, outline-mode, outline-prefix-data)
(outline-before-change-protect, outline-make-topic-prefix)
(outline-rebullet-current-heading, outline-rebullet-heading)
(outline-listify-exposed, outline-expose-topic)
(outline-old-expose-topic, outline-exposure)
(outline-latex-verbatim-quote-curr-line)
(outline-show-current-subtree, outline-hide-current-subtree)
(outline-hide-current-leaves, outline-new-exposure): Doc fix.
1996-07-13 18:46:08 +00:00
|
|
|
- `report', just report and return the current auto-activation state;
|
1994-05-17 09:48:53 +00:00
|
|
|
- anything else \(eg, t) for auto-activation and auto-layout, without
|
|
|
|
any confirmation check.
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
|
(allout-chart-subtree, allout-rebullet-topic-grunt): Don't mention in the
docstring these arguments meant for internal (recursive) use only.
(allout-char-spec): Comment out (it's not implemented).
(allout-old-expose-topic, allout-exposure): Fix docstring and add obsolescence
declaration.
(allout-flatten-exposed-to-buffer, allout-indented-exposed-to-buffer): Fix typos
in docstring.
(my-mark-marker): Doc fix.
(produce-allout-mode-map, allout-sibling-index, allout-isearch-expose)
(allout-distinctive-bullet, allout-open-topic, allout-reindent-body)
(allout-rebullet-heading, allout-process-exposed, allout-insert-listified)
(allout-latex-verb-quote, allout-insert-latex-header)
(allout-insert-latex-trailer): Make arguments match their use in
docstring.
(allout-primary-bullet, allout-old-style-prefixes, allout-inhibit-protection)
(allout-init, allout-mode, allout-before-change-protect, allout-flag-region):
Use "Emacs" instead of "emacs" in docstrings.
2004-05-21 18:10:21 +00:00
|
|
|
Use this function to setup your Emacs session for automatic activation
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
of allout outline mode, contingent to the buffer-specific setting of
|
2002-12-16 00:20:42 +00:00
|
|
|
the `allout-layout' variable. (See `allout-layout' and
|
|
|
|
`allout-expose-topic' docstrings for more details on auto layout).
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
`allout-init' works by setting up (or removing) the `allout-mode'
|
|
|
|
find-file-hook, and giving `allout-auto-activation' a suitable
|
|
|
|
setting.
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
|
(allout-chart-subtree, allout-rebullet-topic-grunt): Don't mention in the
docstring these arguments meant for internal (recursive) use only.
(allout-char-spec): Comment out (it's not implemented).
(allout-old-expose-topic, allout-exposure): Fix docstring and add obsolescence
declaration.
(allout-flatten-exposed-to-buffer, allout-indented-exposed-to-buffer): Fix typos
in docstring.
(my-mark-marker): Doc fix.
(produce-allout-mode-map, allout-sibling-index, allout-isearch-expose)
(allout-distinctive-bullet, allout-open-topic, allout-reindent-body)
(allout-rebullet-heading, allout-process-exposed, allout-insert-listified)
(allout-latex-verb-quote, allout-insert-latex-header)
(allout-insert-latex-trailer): Make arguments match their use in
docstring.
(allout-primary-bullet, allout-old-style-prefixes, allout-inhibit-protection)
(allout-init, allout-mode, allout-before-change-protect, allout-flag-region):
Use "Emacs" instead of "emacs" in docstrings.
2004-05-21 18:10:21 +00:00
|
|
|
To prime your Emacs session for full auto-outline operation, include
|
|
|
|
the following two lines in your Emacs init file:
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
|
|
|
|
\(require 'allout)
|
2002-12-16 00:20:42 +00:00
|
|
|
\(allout-init t)"
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
(interactive)
|
|
|
|
(if (interactive-p)
|
|
|
|
(progn
|
|
|
|
(setq mode
|
|
|
|
(completing-read
|
|
|
|
(concat "Select outline auto setup mode "
|
|
|
|
"(empty for report, ? for options) ")
|
|
|
|
'(("nil")("full")("activate")("deactivate")
|
|
|
|
("ask") ("report") (""))
|
|
|
|
nil
|
|
|
|
t))
|
|
|
|
(if (string= mode "")
|
|
|
|
(setq mode 'report)
|
|
|
|
(setq mode (intern-soft mode)))))
|
1994-05-17 09:48:53 +00:00
|
|
|
(let
|
|
|
|
;; convenience aliases, for consistent ref to respective vars:
|
2002-12-16 00:20:42 +00:00
|
|
|
((hook 'allout-find-file-hook)
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
(find-file-hook-var-name (if (boundp 'find-file-hook)
|
|
|
|
'find-file-hook
|
|
|
|
'find-file-hooks))
|
2002-12-16 00:20:42 +00:00
|
|
|
(curr-mode 'allout-auto-activation))
|
(outline-auto-activation, outline-layout)
(outline-primary-bullet, outline-plain-bullets-string)
(outline-distinctive-bullets-string, outline-old-style-prefixes)
(outline-stylish-prefixes, outline-file-xref-bullet)
(outline-use-hanging-indents, outline-bullets-string)
(outline-write-file-hook, outline-mode, outline-prefix-data)
(outline-before-change-protect, outline-make-topic-prefix)
(outline-rebullet-current-heading, outline-rebullet-heading)
(outline-listify-exposed, outline-expose-topic)
(outline-old-expose-topic, outline-exposure)
(outline-latex-verbatim-quote-curr-line)
(outline-show-current-subtree, outline-hide-current-subtree)
(outline-hide-current-leaves, outline-new-exposure): Doc fix.
1996-07-13 18:46:08 +00:00
|
|
|
|
1994-05-17 09:48:53 +00:00
|
|
|
(cond ((not mode)
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
(set find-file-hook-var-name
|
|
|
|
(delq hook (symbol-value find-file-hook-var-name)))
|
1994-05-17 09:48:53 +00:00
|
|
|
(if (interactive-p)
|
|
|
|
(message "Allout outline mode auto-activation inhibited.")))
|
|
|
|
((eq mode 'report)
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
(if (not (memq hook (symbol-value find-file-hook-var-name)))
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
(allout-init nil)
|
|
|
|
;; Just punt and use the reports from each of the modes:
|
|
|
|
(allout-init (symbol-value curr-mode))))
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
(t (add-hook find-file-hook-var-name hook)
|
(outline-auto-activation, outline-layout)
(outline-primary-bullet, outline-plain-bullets-string)
(outline-distinctive-bullets-string, outline-old-style-prefixes)
(outline-stylish-prefixes, outline-file-xref-bullet)
(outline-use-hanging-indents, outline-bullets-string)
(outline-write-file-hook, outline-mode, outline-prefix-data)
(outline-before-change-protect, outline-make-topic-prefix)
(outline-rebullet-current-heading, outline-rebullet-heading)
(outline-listify-exposed, outline-expose-topic)
(outline-old-expose-topic, outline-exposure)
(outline-latex-verbatim-quote-curr-line)
(outline-show-current-subtree, outline-hide-current-subtree)
(outline-hide-current-leaves, outline-new-exposure): Doc fix.
1996-07-13 18:46:08 +00:00
|
|
|
(set curr-mode ; `set', not `setq'!
|
1994-05-17 09:48:53 +00:00
|
|
|
(cond ((eq mode 'activate)
|
|
|
|
(message
|
|
|
|
"Outline mode auto-activation enabled.")
|
|
|
|
'activate)
|
|
|
|
((eq mode 'report)
|
|
|
|
;; Return the current mode setting:
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-init mode))
|
1994-05-17 09:48:53 +00:00
|
|
|
((eq mode 'ask)
|
|
|
|
(message
|
|
|
|
(concat "Outline mode auto-activation and "
|
|
|
|
"-layout \(upon confirmation) enabled."))
|
|
|
|
'ask)
|
|
|
|
((message
|
|
|
|
"Outline mode auto-activation and -layout enabled.")
|
|
|
|
'full)))))))
|
2003-02-04 11:26:42 +00:00
|
|
|
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-setup-menubar ()
|
|
|
|
(defun allout-setup-menubar ()
|
2002-12-16 00:42:23 +00:00
|
|
|
"Populate the current buffer's menubar with `allout-mode' stuff."
|
2002-12-16 00:20:42 +00:00
|
|
|
(let ((menus (list allout-mode-exposure-menu
|
|
|
|
allout-mode-editing-menu
|
|
|
|
allout-mode-navigation-menu
|
|
|
|
allout-mode-misc-menu))
|
2000-06-07 13:25:06 +00:00
|
|
|
cur)
|
|
|
|
(while menus
|
|
|
|
(setq cur (car menus)
|
|
|
|
menus (cdr menus))
|
|
|
|
(easy-menu-add cur))))
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-mode (&optional toggle)
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
;;;_ : Defun:
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
;;;###autoload
|
2002-12-16 00:20:42 +00:00
|
|
|
(defun allout-mode (&optional toggle)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
;;;_ . Doc string:
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
"Toggle minor mode for controlling exposure and editing of text outlines.
|
|
|
|
|
2000-06-07 13:25:06 +00:00
|
|
|
Optional arg forces mode to re-initialize iff arg is positive num or
|
|
|
|
symbol. Allout outline mode always runs as a minor mode.
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
|
2002-12-16 00:42:23 +00:00
|
|
|
Allout outline mode provides extensive outline oriented formatting and
|
2000-06-07 13:25:06 +00:00
|
|
|
manipulation. It enables structural editing of outlines, as well as
|
|
|
|
navigation and exposure. It also is specifically aimed at
|
|
|
|
accommodating syntax-sensitive text like programming languages. \(For
|
|
|
|
an example, see the allout code itself, which is organized as an allout
|
|
|
|
outline.)
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
|
2000-06-07 13:25:06 +00:00
|
|
|
In addition to outline navigation and exposure, allout includes:
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
- topic-oriented repositioning, promotion/demotion, cut, and paste
|
2000-06-07 13:25:06 +00:00
|
|
|
- integral outline exposure-layout
|
|
|
|
- incremental search with dynamic exposure and reconcealment of hidden text
|
|
|
|
- automatic topic-number maintenance
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
- easy topic encryption and decryption
|
2000-06-07 13:25:06 +00:00
|
|
|
- \"Hot-spot\" operation, for single-keystroke maneuvering and
|
2002-12-16 00:20:42 +00:00
|
|
|
exposure control. \(See the allout-mode docstring.)
|
2000-06-07 13:25:06 +00:00
|
|
|
|
|
|
|
and many other features.
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
|
|
|
|
Below is a description of the bindings, and then explanation of
|
2002-12-16 00:26:22 +00:00
|
|
|
special `allout-mode' features and terminology. See also the outline
|
2000-06-07 13:25:06 +00:00
|
|
|
menubar additions for quick reference to many of the features, and see
|
2004-03-21 15:24:38 +00:00
|
|
|
the docstring of the function `allout-init' for instructions on
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
priming your emacs session for automatic activation of `allout-mode'.
|
2000-06-07 13:25:06 +00:00
|
|
|
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
|
2002-12-16 00:20:42 +00:00
|
|
|
The bindings are dictated by the `allout-keybindings-list' and
|
|
|
|
`allout-command-prefix' variables.
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
|
|
|
|
Navigation: Exposure Control:
|
|
|
|
---------- ----------------
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
\\[allout-next-visible-heading] allout-next-visible-heading | \\[allout-hide-current-subtree] allout-hide-current-subtree
|
|
|
|
\\[allout-previous-visible-heading] allout-previous-visible-heading | \\[allout-show-children] allout-show-children
|
|
|
|
\\[allout-up-current-level] allout-up-current-level | \\[allout-show-current-subtree] allout-show-current-subtree
|
|
|
|
\\[allout-forward-current-level] allout-forward-current-level | \\[allout-show-current-entry] allout-show-current-entry
|
|
|
|
\\[allout-backward-current-level] allout-backward-current-level | \\[allout-show-all] allout-show-all
|
|
|
|
\\[allout-end-of-entry] allout-end-of-entry
|
|
|
|
\\[allout-beginning-of-current-entry,] allout-beginning-of-current-entry, alternately, goes to hot-spot
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
|
|
|
|
Topic Header Production:
|
|
|
|
-----------------------
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
\\[allout-open-sibtopic] allout-open-sibtopic Create a new sibling after current topic.
|
|
|
|
\\[allout-open-subtopic] allout-open-subtopic ... an offspring of current topic.
|
|
|
|
\\[allout-open-supertopic] allout-open-supertopic ... a sibling of the current topic's parent.
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
|
|
|
|
Topic Level and Prefix Adjustment:
|
|
|
|
---------------------------------
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
\\[allout-shift-in] allout-shift-in Shift current topic and all offspring deeper.
|
|
|
|
\\[allout-shift-out] allout-shift-out ... less deep.
|
|
|
|
\\[allout-rebullet-current-heading] allout-rebullet-current-heading Prompt for alternate bullet for
|
|
|
|
current topic.
|
|
|
|
\\[allout-rebullet-topic] allout-rebullet-topic Reconcile bullets of topic and its offspring
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
- distinctive bullets are not changed, others
|
|
|
|
alternated according to nesting depth.
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
\\[allout-number-siblings] allout-number-siblings Number bullets of topic and siblings - the
|
1993-06-02 17:53:31 +00:00
|
|
|
offspring are not affected. With repeat
|
|
|
|
count, revoke numbering.
|
|
|
|
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
Topic-oriented Killing and Yanking:
|
|
|
|
----------------------------------
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
\\[allout-kill-topic] allout-kill-topic Kill current topic, including offspring.
|
|
|
|
\\[allout-kill-line] allout-kill-line Like kill-line, but reconciles numbering, etc.
|
|
|
|
\\[allout-yank] allout-yank Yank, adjusting depth of yanked topic to
|
1993-06-02 17:53:31 +00:00
|
|
|
depth of heading if yanking into bare topic
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
heading (ie, prefix sans text).
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
\\[allout-yank-pop] allout-yank-pop Is to allout-yank as yank-pop is to yank
|
1993-06-02 17:53:31 +00:00
|
|
|
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
Misc commands:
|
|
|
|
-------------
|
|
|
|
M-x outlineify-sticky Activate outline mode for current buffer,
|
|
|
|
and establish a default file-var setting
|
2002-12-16 00:20:42 +00:00
|
|
|
for `allout-layout'.
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
\\[allout-mark-topic] allout-mark-topic
|
|
|
|
\\[allout-copy-exposed-to-buffer] allout-copy-exposed-to-buffer
|
2000-06-07 13:25:06 +00:00
|
|
|
Duplicate outline, sans concealed text, to
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
buffer with name derived from derived from that
|
|
|
|
of current buffer - \"*BUFFERNAME exposed*\".
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
\\[allout-flatten-exposed-to-buffer] allout-flatten-exposed-to-buffer
|
2000-06-07 13:25:06 +00:00
|
|
|
Like above 'copy-exposed', but convert topic
|
|
|
|
prefixes to section.subsection... numeric
|
|
|
|
format.
|
(allout-chart-subtree, allout-rebullet-topic-grunt): Don't mention in the
docstring these arguments meant for internal (recursive) use only.
(allout-char-spec): Comment out (it's not implemented).
(allout-old-expose-topic, allout-exposure): Fix docstring and add obsolescence
declaration.
(allout-flatten-exposed-to-buffer, allout-indented-exposed-to-buffer): Fix typos
in docstring.
(my-mark-marker): Doc fix.
(produce-allout-mode-map, allout-sibling-index, allout-isearch-expose)
(allout-distinctive-bullet, allout-open-topic, allout-reindent-body)
(allout-rebullet-heading, allout-process-exposed, allout-insert-listified)
(allout-latex-verb-quote, allout-insert-latex-header)
(allout-insert-latex-trailer): Make arguments match their use in
docstring.
(allout-primary-bullet, allout-old-style-prefixes, allout-inhibit-protection)
(allout-init, allout-mode, allout-before-change-protect, allout-flag-region):
Use "Emacs" instead of "emacs" in docstrings.
2004-05-21 18:10:21 +00:00
|
|
|
ESC ESC (allout-init t) Setup Emacs session for outline mode
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
auto-activation.
|
1993-06-02 17:53:31 +00:00
|
|
|
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
Encrypted Entries
|
|
|
|
|
|
|
|
Outline mode supports easily togglable gpg encryption of topics, with
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
niceties like support for symmetric and key-pair modes, passphrase timeout,
|
|
|
|
passphrase consistency checking, user-provided hinting for symmetric key
|
|
|
|
mode, and auto-encryption of topics pending encryption on save. The aim is
|
|
|
|
to enable reliable topic privacy while preventing accidents like neglected
|
|
|
|
encryption, encryption with a mistaken passphrase, forgetting which
|
|
|
|
passphrase was used, and other practical pitfalls.
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
|
|
|
|
See the `allout-toggle-current-subtree-encryption' function and
|
|
|
|
`allout-encrypt-unencrypted-on-saves' customization variable for details.
|
|
|
|
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
HOT-SPOT Operation
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
Hot-spot operation provides a means for easy, single-keystroke outline
|
|
|
|
navigation and exposure control.
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
2002-12-16 00:20:42 +00:00
|
|
|
\\<allout-mode-map>
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
When the text cursor is positioned directly on the bullet character of
|
|
|
|
a topic, regular characters (a to z) invoke the commands of the
|
2002-12-16 00:20:42 +00:00
|
|
|
corresponding allout-mode keymap control chars. For example, \"f\"
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
would invoke the command typically bound to \"C-c C-f\"
|
2002-12-16 00:20:42 +00:00
|
|
|
\(\\[allout-forward-current-level] `allout-forward-current-level').
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
|
|
|
|
Thus, by positioning the cursor on a topic bullet, you can execute
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
the outline navigation and manipulation commands with a single
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
keystroke. Non-literal chars never get this special translation, so
|
|
|
|
you can use them to get away from the hot-spot, and back to normal
|
|
|
|
operation.
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
2002-12-16 00:20:42 +00:00
|
|
|
Note that the command `allout-beginning-of-current-entry' \(\\[allout-beginning-of-current-entry]\)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
will move to the hot-spot when the cursor is already located at the
|
2002-12-16 00:20:42 +00:00
|
|
|
beginning of the current entry, so you can simply hit \\[allout-beginning-of-current-entry]
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
twice in a row to get to the hot-spot.
|
1993-06-02 17:53:31 +00:00
|
|
|
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
Terminology
|
1993-06-02 17:53:31 +00:00
|
|
|
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
Topic hierarchy constituents - TOPICS and SUBTOPICS:
|
|
|
|
|
(allout-chart-subtree, allout-rebullet-topic-grunt): Don't mention in the
docstring these arguments meant for internal (recursive) use only.
(allout-char-spec): Comment out (it's not implemented).
(allout-old-expose-topic, allout-exposure): Fix docstring and add obsolescence
declaration.
(allout-flatten-exposed-to-buffer, allout-indented-exposed-to-buffer): Fix typos
in docstring.
(my-mark-marker): Doc fix.
(produce-allout-mode-map, allout-sibling-index, allout-isearch-expose)
(allout-distinctive-bullet, allout-open-topic, allout-reindent-body)
(allout-rebullet-heading, allout-process-exposed, allout-insert-listified)
(allout-latex-verb-quote, allout-insert-latex-header)
(allout-insert-latex-trailer): Make arguments match their use in
docstring.
(allout-primary-bullet, allout-old-style-prefixes, allout-inhibit-protection)
(allout-init, allout-mode, allout-before-change-protect, allout-flag-region):
Use "Emacs" instead of "emacs" in docstrings.
2004-05-21 18:10:21 +00:00
|
|
|
TOPIC: A basic, coherent component of an Emacs outline. It can
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
contain other topics, and it can be subsumed by other topics,
|
|
|
|
CURRENT topic:
|
|
|
|
The visible topic most immediately containing the cursor.
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
DEPTH: The degree of nesting of a topic; it increases with
|
|
|
|
containment. Also called the:
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
LEVEL: The same as DEPTH.
|
|
|
|
|
|
|
|
ANCESTORS:
|
|
|
|
The topics that contain a topic.
|
|
|
|
PARENT: A topic's immediate ancestor. It has a depth one less than
|
|
|
|
the topic.
|
|
|
|
OFFSPRING:
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
The topics contained by a topic;
|
|
|
|
SUBTOPIC:
|
|
|
|
An immediate offspring of a topic;
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
CHILDREN:
|
|
|
|
The immediate offspring of a topic.
|
|
|
|
SIBLINGS:
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
Topics having the same parent and depth.
|
(outline-auto-activation, outline-layout)
(outline-primary-bullet, outline-plain-bullets-string)
(outline-distinctive-bullets-string, outline-old-style-prefixes)
(outline-stylish-prefixes, outline-file-xref-bullet)
(outline-use-hanging-indents, outline-bullets-string)
(outline-write-file-hook, outline-mode, outline-prefix-data)
(outline-before-change-protect, outline-make-topic-prefix)
(outline-rebullet-current-heading, outline-rebullet-heading)
(outline-listify-exposed, outline-expose-topic)
(outline-old-expose-topic, outline-exposure)
(outline-latex-verbatim-quote-curr-line)
(outline-show-current-subtree, outline-hide-current-subtree)
(outline-hide-current-leaves, outline-new-exposure): Doc fix.
1996-07-13 18:46:08 +00:00
|
|
|
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
Topic text constituents:
|
|
|
|
|
|
|
|
HEADER: The first line of a topic, include the topic PREFIX and header
|
(outline-auto-activation, outline-layout)
(outline-primary-bullet, outline-plain-bullets-string)
(outline-distinctive-bullets-string, outline-old-style-prefixes)
(outline-stylish-prefixes, outline-file-xref-bullet)
(outline-use-hanging-indents, outline-bullets-string)
(outline-write-file-hook, outline-mode, outline-prefix-data)
(outline-before-change-protect, outline-make-topic-prefix)
(outline-rebullet-current-heading, outline-rebullet-heading)
(outline-listify-exposed, outline-expose-topic)
(outline-old-expose-topic, outline-exposure)
(outline-latex-verbatim-quote-curr-line)
(outline-show-current-subtree, outline-hide-current-subtree)
(outline-hide-current-leaves, outline-new-exposure): Doc fix.
1996-07-13 18:46:08 +00:00
|
|
|
text.
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
PREFIX: The leading text of a topic which distinguishes it from normal
|
|
|
|
text. It has a strict form, which consists of a prefix-lead
|
|
|
|
string, padding, and a bullet. The bullet may be followed by a
|
|
|
|
number, indicating the ordinal number of the topic among its
|
|
|
|
siblings, a space, and then the header text.
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
|
|
|
The relative length of the PREFIX determines the nesting depth
|
|
|
|
of the topic.
|
|
|
|
PREFIX-LEAD:
|
(outline-auto-activation, outline-layout)
(outline-primary-bullet, outline-plain-bullets-string)
(outline-distinctive-bullets-string, outline-old-style-prefixes)
(outline-stylish-prefixes, outline-file-xref-bullet)
(outline-use-hanging-indents, outline-bullets-string)
(outline-write-file-hook, outline-mode, outline-prefix-data)
(outline-before-change-protect, outline-make-topic-prefix)
(outline-rebullet-current-heading, outline-rebullet-heading)
(outline-listify-exposed, outline-expose-topic)
(outline-old-expose-topic, outline-exposure)
(outline-latex-verbatim-quote-curr-line)
(outline-show-current-subtree, outline-hide-current-subtree)
(outline-hide-current-leaves, outline-new-exposure): Doc fix.
1996-07-13 18:46:08 +00:00
|
|
|
The string at the beginning of a topic prefix, normally a `.'.
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
It can be customized by changing the setting of
|
2002-12-16 00:26:22 +00:00
|
|
|
`allout-header-prefix' and then reinitializing `allout-mode'.
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
|
|
|
By setting the prefix-lead to the comment-string of a
|
2002-12-16 00:42:23 +00:00
|
|
|
programming language, you can embed outline structuring in
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
program code without interfering with the language processing
|
2002-12-16 00:20:42 +00:00
|
|
|
of that code. See `allout-use-mode-specific-leader'
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
docstring for more detail.
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
PREFIX-PADDING:
|
|
|
|
Spaces or asterisks which separate the prefix-lead and the
|
|
|
|
bullet, according to the depth of the topic.
|
|
|
|
BULLET: A character at the end of the topic prefix, it must be one of
|
2002-12-16 00:20:42 +00:00
|
|
|
the characters listed on `allout-plain-bullets-string' or
|
|
|
|
`allout-distinctive-bullets-string'. (See the documentation
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
for these variables for more details.) The default choice of
|
|
|
|
bullet when generating varies in a cycle with the depth of the
|
|
|
|
topic.
|
|
|
|
ENTRY: The text contained in a topic before any offspring.
|
|
|
|
BODY: Same as ENTRY.
|
|
|
|
|
|
|
|
|
|
|
|
EXPOSURE:
|
|
|
|
The state of a topic which determines the on-screen visibility
|
(outline-auto-activation, outline-layout)
(outline-primary-bullet, outline-plain-bullets-string)
(outline-distinctive-bullets-string, outline-old-style-prefixes)
(outline-stylish-prefixes, outline-file-xref-bullet)
(outline-use-hanging-indents, outline-bullets-string)
(outline-write-file-hook, outline-mode, outline-prefix-data)
(outline-before-change-protect, outline-make-topic-prefix)
(outline-rebullet-current-heading, outline-rebullet-heading)
(outline-listify-exposed, outline-expose-topic)
(outline-old-expose-topic, outline-exposure)
(outline-latex-verbatim-quote-curr-line)
(outline-show-current-subtree, outline-hide-current-subtree)
(outline-hide-current-leaves, outline-new-exposure): Doc fix.
1996-07-13 18:46:08 +00:00
|
|
|
of its offspring and contained text.
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
CONCEALED:
|
|
|
|
Topics and entry text whose display is inhibited. Contiguous
|
(outline-auto-activation, outline-layout)
(outline-primary-bullet, outline-plain-bullets-string)
(outline-distinctive-bullets-string, outline-old-style-prefixes)
(outline-stylish-prefixes, outline-file-xref-bullet)
(outline-use-hanging-indents, outline-bullets-string)
(outline-write-file-hook, outline-mode, outline-prefix-data)
(outline-before-change-protect, outline-make-topic-prefix)
(outline-rebullet-current-heading, outline-rebullet-heading)
(outline-listify-exposed, outline-expose-topic)
(outline-old-expose-topic, outline-exposure)
(outline-latex-verbatim-quote-curr-line)
(outline-show-current-subtree, outline-hide-current-subtree)
(outline-hide-current-leaves, outline-new-exposure): Doc fix.
1996-07-13 18:46:08 +00:00
|
|
|
units of concealed text is represented by `...' ellipses.
|
|
|
|
(Ref the `selective-display' var.)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
|
|
|
Concealed topics are effectively collapsed within an ancestor.
|
|
|
|
CLOSED: A topic whose immediate offspring and body-text is concealed.
|
(outline-auto-activation, outline-layout)
(outline-primary-bullet, outline-plain-bullets-string)
(outline-distinctive-bullets-string, outline-old-style-prefixes)
(outline-stylish-prefixes, outline-file-xref-bullet)
(outline-use-hanging-indents, outline-bullets-string)
(outline-write-file-hook, outline-mode, outline-prefix-data)
(outline-before-change-protect, outline-make-topic-prefix)
(outline-rebullet-current-heading, outline-rebullet-heading)
(outline-listify-exposed, outline-expose-topic)
(outline-old-expose-topic, outline-exposure)
(outline-latex-verbatim-quote-curr-line)
(outline-show-current-subtree, outline-hide-current-subtree)
(outline-hide-current-leaves, outline-new-exposure): Doc fix.
1996-07-13 18:46:08 +00:00
|
|
|
OPEN: A topic that is not closed, though its offspring or body may be."
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
;;;_ . Code
|
1993-06-02 17:53:31 +00:00
|
|
|
(interactive "P")
|
|
|
|
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(let* ((active (and (not (equal major-mode 'outline))
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-mode-p)))
|
(outline-auto-activation, outline-layout)
(outline-primary-bullet, outline-plain-bullets-string)
(outline-distinctive-bullets-string, outline-old-style-prefixes)
(outline-stylish-prefixes, outline-file-xref-bullet)
(outline-use-hanging-indents, outline-bullets-string)
(outline-write-file-hook, outline-mode, outline-prefix-data)
(outline-before-change-protect, outline-make-topic-prefix)
(outline-rebullet-current-heading, outline-rebullet-heading)
(outline-listify-exposed, outline-expose-topic)
(outline-old-expose-topic, outline-exposure)
(outline-latex-verbatim-quote-curr-line)
(outline-show-current-subtree, outline-hide-current-subtree)
(outline-hide-current-leaves, outline-new-exposure): Doc fix.
1996-07-13 18:46:08 +00:00
|
|
|
; Massage universal-arg `toggle' val:
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(toggle (and toggle
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
(or (and (listp toggle)(car toggle))
|
|
|
|
toggle)))
|
(outline-primary-bullet, outline-numbered-bullet,
outline-override-protect, outline-explicitly-deactivated,
outline-init, outline-chart-subtree, outline-chart-spec,
outline-make-topic-prefix, outline-open-topic,
outline-reindent-body, outline-yank-processing, outline-yank,
outlineify-sticky): Doc fix.
1996-01-04 23:26:20 +00:00
|
|
|
; Activation specifically demanded?
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(explicit-activation (or
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
;;
|
|
|
|
(and toggle
|
|
|
|
(or (symbolp toggle)
|
|
|
|
(and (natnump toggle)
|
|
|
|
(not (zerop toggle)))))))
|
2002-12-16 00:20:42 +00:00
|
|
|
;; allout-mode already called once during this complex command?
|
|
|
|
(same-complex-command (eq allout-v18/19-file-var-hack
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
(car command-history)))
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
(write-file-hook-var-name (if (boundp 'write-file-functions)
|
|
|
|
'write-file-functions
|
|
|
|
'local-write-file-hooks))
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
do-layout
|
|
|
|
)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
; See comments below re v19.18,.19 bug.
|
2002-12-16 00:20:42 +00:00
|
|
|
(setq allout-v18/19-file-var-hack (car command-history))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
1993-06-02 17:53:31 +00:00
|
|
|
(cond
|
|
|
|
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
;; Provision for v19.18, 19.19 bug -
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
;; Emacs v 19.18, 19.19 file-var code invokes prop-line-designated
|
|
|
|
;; modes twice when file is visited. We have to avoid toggling mode
|
|
|
|
;; off on second invocation, so we detect it as best we can, and
|
|
|
|
;; skip everything.
|
|
|
|
((and same-complex-command ; Still in same complex command
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
; as last time `allout-mode' invoked.
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
active ; Already activated.
|
|
|
|
(not explicit-activation) ; Prop-line file-vars don't have args.
|
|
|
|
(string-match "^19.1[89]" ; Bug only known to be in v19.18 and
|
|
|
|
emacs-version)); 19.19.
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
t)
|
(outline-auto-activation, outline-layout)
(outline-primary-bullet, outline-plain-bullets-string)
(outline-distinctive-bullets-string, outline-old-style-prefixes)
(outline-stylish-prefixes, outline-file-xref-bullet)
(outline-use-hanging-indents, outline-bullets-string)
(outline-write-file-hook, outline-mode, outline-prefix-data)
(outline-before-change-protect, outline-make-topic-prefix)
(outline-rebullet-current-heading, outline-rebullet-heading)
(outline-listify-exposed, outline-expose-topic)
(outline-old-expose-topic, outline-exposure)
(outline-latex-verbatim-quote-curr-line)
(outline-show-current-subtree, outline-hide-current-subtree)
(outline-hide-current-leaves, outline-new-exposure): Doc fix.
1996-07-13 18:46:08 +00:00
|
|
|
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
;; Deactivation:
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
((and (not explicit-activation)
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
(or active toggle))
|
|
|
|
; Activation not explicitly
|
|
|
|
; requested, and either in
|
|
|
|
; active state or *de*activation
|
|
|
|
; specifically requested:
|
2002-12-16 00:20:42 +00:00
|
|
|
(setq allout-explicitly-deactivated t)
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
(if (string-match "^18\." emacs-version)
|
|
|
|
; Revoke those keys that remain
|
|
|
|
; as we set them:
|
|
|
|
(let ((curr-loc (current-local-map)))
|
|
|
|
(mapcar (function
|
|
|
|
(lambda (cell)
|
|
|
|
(if (eq (lookup-key curr-loc (car cell))
|
|
|
|
(car (cdr cell)))
|
|
|
|
(define-key curr-loc (car cell)
|
|
|
|
(assq (car cell) allout-prior-bindings)))))
|
|
|
|
allout-added-bindings)
|
|
|
|
(allout-resumptions 'allout-added-bindings)
|
|
|
|
(allout-resumptions 'allout-prior-bindings)))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
2002-12-16 00:20:42 +00:00
|
|
|
(if allout-old-style-prefixes
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(progn
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-resumptions 'allout-primary-bullet)
|
|
|
|
(allout-resumptions 'allout-old-style-prefixes)))
|
|
|
|
(allout-resumptions 'selective-display)
|
2000-06-07 13:25:06 +00:00
|
|
|
(if (and (boundp 'before-change-functions) before-change-functions)
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-resumptions 'before-change-functions))
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
(set write-file-hook-var-name
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
(delq 'allout-write-file-hook-handler
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
(symbol-value write-file-hook-var-name)))
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
(setq auto-save-hook
|
|
|
|
(delq 'allout-auto-save-hook-handler
|
|
|
|
auto-save-hook))
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-resumptions 'paragraph-start)
|
|
|
|
(allout-resumptions 'paragraph-separate)
|
|
|
|
(allout-resumptions (if (string-match "^18" emacs-version)
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
'auto-fill-hook
|
|
|
|
'auto-fill-function))
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-resumptions 'allout-former-auto-filler)
|
|
|
|
(setq allout-mode nil))
|
1993-06-02 17:53:31 +00:00
|
|
|
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
;; Activation:
|
1993-06-02 17:53:31 +00:00
|
|
|
((not active)
|
2002-12-16 00:20:42 +00:00
|
|
|
(setq allout-explicitly-deactivated nil)
|
|
|
|
(if allout-old-style-prefixes
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(progn ; Inhibit all the fancy formatting:
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-resumptions 'allout-primary-bullet '("*"))
|
|
|
|
(allout-resumptions 'allout-old-style-prefixes '(()))))
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-infer-header-lead)
|
|
|
|
(allout-infer-body-reindent)
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
|
2002-12-16 00:20:42 +00:00
|
|
|
(set-allout-regexp)
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
|
|
|
|
; Produce map from current version
|
2002-12-16 00:20:42 +00:00
|
|
|
; of allout-keybindings-list:
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(if (boundp 'minor-mode-map-alist)
|
|
|
|
|
|
|
|
(progn ; V19, and maybe lucid and
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
; epoch, minor-mode key bindings:
|
2002-12-16 00:20:42 +00:00
|
|
|
(setq allout-mode-map
|
|
|
|
(produce-allout-mode-map allout-keybindings-list))
|
|
|
|
(produce-allout-mode-menubar-entries)
|
|
|
|
(fset 'allout-mode-map allout-mode-map)
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
; Include on minor-mode-map-alist,
|
|
|
|
; if not already there:
|
2002-12-16 00:20:42 +00:00
|
|
|
(if (not (member '(allout-mode . allout-mode-map)
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
minor-mode-map-alist))
|
|
|
|
(setq minor-mode-map-alist
|
2002-12-16 00:20:42 +00:00
|
|
|
(cons '(allout-mode . allout-mode-map)
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
minor-mode-map-alist))))
|
|
|
|
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
; V18 minor-mode key bindings:
|
|
|
|
; Stash record of added bindings
|
|
|
|
; for later revocation:
|
|
|
|
(allout-resumptions 'allout-added-bindings
|
|
|
|
(list allout-keybindings-list))
|
|
|
|
(allout-resumptions 'allout-prior-bindings
|
|
|
|
(list (current-local-map)))
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
; and add them:
|
2002-12-16 00:20:42 +00:00
|
|
|
(use-local-map (produce-allout-mode-map allout-keybindings-list
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
(current-local-map)))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
)
|
(outline-auto-activation, outline-layout)
(outline-primary-bullet, outline-plain-bullets-string)
(outline-distinctive-bullets-string, outline-old-style-prefixes)
(outline-stylish-prefixes, outline-file-xref-bullet)
(outline-use-hanging-indents, outline-bullets-string)
(outline-write-file-hook, outline-mode, outline-prefix-data)
(outline-before-change-protect, outline-make-topic-prefix)
(outline-rebullet-current-heading, outline-rebullet-heading)
(outline-listify-exposed, outline-expose-topic)
(outline-old-expose-topic, outline-exposure)
(outline-latex-verbatim-quote-curr-line)
(outline-show-current-subtree, outline-hide-current-subtree)
(outline-hide-current-leaves, outline-new-exposure): Doc fix.
1996-07-13 18:46:08 +00:00
|
|
|
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
; selective-display is the
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
; emacs conditional exposure
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
; mechanism:
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-resumptions 'selective-display '(t))
|
|
|
|
(add-hook 'pre-command-hook 'allout-pre-command-business)
|
|
|
|
(add-hook 'post-command-hook 'allout-post-command-business)
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
(add-hook write-file-hook-var-name 'allout-write-file-hook-handler)
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
(add-hook 'auto-save-hook 'allout-auto-save-hook-handler)
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
; Custom auto-fill func, to support
|
|
|
|
; respect for topic headline,
|
|
|
|
; hanging-indents, etc:
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(let* ((fill-func-var (if (string-match "^18" emacs-version)
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
'auto-fill-hook
|
|
|
|
'auto-fill-function))
|
|
|
|
(fill-func (symbol-value fill-func-var)))
|
2002-12-16 00:20:42 +00:00
|
|
|
;; Register prevailing fill func for use by allout-auto-fill:
|
|
|
|
(allout-resumptions 'allout-former-auto-filler (list fill-func))
|
|
|
|
;; Register allout-auto-fill to be used if filling is active:
|
|
|
|
(allout-resumptions fill-func-var '(allout-auto-fill)))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
;; Paragraphs are broken by topic headlines.
|
1993-06-02 17:53:31 +00:00
|
|
|
(make-local-variable 'paragraph-start)
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-resumptions 'paragraph-start
|
2000-06-07 13:25:06 +00:00
|
|
|
(list (concat paragraph-start "\\|^\\("
|
2002-12-16 00:20:42 +00:00
|
|
|
allout-regexp "\\)")))
|
1993-06-02 17:53:31 +00:00
|
|
|
(make-local-variable 'paragraph-separate)
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-resumptions 'paragraph-separate
|
2000-06-07 13:25:06 +00:00
|
|
|
(list (concat paragraph-separate "\\|^\\("
|
2002-12-16 00:20:42 +00:00
|
|
|
allout-regexp "\\)")))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
2002-12-16 00:20:42 +00:00
|
|
|
(or (assq 'allout-mode minor-mode-alist)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(setq minor-mode-alist
|
2002-12-16 00:42:23 +00:00
|
|
|
(cons '(allout-mode " Allout") minor-mode-alist)))
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-setup-menubar)
|
2000-06-07 13:25:06 +00:00
|
|
|
|
2002-12-16 00:20:42 +00:00
|
|
|
(if allout-layout
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
(setq do-layout t))
|
1993-06-02 17:53:31 +00:00
|
|
|
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
(if (and allout-isearch-dynamic-expose
|
|
|
|
(not (fboundp 'allout-real-isearch-abort)))
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-enwrap-isearch))
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
|
2002-12-16 00:20:42 +00:00
|
|
|
(run-hooks 'allout-mode-hook)
|
|
|
|
(setq allout-mode t))
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
|
|
|
|
;; Reactivation:
|
1994-05-17 09:48:53 +00:00
|
|
|
((setq do-layout t)
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-infer-body-reindent))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
) ; cond
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
|
|
|
|
(if (and do-layout
|
2002-12-16 00:20:42 +00:00
|
|
|
allout-auto-activation
|
|
|
|
(listp allout-layout)
|
|
|
|
(and (not (eq allout-auto-activation 'activate))
|
|
|
|
(if (eq allout-auto-activation 'ask)
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
(if (y-or-n-p (format "Expose %s with layout '%s'? "
|
|
|
|
(buffer-name)
|
2002-12-16 00:20:42 +00:00
|
|
|
allout-layout))
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
t
|
1994-05-17 09:48:53 +00:00
|
|
|
(message "Skipped %s layout." (buffer-name))
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
nil)
|
|
|
|
t)))
|
|
|
|
(save-excursion
|
|
|
|
(message "Adjusting '%s' exposure..." (buffer-name))
|
|
|
|
(goto-char 0)
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-this-or-next-heading)
|
1994-05-17 09:48:53 +00:00
|
|
|
(condition-case err
|
(outline-auto-activation, outline-layout)
(outline-primary-bullet, outline-plain-bullets-string)
(outline-distinctive-bullets-string, outline-old-style-prefixes)
(outline-stylish-prefixes, outline-file-xref-bullet)
(outline-use-hanging-indents, outline-bullets-string)
(outline-write-file-hook, outline-mode, outline-prefix-data)
(outline-before-change-protect, outline-make-topic-prefix)
(outline-rebullet-current-heading, outline-rebullet-heading)
(outline-listify-exposed, outline-expose-topic)
(outline-old-expose-topic, outline-exposure)
(outline-latex-verbatim-quote-curr-line)
(outline-show-current-subtree, outline-hide-current-subtree)
(outline-hide-current-leaves, outline-new-exposure): Doc fix.
1996-07-13 18:46:08 +00:00
|
|
|
(progn
|
2002-12-16 00:20:42 +00:00
|
|
|
(apply 'allout-expose-topic (list allout-layout))
|
1994-05-17 09:48:53 +00:00
|
|
|
(message "Adjusting '%s' exposure... done." (buffer-name)))
|
|
|
|
;; Problem applying exposure - notify user, but don't
|
|
|
|
;; interrupt, eg, file visit:
|
|
|
|
(error (message "%s" (car (cdr err)))
|
|
|
|
(sit-for 1)))))
|
2002-12-16 00:20:42 +00:00
|
|
|
allout-mode
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
) ; let*
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
) ; defun
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-minor-mode
|
|
|
|
(defalias 'allout-minor-mode 'allout-mode)
|
1993-06-02 17:53:31 +00:00
|
|
|
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ #3 Internal Position State-Tracking - "allout-recent-*" funcs
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
;;; All the basic outline functions that directly do string matches to
|
1993-06-02 17:53:31 +00:00
|
|
|
;;; evaluate heading prefix location set the variables
|
2002-12-16 00:20:42 +00:00
|
|
|
;;; `allout-recent-prefix-beginning' and `allout-recent-prefix-end'
|
|
|
|
;;; when successful. Functions starting with `allout-recent-' all
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
;;; use this state, providing the means to avoid redundant searches
|
|
|
|
;;; for just-established data. This optimization can provide
|
|
|
|
;;; significant speed improvement, but it must be employed carefully.
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ = allout-recent-prefix-beginning
|
|
|
|
(defvar allout-recent-prefix-beginning 0
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
"Buffer point of the start of the last topic prefix encountered.")
|
2002-12-16 00:20:42 +00:00
|
|
|
(make-variable-buffer-local 'allout-recent-prefix-beginning)
|
|
|
|
;;;_ = allout-recent-prefix-end
|
|
|
|
(defvar allout-recent-prefix-end 0
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
"Buffer point of the end of the last topic prefix encountered.")
|
2002-12-16 00:20:42 +00:00
|
|
|
(make-variable-buffer-local 'allout-recent-prefix-end)
|
|
|
|
;;;_ = allout-recent-end-of-subtree
|
|
|
|
(defvar allout-recent-end-of-subtree 0
|
2002-12-16 00:26:22 +00:00
|
|
|
"Buffer point last returned by `allout-end-of-current-subtree'.")
|
2002-12-16 00:20:42 +00:00
|
|
|
(make-variable-buffer-local 'allout-recent-end-of-subtree)
|
|
|
|
;;;_ > allout-prefix-data (beg end)
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
(defmacro allout-prefix-data (beg end)
|
2002-12-16 00:20:42 +00:00
|
|
|
"Register allout-prefix state data - BEGINNING and END of prefix.
|
|
|
|
|
|
|
|
For reference by `allout-recent' funcs. Returns BEGINNING."
|
|
|
|
`(setq allout-recent-prefix-end ,end
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
allout-recent-prefix-beginning ,beg))
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-recent-depth ()
|
|
|
|
(defmacro allout-recent-depth ()
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
"Return depth of last heading encountered by an outline maneuvering function.
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
|
|
|
All outline functions which directly do string matches to assess
|
2002-12-16 00:26:22 +00:00
|
|
|
headings set the variables `allout-recent-prefix-beginning' and
|
|
|
|
`allout-recent-prefix-end' if successful. This function uses those settings
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
to return the current depth."
|
|
|
|
|
2002-12-16 00:20:42 +00:00
|
|
|
'(max 1 (- allout-recent-prefix-end
|
|
|
|
allout-recent-prefix-beginning
|
|
|
|
allout-header-subtraction)))
|
|
|
|
;;;_ > allout-recent-prefix ()
|
|
|
|
(defmacro allout-recent-prefix ()
|
2002-12-16 00:26:22 +00:00
|
|
|
"Like `allout-recent-depth', but returns text of last encountered prefix.
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
|
|
|
All outline functions which directly do string matches to assess
|
2002-12-16 00:26:22 +00:00
|
|
|
headings set the variables `allout-recent-prefix-beginning' and
|
|
|
|
`allout-recent-prefix-end' if successful. This function uses those settings
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
to return the current depth."
|
2002-12-16 00:20:42 +00:00
|
|
|
'(buffer-substring allout-recent-prefix-beginning
|
|
|
|
allout-recent-prefix-end))
|
|
|
|
;;;_ > allout-recent-bullet ()
|
|
|
|
(defmacro allout-recent-bullet ()
|
|
|
|
"Like allout-recent-prefix, but returns bullet of last encountered prefix.
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
|
|
|
All outline functions which directly do string matches to assess
|
2002-12-16 00:26:22 +00:00
|
|
|
headings set the variables `allout-recent-prefix-beginning' and
|
|
|
|
`allout-recent-prefix-end' if successful. This function uses those settings
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
to return the current depth of the most recently matched topic."
|
2002-12-16 00:20:42 +00:00
|
|
|
'(buffer-substring (1- allout-recent-prefix-end)
|
|
|
|
allout-recent-prefix-end))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
;;;_ #4 Navigation
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
|
|
|
;;;_ - Position Assessment
|
|
|
|
;;;_ : Location Predicates
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-on-current-heading-p ()
|
|
|
|
(defun allout-on-current-heading-p ()
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
"Return non-nil if point is on current visible topics' header line.
|
|
|
|
|
|
|
|
Actually, returns prefix beginning point."
|
1993-06-02 17:53:31 +00:00
|
|
|
(save-excursion
|
|
|
|
(beginning-of-line)
|
2002-12-16 00:20:42 +00:00
|
|
|
(and (looking-at allout-regexp)
|
|
|
|
(allout-prefix-data (match-beginning 0) (match-end 0)))))
|
|
|
|
;;;_ > allout-on-heading-p ()
|
|
|
|
(defalias 'allout-on-heading-p 'allout-on-current-heading-p)
|
|
|
|
;;;_ > allout-e-o-prefix-p ()
|
|
|
|
(defun allout-e-o-prefix-p ()
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
"True if point is located where current topic prefix ends, heading begins."
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(and (save-excursion (beginning-of-line)
|
2002-12-16 00:20:42 +00:00
|
|
|
(looking-at allout-regexp))
|
|
|
|
(= (point)(save-excursion (allout-end-of-prefix)(point)))))
|
|
|
|
;;;_ > allout-hidden-p ()
|
|
|
|
(defmacro allout-hidden-p ()
|
1993-06-02 17:53:31 +00:00
|
|
|
"True if point is in hidden text."
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
'(save-excursion
|
|
|
|
(and (re-search-backward "[\n\r]" () t)
|
|
|
|
(= ?\r (following-char)))))
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-visible-p ()
|
|
|
|
(defmacro allout-visible-p ()
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
"True if point is not in hidden text."
|
1993-06-02 17:53:31 +00:00
|
|
|
(interactive)
|
2002-12-16 00:20:42 +00:00
|
|
|
'(not (allout-hidden-p)))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
;;;_ : Location attributes
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-depth ()
|
|
|
|
(defsubst allout-depth ()
|
2002-12-16 00:26:22 +00:00
|
|
|
"Like `allout-current-depth', but respects hidden as well as visible topics."
|
2000-06-07 13:25:06 +00:00
|
|
|
(save-excursion
|
2002-12-16 00:20:42 +00:00
|
|
|
(if (allout-goto-prefix)
|
|
|
|
(allout-recent-depth)
|
2000-06-07 13:25:06 +00:00
|
|
|
(progn
|
|
|
|
;; Oops, no prefix, zero prefix data:
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-prefix-data (point)(point))
|
2000-06-07 13:25:06 +00:00
|
|
|
;; ... and return 0:
|
|
|
|
0))))
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-current-depth ()
|
|
|
|
(defmacro allout-current-depth ()
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
"Return nesting depth of visible topic most immediately containing point."
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
'(save-excursion
|
2002-12-16 00:20:42 +00:00
|
|
|
(if (allout-back-to-current-heading)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(max 1
|
2002-12-16 00:20:42 +00:00
|
|
|
(- allout-recent-prefix-end
|
|
|
|
allout-recent-prefix-beginning
|
|
|
|
allout-header-subtraction))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
0)))
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-get-current-prefix ()
|
|
|
|
(defun allout-get-current-prefix ()
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
"Topic prefix of the current topic."
|
1993-06-02 17:53:31 +00:00
|
|
|
(save-excursion
|
2002-12-16 00:20:42 +00:00
|
|
|
(if (allout-goto-prefix)
|
|
|
|
(allout-recent-prefix))))
|
|
|
|
;;;_ > allout-get-bullet ()
|
|
|
|
(defun allout-get-bullet ()
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
"Return bullet of containing topic (visible or not)."
|
1993-06-02 17:53:31 +00:00
|
|
|
(save-excursion
|
2002-12-16 00:20:42 +00:00
|
|
|
(and (allout-goto-prefix)
|
|
|
|
(allout-recent-bullet))))
|
|
|
|
;;;_ > allout-current-bullet ()
|
|
|
|
(defun allout-current-bullet ()
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
"Return bullet of current (visible) topic heading, or none if none found."
|
1993-06-02 17:53:31 +00:00
|
|
|
(condition-case err
|
|
|
|
(save-excursion
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-back-to-current-heading)
|
|
|
|
(buffer-substring (- allout-recent-prefix-end 1)
|
|
|
|
allout-recent-prefix-end))
|
1993-06-02 17:53:31 +00:00
|
|
|
;; Quick and dirty provision, ostensibly for missing bullet:
|
2000-06-07 13:25:06 +00:00
|
|
|
('args-out-of-range nil))
|
1993-06-02 17:53:31 +00:00
|
|
|
)
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-get-prefix-bullet (prefix)
|
|
|
|
(defun allout-get-prefix-bullet (prefix)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
"Return the bullet of the header prefix string PREFIX."
|
1993-06-02 17:53:31 +00:00
|
|
|
;; Doesn't make sense if we're old-style prefixes, but this just
|
|
|
|
;; oughtn't be called then, so forget about it...
|
2002-12-16 00:20:42 +00:00
|
|
|
(if (string-match allout-regexp prefix)
|
1993-06-02 17:53:31 +00:00
|
|
|
(substring prefix (1- (match-end 0)) (match-end 0))))
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-sibling-index (&optional depth)
|
|
|
|
(defun allout-sibling-index (&optional depth)
|
2000-06-07 13:25:06 +00:00
|
|
|
"Item number of this prospective topic among its siblings.
|
|
|
|
|
(allout-chart-subtree, allout-rebullet-topic-grunt): Don't mention in the
docstring these arguments meant for internal (recursive) use only.
(allout-char-spec): Comment out (it's not implemented).
(allout-old-expose-topic, allout-exposure): Fix docstring and add obsolescence
declaration.
(allout-flatten-exposed-to-buffer, allout-indented-exposed-to-buffer): Fix typos
in docstring.
(my-mark-marker): Doc fix.
(produce-allout-mode-map, allout-sibling-index, allout-isearch-expose)
(allout-distinctive-bullet, allout-open-topic, allout-reindent-body)
(allout-rebullet-heading, allout-process-exposed, allout-insert-listified)
(allout-latex-verb-quote, allout-insert-latex-header)
(allout-insert-latex-trailer): Make arguments match their use in
docstring.
(allout-primary-bullet, allout-old-style-prefixes, allout-inhibit-protection)
(allout-init, allout-mode, allout-before-change-protect, allout-flag-region):
Use "Emacs" instead of "emacs" in docstrings.
2004-05-21 18:10:21 +00:00
|
|
|
If optional arg DEPTH is greater than current depth, then we're
|
2000-06-07 13:25:06 +00:00
|
|
|
opening a new level, and return 0.
|
|
|
|
|
|
|
|
If less than this depth, ascend to that depth and count..."
|
|
|
|
|
|
|
|
(save-excursion
|
|
|
|
(cond ((and depth (<= depth 0) 0))
|
2002-12-16 00:20:42 +00:00
|
|
|
((or (not depth) (= depth (allout-depth)))
|
2000-06-07 13:25:06 +00:00
|
|
|
(let ((index 1))
|
2002-12-16 00:20:42 +00:00
|
|
|
(while (allout-previous-sibling (allout-recent-depth) nil)
|
2000-06-07 13:25:06 +00:00
|
|
|
(setq index (1+ index)))
|
|
|
|
index))
|
2002-12-16 00:20:42 +00:00
|
|
|
((< depth (allout-recent-depth))
|
|
|
|
(allout-ascend-to-depth depth)
|
|
|
|
(allout-sibling-index))
|
2000-06-07 13:25:06 +00:00
|
|
|
(0))))
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-topic-flat-index ()
|
|
|
|
(defun allout-topic-flat-index ()
|
2000-06-07 13:25:06 +00:00
|
|
|
"Return a list indicating point's numeric section.subsect.subsubsect...
|
|
|
|
Outermost is first."
|
2002-12-16 00:20:42 +00:00
|
|
|
(let* ((depth (allout-depth))
|
|
|
|
(next-index (allout-sibling-index depth))
|
2000-06-07 13:25:06 +00:00
|
|
|
(rev-sibls nil))
|
|
|
|
(while (> next-index 0)
|
|
|
|
(setq rev-sibls (cons next-index rev-sibls))
|
|
|
|
(setq depth (1- depth))
|
2002-12-16 00:20:42 +00:00
|
|
|
(setq next-index (allout-sibling-index depth)))
|
2000-06-07 13:25:06 +00:00
|
|
|
rev-sibls)
|
|
|
|
)
|
1993-06-02 17:53:31 +00:00
|
|
|
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
;;;_ - Navigation macros
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-next-heading ()
|
|
|
|
(defsubst allout-next-heading ()
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
"Move to the heading for the topic \(possibly invisible) before this one.
|
|
|
|
|
|
|
|
Returns the location of the heading, or nil if none found."
|
|
|
|
|
2000-06-07 13:25:06 +00:00
|
|
|
(if (and (bobp) (not (eobp)))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(forward-char 1))
|
|
|
|
|
2002-12-16 00:20:42 +00:00
|
|
|
(if (re-search-forward allout-line-boundary-regexp nil 0)
|
|
|
|
(allout-prefix-data ; Got valid location state - set vars:
|
2000-06-07 13:25:06 +00:00
|
|
|
(goto-char (or (match-beginning 2)
|
2002-12-16 00:20:42 +00:00
|
|
|
allout-recent-prefix-beginning))
|
|
|
|
(or (match-end 2) allout-recent-prefix-end))))
|
|
|
|
;;;_ : allout-this-or-next-heading
|
|
|
|
(defun allout-this-or-next-heading ()
|
1994-05-17 09:48:53 +00:00
|
|
|
"Position cursor on current or next heading."
|
2002-12-16 00:20:42 +00:00
|
|
|
;; A throwaway non-macro that is defined after allout-next-heading
|
|
|
|
;; and usable by allout-mode.
|
|
|
|
(if (not (allout-goto-prefix)) (allout-next-heading)))
|
|
|
|
;;;_ > allout-previous-heading ()
|
|
|
|
(defmacro allout-previous-heading ()
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
"Move to the prior \(possibly invisible) heading line.
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
|
|
|
Return the location of the beginning of the heading, or nil if not found."
|
|
|
|
|
|
|
|
'(if (bobp)
|
|
|
|
nil
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-goto-prefix)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(if
|
|
|
|
;; searches are unbounded and return nil if failed:
|
2002-12-16 00:20:42 +00:00
|
|
|
(or (re-search-backward allout-line-boundary-regexp nil 0)
|
|
|
|
(looking-at allout-bob-regexp))
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
(progn ; Got valid location state - set vars:
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-prefix-data
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(goto-char (or (match-beginning 2)
|
2002-12-16 00:20:42 +00:00
|
|
|
allout-recent-prefix-beginning))
|
|
|
|
(or (match-end 2) allout-recent-prefix-end))))))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
|
|
|
;;;_ - Subtree Charting
|
|
|
|
;;;_ " These routines either produce or assess charts, which are
|
|
|
|
;;; nested lists of the locations of topics within a subtree.
|
|
|
|
;;;
|
|
|
|
;;; Use of charts enables efficient navigation of subtrees, by
|
|
|
|
;;; requiring only a single regexp-search based traversal, to scope
|
|
|
|
;;; out the subtopic locations. The chart then serves as the basis
|
2000-06-07 13:25:06 +00:00
|
|
|
;;; for assessment or adjustment of the subtree, without redundant
|
|
|
|
;;; traversal of the structure.
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-chart-subtree (&optional levels orig-depth prev-depth)
|
|
|
|
(defun allout-chart-subtree (&optional levels orig-depth prev-depth)
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
"Produce a location \"chart\" of subtopics of the containing topic.
|
|
|
|
|
(outline-primary-bullet, outline-numbered-bullet,
outline-override-protect, outline-explicitly-deactivated,
outline-init, outline-chart-subtree, outline-chart-spec,
outline-make-topic-prefix, outline-open-topic,
outline-reindent-body, outline-yank-processing, outline-yank,
outlineify-sticky): Doc fix.
1996-01-04 23:26:20 +00:00
|
|
|
Optional argument LEVELS specifies the depth \(relative to start
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
depth) for the chart. Subsequent optional args are not for public
|
|
|
|
use.
|
|
|
|
|
|
|
|
Point is left at the end of the subtree.
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
Charts are used to capture outline structure, so that outline-altering
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
routines need assess the structure only once, and then use the chart
|
|
|
|
for their elaborate manipulations.
|
|
|
|
|
|
|
|
Topics are entered in the chart so the last one is at the car.
|
|
|
|
The entry for each topic consists of an integer indicating the point
|
|
|
|
at the beginning of the topic. Charts for offspring consists of a
|
|
|
|
list containing, recursively, the charts for the respective subtopics.
|
|
|
|
The chart for a topics' offspring precedes the entry for the topic
|
|
|
|
itself.
|
|
|
|
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
The other function parameters are for internal recursion, and should
|
|
|
|
not be specified by external callers. ORIG-DEPTH is depth of topic at
|
|
|
|
starting point, and PREV-DEPTH is depth of prior topic."
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
|
(outline-auto-activation, outline-layout)
(outline-primary-bullet, outline-plain-bullets-string)
(outline-distinctive-bullets-string, outline-old-style-prefixes)
(outline-stylish-prefixes, outline-file-xref-bullet)
(outline-use-hanging-indents, outline-bullets-string)
(outline-write-file-hook, outline-mode, outline-prefix-data)
(outline-before-change-protect, outline-make-topic-prefix)
(outline-rebullet-current-heading, outline-rebullet-heading)
(outline-listify-exposed, outline-expose-topic)
(outline-old-expose-topic, outline-exposure)
(outline-latex-verbatim-quote-curr-line)
(outline-show-current-subtree, outline-hide-current-subtree)
(outline-hide-current-leaves, outline-new-exposure): Doc fix.
1996-07-13 18:46:08 +00:00
|
|
|
(let ((original (not orig-depth)) ; `orig-depth' set only in recursion.
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
chart curr-depth)
|
|
|
|
|
|
|
|
(if original ; Just starting?
|
|
|
|
; Register initial settings and
|
|
|
|
; position to first offspring:
|
2002-12-16 00:20:42 +00:00
|
|
|
(progn (setq orig-depth (allout-depth))
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
(or prev-depth (setq prev-depth (1+ orig-depth)))
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-next-heading)))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
;; Loop over the current levels' siblings. Besides being more
|
|
|
|
;; efficient than tail-recursing over a level, it avoids exceeding
|
(allout-chart-subtree, allout-rebullet-topic-grunt): Don't mention in the
docstring these arguments meant for internal (recursive) use only.
(allout-char-spec): Comment out (it's not implemented).
(allout-old-expose-topic, allout-exposure): Fix docstring and add obsolescence
declaration.
(allout-flatten-exposed-to-buffer, allout-indented-exposed-to-buffer): Fix typos
in docstring.
(my-mark-marker): Doc fix.
(produce-allout-mode-map, allout-sibling-index, allout-isearch-expose)
(allout-distinctive-bullet, allout-open-topic, allout-reindent-body)
(allout-rebullet-heading, allout-process-exposed, allout-insert-listified)
(allout-latex-verb-quote, allout-insert-latex-header)
(allout-insert-latex-trailer): Make arguments match their use in
docstring.
(allout-primary-bullet, allout-old-style-prefixes, allout-inhibit-protection)
(allout-init, allout-mode, allout-before-change-protect, allout-flag-region):
Use "Emacs" instead of "emacs" in docstrings.
2004-05-21 18:10:21 +00:00
|
|
|
;; the typically quite constrained Emacs max-lisp-eval-depth.
|
2000-06-07 13:25:06 +00:00
|
|
|
;;
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
;; Probably would speed things up to implement loop-based stack
|
|
|
|
;; operation rather than recursing for lower levels. Bah.
|
2000-06-07 13:25:06 +00:00
|
|
|
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(while (and (not (eobp))
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
; Still within original topic?
|
2002-12-16 00:20:42 +00:00
|
|
|
(< orig-depth (setq curr-depth (allout-recent-depth)))
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
(cond ((= prev-depth curr-depth)
|
|
|
|
;; Register this one and move on:
|
|
|
|
(setq chart (cons (point) chart))
|
|
|
|
(if (and levels (<= levels 1))
|
|
|
|
;; At depth limit - skip sublevels:
|
2002-12-16 00:20:42 +00:00
|
|
|
(or (allout-next-sibling curr-depth)
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
;; or no more siblings - proceed to
|
|
|
|
;; next heading at lesser depth:
|
1994-05-25 04:41:21 +00:00
|
|
|
(while (and (<= curr-depth
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-recent-depth))
|
|
|
|
(allout-next-heading))))
|
|
|
|
(allout-next-heading)))
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
|
|
|
|
((and (< prev-depth curr-depth)
|
|
|
|
(or (not levels)
|
|
|
|
(> levels 0)))
|
|
|
|
;; Recurse on deeper level of curr topic:
|
|
|
|
(setq chart
|
2002-12-16 00:20:42 +00:00
|
|
|
(cons (allout-chart-subtree (and levels
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
(1- levels))
|
|
|
|
orig-depth
|
|
|
|
curr-depth)
|
|
|
|
chart))
|
|
|
|
;; ... then continue with this one.
|
|
|
|
)
|
|
|
|
|
|
|
|
;; ... else nil if we've ascended back to prev-depth.
|
|
|
|
|
|
|
|
)))
|
|
|
|
|
|
|
|
(if original ; We're at the last sibling on
|
|
|
|
; the original level. Position
|
|
|
|
; to the end of it:
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(progn (and (not (eobp)) (forward-char -1))
|
2000-06-07 13:25:06 +00:00
|
|
|
(and (memq (preceding-char) '(?\n ?\r))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(memq (aref (buffer-substring (max 1 (- (point) 3))
|
|
|
|
(point))
|
|
|
|
1)
|
2000-06-07 13:25:06 +00:00
|
|
|
'(?\n ?\r))
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
(forward-char -1))
|
2002-12-16 00:20:42 +00:00
|
|
|
(setq allout-recent-end-of-subtree (point))))
|
(outline-auto-activation, outline-layout)
(outline-primary-bullet, outline-plain-bullets-string)
(outline-distinctive-bullets-string, outline-old-style-prefixes)
(outline-stylish-prefixes, outline-file-xref-bullet)
(outline-use-hanging-indents, outline-bullets-string)
(outline-write-file-hook, outline-mode, outline-prefix-data)
(outline-before-change-protect, outline-make-topic-prefix)
(outline-rebullet-current-heading, outline-rebullet-heading)
(outline-listify-exposed, outline-expose-topic)
(outline-old-expose-topic, outline-exposure)
(outline-latex-verbatim-quote-curr-line)
(outline-show-current-subtree, outline-hide-current-subtree)
(outline-hide-current-leaves, outline-new-exposure): Doc fix.
1996-07-13 18:46:08 +00:00
|
|
|
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
chart ; (nreverse chart) not necessary,
|
|
|
|
; and maybe not preferable.
|
|
|
|
))
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-chart-siblings (&optional start end)
|
|
|
|
(defun allout-chart-siblings (&optional start end)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
"Produce a list of locations of this and succeeding sibling topics.
|
2002-12-16 00:20:42 +00:00
|
|
|
Effectively a top-level chart of siblings. See `allout-chart-subtree'
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
for an explanation of charts."
|
|
|
|
(save-excursion
|
2002-12-16 00:20:42 +00:00
|
|
|
(if (allout-goto-prefix)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(let ((chart (list (point))))
|
2002-12-16 00:20:42 +00:00
|
|
|
(while (allout-next-sibling)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(setq chart (cons (point) chart)))
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
(if chart (setq chart (nreverse chart)))))))
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-chart-to-reveal (chart depth)
|
|
|
|
(defun allout-chart-to-reveal (chart depth)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
"Return a flat list of hidden points in subtree CHART, up to DEPTH.
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
Note that point can be left at any of the points on chart, or at the
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
start point."
|
|
|
|
|
|
|
|
(let (result here)
|
|
|
|
(while (and (or (eq depth t) (> depth 0))
|
|
|
|
chart)
|
|
|
|
(setq here (car chart))
|
|
|
|
(if (listp here)
|
2002-12-16 00:20:42 +00:00
|
|
|
(let ((further (allout-chart-to-reveal here (or (eq depth t)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(1- depth)))))
|
|
|
|
;; We're on the start of a subtree - recurse with it, if there's
|
|
|
|
;; more depth to go:
|
|
|
|
(if further (setq result (append further result)))
|
|
|
|
(setq chart (cdr chart)))
|
|
|
|
(goto-char here)
|
|
|
|
(if (= (preceding-char) ?\r)
|
|
|
|
(setq result (cons here result)))
|
|
|
|
(setq chart (cdr chart))))
|
|
|
|
result))
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ X allout-chart-spec (chart spec &optional exposing)
|
(allout-chart-subtree, allout-rebullet-topic-grunt): Don't mention in the
docstring these arguments meant for internal (recursive) use only.
(allout-char-spec): Comment out (it's not implemented).
(allout-old-expose-topic, allout-exposure): Fix docstring and add obsolescence
declaration.
(allout-flatten-exposed-to-buffer, allout-indented-exposed-to-buffer): Fix typos
in docstring.
(my-mark-marker): Doc fix.
(produce-allout-mode-map, allout-sibling-index, allout-isearch-expose)
(allout-distinctive-bullet, allout-open-topic, allout-reindent-body)
(allout-rebullet-heading, allout-process-exposed, allout-insert-listified)
(allout-latex-verb-quote, allout-insert-latex-header)
(allout-insert-latex-trailer): Make arguments match their use in
docstring.
(allout-primary-bullet, allout-old-style-prefixes, allout-inhibit-protection)
(allout-init, allout-mode, allout-before-change-protect, allout-flag-region):
Use "Emacs" instead of "emacs" in docstrings.
2004-05-21 18:10:21 +00:00
|
|
|
;; (defun allout-chart-spec (chart spec &optional exposing)
|
|
|
|
;; "Not yet \(if ever) implemented.
|
|
|
|
|
|
|
|
;; Produce exposure directives given topic/subtree CHART and an exposure SPEC.
|
|
|
|
|
|
|
|
;; Exposure spec indicates the locations to be exposed and the prescribed
|
|
|
|
;; exposure status. Optional arg EXPOSING is an integer, with 0
|
|
|
|
;; indicating pending concealment, anything higher indicating depth to
|
|
|
|
;; which subtopic headers should be exposed, and negative numbers
|
|
|
|
;; indicating (negative of) the depth to which subtopic headers and
|
|
|
|
;; bodies should be exposed.
|
|
|
|
|
|
|
|
;; The produced list can have two types of entries. Bare numbers
|
|
|
|
;; indicate points in the buffer where topic headers that should be
|
|
|
|
;; exposed reside.
|
|
|
|
|
|
|
|
;; - bare negative numbers indicates that the topic starting at the
|
|
|
|
;; point which is the negative of the number should be opened,
|
|
|
|
;; including their entries.
|
|
|
|
;; - bare positive values indicate that this topic header should be
|
|
|
|
;; opened.
|
|
|
|
;; - Lists signify the beginning and end points of regions that should
|
|
|
|
;; be flagged, and the flag to employ. (For concealment: `\(\?r\)', and
|
|
|
|
;; exposure:"
|
|
|
|
;; (while spec
|
|
|
|
;; (cond ((listp spec)
|
|
|
|
;; )
|
|
|
|
;; )
|
|
|
|
;; (setq spec (cdr spec)))
|
|
|
|
;; )
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
|
|
|
;;;_ - Within Topic
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-goto-prefix ()
|
|
|
|
(defun allout-goto-prefix ()
|
2000-06-07 13:25:06 +00:00
|
|
|
"Put point at beginning of immediately containing outline topic.
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
|
2000-06-07 13:25:06 +00:00
|
|
|
Goes to most immediate subsequent topic if none immediately containing.
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
|
|
|
|
Not sensitive to topic visibility.
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
2002-07-03 13:19:13 +00:00
|
|
|
Returns the point at the beginning of the prefix, or nil if none."
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
(let (done)
|
|
|
|
(while (and (not done)
|
|
|
|
(re-search-backward "[\n\r]" nil 1))
|
|
|
|
(forward-char 1)
|
2002-12-16 00:20:42 +00:00
|
|
|
(if (looking-at allout-regexp)
|
|
|
|
(setq done (allout-prefix-data (match-beginning 0)
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
(match-end 0)))
|
|
|
|
(forward-char -1)))
|
|
|
|
(if (bobp)
|
2002-12-16 00:20:42 +00:00
|
|
|
(cond ((looking-at allout-regexp)
|
|
|
|
(allout-prefix-data (match-beginning 0)(match-end 0)))
|
|
|
|
((allout-next-heading))
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
(done))
|
|
|
|
done)))
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-end-of-prefix ()
|
|
|
|
(defun allout-end-of-prefix (&optional ignore-decorations)
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
"Position cursor at beginning of header text.
|
|
|
|
|
|
|
|
If optional IGNORE-DECORATIONS is non-nil, put just after bullet,
|
|
|
|
otherwise skip white space between bullet and ensuing text."
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
2002-12-16 00:20:42 +00:00
|
|
|
(if (not (allout-goto-prefix))
|
1993-06-02 17:53:31 +00:00
|
|
|
nil
|
|
|
|
(let ((match-data (match-data)))
|
|
|
|
(goto-char (match-end 0))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(if ignore-decorations
|
|
|
|
t
|
|
|
|
(while (looking-at "[0-9]") (forward-char 1))
|
|
|
|
(if (and (not (eolp)) (looking-at "\\s-")) (forward-char 1)))
|
2000-06-07 13:25:06 +00:00
|
|
|
(store-match-data match-data))
|
1993-06-02 17:53:31 +00:00
|
|
|
;; Reestablish where we are:
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-current-depth)))
|
|
|
|
;;;_ > allout-current-bullet-pos ()
|
|
|
|
(defun allout-current-bullet-pos ()
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
"Return position of current \(visible) topic's bullet."
|
|
|
|
|
2002-12-16 00:20:42 +00:00
|
|
|
(if (not (allout-current-depth))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
nil
|
|
|
|
(1- (match-end 0))))
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-back-to-current-heading ()
|
|
|
|
(defun allout-back-to-current-heading ()
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
"Move to heading line of current topic, or beginning if already on the line."
|
|
|
|
|
1993-06-02 17:53:31 +00:00
|
|
|
(beginning-of-line)
|
2002-12-16 00:20:42 +00:00
|
|
|
(prog1 (or (allout-on-current-heading-p)
|
|
|
|
(and (re-search-backward (concat "^\\(" allout-regexp "\\)")
|
1993-06-02 17:53:31 +00:00
|
|
|
nil
|
|
|
|
'move)
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-prefix-data (match-beginning 1)(match-end 1))))
|
|
|
|
(if (interactive-p) (allout-end-of-prefix))))
|
|
|
|
;;;_ > allout-back-to-heading ()
|
|
|
|
(defalias 'allout-back-to-heading 'allout-back-to-current-heading)
|
|
|
|
;;;_ > allout-pre-next-preface ()
|
|
|
|
(defun allout-pre-next-preface ()
|
1993-06-02 17:53:31 +00:00
|
|
|
"Skip forward to just before the next heading line.
|
|
|
|
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
Returns that character position."
|
1993-06-02 17:53:31 +00:00
|
|
|
|
2002-12-16 00:20:42 +00:00
|
|
|
(if (re-search-forward allout-line-boundary-regexp nil 'move)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(prog1 (goto-char (match-beginning 0))
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-prefix-data (match-beginning 2)(match-end 2)))))
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
;;;_ > allout-end-of-subtree (&optional current)
|
|
|
|
(defun allout-end-of-subtree (&optional current)
|
|
|
|
"Put point at the end of the last leaf in the containing topic.
|
|
|
|
|
|
|
|
If optional CURRENT is true (default false), then put point at the end of
|
|
|
|
the containing visible topic.
|
|
|
|
|
|
|
|
Returns the value of point."
|
|
|
|
(interactive "P")
|
|
|
|
(if current
|
|
|
|
(allout-back-to-current-heading)
|
|
|
|
(allout-goto-prefix))
|
2002-12-16 00:20:42 +00:00
|
|
|
(let ((level (allout-recent-depth)))
|
|
|
|
(allout-next-heading)
|
1993-06-02 17:53:31 +00:00
|
|
|
(while (and (not (eobp))
|
2002-12-16 00:20:42 +00:00
|
|
|
(> (allout-recent-depth) level))
|
|
|
|
(allout-next-heading))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(and (not (eobp)) (forward-char -1))
|
2000-06-07 13:25:06 +00:00
|
|
|
(and (memq (preceding-char) '(?\n ?\r))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(memq (aref (buffer-substring (max 1 (- (point) 3)) (point)) 1)
|
2000-06-07 13:25:06 +00:00
|
|
|
'(?\n ?\r))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(forward-char -1))
|
2002-12-16 00:20:42 +00:00
|
|
|
(setq allout-recent-end-of-subtree (point))))
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
;;;_ > allout-end-of-current-subtree ()
|
|
|
|
(defun allout-end-of-current-subtree ()
|
|
|
|
"Put point at end of last leaf in currently visible containing topic.
|
|
|
|
|
|
|
|
Returns the value of point."
|
|
|
|
(interactive)
|
|
|
|
(allout-end-of-subtree t))
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-beginning-of-current-entry ()
|
|
|
|
(defun allout-beginning-of-current-entry ()
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
"When not already there, position point at beginning of current topic header.
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
|
|
|
If already there, move cursor to bullet for hot-spot operation.
|
2002-12-16 00:26:22 +00:00
|
|
|
\(See `allout-mode' doc string for details on hot-spot operation.)"
|
1993-06-02 17:53:31 +00:00
|
|
|
(interactive)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(let ((start-point (point)))
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-end-of-prefix)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(if (and (interactive-p)
|
|
|
|
(= (point) start-point))
|
2002-12-16 00:20:42 +00:00
|
|
|
(goto-char (allout-current-bullet-pos)))))
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
;;;_ > allout-end-of-entry ()
|
|
|
|
(defun allout-end-of-entry ()
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
"Position the point at the end of the current topics' entry."
|
1993-06-02 17:53:31 +00:00
|
|
|
(interactive)
|
2002-12-16 00:20:42 +00:00
|
|
|
(prog1 (allout-pre-next-preface)
|
1993-06-02 17:53:31 +00:00
|
|
|
(if (and (not (bobp))(looking-at "^$"))
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
(forward-char -1))))
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-end-of-current-heading ()
|
|
|
|
(defun allout-end-of-current-heading ()
|
2000-06-07 13:25:06 +00:00
|
|
|
(interactive)
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-beginning-of-current-entry)
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
(re-search-forward "[\n\r]" nil t)
|
|
|
|
(forward-char -1))
|
2002-12-16 00:20:42 +00:00
|
|
|
(defalias 'allout-end-of-heading 'allout-end-of-current-heading)
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
;;;_ > allout-get-body-text ()
|
|
|
|
(defun allout-get-body-text ()
|
|
|
|
"Return the unmangled body text of the topic immediately containing point."
|
|
|
|
(save-excursion
|
|
|
|
(allout-end-of-prefix)
|
|
|
|
(if (not (re-search-forward "[\n\r]" nil t))
|
|
|
|
nil
|
|
|
|
(backward-char 1)
|
|
|
|
(let ((pre-body (point)))
|
|
|
|
(if (not pre-body)
|
|
|
|
nil
|
|
|
|
(allout-end-of-entry)
|
|
|
|
(if (not (= pre-body (point)))
|
|
|
|
(buffer-substring-no-properties (1+ pre-body) (point))))
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
1993-06-02 17:53:31 +00:00
|
|
|
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
;;;_ - Depth-wise
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-ascend-to-depth (depth)
|
|
|
|
(defun allout-ascend-to-depth (depth)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
"Ascend to depth DEPTH, returning depth if successful, nil if not."
|
2002-12-16 00:20:42 +00:00
|
|
|
(if (and (> depth 0)(<= depth (allout-depth)))
|
1993-06-02 17:53:31 +00:00
|
|
|
(let ((last-good (point)))
|
2002-12-16 00:20:42 +00:00
|
|
|
(while (and (< depth (allout-depth))
|
1993-06-02 17:53:31 +00:00
|
|
|
(setq last-good (point))
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-beginning-of-level)
|
|
|
|
(allout-previous-heading)))
|
|
|
|
(if (= (allout-recent-depth) depth)
|
|
|
|
(progn (goto-char allout-recent-prefix-beginning)
|
1993-06-02 17:53:31 +00:00
|
|
|
depth)
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
(goto-char last-good)
|
|
|
|
nil))
|
|
|
|
(if (interactive-p) (allout-end-of-prefix))))
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-ascend ()
|
|
|
|
(defun allout-ascend ()
|
2000-06-07 13:25:06 +00:00
|
|
|
"Ascend one level, returning t if successful, nil if not."
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
(prog1
|
|
|
|
(if (allout-beginning-of-level)
|
|
|
|
(allout-previous-heading))
|
|
|
|
(if (interactive-p) (allout-end-of-prefix))))
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-descend-to-depth (depth)
|
|
|
|
(defun allout-descend-to-depth (depth)
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
"Descend to depth DEPTH within current topic.
|
|
|
|
|
|
|
|
Returning depth if successful, nil if not."
|
1993-06-02 17:53:31 +00:00
|
|
|
(let ((start-point (point))
|
2002-12-16 00:20:42 +00:00
|
|
|
(start-depth (allout-depth)))
|
1993-06-02 17:53:31 +00:00
|
|
|
(while
|
2002-12-16 00:20:42 +00:00
|
|
|
(and (> (allout-depth) 0)
|
|
|
|
(not (= depth (allout-recent-depth))) ; ... not there yet
|
|
|
|
(allout-next-heading) ; ... go further
|
|
|
|
(< start-depth (allout-recent-depth)))) ; ... still in topic
|
|
|
|
(if (and (> (allout-depth) 0)
|
|
|
|
(= (allout-recent-depth) depth))
|
1993-06-02 17:53:31 +00:00
|
|
|
depth
|
|
|
|
(goto-char start-point)
|
|
|
|
nil))
|
|
|
|
)
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-up-current-level (arg &optional dont-complain)
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
(defun allout-up-current-level (arg &optional dont-complain)
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
"Move out ARG levels from current visible topic.
|
|
|
|
|
|
|
|
Positions on heading line of containing topic. Error if unable to
|
|
|
|
ascend that far, or nil if unable to ascend but optional arg
|
|
|
|
DONT-COMPLAIN is non-nil."
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
(interactive "p")
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-back-to-current-heading)
|
|
|
|
(let ((present-level (allout-recent-depth))
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
(last-good (point))
|
|
|
|
failed
|
|
|
|
return)
|
1993-06-02 17:53:31 +00:00
|
|
|
;; Loop for iterating arg:
|
2002-12-16 00:20:42 +00:00
|
|
|
(while (and (> (allout-recent-depth) 1)
|
1993-06-02 17:53:31 +00:00
|
|
|
(> arg 0)
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
(not (bobp))
|
|
|
|
(not failed))
|
|
|
|
(setq last-good (point))
|
1993-06-02 17:53:31 +00:00
|
|
|
;; Loop for going back over current or greater depth:
|
2002-12-16 00:20:42 +00:00
|
|
|
(while (and (not (< (allout-recent-depth) present-level))
|
|
|
|
(or (allout-previous-visible-heading 1)
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
(not (setq failed present-level)))))
|
2002-12-16 00:20:42 +00:00
|
|
|
(setq present-level (allout-current-depth))
|
1993-06-02 17:53:31 +00:00
|
|
|
(setq arg (- arg 1)))
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
(if (or failed
|
|
|
|
(> arg 0))
|
|
|
|
(progn (goto-char last-good)
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
(if (interactive-p) (allout-end-of-prefix))
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
(if (not dont-complain)
|
2001-07-16 11:39:42 +00:00
|
|
|
(error "Can't ascend past outermost level")
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
(if (interactive-p) (allout-end-of-prefix))
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
nil))
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
(if (interactive-p) (allout-end-of-prefix))
|
2002-12-16 00:20:42 +00:00
|
|
|
allout-recent-prefix-beginning)))
|
1993-06-02 17:53:31 +00:00
|
|
|
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
;;;_ - Linear
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-next-sibling (&optional depth backward)
|
|
|
|
(defun allout-next-sibling (&optional depth backward)
|
2002-12-16 00:26:22 +00:00
|
|
|
"Like `allout-forward-current-level', but respects invisible topics.
|
1993-06-02 17:53:31 +00:00
|
|
|
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
Traverse at optional DEPTH, or current depth if none specified.
|
1993-06-02 17:53:31 +00:00
|
|
|
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
Go backward if optional arg BACKWARD is non-nil.
|
1993-06-02 17:53:31 +00:00
|
|
|
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
Return depth if successful, nil otherwise."
|
1993-06-02 17:53:31 +00:00
|
|
|
|
|
|
|
(if (and backward (bobp))
|
|
|
|
nil
|
2002-12-16 00:20:42 +00:00
|
|
|
(let ((start-depth (or depth (allout-depth)))
|
1993-06-02 17:53:31 +00:00
|
|
|
(start-point (point))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
last-depth)
|
1993-06-02 17:53:31 +00:00
|
|
|
(while (and (not (if backward (bobp) (eobp)))
|
2002-12-16 00:20:42 +00:00
|
|
|
(if backward (allout-previous-heading)
|
|
|
|
(allout-next-heading))
|
|
|
|
(> (setq last-depth (allout-recent-depth)) start-depth)))
|
1993-06-02 17:53:31 +00:00
|
|
|
(if (and (not (eobp))
|
2002-12-16 00:20:42 +00:00
|
|
|
(and (> (or last-depth (allout-depth)) 0)
|
|
|
|
(= (allout-recent-depth) start-depth)))
|
|
|
|
allout-recent-prefix-beginning
|
1993-06-02 17:53:31 +00:00
|
|
|
(goto-char start-point)
|
2002-12-16 00:20:42 +00:00
|
|
|
(if depth (allout-depth) start-depth)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
nil))))
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-previous-sibling (&optional depth backward)
|
|
|
|
(defun allout-previous-sibling (&optional depth backward)
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
"Like `allout-forward-current-level' backwards, respecting invisible topics.
|
1993-06-02 17:53:31 +00:00
|
|
|
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
Optional DEPTH specifies depth to traverse, default current depth.
|
1993-06-02 17:53:31 +00:00
|
|
|
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
Optional BACKWARD reverses direction.
|
1993-06-02 17:53:31 +00:00
|
|
|
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
Return depth if successful, nil otherwise."
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-next-sibling depth (not backward))
|
1993-06-02 17:53:31 +00:00
|
|
|
)
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-snug-back ()
|
|
|
|
(defun allout-snug-back ()
|
(my-mark-marker, allout-isearch-prior-pos, allout-unprotected,
allout-undo-aggregation, allout-snug-back, allout-post-command-business,
allout-flag-region, isearch-reenable-font-lock, allout-yank,
allout-insert-latex-header, allout-insert-latex-trailer,
allout-latex-verbatim-quote-curr-line, allout-latexify-exposed,
allout-latex-verb-quote): Fix typos in docstrings.
(allout-enwrap-isearch, regexp-sans-escapes): Doc fix.
(allout-unprotected, allout-prefix-data): Improve argument/docstring
consistency.
(allout-chart-subtree): Fix argument spec.
(allout-open-topic): Rename `use_sib_bullet' argument to `use-sib-bullet'.
Doc fix.
2005-07-13 10:15:39 +00:00
|
|
|
"Position cursor at end of previous topic.
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
|
|
|
|
Presumes point is at the start of a topic prefix."
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(if (or (bobp) (eobp))
|
|
|
|
nil
|
|
|
|
(forward-char -1))
|
2000-06-07 13:25:06 +00:00
|
|
|
(if (or (bobp) (not (memq (preceding-char) '(?\n ?\r))))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
nil
|
|
|
|
(forward-char -1)
|
2000-06-07 13:25:06 +00:00
|
|
|
(if (or (bobp) (not (memq (preceding-char) '(?\n ?\r))))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(forward-char -1)))
|
|
|
|
(point))
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-beginning-of-level ()
|
|
|
|
(defun allout-beginning-of-level ()
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
"Go back to the first sibling at this level, visible or not."
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-end-of-level 'backward))
|
|
|
|
;;;_ > allout-end-of-level (&optional backward)
|
|
|
|
(defun allout-end-of-level (&optional backward)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
"Go to the last sibling at this level, visible or not."
|
1993-06-02 17:53:31 +00:00
|
|
|
|
2002-12-16 00:20:42 +00:00
|
|
|
(let ((depth (allout-depth)))
|
|
|
|
(while (allout-previous-sibling depth nil))
|
|
|
|
(prog1 (allout-recent-depth)
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
(if (interactive-p) (allout-end-of-prefix)))))
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-next-visible-heading (arg)
|
|
|
|
(defun allout-next-visible-heading (arg)
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
"Move to the next ARG'th visible heading line, backward if arg is negative.
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
Move as far as possible in indicated direction \(beginning or end of
|
2000-06-07 13:25:06 +00:00
|
|
|
buffer) if headings are exhausted."
|
1993-06-02 17:53:31 +00:00
|
|
|
|
|
|
|
(interactive "p")
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(let* ((backward (if (< arg 0) (setq arg (* -1 arg))))
|
|
|
|
(step (if backward -1 1))
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
(start-point (point))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
prev got)
|
|
|
|
|
|
|
|
(while (> arg 0) ; limit condition
|
|
|
|
(while (and (not (if backward (bobp)(eobp))) ; boundary condition
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
;; Move, skipping over all those concealed lines:
|
|
|
|
(< -1 (forward-line step))
|
2002-12-16 00:20:42 +00:00
|
|
|
(not (setq got (looking-at allout-regexp)))))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
;; Register this got, it may be the last:
|
|
|
|
(if got (setq prev got))
|
|
|
|
(setq arg (1- arg)))
|
|
|
|
(cond (got ; Last move was to a prefix:
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-prefix-data (match-beginning 0) (match-end 0))
|
|
|
|
(allout-end-of-prefix))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(prev ; Last move wasn't, but prev was:
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-prefix-data (match-beginning 0) (match-end 0)))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
((not backward) (end-of-line) nil))))
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-previous-visible-heading (arg)
|
|
|
|
(defun allout-previous-visible-heading (arg)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
"Move to the previous heading line.
|
1993-06-02 17:53:31 +00:00
|
|
|
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
With argument, repeats or can move forward if negative.
|
2002-12-16 00:26:22 +00:00
|
|
|
A heading line is one that starts with a `*' (or that `allout-regexp'
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
matches)."
|
1993-06-02 17:53:31 +00:00
|
|
|
(interactive "p")
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-next-visible-heading (- arg)))
|
|
|
|
;;;_ > allout-forward-current-level (arg)
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
(defun allout-forward-current-level (arg)
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
"Position point at the next heading of the same level.
|
1993-06-02 17:53:31 +00:00
|
|
|
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
Takes optional repeat-count, goes backward if count is negative.
|
1993-06-02 17:53:31 +00:00
|
|
|
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
Returns resulting position, else nil if none found."
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
(interactive "p")
|
2002-12-16 00:20:42 +00:00
|
|
|
(let ((start-depth (allout-current-depth))
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
(start-point (point))
|
|
|
|
(start-arg arg)
|
|
|
|
(backward (> 0 arg))
|
|
|
|
last-depth
|
|
|
|
(last-good (point))
|
|
|
|
at-boundary)
|
|
|
|
(if (= 0 start-depth)
|
|
|
|
(error "No siblings, not in a topic..."))
|
|
|
|
(if backward (setq arg (* -1 arg)))
|
|
|
|
(while (not (or (zerop arg)
|
|
|
|
at-boundary))
|
|
|
|
(while (and (not (if backward (bobp) (eobp)))
|
2002-12-16 00:20:42 +00:00
|
|
|
(if backward (allout-previous-visible-heading 1)
|
|
|
|
(allout-next-visible-heading 1))
|
|
|
|
(> (setq last-depth (allout-recent-depth)) start-depth)))
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
(if (and last-depth (= last-depth start-depth)
|
|
|
|
(not (if backward (bobp) (eobp))))
|
|
|
|
(setq last-good (point)
|
|
|
|
arg (1- arg))
|
|
|
|
(setq at-boundary t)))
|
|
|
|
(if (and (not (eobp))
|
|
|
|
(= arg 0)
|
2002-12-16 00:20:42 +00:00
|
|
|
(and (> (or last-depth (allout-depth)) 0)
|
|
|
|
(= (allout-recent-depth) start-depth)))
|
|
|
|
allout-recent-prefix-beginning
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
(goto-char last-good)
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
(if (not (interactive-p))
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
nil
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-end-of-prefix)
|
2001-07-16 11:39:42 +00:00
|
|
|
(error "Hit %s level %d topic, traversed %d of %d requested"
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
(if backward "first" "last")
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-recent-depth)
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
(- (abs start-arg) arg)
|
|
|
|
(abs start-arg))))))
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-backward-current-level (arg)
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
(defun allout-backward-current-level (arg)
|
2002-12-16 00:20:42 +00:00
|
|
|
"Inverse of `allout-forward-current-level'."
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
(interactive "p")
|
|
|
|
(if (interactive-p)
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
(let ((current-prefix-arg (* -1 arg)))
|
2002-12-16 00:20:42 +00:00
|
|
|
(call-interactively 'allout-forward-current-level))
|
|
|
|
(allout-forward-current-level (* -1 arg))))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
;;;_ #5 Alteration
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
|
|
|
;;;_ - Fundamental
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ = allout-post-goto-bullet
|
|
|
|
(defvar allout-post-goto-bullet nil
|
|
|
|
"Outline internal var, for `allout-pre-command-business' hot-spot operation.
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
|
|
|
|
When set, tells post-processing to reposition on topic bullet, and
|
2002-12-16 00:26:22 +00:00
|
|
|
then unset it. Set by `allout-pre-command-business' when implementing
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
hot-spot operation, where literal characters typed over a topic bullet
|
|
|
|
are mapped to the command of the corresponding control-key on the
|
2002-12-16 00:26:22 +00:00
|
|
|
`allout-mode-map'.")
|
2002-12-16 00:20:42 +00:00
|
|
|
(make-variable-buffer-local 'allout-post-goto-bullet)
|
|
|
|
;;;_ > allout-post-command-business ()
|
|
|
|
(defun allout-post-command-business ()
|
2002-12-16 00:26:22 +00:00
|
|
|
"Outline `post-command-hook' function.
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
2002-12-16 00:26:22 +00:00
|
|
|
- Implement (and clear) `allout-post-goto-bullet', for hot-spot
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
outline commands.
|
|
|
|
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
- Decrypt topic currently being edited if it was encrypted for a save.
|
|
|
|
|
|
|
|
- Massage buffer-undo-list so successive, standard character self-inserts are
|
|
|
|
aggregated. This kludge compensates for lack of undo bunching when
|
|
|
|
before-change-functions is used."
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
|
|
|
; Apply any external change func:
|
2002-12-16 00:20:42 +00:00
|
|
|
(if (not (allout-mode-p)) ; In allout-mode.
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
nil
|
2002-12-16 00:20:42 +00:00
|
|
|
(if allout-isearch-dynamic-expose
|
|
|
|
(allout-isearch-rectification))
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
;; Undo bunching business:
|
|
|
|
(if (and (listp buffer-undo-list) ; Undo history being kept.
|
|
|
|
(equal this-command 'self-insert-command)
|
|
|
|
(equal last-command 'self-insert-command))
|
|
|
|
(let* ((prev-stuff (cdr buffer-undo-list))
|
|
|
|
(before-prev-stuff (cdr (cdr prev-stuff)))
|
|
|
|
cur-cell cur-from cur-to
|
|
|
|
prev-cell prev-from prev-to)
|
|
|
|
(if (and before-prev-stuff ; Goes back far enough to bother,
|
|
|
|
(not (car prev-stuff)) ; and break before current,
|
|
|
|
(not (car before-prev-stuff)) ; !and break before prev!
|
|
|
|
(setq prev-cell (car (cdr prev-stuff))) ; contents now,
|
|
|
|
(setq cur-cell (car buffer-undo-list)) ; contents prev.
|
|
|
|
|
|
|
|
;; cur contents denote a single char insertion:
|
|
|
|
(numberp (setq cur-from (car cur-cell)))
|
|
|
|
(numberp (setq cur-to (cdr cur-cell)))
|
|
|
|
(= 1 (- cur-to cur-from))
|
|
|
|
|
|
|
|
;; prev contents denote fewer than aggregate-limit
|
|
|
|
;; insertions:
|
|
|
|
(numberp (setq prev-from (car prev-cell)))
|
|
|
|
(numberp (setq prev-to (cdr prev-cell)))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
; Below threshold:
|
2002-12-16 00:20:42 +00:00
|
|
|
(> allout-undo-aggregation (- prev-to prev-from)))
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
(setq buffer-undo-list
|
|
|
|
(cons (cons prev-from cur-to)
|
|
|
|
(cdr (cdr (cdr buffer-undo-list))))))))
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
|
|
|
|
(if (and (boundp 'allout-after-save-decrypt)
|
|
|
|
allout-after-save-decrypt)
|
|
|
|
(allout-after-saves-handler))
|
|
|
|
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
;; Implement -post-goto-bullet, if set: (must be after undo business)
|
2002-12-16 00:20:42 +00:00
|
|
|
(if (and allout-post-goto-bullet
|
|
|
|
(allout-current-bullet-pos))
|
|
|
|
(progn (goto-char (allout-current-bullet-pos))
|
|
|
|
(setq allout-post-goto-bullet nil)))
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
))
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-pre-command-business ()
|
|
|
|
(defun allout-pre-command-business ()
|
2002-12-16 00:26:22 +00:00
|
|
|
"Outline `pre-command-hook' function for outline buffers.
|
2003-02-24 17:27:21 +00:00
|
|
|
Implements special behavior when cursor is on bullet character.
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
2003-02-24 17:27:21 +00:00
|
|
|
When the cursor is on the bullet character, self-insert characters are
|
|
|
|
reinterpreted as the corresponding control-character in the
|
|
|
|
`allout-mode-map'. The `allout-mode' `post-command-hook' insures that
|
|
|
|
the cursor which has moved as a result of such reinterpretation is
|
|
|
|
positioned on the bullet character of the destination topic.
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
2000-06-07 13:25:06 +00:00
|
|
|
The upshot is that you can get easy, single (ie, unmodified) key
|
|
|
|
outline maneuvering operations by positioning the cursor on the bullet
|
2003-02-24 17:27:21 +00:00
|
|
|
char. When in this mode you can use regular cursor-positioning
|
|
|
|
command/keystrokes to relocate the cursor off of a bullet character to
|
|
|
|
return to regular interpretation of self-insert characters."
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
|
2002-12-16 00:20:42 +00:00
|
|
|
(if (not (allout-mode-p))
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
;; Shouldn't be invoked if not in allout-mode, but just in case:
|
2000-06-07 13:25:06 +00:00
|
|
|
nil
|
|
|
|
;; Register isearch status:
|
|
|
|
(if (and (boundp 'isearch-mode) isearch-mode)
|
2002-12-16 00:20:42 +00:00
|
|
|
(setq allout-pre-was-isearching t)
|
|
|
|
(setq allout-pre-was-isearching nil))
|
2000-06-07 13:25:06 +00:00
|
|
|
;; Hot-spot navigation provisions:
|
|
|
|
(if (and (eq this-command 'self-insert-command)
|
2002-12-16 00:20:42 +00:00
|
|
|
(eq (point)(allout-current-bullet-pos)))
|
2000-06-07 13:25:06 +00:00
|
|
|
(let* ((this-key-num (cond
|
|
|
|
((numberp last-command-char)
|
|
|
|
last-command-char)
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
;; Only xemacs has characterp.
|
|
|
|
((and (fboundp 'characterp)
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
(apply 'characterp
|
|
|
|
(list last-command-char)))
|
|
|
|
(apply 'char-to-int (list last-command-char)))
|
2000-06-07 13:25:06 +00:00
|
|
|
(t 0)))
|
|
|
|
mapped-binding)
|
|
|
|
(if (zerop this-key-num)
|
|
|
|
nil
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
; Map upper-register literals
|
|
|
|
; to lower register:
|
2000-06-07 13:25:06 +00:00
|
|
|
(if (<= 96 this-key-num)
|
|
|
|
(setq this-key-num (- this-key-num 32)))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
; Check if we have a literal:
|
2000-06-07 13:25:06 +00:00
|
|
|
(if (and (<= 64 this-key-num)
|
|
|
|
(>= 96 this-key-num))
|
|
|
|
(setq mapped-binding
|
2002-12-16 00:20:42 +00:00
|
|
|
(lookup-key 'allout-mode-map
|
|
|
|
(concat allout-command-prefix
|
2000-06-07 13:25:06 +00:00
|
|
|
(char-to-string (- this-key-num
|
|
|
|
64))))))
|
|
|
|
(if mapped-binding
|
2002-12-16 00:20:42 +00:00
|
|
|
(setq allout-post-goto-bullet t
|
2000-06-07 13:25:06 +00:00
|
|
|
this-command mapped-binding)))))))
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-find-file-hook ()
|
|
|
|
(defun allout-find-file-hook ()
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
"Activate `allout-mode' when `allout-auto-activation', `allout-layout' non-nil.
|
2002-12-16 00:20:42 +00:00
|
|
|
|
|
|
|
See `allout-init' for setup instructions."
|
|
|
|
(if (and allout-auto-activation
|
|
|
|
(not (allout-mode-p))
|
|
|
|
allout-layout)
|
|
|
|
(allout-mode t)))
|
|
|
|
;;;_ > allout-isearch-rectification
|
|
|
|
(defun allout-isearch-rectification ()
|
2000-06-07 13:25:06 +00:00
|
|
|
"Rectify outline exposure before, during, or after isearch.
|
|
|
|
|
2002-12-16 00:26:22 +00:00
|
|
|
Called as part of `allout-post-command-business'."
|
2000-06-07 13:25:06 +00:00
|
|
|
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
(let ((isearching (and (boundp 'isearch-mode) isearch-mode)))
|
2002-12-16 00:20:42 +00:00
|
|
|
(cond ((and isearching (not allout-pre-was-isearching))
|
|
|
|
(allout-isearch-expose 'start))
|
|
|
|
((and isearching allout-pre-was-isearching)
|
|
|
|
(allout-isearch-expose 'continue))
|
|
|
|
((and (not isearching) allout-pre-was-isearching)
|
|
|
|
(allout-isearch-expose 'final))
|
2000-06-07 13:25:06 +00:00
|
|
|
;; Not and wasn't isearching:
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
(t (setq allout-isearch-prior-pos nil)
|
|
|
|
(setq allout-isearch-did-quit nil)))))
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ = allout-isearch-was-font-lock
|
|
|
|
(defvar allout-isearch-was-font-lock
|
2000-06-07 13:25:06 +00:00
|
|
|
(and (boundp 'font-lock-mode) font-lock-mode))
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-isearch-expose (mode)
|
|
|
|
(defun allout-isearch-expose (mode)
|
(allout-chart-subtree, allout-rebullet-topic-grunt): Don't mention in the
docstring these arguments meant for internal (recursive) use only.
(allout-char-spec): Comment out (it's not implemented).
(allout-old-expose-topic, allout-exposure): Fix docstring and add obsolescence
declaration.
(allout-flatten-exposed-to-buffer, allout-indented-exposed-to-buffer): Fix typos
in docstring.
(my-mark-marker): Doc fix.
(produce-allout-mode-map, allout-sibling-index, allout-isearch-expose)
(allout-distinctive-bullet, allout-open-topic, allout-reindent-body)
(allout-rebullet-heading, allout-process-exposed, allout-insert-listified)
(allout-latex-verb-quote, allout-insert-latex-header)
(allout-insert-latex-trailer): Make arguments match their use in
docstring.
(allout-primary-bullet, allout-old-style-prefixes, allout-inhibit-protection)
(allout-init, allout-mode, allout-before-change-protect, allout-flag-region):
Use "Emacs" instead of "emacs" in docstrings.
2004-05-21 18:10:21 +00:00
|
|
|
"MODE is either 'clear, 'start, 'continue, or 'final."
|
2002-12-16 00:20:42 +00:00
|
|
|
;; allout-isearch-prior-pos encodes exposure status of prior pos:
|
2000-06-07 13:25:06 +00:00
|
|
|
;; (pos was-vis header-pos end-pos)
|
|
|
|
;; pos - point of concern
|
|
|
|
;; was-vis - t, else 'topic if entire topic was exposed, 'entry otherwise
|
|
|
|
;; Do reclosure or prior pos, as necessary:
|
|
|
|
(if (eq mode 'start)
|
2002-12-16 00:20:42 +00:00
|
|
|
(setq allout-isearch-was-font-lock (and (boundp 'font-lock-mode)
|
2000-06-07 13:25:06 +00:00
|
|
|
font-lock-mode)
|
|
|
|
font-lock-mode nil)
|
|
|
|
(if (eq mode 'final)
|
2002-12-16 00:20:42 +00:00
|
|
|
(setq font-lock-mode allout-isearch-was-font-lock))
|
|
|
|
(if (and allout-isearch-prior-pos
|
|
|
|
(listp allout-isearch-prior-pos))
|
2000-06-07 13:25:06 +00:00
|
|
|
;; Conceal prior peek:
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-flag-region (car (cdr allout-isearch-prior-pos))
|
|
|
|
(car (cdr (cdr allout-isearch-prior-pos)))
|
2000-06-07 13:25:06 +00:00
|
|
|
?\r)))
|
2002-12-16 00:20:42 +00:00
|
|
|
(if (allout-visible-p)
|
|
|
|
(setq allout-isearch-prior-pos nil)
|
2000-06-07 13:25:06 +00:00
|
|
|
(if (not (eq mode 'final))
|
2002-12-16 00:20:42 +00:00
|
|
|
(setq allout-isearch-prior-pos (cons (point) (allout-show-entry)))
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
(if allout-isearch-did-quit
|
2000-06-07 13:25:06 +00:00
|
|
|
nil
|
2002-12-16 00:20:42 +00:00
|
|
|
(setq allout-isearch-prior-pos nil)
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
(allout-show-children))))
|
|
|
|
(setq allout-isearch-did-quit nil))
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-enwrap-isearch ()
|
|
|
|
(defun allout-enwrap-isearch ()
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
"Impose `allout-mode' isearch-abort wrapper for dynamic exposure in isearch.
|
2000-06-07 13:25:06 +00:00
|
|
|
|
|
|
|
The function checks to ensure that the rebinding is done only once."
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
|
|
|
|
(add-hook 'isearch-mode-end-hook 'allout-isearch-rectification)
|
|
|
|
(if (fboundp 'allout-real-isearch-abort)
|
|
|
|
;;
|
|
|
|
nil
|
|
|
|
; Ensure load of isearch-mode:
|
|
|
|
(if (or (and (fboundp 'isearch-mode)
|
|
|
|
(fboundp 'isearch-abort))
|
|
|
|
(condition-case error
|
|
|
|
(load-library "isearch-mode")
|
|
|
|
('file-error (message
|
|
|
|
"Skipping isearch-mode provisions - %s '%s'"
|
|
|
|
(car (cdr error))
|
|
|
|
(car (cdr (cdr error))))
|
|
|
|
(sit-for 1)
|
|
|
|
;; Inhibit subsequent tries and return nil:
|
|
|
|
(setq allout-isearch-dynamic-expose nil))))
|
|
|
|
;; Isearch-mode loaded, encapsulate specific entry points for
|
|
|
|
;; outline dynamic-exposure business:
|
|
|
|
(progn
|
|
|
|
;; stash crucial isearch-mode funcs under known, private
|
|
|
|
;; names, then register wrapper functions under the old
|
|
|
|
;; names, in their stead:
|
|
|
|
(fset 'allout-real-isearch-abort (symbol-function 'isearch-abort))
|
|
|
|
(fset 'isearch-abort 'allout-isearch-abort)))))
|
|
|
|
;;;_ > allout-isearch-abort ()
|
|
|
|
(defun allout-isearch-abort ()
|
|
|
|
"Wrapper for allout-real-isearch-abort \(which see), to register
|
|
|
|
actual quits."
|
|
|
|
(interactive)
|
|
|
|
(setq allout-isearch-did-quit nil)
|
|
|
|
(condition-case what
|
|
|
|
(allout-real-isearch-abort)
|
|
|
|
('quit (setq allout-isearch-did-quit t)
|
|
|
|
(signal 'quit nil))))
|
2000-06-07 13:25:06 +00:00
|
|
|
|
|
|
|
;;; Prevent unnecessary font-lock while isearching!
|
|
|
|
(defvar isearch-was-font-locking nil)
|
|
|
|
(defun isearch-inhibit-font-lock ()
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
"Inhibit `font-lock' while isearching - for use on `isearch-mode-hook'."
|
2002-12-16 00:20:42 +00:00
|
|
|
(if (and (allout-mode-p) (boundp 'font-lock-mode) font-lock-mode)
|
2000-06-07 13:25:06 +00:00
|
|
|
(setq isearch-was-font-locking t
|
|
|
|
font-lock-mode nil)))
|
|
|
|
(add-hook 'isearch-mode-hook 'isearch-inhibit-font-lock)
|
|
|
|
(defun isearch-reenable-font-lock ()
|
(my-mark-marker, allout-isearch-prior-pos, allout-unprotected,
allout-undo-aggregation, allout-snug-back, allout-post-command-business,
allout-flag-region, isearch-reenable-font-lock, allout-yank,
allout-insert-latex-header, allout-insert-latex-trailer,
allout-latex-verbatim-quote-curr-line, allout-latexify-exposed,
allout-latex-verb-quote): Fix typos in docstrings.
(allout-enwrap-isearch, regexp-sans-escapes): Doc fix.
(allout-unprotected, allout-prefix-data): Improve argument/docstring
consistency.
(allout-chart-subtree): Fix argument spec.
(allout-open-topic): Rename `use_sib_bullet' argument to `use-sib-bullet'.
Doc fix.
2005-07-13 10:15:39 +00:00
|
|
|
"Reenable font-lock after isearching - for use on `isearch-mode-end-hook'."
|
2000-06-07 13:25:06 +00:00
|
|
|
(if (and (boundp 'font-lock-mode) font-lock-mode)
|
2002-12-16 00:20:42 +00:00
|
|
|
(if (and (allout-mode-p) isearch-was-font-locking)
|
2000-06-07 13:25:06 +00:00
|
|
|
(setq isearch-was-font-locking nil
|
|
|
|
font-lock-mode t))))
|
|
|
|
(add-hook 'isearch-mode-end-hook 'isearch-reenable-font-lock)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
|
|
|
;;;_ - Topic Format Assessment
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-solicit-alternate-bullet (depth &optional current-bullet)
|
|
|
|
(defun allout-solicit-alternate-bullet (depth &optional current-bullet)
|
1993-06-02 17:53:31 +00:00
|
|
|
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
"Prompt for and return a bullet char as an alternative to the current one.
|
|
|
|
|
|
|
|
Offer one suitable for current depth DEPTH as default."
|
1993-06-02 17:53:31 +00:00
|
|
|
|
2000-06-07 13:25:06 +00:00
|
|
|
(let* ((default-bullet (or (and (stringp current-bullet) current-bullet)
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-bullet-for-depth depth)))
|
|
|
|
(sans-escapes (regexp-sans-escapes allout-bullets-string))
|
2000-06-07 13:25:06 +00:00
|
|
|
choice)
|
|
|
|
(save-excursion
|
2002-12-16 00:20:42 +00:00
|
|
|
(goto-char (allout-current-bullet-pos))
|
2000-06-07 13:25:06 +00:00
|
|
|
(setq choice (solicit-char-in-string
|
|
|
|
(format "Select bullet: %s ('%s' default): "
|
|
|
|
sans-escapes
|
|
|
|
default-bullet)
|
|
|
|
sans-escapes
|
|
|
|
t)))
|
|
|
|
(message "")
|
1993-06-02 17:53:31 +00:00
|
|
|
(if (string= choice "") default-bullet choice))
|
|
|
|
)
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-distinctive-bullet (bullet)
|
|
|
|
(defun allout-distinctive-bullet (bullet)
|
(allout-chart-subtree, allout-rebullet-topic-grunt): Don't mention in the
docstring these arguments meant for internal (recursive) use only.
(allout-char-spec): Comment out (it's not implemented).
(allout-old-expose-topic, allout-exposure): Fix docstring and add obsolescence
declaration.
(allout-flatten-exposed-to-buffer, allout-indented-exposed-to-buffer): Fix typos
in docstring.
(my-mark-marker): Doc fix.
(produce-allout-mode-map, allout-sibling-index, allout-isearch-expose)
(allout-distinctive-bullet, allout-open-topic, allout-reindent-body)
(allout-rebullet-heading, allout-process-exposed, allout-insert-listified)
(allout-latex-verb-quote, allout-insert-latex-header)
(allout-insert-latex-trailer): Make arguments match their use in
docstring.
(allout-primary-bullet, allout-old-style-prefixes, allout-inhibit-protection)
(allout-init, allout-mode, allout-before-change-protect, allout-flag-region):
Use "Emacs" instead of "emacs" in docstrings.
2004-05-21 18:10:21 +00:00
|
|
|
"True if BULLET is one of those on `allout-distinctive-bullets-string'."
|
2002-12-16 00:20:42 +00:00
|
|
|
(string-match (regexp-quote bullet) allout-distinctive-bullets-string))
|
|
|
|
;;;_ > allout-numbered-type-prefix (&optional prefix)
|
|
|
|
(defun allout-numbered-type-prefix (&optional prefix)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
"True if current header prefix bullet is numbered bullet."
|
2002-12-16 00:20:42 +00:00
|
|
|
(and allout-numbered-bullet
|
|
|
|
(string= allout-numbered-bullet
|
1993-06-02 17:53:31 +00:00
|
|
|
(if prefix
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-get-prefix-bullet prefix)
|
|
|
|
(allout-get-bullet)))))
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
;;;_ > allout-encrypted-type-prefix (&optional prefix)
|
|
|
|
(defun allout-encrypted-type-prefix (&optional prefix)
|
|
|
|
"True if current header prefix bullet is for an encrypted entry \(body)."
|
|
|
|
(and allout-topic-encryption-bullet
|
|
|
|
(string= allout-topic-encryption-bullet
|
|
|
|
(if prefix
|
|
|
|
(allout-get-prefix-bullet prefix)
|
|
|
|
(allout-get-bullet)))))
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-bullet-for-depth (&optional depth)
|
|
|
|
(defun allout-bullet-for-depth (&optional depth)
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
"Return outline topic bullet suited to optional DEPTH, or current depth."
|
1993-06-02 17:53:31 +00:00
|
|
|
;; Find bullet in plain-bullets-string modulo DEPTH.
|
2002-12-16 00:20:42 +00:00
|
|
|
(if allout-stylish-prefixes
|
|
|
|
(char-to-string (aref allout-plain-bullets-string
|
1993-06-02 17:53:31 +00:00
|
|
|
(% (max 0 (- depth 2))
|
2002-12-16 00:20:42 +00:00
|
|
|
allout-plain-bullets-string-len)))
|
|
|
|
allout-primary-bullet)
|
1993-06-02 17:53:31 +00:00
|
|
|
)
|
|
|
|
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
;;;_ - Topic Production
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-make-topic-prefix (&optional prior-bullet
|
|
|
|
(defun allout-make-topic-prefix (&optional prior-bullet
|
1993-06-02 17:53:31 +00:00
|
|
|
new
|
|
|
|
depth
|
|
|
|
solicit
|
|
|
|
number-control
|
|
|
|
index)
|
|
|
|
;; Depth null means use current depth, non-null means we're either
|
|
|
|
;; opening a new topic after current topic, lower or higher, or we're
|
|
|
|
;; changing level of current topic.
|
|
|
|
;; Solicit dominates specified bullet-char.
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
;;;_ . Doc string:
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
"Generate a topic prefix suitable for optional arg DEPTH, or current depth.
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
|
|
|
All the arguments are optional.
|
|
|
|
|
|
|
|
PRIOR-BULLET indicates the bullet of the prefix being changed, or
|
|
|
|
nil if none. This bullet may be preserved (other options
|
2002-12-16 00:26:22 +00:00
|
|
|
notwithstanding) if it is on the `allout-distinctive-bullets-string',
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
for instance.
|
|
|
|
|
|
|
|
Second arg NEW indicates that a new topic is being opened after the
|
|
|
|
topic at point, if non-nil. Default bullet for new topics, eg, may
|
|
|
|
be set (contingent to other args) to numbered bullets if previous
|
|
|
|
sibling is one. The implication otherwise is that the current topic
|
|
|
|
is being adjusted - shifted or rebulleted - and we don't consider
|
|
|
|
bullet or previous sibling.
|
|
|
|
|
|
|
|
Third arg DEPTH forces the topic prefix to that depth, regardless of
|
|
|
|
the current topics' depth.
|
|
|
|
|
2000-06-07 13:25:06 +00:00
|
|
|
If SOLICIT is non-nil, then the choice of bullet is solicited from
|
|
|
|
user. If it's a character, then that character is offered as the
|
|
|
|
default, otherwise the one suited to the context \(according to
|
|
|
|
distinction or depth) is offered. \(This overrides other options,
|
|
|
|
including, eg, a distinctive PRIOR-BULLET.) If non-nil, then the
|
|
|
|
context-specific bullet is used.
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
2002-12-16 00:20:42 +00:00
|
|
|
Fifth arg, NUMBER-CONTROL, matters only if `allout-numbered-bullet'
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
is non-nil *and* soliciting was not explicitly invoked. Then
|
|
|
|
NUMBER-CONTROL non-nil forces prefix to either numbered or
|
|
|
|
denumbered format, depending on the value of the sixth arg, INDEX.
|
|
|
|
|
|
|
|
\(Note that NUMBER-CONTROL does *not* apply to level 1 topics. Sorry...)
|
|
|
|
|
|
|
|
If NUMBER-CONTROL is non-nil and sixth arg INDEX is non-nil then
|
|
|
|
the prefix of the topic is forced to be numbered. Non-nil
|
|
|
|
NUMBER-CONTROL and nil INDEX forces non-numbered format on the
|
|
|
|
bullet. Non-nil NUMBER-CONTROL and non-nil, non-number INDEX means
|
|
|
|
that the index for the numbered prefix will be derived, by counting
|
|
|
|
siblings back to start of level. If INDEX is a number, then that
|
|
|
|
number is used as the index for the numbered prefix (allowing, eg,
|
(outline-primary-bullet, outline-numbered-bullet,
outline-override-protect, outline-explicitly-deactivated,
outline-init, outline-chart-subtree, outline-chart-spec,
outline-make-topic-prefix, outline-open-topic,
outline-reindent-body, outline-yank-processing, outline-yank,
outlineify-sticky): Doc fix.
1996-01-04 23:26:20 +00:00
|
|
|
sequential renumbering to not require this function counting back the
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
index for each successive sibling)."
|
|
|
|
;;;_ . Code:
|
1993-06-02 17:53:31 +00:00
|
|
|
;; The options are ordered in likely frequence of use, most common
|
|
|
|
;; highest, least lowest. Ie, more likely to be doing prefix
|
|
|
|
;; adjustments than soliciting, and yet more than numbering.
|
|
|
|
;; Current prefix is least dominant, but most likely to be commonly
|
|
|
|
;; specified...
|
|
|
|
|
|
|
|
(let* (body
|
|
|
|
numbering
|
|
|
|
denumbering
|
2002-12-16 00:20:42 +00:00
|
|
|
(depth (or depth (allout-depth)))
|
|
|
|
(header-lead allout-header-prefix)
|
1993-06-02 17:53:31 +00:00
|
|
|
(bullet-char
|
|
|
|
|
|
|
|
;; Getting value for bullet char is practically the whole job:
|
|
|
|
|
|
|
|
(cond
|
|
|
|
; Simplest situation - level 1:
|
2002-12-16 00:20:42 +00:00
|
|
|
((<= depth 1) (setq header-lead "") allout-primary-bullet)
|
1993-06-02 17:53:31 +00:00
|
|
|
; Simple, too: all asterisks:
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-old-style-prefixes
|
1993-06-02 17:53:31 +00:00
|
|
|
;; Cheat - make body the whole thing, null out header-lead and
|
|
|
|
;; bullet-char:
|
|
|
|
(setq body (make-string depth
|
2002-12-16 00:20:42 +00:00
|
|
|
(string-to-char allout-primary-bullet)))
|
1993-06-02 17:53:31 +00:00
|
|
|
(setq header-lead "")
|
|
|
|
"")
|
|
|
|
|
|
|
|
;; (Neither level 1 nor old-style, so we're space padding.
|
|
|
|
;; Sneak it in the condition of the next case, whatever it is.)
|
|
|
|
|
|
|
|
;; Solicitation overrides numbering and other cases:
|
|
|
|
((progn (setq body (make-string (- depth 2) ?\ ))
|
|
|
|
;; The actual condition:
|
|
|
|
solicit)
|
2002-12-16 00:20:42 +00:00
|
|
|
(let* ((got (allout-solicit-alternate-bullet depth solicit)))
|
1993-06-02 17:53:31 +00:00
|
|
|
;; Gotta check whether we're numbering and got a numbered bullet:
|
2002-12-16 00:20:42 +00:00
|
|
|
(setq numbering (and allout-numbered-bullet
|
1993-06-02 17:53:31 +00:00
|
|
|
(not (and number-control (not index)))
|
2002-12-16 00:20:42 +00:00
|
|
|
(string= got allout-numbered-bullet)))
|
1993-06-02 17:53:31 +00:00
|
|
|
;; Now return what we got, regardless:
|
|
|
|
got))
|
|
|
|
|
|
|
|
;; Numbering invoked through args:
|
2002-12-16 00:20:42 +00:00
|
|
|
((and allout-numbered-bullet number-control)
|
1993-06-02 17:53:31 +00:00
|
|
|
(if (setq numbering (not (setq denumbering (not index))))
|
2002-12-16 00:20:42 +00:00
|
|
|
allout-numbered-bullet
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
(if (and prior-bullet
|
2002-12-16 00:20:42 +00:00
|
|
|
(not (string= allout-numbered-bullet
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
prior-bullet)))
|
|
|
|
prior-bullet
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-bullet-for-depth depth))))
|
1993-06-02 17:53:31 +00:00
|
|
|
|
|
|
|
;;; Neither soliciting nor controlled numbering ;;;
|
|
|
|
;;; (may be controlled denumbering, tho) ;;;
|
|
|
|
|
|
|
|
;; Check wrt previous sibling:
|
|
|
|
((and new ; only check for new prefixes
|
2002-12-16 00:20:42 +00:00
|
|
|
(<= depth (allout-depth))
|
|
|
|
allout-numbered-bullet ; ... & numbering enabled
|
1993-06-02 17:53:31 +00:00
|
|
|
(not denumbering)
|
|
|
|
(let ((sibling-bullet
|
|
|
|
(save-excursion
|
|
|
|
;; Locate correct sibling:
|
2002-12-16 00:20:42 +00:00
|
|
|
(or (>= depth (allout-depth))
|
|
|
|
(allout-ascend-to-depth depth))
|
|
|
|
(allout-get-bullet))))
|
1993-06-02 17:53:31 +00:00
|
|
|
(if (and sibling-bullet
|
2002-12-16 00:20:42 +00:00
|
|
|
(string= allout-numbered-bullet sibling-bullet))
|
1993-06-02 17:53:31 +00:00
|
|
|
(setq numbering sibling-bullet)))))
|
|
|
|
|
|
|
|
;; Distinctive prior bullet?
|
|
|
|
((and prior-bullet
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-distinctive-bullet prior-bullet)
|
1993-06-02 17:53:31 +00:00
|
|
|
;; Either non-numbered:
|
2002-12-16 00:20:42 +00:00
|
|
|
(or (not (and allout-numbered-bullet
|
|
|
|
(string= prior-bullet allout-numbered-bullet)))
|
1993-06-02 17:53:31 +00:00
|
|
|
;; or numbered, and not denumbering:
|
|
|
|
(setq numbering (not denumbering)))
|
|
|
|
;; Here 'tis:
|
|
|
|
prior-bullet))
|
|
|
|
|
|
|
|
;; Else, standard bullet per depth:
|
2002-12-16 00:20:42 +00:00
|
|
|
((allout-bullet-for-depth depth)))))
|
1993-06-02 17:53:31 +00:00
|
|
|
|
|
|
|
(concat header-lead
|
|
|
|
body
|
|
|
|
bullet-char
|
|
|
|
(if numbering
|
|
|
|
(format "%d" (cond ((and index (numberp index)) index)
|
2002-12-16 00:20:42 +00:00
|
|
|
(new (1+ (allout-sibling-index depth)))
|
|
|
|
((allout-sibling-index))))))
|
1993-06-02 17:53:31 +00:00
|
|
|
)
|
|
|
|
)
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
;;;_ > allout-open-topic (relative-depth &optional before use_recent_bullet)
|
|
|
|
(defun allout-open-topic (relative-depth &optional before use_recent_bullet)
|
|
|
|
"Open a new topic at depth DEPTH.
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
|
|
|
|
New topic is situated after current one, unless optional flag BEFORE
|
|
|
|
is non-nil, or unless current line is complete empty (not even
|
|
|
|
whitespace), in which case open is done on current line.
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
If USE_RECENT_BULLET is true, offer to use the bullet of the prior sibling.
|
2000-06-07 13:25:06 +00:00
|
|
|
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
Nuances:
|
|
|
|
|
|
|
|
- Creation of new topics is with respect to the visible topic
|
|
|
|
containing the cursor, regardless of intervening concealed ones.
|
|
|
|
|
|
|
|
- New headers are generally created after/before the body of a
|
|
|
|
topic. However, they are created right at cursor location if the
|
|
|
|
cursor is on a blank line, even if that breaks the current topic
|
|
|
|
body. This is intentional, to provide a simple means for
|
|
|
|
deliberately dividing topic bodies.
|
|
|
|
|
|
|
|
- Double spacing of topic lists is preserved. Also, the first
|
|
|
|
level two topic is created double-spaced (and so would be
|
|
|
|
subsequent siblings, if that's left intact). Otherwise,
|
|
|
|
single-spacing is used.
|
|
|
|
|
|
|
|
- Creation of sibling or nested topics is with respect to the topic
|
|
|
|
you're starting from, even when creating backwards. This way you
|
|
|
|
can easily create a sibling in front of the current topic without
|
(outline-primary-bullet, outline-numbered-bullet,
outline-override-protect, outline-explicitly-deactivated,
outline-init, outline-chart-subtree, outline-chart-spec,
outline-make-topic-prefix, outline-open-topic,
outline-reindent-body, outline-yank-processing, outline-yank,
outlineify-sticky): Doc fix.
1996-01-04 23:26:20 +00:00
|
|
|
having to go to its preceding sibling, and then open forward
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
from there."
|
1993-06-02 17:53:31 +00:00
|
|
|
|
2002-12-16 00:20:42 +00:00
|
|
|
(let* ((depth (+ (allout-current-depth) relative-depth))
|
1993-06-02 17:53:31 +00:00
|
|
|
(opening-on-blank (if (looking-at "^\$")
|
|
|
|
(not (setq before nil))))
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
;; bunch o vars set while computing ref-topic
|
|
|
|
opening-numbered
|
|
|
|
opening-encrypted
|
|
|
|
ref-depth
|
|
|
|
ref-bullet
|
1993-06-02 17:53:31 +00:00
|
|
|
(ref-topic (save-excursion
|
|
|
|
(cond ((< relative-depth 0)
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-ascend-to-depth depth))
|
1993-06-02 17:53:31 +00:00
|
|
|
((>= relative-depth 1) nil)
|
2002-12-16 00:20:42 +00:00
|
|
|
(t (allout-back-to-current-heading)))
|
|
|
|
(setq ref-depth (allout-recent-depth))
|
2000-06-07 13:25:06 +00:00
|
|
|
(setq ref-bullet
|
2002-12-16 00:20:42 +00:00
|
|
|
(if (> allout-recent-prefix-end 1)
|
|
|
|
(allout-recent-bullet)
|
2000-06-07 13:25:06 +00:00
|
|
|
""))
|
1993-06-02 17:53:31 +00:00
|
|
|
(setq opening-numbered
|
|
|
|
(save-excursion
|
2002-12-16 00:20:42 +00:00
|
|
|
(and allout-numbered-bullet
|
1993-06-02 17:53:31 +00:00
|
|
|
(or (<= relative-depth 0)
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-descend-to-depth depth))
|
|
|
|
(if (allout-numbered-type-prefix)
|
|
|
|
allout-numbered-bullet))))
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
(setq opening-encrypted
|
|
|
|
(save-excursion
|
|
|
|
(and allout-topic-encryption-bullet
|
|
|
|
(or (<= relative-depth 0)
|
|
|
|
(allout-descend-to-depth depth))
|
|
|
|
(if (allout-numbered-type-prefix)
|
|
|
|
allout-numbered-bullet))))
|
1993-06-02 17:53:31 +00:00
|
|
|
(point)))
|
|
|
|
dbl-space
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
doing-beginning)
|
1993-06-02 17:53:31 +00:00
|
|
|
|
|
|
|
(if (not opening-on-blank)
|
|
|
|
; Positioning and vertical
|
|
|
|
; padding - only if not
|
|
|
|
; opening-on-blank:
|
(outline-auto-activation, outline-layout)
(outline-primary-bullet, outline-plain-bullets-string)
(outline-distinctive-bullets-string, outline-old-style-prefixes)
(outline-stylish-prefixes, outline-file-xref-bullet)
(outline-use-hanging-indents, outline-bullets-string)
(outline-write-file-hook, outline-mode, outline-prefix-data)
(outline-before-change-protect, outline-make-topic-prefix)
(outline-rebullet-current-heading, outline-rebullet-heading)
(outline-listify-exposed, outline-expose-topic)
(outline-old-expose-topic, outline-exposure)
(outline-latex-verbatim-quote-curr-line)
(outline-show-current-subtree, outline-hide-current-subtree)
(outline-hide-current-leaves, outline-new-exposure): Doc fix.
1996-07-13 18:46:08 +00:00
|
|
|
(progn
|
1993-06-02 17:53:31 +00:00
|
|
|
(goto-char ref-topic)
|
|
|
|
(setq dbl-space ; Determine double space action:
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(or (and (<= relative-depth 0) ; not descending;
|
|
|
|
(save-excursion
|
(outline-primary-bullet, outline-numbered-bullet,
outline-override-protect, outline-explicitly-deactivated,
outline-init, outline-chart-subtree, outline-chart-spec,
outline-make-topic-prefix, outline-open-topic,
outline-reindent-body, outline-yank-processing, outline-yank,
outlineify-sticky): Doc fix.
1996-01-04 23:26:20 +00:00
|
|
|
;; at b-o-b or preceded by a blank line?
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(or (> 0 (forward-line -1))
|
|
|
|
(looking-at "^\\s-*$")
|
|
|
|
(bobp)))
|
1993-06-02 17:53:31 +00:00
|
|
|
(save-excursion
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
;; succeeded by a blank line?
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-end-of-current-subtree)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(bolp)))
|
1993-06-02 17:53:31 +00:00
|
|
|
(and (= ref-depth 1)
|
|
|
|
(or before
|
|
|
|
(= depth 1)
|
|
|
|
(save-excursion
|
|
|
|
;; Don't already have following
|
|
|
|
;; vertical padding:
|
2002-12-16 00:20:42 +00:00
|
|
|
(not (allout-pre-next-preface)))))))
|
1993-06-02 17:53:31 +00:00
|
|
|
|
|
|
|
; Position to prior heading,
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
; if inserting backwards, and
|
|
|
|
; not going outwards:
|
|
|
|
(if (and before (>= relative-depth 0))
|
2002-12-16 00:20:42 +00:00
|
|
|
(progn (allout-back-to-current-heading)
|
1993-06-02 17:53:31 +00:00
|
|
|
(setq doing-beginning (bobp))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(if (not (bobp))
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-previous-heading)))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(if (and before (bobp))
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
(allout-unprotected (allout-open-line-not-read-only))))
|
1993-06-02 17:53:31 +00:00
|
|
|
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(if (<= relative-depth 0)
|
1993-06-02 17:53:31 +00:00
|
|
|
;; Not going inwards, don't snug up:
|
|
|
|
(if doing-beginning
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
(allout-unprotected
|
|
|
|
(if (not dbl-space)
|
|
|
|
(allout-open-line-not-read-only)
|
|
|
|
(allout-open-line-not-read-only)
|
|
|
|
(allout-open-line-not-read-only)))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(if before
|
|
|
|
(progn (end-of-line)
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-pre-next-preface)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(while (= ?\r (following-char))
|
|
|
|
(forward-char 1))
|
|
|
|
(if (not (looking-at "^$"))
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
(allout-unprotected
|
|
|
|
(allout-open-line-not-read-only))))
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-end-of-current-subtree)))
|
1993-06-02 17:53:31 +00:00
|
|
|
;; Going inwards - double-space if first offspring is,
|
|
|
|
;; otherwise snug up.
|
|
|
|
(end-of-line) ; So we skip any concealed progeny.
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-pre-next-preface)
|
1993-06-02 17:53:31 +00:00
|
|
|
(if (bolp)
|
|
|
|
;; Blank lines between current header body and next
|
|
|
|
;; header - get to last substantive (non-white-space)
|
|
|
|
;; line in body:
|
|
|
|
(re-search-backward "[^ \t\n]" nil t))
|
|
|
|
(if (save-excursion
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-next-heading)
|
|
|
|
(if (> (allout-recent-depth) ref-depth)
|
1993-06-02 17:53:31 +00:00
|
|
|
;; This is an offspring.
|
|
|
|
(progn (forward-line -1)
|
|
|
|
(looking-at "^\\s-*$"))))
|
|
|
|
(progn (forward-line 1)
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
(allout-unprotected
|
|
|
|
(allout-open-line-not-read-only))
|
|
|
|
(forward-line 1)))
|
1993-06-02 17:53:31 +00:00
|
|
|
(end-of-line))
|
|
|
|
;;(if doing-beginning (goto-char doing-beginning))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(if (not (bobp))
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
;; We insert a newline char rather than using open-line to
|
|
|
|
;; avoid rear-stickiness inheritence of read-only property.
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(progn (if (and (not (> depth ref-depth))
|
|
|
|
(not before))
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
(allout-unprotected
|
|
|
|
(allout-open-line-not-read-only))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(if (> depth ref-depth)
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
(allout-unprotected
|
|
|
|
(allout-open-line-not-read-only))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(if dbl-space
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
(allout-unprotected
|
|
|
|
(allout-open-line-not-read-only))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(if (not before)
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-unprotected (newline 1))))))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(if dbl-space
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
(allout-unprotected (newline 1)))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(if (and (not (eobp))
|
|
|
|
(not (bolp)))
|
|
|
|
(forward-char 1))))
|
1993-06-02 17:53:31 +00:00
|
|
|
))
|
2002-12-16 00:20:42 +00:00
|
|
|
(insert (concat (allout-make-topic-prefix opening-numbered
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
t
|
|
|
|
depth)
|
|
|
|
" "))
|
1993-06-02 17:53:31 +00:00
|
|
|
|
|
|
|
;;(if doing-beginning (save-excursion (newline (if dbl-space 2 1))))
|
|
|
|
|
|
|
|
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
(allout-rebullet-heading (and use_recent_bullet ;;; solicit
|
|
|
|
ref-bullet)
|
2000-06-07 13:25:06 +00:00
|
|
|
depth ;;; depth
|
|
|
|
nil ;;; number-control
|
|
|
|
nil ;;; index
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
t)
|
|
|
|
(end-of-line)
|
1993-06-02 17:53:31 +00:00
|
|
|
)
|
|
|
|
)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
;;;_ . open-topic contingencies
|
|
|
|
;;;_ ; base topic - one from which open was issued
|
|
|
|
;;;_ , beginning char
|
(outline-primary-bullet, outline-numbered-bullet,
outline-override-protect, outline-explicitly-deactivated,
outline-init, outline-chart-subtree, outline-chart-spec,
outline-make-topic-prefix, outline-open-topic,
outline-reindent-body, outline-yank-processing, outline-yank,
outlineify-sticky): Doc fix.
1996-01-04 23:26:20 +00:00
|
|
|
;;;_ , amount of space before will be used, unless opening in place
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
;;;_ , end char will be used, unless opening before (and it still may)
|
|
|
|
;;;_ ; absolute depth of new topic
|
|
|
|
;;;_ ! insert in place - overrides most stuff
|
|
|
|
;;;_ ; relative depth of new re base
|
|
|
|
;;;_ ; before or after base topic
|
|
|
|
;;;_ ; spacing around topic, if any, prior to new topic and at same depth
|
|
|
|
;;;_ ; buffer boundaries - special provisions for beginning and end ob
|
|
|
|
;;;_ ; level 1 topics have special provisions also - double space.
|
|
|
|
;;;_ ; location of new topic
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
;;;_ > allout-open-line-not-read-only ()
|
|
|
|
(defun allout-open-line-not-read-only ()
|
|
|
|
"Open line and remove inherited read-only text prop from new char, if any."
|
|
|
|
(open-line 1)
|
|
|
|
(if (plist-get (text-properties-at (point)) 'read-only)
|
|
|
|
(allout-unprotected
|
|
|
|
(remove-text-properties (point) (+ 1 (point)) '(read-only nil)))))
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-open-subtopic (arg)
|
|
|
|
(defun allout-open-subtopic (arg)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
"Open new topic header at deeper level than the current one.
|
|
|
|
|
|
|
|
Negative universal arg means to open deeper, but place the new topic
|
|
|
|
prior to the current one."
|
1993-06-02 17:53:31 +00:00
|
|
|
(interactive "p")
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
(allout-open-topic 1 (> 0 arg) (< 1 arg)))
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-open-sibtopic (arg)
|
|
|
|
(defun allout-open-sibtopic (arg)
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
"Open new topic header at same level as the current one.
|
|
|
|
|
2000-06-07 13:25:06 +00:00
|
|
|
Positive universal arg means to use the bullet of the prior sibling.
|
|
|
|
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
Negative universal arg means to place the new topic prior to the current
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
one."
|
1993-06-02 17:53:31 +00:00
|
|
|
(interactive "p")
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
(allout-open-topic 0 (> 0 arg) (not (= 1 arg))))
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-open-supertopic (arg)
|
|
|
|
(defun allout-open-supertopic (arg)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
"Open new topic header at shallower level than the current one.
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
Negative universal arg means to open shallower, but place the new
|
|
|
|
topic prior to the current one."
|
1993-06-02 17:53:31 +00:00
|
|
|
|
|
|
|
(interactive "p")
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
(allout-open-topic -1 (> 0 arg) (< 1 arg)))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
|
|
|
;;;_ - Outline Alteration
|
|
|
|
;;;_ : Topic Modification
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ = allout-former-auto-filler
|
|
|
|
(defvar allout-former-auto-filler nil
|
2002-12-16 00:26:22 +00:00
|
|
|
"Name of modal fill function being wrapped by `allout-auto-fill'.")
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-auto-fill ()
|
|
|
|
(defun allout-auto-fill ()
|
2002-12-16 00:42:23 +00:00
|
|
|
"`allout-mode' autofill function.
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
|
|
|
|
Maintains outline hanging topic indentation if
|
2002-12-16 00:20:42 +00:00
|
|
|
`allout-use-hanging-indents' is set."
|
|
|
|
(let ((fill-prefix (if allout-use-hanging-indents
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
;; Check for topic header indentation:
|
|
|
|
(save-excursion
|
|
|
|
(beginning-of-line)
|
2002-12-16 00:20:42 +00:00
|
|
|
(if (looking-at allout-regexp)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
;; ... construct indentation to account for
|
|
|
|
;; length of topic prefix:
|
2002-12-16 00:20:42 +00:00
|
|
|
(make-string (progn (allout-end-of-prefix)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(current-column))
|
|
|
|
?\ ))))))
|
2002-12-16 00:20:42 +00:00
|
|
|
(if (or allout-former-auto-filler allout-use-hanging-indents)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(do-auto-fill))))
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-reindent-body (old-depth new-depth &optional number)
|
|
|
|
(defun allout-reindent-body (old-depth new-depth &optional number)
|
(allout-chart-subtree, allout-rebullet-topic-grunt): Don't mention in the
docstring these arguments meant for internal (recursive) use only.
(allout-char-spec): Comment out (it's not implemented).
(allout-old-expose-topic, allout-exposure): Fix docstring and add obsolescence
declaration.
(allout-flatten-exposed-to-buffer, allout-indented-exposed-to-buffer): Fix typos
in docstring.
(my-mark-marker): Doc fix.
(produce-allout-mode-map, allout-sibling-index, allout-isearch-expose)
(allout-distinctive-bullet, allout-open-topic, allout-reindent-body)
(allout-rebullet-heading, allout-process-exposed, allout-insert-listified)
(allout-latex-verb-quote, allout-insert-latex-header)
(allout-insert-latex-trailer): Make arguments match their use in
docstring.
(allout-primary-bullet, allout-old-style-prefixes, allout-inhibit-protection)
(allout-init, allout-mode, allout-before-change-protect, allout-flag-region):
Use "Emacs" instead of "emacs" in docstrings.
2004-05-21 18:10:21 +00:00
|
|
|
"Reindent body lines which were indented at OLD-DEPTH to NEW-DEPTH.
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
|
|
|
Optional arg NUMBER indicates numbering is being added, and it must
|
(outline-primary-bullet, outline-numbered-bullet,
outline-override-protect, outline-explicitly-deactivated,
outline-init, outline-chart-subtree, outline-chart-spec,
outline-make-topic-prefix, outline-open-topic,
outline-reindent-body, outline-yank-processing, outline-yank,
outlineify-sticky): Doc fix.
1996-01-04 23:26:20 +00:00
|
|
|
be accommodated.
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
|
|
|
Note that refill of indented paragraphs is not done."
|
1993-06-02 17:53:31 +00:00
|
|
|
|
|
|
|
(save-excursion
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-end-of-prefix)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(let* ((new-margin (current-column))
|
|
|
|
excess old-indent-begin old-indent-end
|
|
|
|
curr-ind
|
|
|
|
;; We want the column where the header-prefix text started
|
|
|
|
;; *before* the prefix was changed, so we infer it relative
|
|
|
|
;; to the new margin and the shift in depth:
|
|
|
|
(old-margin (+ old-depth (- new-margin new-depth))))
|
(outline-auto-activation, outline-layout)
(outline-primary-bullet, outline-plain-bullets-string)
(outline-distinctive-bullets-string, outline-old-style-prefixes)
(outline-stylish-prefixes, outline-file-xref-bullet)
(outline-use-hanging-indents, outline-bullets-string)
(outline-write-file-hook, outline-mode, outline-prefix-data)
(outline-before-change-protect, outline-make-topic-prefix)
(outline-rebullet-current-heading, outline-rebullet-heading)
(outline-listify-exposed, outline-expose-topic)
(outline-old-expose-topic, outline-exposure)
(outline-latex-verbatim-quote-curr-line)
(outline-show-current-subtree, outline-hide-current-subtree)
(outline-hide-current-leaves, outline-new-exposure): Doc fix.
1996-07-13 18:46:08 +00:00
|
|
|
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
;; Process lines up to (but excluding) next topic header:
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-unprotected
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(save-match-data
|
|
|
|
(while
|
|
|
|
(and (re-search-forward "[\n\r]\\(\\s-*\\)"
|
|
|
|
nil
|
|
|
|
t)
|
|
|
|
;; Register the indent data, before we reset the
|
(outline-auto-activation, outline-layout)
(outline-primary-bullet, outline-plain-bullets-string)
(outline-distinctive-bullets-string, outline-old-style-prefixes)
(outline-stylish-prefixes, outline-file-xref-bullet)
(outline-use-hanging-indents, outline-bullets-string)
(outline-write-file-hook, outline-mode, outline-prefix-data)
(outline-before-change-protect, outline-make-topic-prefix)
(outline-rebullet-current-heading, outline-rebullet-heading)
(outline-listify-exposed, outline-expose-topic)
(outline-old-expose-topic, outline-exposure)
(outline-latex-verbatim-quote-curr-line)
(outline-show-current-subtree, outline-hide-current-subtree)
(outline-hide-current-leaves, outline-new-exposure): Doc fix.
1996-07-13 18:46:08 +00:00
|
|
|
;; match data with a subsequent `looking-at':
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(setq old-indent-begin (match-beginning 1)
|
|
|
|
old-indent-end (match-end 1))
|
2002-12-16 00:20:42 +00:00
|
|
|
(not (looking-at allout-regexp)))
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
(if (> 0 (setq excess (- (- old-indent-end old-indent-begin)
|
|
|
|
old-margin)))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
;; Text starts left of old margin - don't adjust:
|
|
|
|
nil
|
|
|
|
;; Text was hanging at or right of old left margin -
|
|
|
|
;; reindent it, preserving its existing indentation
|
|
|
|
;; beyond the old margin:
|
|
|
|
(delete-region old-indent-begin old-indent-end)
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
(indent-to (+ new-margin excess (current-column))))))))))
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-rebullet-current-heading (arg)
|
|
|
|
(defun allout-rebullet-current-heading (arg)
|
2000-06-07 13:25:06 +00:00
|
|
|
"Solicit new bullet for current visible heading."
|
|
|
|
(interactive "p")
|
|
|
|
(let ((initial-col (current-column))
|
2002-12-16 00:20:42 +00:00
|
|
|
(on-bullet (eq (point)(allout-current-bullet-pos)))
|
2000-06-07 13:25:06 +00:00
|
|
|
(backwards (if (< arg 0)
|
|
|
|
(setq arg (* arg -1)))))
|
|
|
|
(while (> arg 0)
|
2002-12-16 00:20:42 +00:00
|
|
|
(save-excursion (allout-back-to-current-heading)
|
|
|
|
(allout-end-of-prefix)
|
|
|
|
(allout-rebullet-heading t ;;; solicit
|
2000-06-07 13:25:06 +00:00
|
|
|
nil ;;; depth
|
|
|
|
nil ;;; number-control
|
|
|
|
nil ;;; index
|
|
|
|
t)) ;;; do-successors
|
|
|
|
(setq arg (1- arg))
|
|
|
|
(if (<= arg 0)
|
|
|
|
nil
|
|
|
|
(setq initial-col nil) ; Override positioning back to init col
|
|
|
|
(if (not backwards)
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-next-visible-heading 1)
|
|
|
|
(allout-goto-prefix)
|
|
|
|
(allout-next-visible-heading -1))))
|
2000-06-07 13:25:06 +00:00
|
|
|
(message "Done.")
|
2002-12-16 00:20:42 +00:00
|
|
|
(cond (on-bullet (goto-char (allout-current-bullet-pos)))
|
2000-06-07 13:25:06 +00:00
|
|
|
(initial-col (move-to-column initial-col)))))
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-rebullet-heading (&optional solicit ...)
|
|
|
|
(defun allout-rebullet-heading (&optional solicit
|
1993-06-02 17:53:31 +00:00
|
|
|
new-depth
|
|
|
|
number-control
|
|
|
|
index
|
|
|
|
do-successors)
|
|
|
|
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
"Adjust bullet of current topic prefix.
|
1993-06-02 17:53:31 +00:00
|
|
|
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
All args are optional.
|
|
|
|
|
2000-06-07 13:25:06 +00:00
|
|
|
If SOLICIT is non-nil, then the choice of bullet is solicited from
|
|
|
|
user. If it's a character, then that character is offered as the
|
|
|
|
default, otherwise the one suited to the context \(according to
|
|
|
|
distinction or depth) is offered. If non-nil, then the
|
|
|
|
context-specific bullet is just used.
|
1993-06-02 17:53:31 +00:00
|
|
|
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
Second arg DEPTH forces the topic prefix to that depth, regardless
|
2000-06-07 13:25:06 +00:00
|
|
|
of the topic's current depth.
|
1993-06-02 17:53:31 +00:00
|
|
|
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
Third arg NUMBER-CONTROL can force the prefix to or away from
|
2002-12-16 00:20:42 +00:00
|
|
|
numbered form. It has effect only if `allout-numbered-bullet' is
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
non-nil and soliciting was not explicitly invoked (via first arg).
|
|
|
|
Its effect, numbering or denumbering, then depends on the setting
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
of the forth arg, INDEX.
|
1993-06-02 17:53:31 +00:00
|
|
|
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
If NUMBER-CONTROL is non-nil and forth arg INDEX is nil, then the
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
prefix of the topic is forced to be non-numbered. Null index and
|
|
|
|
non-nil NUMBER-CONTROL forces denumbering. Non-nil INDEX (and
|
|
|
|
non-nil NUMBER-CONTROL) forces a numbered-prefix form. If non-nil
|
|
|
|
INDEX is a number, then that number is used for the numbered
|
|
|
|
prefix. Non-nil and non-number means that the index for the
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
numbered prefix will be derived by allout-make-topic-prefix.
|
1993-06-02 17:53:31 +00:00
|
|
|
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
Fifth arg DO-SUCCESSORS t means re-resolve count on succeeding
|
|
|
|
siblings.
|
1993-06-02 17:53:31 +00:00
|
|
|
|
2002-12-16 00:20:42 +00:00
|
|
|
Cf vars `allout-stylish-prefixes', `allout-old-style-prefixes',
|
|
|
|
and `allout-numbered-bullet', which all affect the behavior of
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
this function."
|
1993-06-02 17:53:31 +00:00
|
|
|
|
2002-12-16 00:20:42 +00:00
|
|
|
(let* ((current-depth (allout-depth))
|
1993-06-02 17:53:31 +00:00
|
|
|
(new-depth (or new-depth current-depth))
|
2002-12-16 00:20:42 +00:00
|
|
|
(mb allout-recent-prefix-beginning)
|
|
|
|
(me allout-recent-prefix-end)
|
1993-06-02 17:53:31 +00:00
|
|
|
(current-bullet (buffer-substring (- me 1) me))
|
2002-12-16 00:20:42 +00:00
|
|
|
(new-prefix (allout-make-topic-prefix current-bullet
|
1993-06-02 17:53:31 +00:00
|
|
|
nil
|
|
|
|
new-depth
|
|
|
|
solicit
|
|
|
|
number-control
|
|
|
|
index)))
|
|
|
|
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
;; Is new one is identical to old?
|
1993-06-02 17:53:31 +00:00
|
|
|
(if (and (= current-depth new-depth)
|
|
|
|
(string= current-bullet
|
|
|
|
(substring new-prefix (1- (length new-prefix)))))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
;; Nothing to do:
|
1993-06-02 17:53:31 +00:00
|
|
|
t
|
|
|
|
|
|
|
|
;; New prefix probably different from old:
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
; get rid of old one:
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-unprotected (delete-region mb me))
|
1993-06-02 17:53:31 +00:00
|
|
|
(goto-char mb)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
; Dispense with number if
|
|
|
|
; numbered-bullet prefix:
|
2002-12-16 00:20:42 +00:00
|
|
|
(if (and allout-numbered-bullet
|
|
|
|
(string= allout-numbered-bullet current-bullet)
|
1993-06-02 17:53:31 +00:00
|
|
|
(looking-at "[0-9]+"))
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-unprotected
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(delete-region (match-beginning 0)(match-end 0))))
|
1993-06-02 17:53:31 +00:00
|
|
|
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
; Put in new prefix:
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-unprotected (insert new-prefix))
|
1993-06-02 17:53:31 +00:00
|
|
|
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
;; Reindent the body if elected, margin changed, and not encrypted body:
|
2002-12-16 00:20:42 +00:00
|
|
|
(if (and allout-reindent-bodies
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
(not (= new-depth current-depth))
|
|
|
|
(not (allout-encrypted-topic-p)))
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-reindent-body current-depth new-depth))
|
1993-06-02 17:53:31 +00:00
|
|
|
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
;; Recursively rectify successive siblings of orig topic if
|
|
|
|
;; caller elected for it:
|
|
|
|
(if do-successors
|
|
|
|
(save-excursion
|
2002-12-16 00:20:42 +00:00
|
|
|
(while (allout-next-sibling new-depth nil)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(setq index
|
|
|
|
(cond ((numberp index) (1+ index))
|
2002-12-16 00:20:42 +00:00
|
|
|
((not number-control) (allout-sibling-index))))
|
|
|
|
(if (allout-numbered-type-prefix)
|
|
|
|
(allout-rebullet-heading nil ;;; solicit
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
new-depth ;;; new-depth
|
|
|
|
number-control;;; number-control
|
|
|
|
index ;;; index
|
|
|
|
nil))))) ;;;(dont!)do-successors
|
|
|
|
) ; (if (and (= current-depth new-depth)...))
|
2002-12-16 00:20:42 +00:00
|
|
|
) ; let* ((current-depth (allout-depth))...)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
) ; defun
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-rebullet-topic (arg)
|
|
|
|
(defun allout-rebullet-topic (arg)
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
"Rebullet the visible topic containing point and all contained subtopics.
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
Descends into invisible as well as visible topics, however.
|
1993-06-02 17:53:31 +00:00
|
|
|
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
With repeat count, shift topic depth by that amount."
|
1993-06-02 17:53:31 +00:00
|
|
|
(interactive "P")
|
|
|
|
(let ((start-col (current-column))
|
|
|
|
(was-eol (eolp)))
|
|
|
|
(save-excursion
|
|
|
|
;; Normalize arg:
|
|
|
|
(cond ((null arg) (setq arg 0))
|
|
|
|
((listp arg) (setq arg (car arg))))
|
|
|
|
;; Fill the user in, in case we're shifting a big topic:
|
|
|
|
(if (not (zerop arg)) (message "Shifting..."))
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-back-to-current-heading)
|
|
|
|
(if (<= (+ (allout-recent-depth) arg) 0)
|
1993-06-02 17:53:31 +00:00
|
|
|
(error "Attempt to shift topic below level 1"))
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-rebullet-topic-grunt arg)
|
1993-06-02 17:53:31 +00:00
|
|
|
(if (not (zerop arg)) (message "Shifting... done.")))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(move-to-column (max 0 (+ start-col arg)))))
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-rebullet-topic-grunt (&optional relative-depth ...)
|
|
|
|
(defun allout-rebullet-topic-grunt (&optional relative-depth
|
1993-06-02 17:53:31 +00:00
|
|
|
starting-depth
|
|
|
|
starting-point
|
|
|
|
index
|
|
|
|
do-successors)
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
"Like `allout-rebullet-topic', but on nearest containing topic
|
|
|
|
\(visible or not).
|
1993-06-02 17:53:31 +00:00
|
|
|
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
See `allout-rebullet-heading' for rebulleting behavior.
|
1993-06-02 17:53:31 +00:00
|
|
|
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
All arguments are optional.
|
1993-06-02 17:53:31 +00:00
|
|
|
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
First arg RELATIVE-DEPTH means to shift the depth of the entire
|
|
|
|
topic that amount.
|
(allout-chart-subtree, allout-rebullet-topic-grunt): Don't mention in the
docstring these arguments meant for internal (recursive) use only.
(allout-char-spec): Comment out (it's not implemented).
(allout-old-expose-topic, allout-exposure): Fix docstring and add obsolescence
declaration.
(allout-flatten-exposed-to-buffer, allout-indented-exposed-to-buffer): Fix typos
in docstring.
(my-mark-marker): Doc fix.
(produce-allout-mode-map, allout-sibling-index, allout-isearch-expose)
(allout-distinctive-bullet, allout-open-topic, allout-reindent-body)
(allout-rebullet-heading, allout-process-exposed, allout-insert-listified)
(allout-latex-verb-quote, allout-insert-latex-header)
(allout-insert-latex-trailer): Make arguments match their use in
docstring.
(allout-primary-bullet, allout-old-style-prefixes, allout-inhibit-protection)
(allout-init, allout-mode, allout-before-change-protect, allout-flag-region):
Use "Emacs" instead of "emacs" in docstrings.
2004-05-21 18:10:21 +00:00
|
|
|
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
The rest of the args are for internal recursive use by the function
|
|
|
|
itself. The are STARTING-DEPTH, STARTING-POINT, and INDEX."
|
1993-06-02 17:53:31 +00:00
|
|
|
|
|
|
|
(let* ((relative-depth (or relative-depth 0))
|
2002-12-16 00:20:42 +00:00
|
|
|
(new-depth (allout-depth))
|
1993-06-02 17:53:31 +00:00
|
|
|
(starting-depth (or starting-depth new-depth))
|
|
|
|
(on-starting-call (null starting-point))
|
|
|
|
(index (or index
|
|
|
|
;; Leave index null on starting call, so rebullet-heading
|
|
|
|
;; calculates it at what might be new depth:
|
|
|
|
(and (or (zerop relative-depth)
|
|
|
|
(not on-starting-call))
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-sibling-index))))
|
1993-06-02 17:53:31 +00:00
|
|
|
(moving-outwards (< 0 relative-depth))
|
|
|
|
(starting-point (or starting-point (point))))
|
|
|
|
|
|
|
|
;; Sanity check for excessive promotion done only on starting call:
|
|
|
|
(and on-starting-call
|
|
|
|
moving-outwards
|
|
|
|
(> 0 (+ starting-depth relative-depth))
|
2001-07-16 11:39:42 +00:00
|
|
|
(error "Attempt to shift topic out beyond level 1")) ;;; ====>
|
1993-06-02 17:53:31 +00:00
|
|
|
|
|
|
|
(cond ((= starting-depth new-depth)
|
|
|
|
;; We're at depth to work on this one:
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-rebullet-heading nil ;;; solicit
|
1993-06-02 17:53:31 +00:00
|
|
|
(+ starting-depth ;;; starting-depth
|
|
|
|
relative-depth)
|
|
|
|
nil ;;; number
|
|
|
|
index ;;; index
|
|
|
|
;; Every contained topic will get hit,
|
|
|
|
;; and we have to get to outside ones
|
|
|
|
;; deliberately:
|
|
|
|
nil) ;;; do-successors
|
|
|
|
;; ... and work on subsequent ones which are at greater depth:
|
|
|
|
(setq index 0)
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-next-heading)
|
1993-06-02 17:53:31 +00:00
|
|
|
(while (and (not (eobp))
|
2002-12-16 00:20:42 +00:00
|
|
|
(< starting-depth (allout-recent-depth)))
|
1993-06-02 17:53:31 +00:00
|
|
|
(setq index (1+ index))
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-rebullet-topic-grunt relative-depth ;;; relative-depth
|
1993-06-02 17:53:31 +00:00
|
|
|
(1+ starting-depth);;;starting-depth
|
|
|
|
starting-point ;;; starting-point
|
|
|
|
index))) ;;; index
|
|
|
|
|
|
|
|
((< starting-depth new-depth)
|
|
|
|
;; Rare case - subtopic more than one level deeper than parent.
|
|
|
|
;; Treat this one at an even deeper level:
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-rebullet-topic-grunt relative-depth ;;; relative-depth
|
1993-06-02 17:53:31 +00:00
|
|
|
new-depth ;;; starting-depth
|
|
|
|
starting-point ;;; starting-point
|
|
|
|
index))) ;;; index
|
|
|
|
|
|
|
|
(if on-starting-call
|
|
|
|
(progn
|
|
|
|
;; Rectify numbering of former siblings of the adjusted topic,
|
|
|
|
;; if topic has changed depth
|
|
|
|
(if (or do-successors
|
|
|
|
(and (not (zerop relative-depth))
|
2002-12-16 00:20:42 +00:00
|
|
|
(or (= (allout-recent-depth) starting-depth)
|
|
|
|
(= (allout-recent-depth) (+ starting-depth
|
1993-06-02 17:53:31 +00:00
|
|
|
relative-depth)))))
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-rebullet-heading nil nil nil nil t))
|
1993-06-02 17:53:31 +00:00
|
|
|
;; Now rectify numbering of new siblings of the adjusted topic,
|
|
|
|
;; if depth has been changed:
|
|
|
|
(progn (goto-char starting-point)
|
|
|
|
(if (not (zerop relative-depth))
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-rebullet-heading nil nil nil nil t)))))
|
1993-06-02 17:53:31 +00:00
|
|
|
)
|
|
|
|
)
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-renumber-to-depth (&optional depth)
|
|
|
|
(defun allout-renumber-to-depth (&optional depth)
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
"Renumber siblings at current depth.
|
|
|
|
|
|
|
|
Affects superior topics if optional arg DEPTH is less than current depth.
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
|
|
|
Returns final depth."
|
|
|
|
|
|
|
|
;; Proceed by level, processing subsequent siblings on each,
|
|
|
|
;; ascending until we get shallower than the start depth:
|
|
|
|
|
2002-12-16 00:20:42 +00:00
|
|
|
(let ((ascender (allout-depth))
|
2000-06-07 13:25:06 +00:00
|
|
|
was-eobp)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(while (and (not (eobp))
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-depth)
|
|
|
|
(>= (allout-recent-depth) depth)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(>= ascender depth))
|
|
|
|
; Skip over all topics at
|
|
|
|
; lesser depths, which can not
|
|
|
|
; have been disturbed:
|
2000-06-07 13:25:06 +00:00
|
|
|
(while (and (not (setq was-eobp (eobp)))
|
2002-12-16 00:20:42 +00:00
|
|
|
(> (allout-recent-depth) ascender))
|
|
|
|
(allout-next-heading))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
; Prime ascender for ascension:
|
2002-12-16 00:20:42 +00:00
|
|
|
(setq ascender (1- (allout-recent-depth)))
|
|
|
|
(if (>= (allout-recent-depth) depth)
|
|
|
|
(allout-rebullet-heading nil ;;; solicit
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
nil ;;; depth
|
|
|
|
nil ;;; number-control
|
|
|
|
nil ;;; index
|
2000-06-07 13:25:06 +00:00
|
|
|
t)) ;;; do-successors
|
|
|
|
(if was-eobp (goto-char (point-max)))))
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-recent-depth))
|
|
|
|
;;;_ > allout-number-siblings (&optional denumber)
|
|
|
|
(defun allout-number-siblings (&optional denumber)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
"Assign numbered topic prefix to this topic and its siblings.
|
1993-06-02 17:53:31 +00:00
|
|
|
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
With universal argument, denumber - assign default bullet to this
|
|
|
|
topic and its siblings.
|
1993-06-02 17:53:31 +00:00
|
|
|
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
With repeated universal argument (`^U^U'), solicit bullet for each
|
|
|
|
rebulleting each topic at this level."
|
1993-06-02 17:53:31 +00:00
|
|
|
|
|
|
|
(interactive "P")
|
|
|
|
|
|
|
|
(save-excursion
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-back-to-current-heading)
|
|
|
|
(allout-beginning-of-level)
|
|
|
|
(let ((depth (allout-recent-depth))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(index (if (not denumber) 1))
|
1993-06-02 17:53:31 +00:00
|
|
|
(use-bullet (equal '(16) denumber))
|
|
|
|
(more t))
|
|
|
|
(while more
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-rebullet-heading use-bullet ;;; solicit
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
depth ;;; depth
|
1993-06-02 17:53:31 +00:00
|
|
|
t ;;; number-control
|
|
|
|
index ;;; index
|
|
|
|
nil) ;;; do-successors
|
|
|
|
(if index (setq index (1+ index)))
|
2002-12-16 00:20:42 +00:00
|
|
|
(setq more (allout-next-sibling depth nil))))))
|
|
|
|
;;;_ > allout-shift-in (arg)
|
|
|
|
(defun allout-shift-in (arg)
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
"Increase depth of current heading and any topics collapsed within it.
|
|
|
|
|
|
|
|
We disallow shifts that would result in the topic having a depth more than
|
|
|
|
one level greater than the immediately previous topic, to avoid containment
|
|
|
|
discontinuity. The first topic in the file can be adjusted to any positive
|
|
|
|
depth, however."
|
1993-06-02 17:53:31 +00:00
|
|
|
(interactive "p")
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
(if (> arg 0)
|
|
|
|
(save-excursion
|
|
|
|
(allout-back-to-current-heading)
|
|
|
|
(if (not (bobp))
|
|
|
|
(let* ((current-depth (allout-recent-depth))
|
|
|
|
(start-point (point))
|
|
|
|
(predecessor-depth (progn
|
|
|
|
(forward-char -1)
|
|
|
|
(allout-goto-prefix)
|
|
|
|
(if (< (point) start-point)
|
|
|
|
(allout-recent-depth)
|
|
|
|
0))))
|
|
|
|
(if (and (> predecessor-depth 0)
|
|
|
|
(> (+ current-depth arg)
|
|
|
|
(1+ predecessor-depth)))
|
|
|
|
(error (concat "May not shift deeper than offspring depth"
|
|
|
|
" of previous topic")))))))
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-rebullet-topic arg))
|
|
|
|
;;;_ > allout-shift-out (arg)
|
|
|
|
(defun allout-shift-out (arg)
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
"Decrease depth of current heading and any topics collapsed within it.
|
|
|
|
|
|
|
|
We disallow shifts that would result in the topic having a depth more than
|
|
|
|
one level greater than the immediately previous topic, to avoid containment
|
|
|
|
discontinuity. The first topic in the file can be adjusted to any positive
|
|
|
|
depth, however."
|
1993-06-02 17:53:31 +00:00
|
|
|
(interactive "p")
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
(if (< arg 0)
|
|
|
|
(allout-shift-in (* arg -1)))
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-rebullet-topic (* arg -1)))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
;;;_ : Surgery (kill-ring) functions with special provisions for outlines:
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-kill-line (&optional arg)
|
|
|
|
(defun allout-kill-line (&optional arg)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
"Kill line, adjusting subsequent lines suitably for outline mode."
|
1993-06-02 17:53:31 +00:00
|
|
|
|
|
|
|
(interactive "*P")
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
|
|
|
|
(let ((start-point (point))
|
|
|
|
(leading-kill-ring-entry (car kill-ring))
|
|
|
|
binding)
|
|
|
|
|
|
|
|
(condition-case err
|
|
|
|
|
|
|
|
(if (not (and (allout-mode-p) ; active outline mode,
|
|
|
|
allout-numbered-bullet ; numbers may need adjustment,
|
|
|
|
(bolp) ; may be clipping topic head,
|
|
|
|
(looking-at allout-regexp))) ; are clipping topic head.
|
|
|
|
;; Above conditions do not obtain - just do a regular kill:
|
|
|
|
(kill-line arg)
|
|
|
|
;; Ah, have to watch out for adjustments:
|
|
|
|
(let* ((depth (allout-depth))
|
|
|
|
(start-point (point))
|
|
|
|
binding)
|
|
|
|
; Do the kill, presenting option
|
|
|
|
; for read-only text:
|
|
|
|
(kill-line arg)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
; Provide some feedback:
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
(sit-for 0)
|
|
|
|
(save-excursion
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
; Start with the topic
|
|
|
|
; following killed line:
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
(if (not (looking-at allout-regexp))
|
|
|
|
(allout-next-heading))
|
|
|
|
(allout-renumber-to-depth depth))))
|
|
|
|
;; condition case handler:
|
|
|
|
(text-read-only
|
|
|
|
(goto-char start-point)
|
|
|
|
(setq binding (where-is-internal 'allout-kill-topic nil t))
|
|
|
|
(cond ((not binding) (setq binding ""))
|
|
|
|
((arrayp binding)
|
|
|
|
(setq binding (mapconcat 'key-description (list binding) ", ")))
|
|
|
|
(t (setq binding (format "%s" binding))))
|
|
|
|
;; ensure prior kill-ring leader is properly restored:
|
|
|
|
(if (eq leading-kill-ring-entry (cadr kill-ring))
|
|
|
|
;; Aborted kill got pushed on front - ditch it:
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
(let ((got (car kill-ring)))
|
|
|
|
(setq kill-ring (cdr kill-ring))
|
|
|
|
got)
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
;; Aborted kill got appended to prior - resurrect prior:
|
|
|
|
(setcar kill-ring leading-kill-ring-entry))
|
|
|
|
;; make last-command skip this failed command, so kill-appending
|
|
|
|
;; conditions track:
|
|
|
|
(setq this-command last-command)
|
|
|
|
(error (concat "read-only text hit - use %s allout-kill-topic to"
|
|
|
|
" discard collapsed stuff")
|
|
|
|
binding)))
|
|
|
|
)
|
|
|
|
)
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-kill-topic ()
|
|
|
|
(defun allout-kill-topic ()
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
"Kill topic together with subtopics.
|
|
|
|
|
|
|
|
Leaves primary topic's trailing vertical whitespace, if any."
|
1993-06-02 17:53:31 +00:00
|
|
|
|
|
|
|
;; Some finagling is done to make complex topic kills appear faster
|
|
|
|
;; than they actually are. A redisplay is performed immediately
|
|
|
|
;; after the region is disposed of, though the renumbering process
|
|
|
|
;; has yet to be performed. This means that there may appear to be
|
|
|
|
;; a lag *after* the kill has been performed.
|
|
|
|
|
|
|
|
(interactive)
|
2002-12-16 00:20:42 +00:00
|
|
|
(let* ((beg (prog1 (allout-back-to-current-heading)(beginning-of-line)))
|
|
|
|
(depth (allout-recent-depth)))
|
|
|
|
(allout-end-of-current-subtree)
|
1993-06-02 17:53:31 +00:00
|
|
|
(if (not (eobp))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(if (or (not (looking-at "^$"))
|
|
|
|
;; A blank line - cut it with this topic *unless* this
|
|
|
|
;; is the last topic at this level, in which case
|
|
|
|
;; we'll leave the blank line as part of the
|
|
|
|
;; containing topic:
|
|
|
|
(save-excursion
|
2002-12-16 00:20:42 +00:00
|
|
|
(and (allout-next-heading)
|
|
|
|
(>= (allout-recent-depth) depth))))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(forward-char 1)))
|
(outline-auto-activation, outline-layout)
(outline-primary-bullet, outline-plain-bullets-string)
(outline-distinctive-bullets-string, outline-old-style-prefixes)
(outline-stylish-prefixes, outline-file-xref-bullet)
(outline-use-hanging-indents, outline-bullets-string)
(outline-write-file-hook, outline-mode, outline-prefix-data)
(outline-before-change-protect, outline-make-topic-prefix)
(outline-rebullet-current-heading, outline-rebullet-heading)
(outline-listify-exposed, outline-expose-topic)
(outline-old-expose-topic, outline-exposure)
(outline-latex-verbatim-quote-curr-line)
(outline-show-current-subtree, outline-hide-current-subtree)
(outline-hide-current-leaves, outline-new-exposure): Doc fix.
1996-07-13 18:46:08 +00:00
|
|
|
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
(allout-unprotected (kill-region beg (point)))
|
1993-06-02 17:53:31 +00:00
|
|
|
(sit-for 0)
|
|
|
|
(save-excursion
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-renumber-to-depth depth))))
|
|
|
|
;;;_ > allout-yank-processing ()
|
|
|
|
(defun allout-yank-processing (&optional arg)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
"Incidental outline-specific business to be done just after text yanks.
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
Does depth adjustment of yanked topics, when:
|
1993-06-02 17:53:31 +00:00
|
|
|
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
1 the stuff being yanked starts with a valid outline header prefix, and
|
|
|
|
2 it is being yanked at the end of a line which consists of only a valid
|
1993-06-02 17:53:31 +00:00
|
|
|
topic prefix.
|
|
|
|
|
(outline-primary-bullet, outline-numbered-bullet,
outline-override-protect, outline-explicitly-deactivated,
outline-init, outline-chart-subtree, outline-chart-spec,
outline-make-topic-prefix, outline-open-topic,
outline-reindent-body, outline-yank-processing, outline-yank,
outlineify-sticky): Doc fix.
1996-01-04 23:26:20 +00:00
|
|
|
Also, adjusts numbering of subsequent siblings when appropriate.
|
1993-06-02 17:53:31 +00:00
|
|
|
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
Depth adjustment alters the depth of all the topics being yanked
|
|
|
|
the amount it takes to make the first topic have the depth of the
|
|
|
|
header into which it's being yanked.
|
1993-06-02 17:53:31 +00:00
|
|
|
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
The point is left in front of yanked, adjusted topics, rather than
|
|
|
|
at the end (and vice-versa with the mark). Non-adjusted yanks,
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
however, are left exactly like normal, non-allout-specific yanks."
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
|
|
|
(interactive "*P")
|
|
|
|
; Get to beginning, leaving
|
|
|
|
; region around subject:
|
2000-06-07 13:25:06 +00:00
|
|
|
(if (< (my-mark-marker t) (point))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(exchange-point-and-mark))
|
|
|
|
(let* ((subj-beg (point))
|
2000-06-07 13:25:06 +00:00
|
|
|
(subj-end (my-mark-marker t))
|
|
|
|
;; 'resituate' if yanking an entire topic into topic header:
|
2002-12-16 00:20:42 +00:00
|
|
|
(resituate (and (allout-e-o-prefix-p)
|
|
|
|
(looking-at (concat "\\(" allout-regexp "\\)"))
|
|
|
|
(allout-prefix-data (match-beginning 1)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(match-end 1))))
|
(outline-auto-activation, outline-layout)
(outline-primary-bullet, outline-plain-bullets-string)
(outline-distinctive-bullets-string, outline-old-style-prefixes)
(outline-stylish-prefixes, outline-file-xref-bullet)
(outline-use-hanging-indents, outline-bullets-string)
(outline-write-file-hook, outline-mode, outline-prefix-data)
(outline-before-change-protect, outline-make-topic-prefix)
(outline-rebullet-current-heading, outline-rebullet-heading)
(outline-listify-exposed, outline-expose-topic)
(outline-old-expose-topic, outline-exposure)
(outline-latex-verbatim-quote-curr-line)
(outline-show-current-subtree, outline-hide-current-subtree)
(outline-hide-current-leaves, outline-new-exposure): Doc fix.
1996-07-13 18:46:08 +00:00
|
|
|
;; `rectify-numbering' if resituating (where several topics may
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
;; be resituating) or yanking a topic into a topic slot (bol):
|
|
|
|
(rectify-numbering (or resituate
|
2002-12-16 00:20:42 +00:00
|
|
|
(and (bolp) (looking-at allout-regexp)))))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(if resituate
|
|
|
|
; The yanked stuff is a topic:
|
|
|
|
(let* ((prefix-len (- (match-end 1) subj-beg))
|
2002-12-16 00:20:42 +00:00
|
|
|
(subj-depth (allout-recent-depth))
|
|
|
|
(prefix-bullet (allout-recent-bullet))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(adjust-to-depth
|
|
|
|
;; Nil if adjustment unnecessary, otherwise depth to which
|
|
|
|
;; adjustment should be made:
|
|
|
|
(save-excursion
|
|
|
|
(and (goto-char subj-end)
|
|
|
|
(eolp)
|
|
|
|
(goto-char subj-beg)
|
2002-12-16 00:20:42 +00:00
|
|
|
(and (looking-at allout-regexp)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(progn
|
|
|
|
(beginning-of-line)
|
|
|
|
(not (= (point) subj-beg)))
|
2002-12-16 00:20:42 +00:00
|
|
|
(looking-at allout-regexp)
|
|
|
|
(allout-prefix-data (match-beginning 0)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(match-end 0)))
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-recent-depth))))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
done
|
|
|
|
(more t))
|
2002-12-16 00:20:42 +00:00
|
|
|
(setq rectify-numbering allout-numbered-bullet)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(if adjust-to-depth
|
|
|
|
; Do the adjustment:
|
|
|
|
(progn
|
|
|
|
(message "... yanking") (sit-for 0)
|
|
|
|
(save-restriction
|
|
|
|
(narrow-to-region subj-beg subj-end)
|
|
|
|
; Trim off excessive blank
|
|
|
|
; line at end, if any:
|
|
|
|
(goto-char (point-max))
|
|
|
|
(if (looking-at "^$")
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-unprotected (delete-char -1)))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
; Work backwards, with each
|
|
|
|
; shallowest level,
|
|
|
|
; successively excluding the
|
|
|
|
; last processed topic from
|
|
|
|
; the narrow region:
|
|
|
|
(while more
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-back-to-current-heading)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
; go as high as we can in each bunch:
|
2002-12-16 00:20:42 +00:00
|
|
|
(while (allout-ascend-to-depth (1- (allout-depth))))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(save-excursion
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-rebullet-topic-grunt (- adjust-to-depth
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
subj-depth))
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-depth))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(if (setq more (not (bobp)))
|
|
|
|
(progn (widen)
|
|
|
|
(forward-char -1)
|
|
|
|
(narrow-to-region subj-beg (point))))))
|
|
|
|
(message "")
|
|
|
|
;; Preserve new bullet if it's a distinctive one, otherwise
|
|
|
|
;; use old one:
|
|
|
|
(if (string-match (regexp-quote prefix-bullet)
|
2002-12-16 00:20:42 +00:00
|
|
|
allout-distinctive-bullets-string)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
; Delete from bullet of old to
|
|
|
|
; before bullet of new:
|
|
|
|
(progn
|
|
|
|
(beginning-of-line)
|
|
|
|
(delete-region (point) subj-beg)
|
2000-06-07 13:25:06 +00:00
|
|
|
(set-marker (my-mark-marker t) subj-end)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(goto-char subj-beg)
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-end-of-prefix))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
; Delete base subj prefix,
|
|
|
|
; leaving old one:
|
|
|
|
(delete-region (point) (+ (point)
|
|
|
|
prefix-len
|
|
|
|
(- adjust-to-depth subj-depth)))
|
|
|
|
; and delete residual subj
|
|
|
|
; prefix digits and space:
|
|
|
|
(while (looking-at "[0-9]") (delete-char 1))
|
|
|
|
(if (looking-at " ") (delete-char 1))))
|
|
|
|
(exchange-point-and-mark))))
|
|
|
|
(if rectify-numbering
|
(outline-auto-activation, outline-layout)
(outline-primary-bullet, outline-plain-bullets-string)
(outline-distinctive-bullets-string, outline-old-style-prefixes)
(outline-stylish-prefixes, outline-file-xref-bullet)
(outline-use-hanging-indents, outline-bullets-string)
(outline-write-file-hook, outline-mode, outline-prefix-data)
(outline-before-change-protect, outline-make-topic-prefix)
(outline-rebullet-current-heading, outline-rebullet-heading)
(outline-listify-exposed, outline-expose-topic)
(outline-old-expose-topic, outline-exposure)
(outline-latex-verbatim-quote-curr-line)
(outline-show-current-subtree, outline-hide-current-subtree)
(outline-hide-current-leaves, outline-new-exposure): Doc fix.
1996-07-13 18:46:08 +00:00
|
|
|
(progn
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(save-excursion
|
|
|
|
; Give some preliminary feedback:
|
|
|
|
(message "... reconciling numbers") (sit-for 0)
|
|
|
|
; ... and renumber, in case necessary:
|
|
|
|
(goto-char subj-beg)
|
2002-12-16 00:20:42 +00:00
|
|
|
(if (allout-goto-prefix)
|
|
|
|
(allout-rebullet-heading nil ;;; solicit
|
|
|
|
(allout-depth) ;;; depth
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
nil ;;; number-control
|
|
|
|
nil ;;; index
|
|
|
|
t))
|
|
|
|
(message ""))))
|
|
|
|
(if (not resituate)
|
|
|
|
(exchange-point-and-mark))))
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-yank (&optional arg)
|
|
|
|
(defun allout-yank (&optional arg)
|
2002-12-16 00:42:23 +00:00
|
|
|
"`allout-mode' yank, with depth and numbering adjustment of yanked topics.
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
|
(outline-primary-bullet, outline-numbered-bullet,
outline-override-protect, outline-explicitly-deactivated,
outline-init, outline-chart-subtree, outline-chart-spec,
outline-make-topic-prefix, outline-open-topic,
outline-reindent-body, outline-yank-processing, outline-yank,
outlineify-sticky): Doc fix.
1996-01-04 23:26:20 +00:00
|
|
|
Non-topic yanks work no differently than normal yanks.
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
|
|
|
If a topic is being yanked into a bare topic prefix, the depth of the
|
|
|
|
yanked topic is adjusted to the depth of the topic prefix.
|
|
|
|
|
2002-12-16 00:26:22 +00:00
|
|
|
1 we're yanking in an `allout-mode' buffer
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
2 the stuff being yanked starts with a valid outline header prefix, and
|
|
|
|
3 it is being yanked at the end of a line which consists of only a valid
|
|
|
|
topic prefix.
|
|
|
|
|
|
|
|
If these conditions hold then the depth of the yanked topics are all
|
|
|
|
adjusted the amount it takes to make the first one at the depth of the
|
|
|
|
header into which it's being yanked.
|
|
|
|
|
|
|
|
The point is left in front of yanked, adjusted topics, rather than
|
|
|
|
at the end (and vice-versa with the mark). Non-adjusted yanks,
|
|
|
|
however, (ones that don't qualify for adjustment) are handled
|
|
|
|
exactly like normal yanks.
|
|
|
|
|
(outline-primary-bullet, outline-numbered-bullet,
outline-override-protect, outline-explicitly-deactivated,
outline-init, outline-chart-subtree, outline-chart-spec,
outline-make-topic-prefix, outline-open-topic,
outline-reindent-body, outline-yank-processing, outline-yank,
outlineify-sticky): Doc fix.
1996-01-04 23:26:20 +00:00
|
|
|
Numbering of yanked topics, and the successive siblings at the depth
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
into which they're being yanked, is adjusted.
|
|
|
|
|
(my-mark-marker, allout-isearch-prior-pos, allout-unprotected,
allout-undo-aggregation, allout-snug-back, allout-post-command-business,
allout-flag-region, isearch-reenable-font-lock, allout-yank,
allout-insert-latex-header, allout-insert-latex-trailer,
allout-latex-verbatim-quote-curr-line, allout-latexify-exposed,
allout-latex-verb-quote): Fix typos in docstrings.
(allout-enwrap-isearch, regexp-sans-escapes): Doc fix.
(allout-unprotected, allout-prefix-data): Improve argument/docstring
consistency.
(allout-chart-subtree): Fix argument spec.
(allout-open-topic): Rename `use_sib_bullet' argument to `use-sib-bullet'.
Doc fix.
2005-07-13 10:15:39 +00:00
|
|
|
`allout-yank-pop' works with `allout-yank' just like normal `yank-pop'
|
|
|
|
works with normal `yank' in non-outline buffers."
|
1993-06-02 17:53:31 +00:00
|
|
|
|
|
|
|
(interactive "*P")
|
|
|
|
(setq this-command 'yank)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(yank arg)
|
2002-12-16 00:20:42 +00:00
|
|
|
(if (allout-mode-p)
|
|
|
|
(allout-yank-processing)))
|
|
|
|
;;;_ > allout-yank-pop (&optional arg)
|
|
|
|
(defun allout-yank-pop (&optional arg)
|
2002-12-16 00:26:22 +00:00
|
|
|
"Yank-pop like `allout-yank' when popping to bare outline prefixes.
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
|
|
|
|
Adapts level of popped topics to level of fresh prefix.
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
|
|
|
Note - prefix changes to distinctive bullets will stick, if followed
|
|
|
|
by pops to non-distinctive yanks. Bug..."
|
1993-06-02 17:53:31 +00:00
|
|
|
|
|
|
|
(interactive "*p")
|
|
|
|
(setq this-command 'yank)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(yank-pop arg)
|
2002-12-16 00:20:42 +00:00
|
|
|
(if (allout-mode-p)
|
|
|
|
(allout-yank-processing)))
|
1993-06-02 17:53:31 +00:00
|
|
|
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
;;;_ - Specialty bullet functions
|
|
|
|
;;;_ : File Cross references
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-resolve-xref ()
|
|
|
|
(defun allout-resolve-xref ()
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
"Pop to file associated with current heading, if it has an xref bullet.
|
|
|
|
|
2002-12-16 00:20:42 +00:00
|
|
|
\(Works according to setting of `allout-file-xref-bullet')."
|
1993-06-02 17:53:31 +00:00
|
|
|
(interactive)
|
2002-12-16 00:20:42 +00:00
|
|
|
(if (not allout-file-xref-bullet)
|
1993-06-02 17:53:31 +00:00
|
|
|
(error
|
2005-07-18 09:03:05 +00:00
|
|
|
"Outline cross references disabled - no `allout-file-xref-bullet'")
|
2002-12-16 00:20:42 +00:00
|
|
|
(if (not (string= (allout-current-bullet) allout-file-xref-bullet))
|
2005-07-18 09:03:05 +00:00
|
|
|
(error "Current heading lacks cross-reference bullet `%s'"
|
2002-12-16 00:20:42 +00:00
|
|
|
allout-file-xref-bullet)
|
1993-06-02 17:53:31 +00:00
|
|
|
(let (file-name)
|
|
|
|
(save-excursion
|
2002-12-16 00:20:42 +00:00
|
|
|
(let* ((text-start allout-recent-prefix-end)
|
1996-07-13 18:40:22 +00:00
|
|
|
(heading-end (progn (end-of-line) (point))))
|
1993-06-02 17:53:31 +00:00
|
|
|
(goto-char text-start)
|
|
|
|
(setq file-name
|
|
|
|
(if (re-search-forward "\\s-\\(\\S-*\\)" heading-end t)
|
|
|
|
(buffer-substring (match-beginning 1) (match-end 1))))))
|
|
|
|
(setq file-name
|
|
|
|
(if (not (= (aref file-name 0) ?:))
|
|
|
|
(expand-file-name file-name)
|
(outline-auto-activation, outline-layout)
(outline-primary-bullet, outline-plain-bullets-string)
(outline-distinctive-bullets-string, outline-old-style-prefixes)
(outline-stylish-prefixes, outline-file-xref-bullet)
(outline-use-hanging-indents, outline-bullets-string)
(outline-write-file-hook, outline-mode, outline-prefix-data)
(outline-before-change-protect, outline-make-topic-prefix)
(outline-rebullet-current-heading, outline-rebullet-heading)
(outline-listify-exposed, outline-expose-topic)
(outline-old-expose-topic, outline-exposure)
(outline-latex-verbatim-quote-curr-line)
(outline-show-current-subtree, outline-hide-current-subtree)
(outline-hide-current-leaves, outline-new-exposure): Doc fix.
1996-07-13 18:46:08 +00:00
|
|
|
; A registry-files ref, strip the `:'
|
1993-06-02 17:53:31 +00:00
|
|
|
; and try to follow it:
|
|
|
|
(let ((reg-ref (reference-registered-file
|
|
|
|
(substring file-name 1) nil t)))
|
|
|
|
(if reg-ref (car (cdr reg-ref))))))
|
|
|
|
(if (or (file-exists-p file-name)
|
|
|
|
(if (file-writable-p file-name)
|
|
|
|
(y-or-n-p (format "%s not there, create one? "
|
|
|
|
file-name))
|
|
|
|
(error "%s not found and can't be created" file-name)))
|
|
|
|
(condition-case failure
|
|
|
|
(find-file-other-window file-name)
|
2000-06-07 13:25:06 +00:00
|
|
|
('error failure))
|
1993-06-02 17:53:31 +00:00
|
|
|
(error "%s not found" file-name))
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
|
2000-06-07 13:25:06 +00:00
|
|
|
;;;_ #6 Exposure Control
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
|
|
|
;;;_ - Fundamental
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
;;;_ > allout-flag-region (from to flag)
|
|
|
|
(defun allout-flag-region (from to flag)
|
|
|
|
"Hide or show lines from FROM to TO, via Emacs selective-display FLAG char.
|
|
|
|
Ie, text following flag C-m \(carriage-return) is hidden until the
|
|
|
|
next C-j (newline) char.
|
|
|
|
|
|
|
|
Returns the endpoint of the region."
|
|
|
|
;; "OFR-" prefixes to avoid collisions with vars in code calling the macro.
|
|
|
|
;; ie, elisp macro vars are not 'hygenic', so distinct names are necessary.
|
|
|
|
(let ((was-inhibit-r-o inhibit-read-only)
|
|
|
|
(was-undo-list buffer-undo-list)
|
|
|
|
(was-modified (buffer-modified-p))
|
|
|
|
trans)
|
|
|
|
(unwind-protect
|
|
|
|
(save-excursion
|
|
|
|
(setq inhibit-read-only t)
|
|
|
|
(setq buffer-undo-list t)
|
|
|
|
(if (> from to)
|
|
|
|
(setq trans from from to to trans))
|
|
|
|
(subst-char-in-region from to
|
|
|
|
(if (= flag ?\n) ?\r ?\n)
|
|
|
|
flag t)
|
|
|
|
;; adjust character read-protection on all the affected lines.
|
|
|
|
;; we handle the region line-by-line.
|
|
|
|
(goto-char to)
|
|
|
|
(end-of-line)
|
|
|
|
(setq to (min (+ 2 (point)) (point-max)))
|
|
|
|
(goto-char from)
|
|
|
|
(beginning-of-line)
|
|
|
|
(while (< (point) to)
|
|
|
|
;; handle from start of exposed to beginning of hidden, or eol:
|
|
|
|
(remove-text-properties (point)
|
|
|
|
(progn (if (re-search-forward "[\r\n]"
|
|
|
|
nil t)
|
|
|
|
(forward-char -1))
|
|
|
|
(point))
|
|
|
|
'(read-only nil))
|
|
|
|
;; handle from start of hidden, if any, to eol:
|
|
|
|
(if (and (not (eobp)) (= (char-after (point)) ?\r))
|
|
|
|
(put-text-property (point) (progn (end-of-line) (point))
|
|
|
|
'read-only t))
|
|
|
|
;; Handle the end-of-line to beginning of next line:
|
|
|
|
(if (not (eobp))
|
|
|
|
(progn (forward-char 1)
|
|
|
|
(remove-text-properties (1- (point)) (point)
|
|
|
|
'(read-only nil)))))
|
|
|
|
)
|
|
|
|
(if (not was-modified)
|
|
|
|
(set-buffer-modified-p nil))
|
|
|
|
(setq inhibit-read-only was-inhibit-r-o)
|
|
|
|
(setq buffer-undo-list was-undo-list)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-flag-current-subtree (flag)
|
|
|
|
(defun allout-flag-current-subtree (flag)
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
"Hide or show subtree of currently-visible topic.
|
|
|
|
|
2002-12-16 00:20:42 +00:00
|
|
|
See `allout-flag-region' for more details."
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(save-excursion
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-back-to-current-heading)
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
(let ((from (point))
|
|
|
|
(to (progn (allout-end-of-current-subtree) (1- (point)))))
|
|
|
|
(allout-flag-region from to flag))))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
|
|
|
;;;_ - Topic-specific
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-show-entry ()
|
|
|
|
(defun allout-show-entry ()
|
|
|
|
"Like `allout-show-current-entry', reveals entries nested in hidden topics.
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
|
|
|
This is a way to give restricted peek at a concealed locality without the
|
|
|
|
expense of exposing its context, but can leave the outline with aberrant
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
exposure. `allout-hide-current-entry-completely' or `allout-show-offshoot'
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
should be used after the peek to rectify the exposure."
|
|
|
|
|
|
|
|
(interactive)
|
|
|
|
(save-excursion
|
2000-06-07 13:25:06 +00:00
|
|
|
(let ((at (point))
|
|
|
|
beg end)
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-goto-prefix)
|
2000-06-07 13:25:06 +00:00
|
|
|
(setq beg (if (= (preceding-char) ?\r) (1- (point)) (point)))
|
|
|
|
(re-search-forward "[\n\r]" nil t)
|
|
|
|
(setq end (1- (if (< at (point))
|
|
|
|
;; We're on topic head line - show only it:
|
|
|
|
(point)
|
|
|
|
;; or we're in body - include it:
|
2002-12-16 00:20:42 +00:00
|
|
|
(max beg (or (allout-pre-next-preface) (point))))))
|
|
|
|
(allout-flag-region beg end ?\n)
|
2000-06-07 13:25:06 +00:00
|
|
|
(list beg end))))
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-show-children (&optional level strict)
|
|
|
|
(defun allout-show-children (&optional level strict)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
|
|
|
"If point is visible, show all direct subheadings of this heading.
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
|
2002-12-16 00:26:22 +00:00
|
|
|
Otherwise, do `allout-show-to-offshoot', and then show subheadings.
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
|
|
|
Optional LEVEL specifies how many levels below the current level
|
|
|
|
should be shown, or all levels if t. Default is 1.
|
|
|
|
|
|
|
|
Optional STRICT means don't resort to -show-to-offshoot, no matter
|
|
|
|
what. This is basically so -show-to-offshoot, which is called by
|
|
|
|
this function, can employ the pure offspring-revealing capabilities of
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
it.
|
|
|
|
|
|
|
|
Returns point at end of subtree that was opened, if any. (May get a
|
|
|
|
point of non-opened subtree?)"
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
|
|
|
(interactive "p")
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
(let (max-pos)
|
|
|
|
(if (and (not strict)
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-hidden-p))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
2002-12-16 00:20:42 +00:00
|
|
|
(progn (allout-show-to-offshoot) ; Point's concealed, open to
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
; expose it.
|
|
|
|
;; Then recurse, but with "strict" set so we don't
|
|
|
|
;; infinite regress:
|
2002-12-16 00:20:42 +00:00
|
|
|
(setq max-pos (allout-show-children level t)))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
(save-excursion
|
|
|
|
(save-restriction
|
|
|
|
(let* ((start-pt (point))
|
2002-12-16 00:20:42 +00:00
|
|
|
(chart (allout-chart-subtree (or level 1)))
|
|
|
|
(to-reveal (allout-chart-to-reveal chart (or level 1))))
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
(goto-char start-pt)
|
|
|
|
(if (and strict (= (preceding-char) ?\r))
|
|
|
|
;; Concealed root would already have been taken care of,
|
|
|
|
;; unless strict was set.
|
2000-06-07 13:25:06 +00:00
|
|
|
(progn
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-flag-region (point) (allout-snug-back) ?\n)
|
|
|
|
(if allout-show-bodies
|
2000-06-07 13:25:06 +00:00
|
|
|
(progn (goto-char (car to-reveal))
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-show-current-entry)))))
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
(while to-reveal
|
|
|
|
(goto-char (car to-reveal))
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-flag-region (point) (allout-snug-back) ?\n)
|
|
|
|
(if allout-show-bodies
|
2000-06-07 13:25:06 +00:00
|
|
|
(progn (goto-char (car to-reveal))
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-show-current-entry)))
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
(setq to-reveal (cdr to-reveal)))))))))
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-hide-point-reconcile ()
|
|
|
|
(defun allout-hide-reconcile ()
|
|
|
|
"Like `allout-hide-current-entry'; hides completely if within hidden region.
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
|
|
|
Specifically intended for aberrant exposure states, like entries that were
|
2002-12-16 00:26:22 +00:00
|
|
|
exposed by `allout-show-entry' but are within otherwise concealed regions."
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(interactive)
|
|
|
|
(save-excursion
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-goto-prefix)
|
|
|
|
(allout-flag-region (if (not (bobp)) (1- (point)) (point))
|
|
|
|
(progn (allout-pre-next-preface)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(if (= ?\r (following-char))
|
|
|
|
(point)
|
|
|
|
(1- (point))))
|
|
|
|
?\r)))
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-show-to-offshoot ()
|
|
|
|
(defun allout-show-to-offshoot ()
|
2002-12-16 00:26:22 +00:00
|
|
|
"Like `allout-show-entry', but reveals all concealed ancestors, as well.
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
2002-12-16 00:26:22 +00:00
|
|
|
As with `allout-hide-current-entry-completely', useful for rectifying
|
|
|
|
aberrant exposure states produced by `allout-show-entry'."
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
|
|
|
(interactive)
|
|
|
|
(save-excursion
|
|
|
|
(let ((orig-pt (point))
|
2002-12-16 00:20:42 +00:00
|
|
|
(orig-pref (allout-goto-prefix))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(last-at (point))
|
|
|
|
bag-it)
|
|
|
|
(while (or bag-it (= (preceding-char) ?\r))
|
|
|
|
(beginning-of-line)
|
|
|
|
(if (= last-at (setq last-at (point)))
|
|
|
|
;; Oops, we're not making any progress! Show the current
|
|
|
|
;; topic completely, and bag this try.
|
|
|
|
(progn (beginning-of-line)
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-show-current-subtree)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(goto-char orig-pt)
|
|
|
|
(setq bag-it t)
|
|
|
|
(beep)
|
|
|
|
(message "%s: %s"
|
2002-12-16 00:20:42 +00:00
|
|
|
"allout-show-to-offshoot: "
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
"Aberrant nesting encountered.")))
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-show-children)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(goto-char orig-pref))
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
(goto-char orig-pt)))
|
2002-12-16 00:20:42 +00:00
|
|
|
(if (allout-hidden-p)
|
|
|
|
(allout-show-entry)))
|
|
|
|
;;;_ > allout-hide-current-entry ()
|
|
|
|
(defun allout-hide-current-entry ()
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
"Hide the body directly following this heading."
|
|
|
|
(interactive)
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-back-to-current-heading)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(save-excursion
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-flag-region (point)
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
(progn (allout-end-of-entry) (point))
|
2000-06-07 13:25:06 +00:00
|
|
|
?\r)))
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-show-current-entry (&optional arg)
|
|
|
|
(defun allout-show-current-entry (&optional arg)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
"Show body following current heading, or hide the entry if repeat count."
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
|
|
|
(interactive "P")
|
|
|
|
(if arg
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-hide-current-entry)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(save-excursion
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-flag-region (point)
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
(progn (allout-end-of-entry) (point))
|
|
|
|
?\n)
|
|
|
|
)))
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-hide-current-entry-completely ()
|
|
|
|
; ... allout-hide-current-entry-completely also for isearch dynamic exposure:
|
|
|
|
(defun allout-hide-current-entry-completely ()
|
2002-12-16 00:26:22 +00:00
|
|
|
"Like `allout-hide-current-entry', but conceal topic completely.
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
|
|
|
Specifically intended for aberrant exposure states, like entries that were
|
2002-12-16 00:26:22 +00:00
|
|
|
exposed by `allout-show-entry' but are within otherwise concealed regions."
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(interactive)
|
|
|
|
(save-excursion
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-goto-prefix)
|
|
|
|
(allout-flag-region (if (not (bobp)) (1- (point)) (point))
|
|
|
|
(progn (allout-pre-next-preface)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(if (= ?\r (following-char))
|
|
|
|
(point)
|
|
|
|
(1- (point))))
|
|
|
|
?\r)))
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-show-current-subtree (&optional arg)
|
|
|
|
(defun allout-show-current-subtree (&optional arg)
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
"Show everything within the current topic. With a repeat-count,
|
(outline-auto-activation, outline-layout)
(outline-primary-bullet, outline-plain-bullets-string)
(outline-distinctive-bullets-string, outline-old-style-prefixes)
(outline-stylish-prefixes, outline-file-xref-bullet)
(outline-use-hanging-indents, outline-bullets-string)
(outline-write-file-hook, outline-mode, outline-prefix-data)
(outline-before-change-protect, outline-make-topic-prefix)
(outline-rebullet-current-heading, outline-rebullet-heading)
(outline-listify-exposed, outline-expose-topic)
(outline-old-expose-topic, outline-exposure)
(outline-latex-verbatim-quote-curr-line)
(outline-show-current-subtree, outline-hide-current-subtree)
(outline-hide-current-leaves, outline-new-exposure): Doc fix.
1996-07-13 18:46:08 +00:00
|
|
|
expose this topic and its siblings."
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
(interactive "P")
|
|
|
|
(save-excursion
|
2002-12-16 00:20:42 +00:00
|
|
|
(if (<= (allout-current-depth) 0)
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
;; Outside any topics - try to get to the first:
|
2002-12-16 00:20:42 +00:00
|
|
|
(if (not (allout-next-heading))
|
2001-07-16 11:39:42 +00:00
|
|
|
(error "No topics")
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
;; got to first, outermost topic - set to expose it and siblings:
|
|
|
|
(message "Above outermost topic - exposing all.")
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-flag-region (point-min)(point-max) ?\n))
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
(if (not arg)
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-flag-current-subtree ?\n)
|
|
|
|
(allout-beginning-of-level)
|
|
|
|
(allout-expose-topic '(* :))))))
|
|
|
|
;;;_ > allout-hide-current-subtree (&optional just-close)
|
|
|
|
(defun allout-hide-current-subtree (&optional just-close)
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
"Close the current topic, or containing topic if this one is already closed.
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
If this topic is closed and it's a top level topic, close this topic
|
(outline-auto-activation, outline-layout)
(outline-primary-bullet, outline-plain-bullets-string)
(outline-distinctive-bullets-string, outline-old-style-prefixes)
(outline-stylish-prefixes, outline-file-xref-bullet)
(outline-use-hanging-indents, outline-bullets-string)
(outline-write-file-hook, outline-mode, outline-prefix-data)
(outline-before-change-protect, outline-make-topic-prefix)
(outline-rebullet-current-heading, outline-rebullet-heading)
(outline-listify-exposed, outline-expose-topic)
(outline-old-expose-topic, outline-exposure)
(outline-latex-verbatim-quote-curr-line)
(outline-show-current-subtree, outline-hide-current-subtree)
(outline-hide-current-leaves, outline-new-exposure): Doc fix.
1996-07-13 18:46:08 +00:00
|
|
|
and its siblings.
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
|
|
|
|
If optional arg JUST-CLOSE is non-nil, do not treat the parent or
|
|
|
|
siblings, even if the target topic is already closed."
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
|
|
|
(interactive)
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
(let ((from (point))
|
|
|
|
(orig-eol (progn (end-of-line)
|
2002-12-16 00:20:42 +00:00
|
|
|
(if (not (allout-goto-prefix))
|
2001-07-16 11:39:42 +00:00
|
|
|
(error "No topics found")
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
(end-of-line)(point)))))
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-flag-current-subtree ?\r)
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
(goto-char from)
|
|
|
|
(if (and (= orig-eol (progn (goto-char orig-eol)
|
|
|
|
(end-of-line)
|
|
|
|
(point)))
|
|
|
|
(not just-close)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
;; Structure didn't change - try hiding current level:
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
(goto-char from)
|
2002-12-16 00:20:42 +00:00
|
|
|
(if (allout-up-current-level 1 t)
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
t
|
|
|
|
(goto-char 0)
|
|
|
|
(let ((msg
|
|
|
|
"Top-level topic already closed - closing siblings..."))
|
|
|
|
(message msg)
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-expose-topic '(0 :))
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
(message (concat msg " Done.")))
|
|
|
|
nil)
|
2002-12-16 00:20:42 +00:00
|
|
|
(/= (allout-recent-depth) 0))
|
|
|
|
(allout-hide-current-subtree))
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
(goto-char from)))
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-show-current-branches ()
|
|
|
|
(defun allout-show-current-branches ()
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
"Show all subheadings of this heading, but not their bodies."
|
|
|
|
(interactive)
|
|
|
|
(beginning-of-line)
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-show-children t))
|
|
|
|
;;;_ > allout-hide-current-leaves ()
|
|
|
|
(defun allout-hide-current-leaves ()
|
(outline-auto-activation, outline-layout)
(outline-primary-bullet, outline-plain-bullets-string)
(outline-distinctive-bullets-string, outline-old-style-prefixes)
(outline-stylish-prefixes, outline-file-xref-bullet)
(outline-use-hanging-indents, outline-bullets-string)
(outline-write-file-hook, outline-mode, outline-prefix-data)
(outline-before-change-protect, outline-make-topic-prefix)
(outline-rebullet-current-heading, outline-rebullet-heading)
(outline-listify-exposed, outline-expose-topic)
(outline-old-expose-topic, outline-exposure)
(outline-latex-verbatim-quote-curr-line)
(outline-show-current-subtree, outline-hide-current-subtree)
(outline-hide-current-leaves, outline-new-exposure): Doc fix.
1996-07-13 18:46:08 +00:00
|
|
|
"Hide the bodies of the current topic and all its offspring."
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(interactive)
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-back-to-current-heading)
|
|
|
|
(allout-hide-region-body (point) (progn (allout-end-of-current-subtree)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(point))))
|
|
|
|
|
|
|
|
;;;_ - Region and beyond
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-show-all ()
|
|
|
|
(defun allout-show-all ()
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
"Show all of the text in the buffer."
|
|
|
|
(interactive)
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
(message "Exposing entire buffer...")
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-flag-region (point-min) (point-max) ?\n)
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
(message "Exposing entire buffer... Done."))
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-hide-bodies ()
|
|
|
|
(defun allout-hide-bodies ()
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
"Hide all of buffer except headings."
|
|
|
|
(interactive)
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-hide-region-body (point-min) (point-max)))
|
|
|
|
;;;_ > allout-hide-region-body (start end)
|
|
|
|
(defun allout-hide-region-body (start end)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
"Hide all body lines in the region, but not headings."
|
|
|
|
(save-excursion
|
|
|
|
(save-restriction
|
|
|
|
(narrow-to-region start end)
|
|
|
|
(goto-char (point-min))
|
|
|
|
(while (not (eobp))
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-flag-region (point)
|
|
|
|
(progn (allout-pre-next-preface) (point)) ?\r)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(if (not (eobp))
|
|
|
|
(forward-char
|
|
|
|
(if (looking-at "[\n\r][\n\r]")
|
|
|
|
2 1)))))))
|
|
|
|
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-expose-topic (spec)
|
|
|
|
(defun allout-expose-topic (spec)
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
"Apply exposure specs to successive outline topic items.
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
2002-12-16 00:20:42 +00:00
|
|
|
Use the more convenient frontend, `allout-new-exposure', if you don't
|
|
|
|
need evaluation of the arguments, or even better, the `allout-layout'
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
variable-keyed mode-activation/auto-exposure feature of allout outline
|
|
|
|
mode. See the respective documentation strings for more details.
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
|
|
|
Cursor is left at start position.
|
|
|
|
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
SPEC is either a number or a list.
|
|
|
|
|
|
|
|
Successive specs on a list are applied to successive sibling topics.
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
|
|
|
A simple spec \(either a number, one of a few symbols, or the null
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
list) dictates the exposure for the corresponding topic.
|
|
|
|
|
|
|
|
Non-null lists recursively designate exposure specs for respective
|
|
|
|
subtopics of the current topic.
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
(outline-auto-activation, outline-layout)
(outline-primary-bullet, outline-plain-bullets-string)
(outline-distinctive-bullets-string, outline-old-style-prefixes)
(outline-stylish-prefixes, outline-file-xref-bullet)
(outline-use-hanging-indents, outline-bullets-string)
(outline-write-file-hook, outline-mode, outline-prefix-data)
(outline-before-change-protect, outline-make-topic-prefix)
(outline-rebullet-current-heading, outline-rebullet-heading)
(outline-listify-exposed, outline-expose-topic)
(outline-old-expose-topic, outline-exposure)
(outline-latex-verbatim-quote-curr-line)
(outline-show-current-subtree, outline-hide-current-subtree)
(outline-hide-current-leaves, outline-new-exposure): Doc fix.
1996-07-13 18:46:08 +00:00
|
|
|
The `:' repeat spec is used to specify exposure for any number of
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
successive siblings, up to the trailing ones for which there are
|
(outline-auto-activation, outline-layout)
(outline-primary-bullet, outline-plain-bullets-string)
(outline-distinctive-bullets-string, outline-old-style-prefixes)
(outline-stylish-prefixes, outline-file-xref-bullet)
(outline-use-hanging-indents, outline-bullets-string)
(outline-write-file-hook, outline-mode, outline-prefix-data)
(outline-before-change-protect, outline-make-topic-prefix)
(outline-rebullet-current-heading, outline-rebullet-heading)
(outline-listify-exposed, outline-expose-topic)
(outline-old-expose-topic, outline-exposure)
(outline-latex-verbatim-quote-curr-line)
(outline-show-current-subtree, outline-hide-current-subtree)
(outline-hide-current-leaves, outline-new-exposure): Doc fix.
1996-07-13 18:46:08 +00:00
|
|
|
explicit specs following the `:'.
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
|
|
|
Simple (numeric and null-list) specs are interpreted as follows:
|
|
|
|
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
Numbers indicate the relative depth to open the corresponding topic.
|
|
|
|
- negative numbers force the topic to be closed before opening to the
|
|
|
|
absolute value of the number, so all siblings are open only to
|
|
|
|
that level.
|
|
|
|
- positive numbers open to the relative depth indicated by the
|
|
|
|
number, but do not force already opened subtopics to be closed.
|
|
|
|
- 0 means to close topic - hide all offspring.
|
(outline-auto-activation, outline-layout)
(outline-primary-bullet, outline-plain-bullets-string)
(outline-distinctive-bullets-string, outline-old-style-prefixes)
(outline-stylish-prefixes, outline-file-xref-bullet)
(outline-use-hanging-indents, outline-bullets-string)
(outline-write-file-hook, outline-mode, outline-prefix-data)
(outline-before-change-protect, outline-make-topic-prefix)
(outline-rebullet-current-heading, outline-rebullet-heading)
(outline-listify-exposed, outline-expose-topic)
(outline-old-expose-topic, outline-exposure)
(outline-latex-verbatim-quote-curr-line)
(outline-show-current-subtree, outline-hide-current-subtree)
(outline-hide-current-leaves, outline-new-exposure): Doc fix.
1996-07-13 18:46:08 +00:00
|
|
|
: - `repeat'
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
apply prior element to all siblings at current level, *up to*
|
(outline-auto-activation, outline-layout)
(outline-primary-bullet, outline-plain-bullets-string)
(outline-distinctive-bullets-string, outline-old-style-prefixes)
(outline-stylish-prefixes, outline-file-xref-bullet)
(outline-use-hanging-indents, outline-bullets-string)
(outline-write-file-hook, outline-mode, outline-prefix-data)
(outline-before-change-protect, outline-make-topic-prefix)
(outline-rebullet-current-heading, outline-rebullet-heading)
(outline-listify-exposed, outline-expose-topic)
(outline-old-expose-topic, outline-exposure)
(outline-latex-verbatim-quote-curr-line)
(outline-show-current-subtree, outline-hide-current-subtree)
(outline-hide-current-leaves, outline-new-exposure): Doc fix.
1996-07-13 18:46:08 +00:00
|
|
|
those siblings that would be covered by specs following the `:'
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
on the list. Ie, apply to all topics at level but the last
|
|
|
|
ones. \(Only first of multiple colons at same level is
|
|
|
|
respected - subsequent ones are discarded.)
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
* - completely opens the topic, including bodies.
|
|
|
|
+ - shows all the sub headers, but not the bodies
|
|
|
|
- - exposes the body of the corresponding topic.
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
|
|
|
Examples:
|
2002-12-16 00:20:42 +00:00
|
|
|
\(allout-expose-topic '(-1 : 0))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
Close this and all following topics at current level, exposing
|
|
|
|
only their immediate children, but close down the last topic
|
|
|
|
at this current level completely.
|
2002-12-16 00:20:42 +00:00
|
|
|
\(allout-expose-topic '(-1 () : 1 0))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
Close current topic so only the immediate subtopics are shown;
|
|
|
|
show the children in the second to last topic, and completely
|
|
|
|
close the last one.
|
2002-12-16 00:20:42 +00:00
|
|
|
\(allout-expose-topic '(-2 : -1 *))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
Expose children and grandchildren of all topics at current
|
|
|
|
level except the last two; expose children of the second to
|
|
|
|
last and completely open the last one."
|
|
|
|
|
|
|
|
(interactive "xExposure spec: ")
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
(if (not (listp spec))
|
|
|
|
nil
|
2002-12-16 00:20:42 +00:00
|
|
|
(let ((depth (allout-depth))
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
(max-pos 0)
|
|
|
|
prev-elem curr-elem
|
|
|
|
stay done
|
|
|
|
snug-back
|
|
|
|
)
|
|
|
|
(while spec
|
|
|
|
(setq prev-elem curr-elem
|
|
|
|
curr-elem (car spec)
|
|
|
|
spec (cdr spec))
|
|
|
|
(cond ; Do current element:
|
|
|
|
((null curr-elem) nil)
|
|
|
|
((symbolp curr-elem)
|
2002-12-16 00:20:42 +00:00
|
|
|
(cond ((eq curr-elem '*) (allout-show-current-subtree)
|
|
|
|
(if (> allout-recent-end-of-subtree max-pos)
|
|
|
|
(setq max-pos allout-recent-end-of-subtree)))
|
|
|
|
((eq curr-elem '+) (allout-show-current-branches)
|
|
|
|
(if (> allout-recent-end-of-subtree max-pos)
|
|
|
|
(setq max-pos allout-recent-end-of-subtree)))
|
|
|
|
((eq curr-elem '-) (allout-show-current-entry))
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
((eq curr-elem ':)
|
|
|
|
(setq stay t)
|
(outline-auto-activation, outline-layout)
(outline-primary-bullet, outline-plain-bullets-string)
(outline-distinctive-bullets-string, outline-old-style-prefixes)
(outline-stylish-prefixes, outline-file-xref-bullet)
(outline-use-hanging-indents, outline-bullets-string)
(outline-write-file-hook, outline-mode, outline-prefix-data)
(outline-before-change-protect, outline-make-topic-prefix)
(outline-rebullet-current-heading, outline-rebullet-heading)
(outline-listify-exposed, outline-expose-topic)
(outline-old-expose-topic, outline-exposure)
(outline-latex-verbatim-quote-curr-line)
(outline-show-current-subtree, outline-hide-current-subtree)
(outline-hide-current-leaves, outline-new-exposure): Doc fix.
1996-07-13 18:46:08 +00:00
|
|
|
;; Expand the `repeat' spec to an explicit version,
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
;; w.r.t. remaining siblings:
|
|
|
|
(let ((residue ; = # of sibs not covered by remaining spec
|
|
|
|
;; Dang - could be nice to make use of the chart, sigh:
|
2002-12-16 00:20:42 +00:00
|
|
|
(- (length (allout-chart-siblings))
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
(length spec))))
|
|
|
|
(if (< 0 residue)
|
|
|
|
;; Some residue - cover it with prev-elem:
|
|
|
|
(setq spec (append (make-list residue prev-elem)
|
|
|
|
spec)))))))
|
|
|
|
((numberp curr-elem)
|
2002-12-16 00:20:42 +00:00
|
|
|
(if (and (>= 0 curr-elem) (allout-visible-p))
|
|
|
|
(save-excursion (allout-hide-current-subtree t)
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
(if (> 0 curr-elem)
|
|
|
|
nil
|
2002-12-16 00:20:42 +00:00
|
|
|
(if (> allout-recent-end-of-subtree max-pos)
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
(setq max-pos
|
2002-12-16 00:20:42 +00:00
|
|
|
allout-recent-end-of-subtree)))))
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
(if (> (abs curr-elem) 0)
|
2002-12-16 00:20:42 +00:00
|
|
|
(progn (allout-show-children (abs curr-elem))
|
|
|
|
(if (> allout-recent-end-of-subtree max-pos)
|
|
|
|
(setq max-pos allout-recent-end-of-subtree)))))
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
((listp curr-elem)
|
2002-12-16 00:20:42 +00:00
|
|
|
(if (allout-descend-to-depth (1+ depth))
|
|
|
|
(let ((got (allout-expose-topic curr-elem)))
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
(if (and got (> got max-pos)) (setq max-pos got))))))
|
|
|
|
(cond (stay (setq stay nil))
|
|
|
|
((listp (car spec)) nil)
|
|
|
|
((> max-pos (point))
|
|
|
|
;; Capitalize on max-pos state to get us nearer next sibling:
|
|
|
|
(progn (goto-char (min (point-max) max-pos))
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-next-heading)))
|
|
|
|
((allout-next-sibling depth))))
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
max-pos)))
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-old-expose-topic (spec &rest followers)
|
|
|
|
(defun allout-old-expose-topic (spec &rest followers)
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
|
|
|
|
"Deprecated. Use `allout-expose-topic' \(with different schema
|
|
|
|
format) instead.
|
|
|
|
|
|
|
|
Dictate wholesale exposure scheme for current topic, according to SPEC.
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
|
|
|
SPEC is either a number or a list. Optional successive args
|
|
|
|
dictate exposure for subsequent siblings of current topic.
|
|
|
|
|
|
|
|
A simple spec (either a number, a special symbol, or the null list)
|
|
|
|
dictates the overall exposure for a topic. Non null lists are
|
|
|
|
composite specs whose first element dictates the overall exposure for
|
|
|
|
a topic, with the subsequent elements in the list interpreted as specs
|
|
|
|
that dictate the exposure for the successive offspring of the topic.
|
|
|
|
|
|
|
|
Simple (numeric and null-list) specs are interpreted as follows:
|
|
|
|
|
|
|
|
- Numbers indicate the relative depth to open the corresponding topic:
|
|
|
|
- negative numbers force the topic to be close before opening to the
|
|
|
|
absolute value of the number.
|
|
|
|
- positive numbers just open to the relative depth indicated by the number.
|
|
|
|
- 0 just closes
|
(outline-auto-activation, outline-layout)
(outline-primary-bullet, outline-plain-bullets-string)
(outline-distinctive-bullets-string, outline-old-style-prefixes)
(outline-stylish-prefixes, outline-file-xref-bullet)
(outline-use-hanging-indents, outline-bullets-string)
(outline-write-file-hook, outline-mode, outline-prefix-data)
(outline-before-change-protect, outline-make-topic-prefix)
(outline-rebullet-current-heading, outline-rebullet-heading)
(outline-listify-exposed, outline-expose-topic)
(outline-old-expose-topic, outline-exposure)
(outline-latex-verbatim-quote-curr-line)
(outline-show-current-subtree, outline-hide-current-subtree)
(outline-hide-current-leaves, outline-new-exposure): Doc fix.
1996-07-13 18:46:08 +00:00
|
|
|
- `*' completely opens the topic, including bodies.
|
|
|
|
- `+' shows all the sub headers, but not the bodies
|
|
|
|
- `-' exposes the body and immediate offspring of the corresponding topic.
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
|
|
|
If the spec is a list, the first element must be a number, which
|
|
|
|
dictates the exposure depth of the topic as a whole. Subsequent
|
|
|
|
elements of the list are nested SPECs, dictating the specific exposure
|
|
|
|
for the corresponding offspring of the topic.
|
|
|
|
|
(allout-chart-subtree, allout-rebullet-topic-grunt): Don't mention in the
docstring these arguments meant for internal (recursive) use only.
(allout-char-spec): Comment out (it's not implemented).
(allout-old-expose-topic, allout-exposure): Fix docstring and add obsolescence
declaration.
(allout-flatten-exposed-to-buffer, allout-indented-exposed-to-buffer): Fix typos
in docstring.
(my-mark-marker): Doc fix.
(produce-allout-mode-map, allout-sibling-index, allout-isearch-expose)
(allout-distinctive-bullet, allout-open-topic, allout-reindent-body)
(allout-rebullet-heading, allout-process-exposed, allout-insert-listified)
(allout-latex-verb-quote, allout-insert-latex-header)
(allout-insert-latex-trailer): Make arguments match their use in
docstring.
(allout-primary-bullet, allout-old-style-prefixes, allout-inhibit-protection)
(allout-init, allout-mode, allout-before-change-protect, allout-flag-region):
Use "Emacs" instead of "emacs" in docstrings.
2004-05-21 18:10:21 +00:00
|
|
|
Optional FOLLOWERS arguments dictate exposure for succeeding siblings."
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
|
|
|
(interactive "xExposure spec: ")
|
2002-12-16 00:20:42 +00:00
|
|
|
(let ((depth (allout-current-depth))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
done
|
|
|
|
max-pos)
|
|
|
|
(cond ((null spec) nil)
|
|
|
|
((symbolp spec)
|
2002-12-16 00:20:42 +00:00
|
|
|
(if (eq spec '*) (allout-show-current-subtree))
|
|
|
|
(if (eq spec '+) (allout-show-current-branches))
|
|
|
|
(if (eq spec '-) (allout-show-current-entry)))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
((numberp spec)
|
|
|
|
(if (>= 0 spec)
|
2002-12-16 00:20:42 +00:00
|
|
|
(save-excursion (allout-hide-current-subtree t)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(end-of-line)
|
|
|
|
(if (or (not max-pos)
|
|
|
|
(> (point) max-pos))
|
|
|
|
(setq max-pos (point)))
|
|
|
|
(if (> 0 spec)
|
|
|
|
(setq spec (* -1 spec)))))
|
|
|
|
(if (> spec 0)
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-show-children spec)))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
((listp spec)
|
2002-12-16 00:20:42 +00:00
|
|
|
;(let ((got (allout-old-expose-topic (car spec))))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
; (if (and got (or (not max-pos) (> got max-pos)))
|
|
|
|
; (setq max-pos got)))
|
2002-12-16 00:20:42 +00:00
|
|
|
(let ((new-depth (+ (allout-current-depth) 1))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
got)
|
2002-12-16 00:20:42 +00:00
|
|
|
(setq max-pos (allout-old-expose-topic (car spec)))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(setq spec (cdr spec))
|
|
|
|
(if (and spec
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-descend-to-depth new-depth)
|
|
|
|
(not (allout-hidden-p)))
|
|
|
|
(progn (setq got (apply 'allout-old-expose-topic spec))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(if (and got (or (not max-pos) (> got max-pos)))
|
|
|
|
(setq max-pos got)))))))
|
|
|
|
(while (and followers
|
|
|
|
(progn (if (and max-pos (< (point) max-pos))
|
|
|
|
(progn (goto-char max-pos)
|
|
|
|
(setq max-pos nil)))
|
|
|
|
(end-of-line)
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-next-sibling depth)))
|
|
|
|
(allout-old-expose-topic (car followers))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(setq followers (cdr followers)))
|
|
|
|
max-pos))
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-new-exposure '()
|
|
|
|
(defmacro allout-new-exposure (&rest spec)
|
|
|
|
"Literal frontend for `allout-expose-topic', doesn't evaluate arguments.
|
2002-12-16 00:26:22 +00:00
|
|
|
Some arguments that would need to be quoted in `allout-expose-topic'
|
|
|
|
need not be quoted in `allout-new-exposure'.
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
|
|
|
Cursor is left at start position.
|
|
|
|
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
Use this instead of obsolete `allout-exposure'.
|
|
|
|
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
Examples:
|
2005-05-01 13:43:20 +00:00
|
|
|
\(allout-new-exposure (-1 () () () 1) 0)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
Close current topic at current level so only the immediate
|
|
|
|
subtopics are shown, except also show the children of the
|
|
|
|
third subtopic; and close the next topic at the current level.
|
2005-05-01 13:43:20 +00:00
|
|
|
\(allout-new-exposure : -1 0)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
Close all topics at current level to expose only their
|
|
|
|
immediate children, except for the last topic at the current
|
(outline-auto-activation, outline-layout)
(outline-primary-bullet, outline-plain-bullets-string)
(outline-distinctive-bullets-string, outline-old-style-prefixes)
(outline-stylish-prefixes, outline-file-xref-bullet)
(outline-use-hanging-indents, outline-bullets-string)
(outline-write-file-hook, outline-mode, outline-prefix-data)
(outline-before-change-protect, outline-make-topic-prefix)
(outline-rebullet-current-heading, outline-rebullet-heading)
(outline-listify-exposed, outline-expose-topic)
(outline-old-expose-topic, outline-exposure)
(outline-latex-verbatim-quote-curr-line)
(outline-show-current-subtree, outline-hide-current-subtree)
(outline-hide-current-leaves, outline-new-exposure): Doc fix.
1996-07-13 18:46:08 +00:00
|
|
|
level, in which even its immediate children are hidden.
|
2005-05-01 13:43:20 +00:00
|
|
|
\(allout-new-exposure -2 : -1 *)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
Expose children and grandchildren of first topic at current
|
|
|
|
level, and expose children of subsequent topics at current
|
|
|
|
level *except* for the last, which should be opened completely."
|
|
|
|
(list 'save-excursion
|
2002-12-16 00:20:42 +00:00
|
|
|
'(if (not (or (allout-goto-prefix)
|
|
|
|
(allout-next-heading)))
|
|
|
|
(error "allout-new-exposure: Can't find any outline topics"))
|
|
|
|
(list 'allout-expose-topic (list 'quote spec))))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
2000-06-07 13:25:06 +00:00
|
|
|
;;;_ #7 Systematic outline presentation - copying, printing, flattening
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
|
2000-06-07 13:25:06 +00:00
|
|
|
;;;_ - Mapping and processing of topics
|
|
|
|
;;;_ ( See also Subtree Charting, in Navigation code.)
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-stringify-flat-index (flat-index)
|
|
|
|
(defun allout-stringify-flat-index (flat-index &optional context)
|
2000-06-07 13:25:06 +00:00
|
|
|
"Convert list representing section/subsection/... to document string.
|
|
|
|
|
|
|
|
Optional arg CONTEXT indicates interior levels to include."
|
|
|
|
(let ((delim ".")
|
2003-02-04 11:26:42 +00:00
|
|
|
result
|
2000-06-07 13:25:06 +00:00
|
|
|
numstr
|
|
|
|
(context-depth (or (and context 2) 1)))
|
|
|
|
;; Take care of the explicit context:
|
|
|
|
(while (> context-depth 0)
|
|
|
|
(setq numstr (int-to-string (car flat-index))
|
|
|
|
flat-index (cdr flat-index)
|
|
|
|
result (if flat-index
|
|
|
|
(cons delim (cons numstr result))
|
|
|
|
(cons numstr result))
|
|
|
|
context-depth (if flat-index (1- context-depth) 0)))
|
|
|
|
(setq delim " ")
|
|
|
|
;; Take care of the indentation:
|
|
|
|
(if flat-index
|
|
|
|
(progn
|
|
|
|
(while flat-index
|
|
|
|
(setq result
|
|
|
|
(cons delim
|
|
|
|
(cons (make-string
|
|
|
|
(1+ (truncate (if (zerop (car flat-index))
|
|
|
|
1
|
|
|
|
(log10 (car flat-index)))))
|
|
|
|
? )
|
|
|
|
result)))
|
|
|
|
(setq flat-index (cdr flat-index)))
|
|
|
|
;; Dispose of single extra delim:
|
|
|
|
(setq result (cdr result))))
|
|
|
|
(apply 'concat result)))
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-stringify-flat-index-plain (flat-index)
|
|
|
|
(defun allout-stringify-flat-index-plain (flat-index)
|
2000-06-07 13:25:06 +00:00
|
|
|
"Convert list representing section/subsection/... to document string."
|
|
|
|
(let ((delim ".")
|
|
|
|
result)
|
|
|
|
(while flat-index
|
|
|
|
(setq result (cons (int-to-string (car flat-index))
|
|
|
|
(if result
|
|
|
|
(cons delim result))))
|
|
|
|
(setq flat-index (cdr flat-index)))
|
|
|
|
(apply 'concat result)))
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-stringify-flat-index-indented (flat-index)
|
|
|
|
(defun allout-stringify-flat-index-indented (flat-index)
|
2000-06-07 13:25:06 +00:00
|
|
|
"Convert list representing section/subsection/... to document string."
|
|
|
|
(let ((delim ".")
|
2003-02-04 11:26:42 +00:00
|
|
|
result
|
2000-06-07 13:25:06 +00:00
|
|
|
numstr)
|
|
|
|
;; Take care of the explicit context:
|
|
|
|
(setq numstr (int-to-string (car flat-index))
|
|
|
|
flat-index (cdr flat-index)
|
|
|
|
result (if flat-index
|
|
|
|
(cons delim (cons numstr result))
|
|
|
|
(cons numstr result)))
|
|
|
|
(setq delim " ")
|
|
|
|
;; Take care of the indentation:
|
|
|
|
(if flat-index
|
|
|
|
(progn
|
|
|
|
(while flat-index
|
|
|
|
(setq result
|
|
|
|
(cons delim
|
|
|
|
(cons (make-string
|
|
|
|
(1+ (truncate (if (zerop (car flat-index))
|
|
|
|
1
|
|
|
|
(log10 (car flat-index)))))
|
|
|
|
? )
|
|
|
|
result)))
|
|
|
|
(setq flat-index (cdr flat-index)))
|
|
|
|
;; Dispose of single extra delim:
|
|
|
|
(setq result (cdr result))))
|
|
|
|
(apply 'concat result)))
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-listify-exposed (&optional start end format)
|
|
|
|
(defun allout-listify-exposed (&optional start end format)
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
|
2000-06-07 13:25:06 +00:00
|
|
|
"Produce a list representing exposed topics in current region.
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
2002-12-16 00:20:42 +00:00
|
|
|
This list can then be used by `allout-process-exposed' to manipulate
|
2000-06-07 13:25:06 +00:00
|
|
|
the subject region.
|
(outline-auto-activation, outline-layout)
(outline-primary-bullet, outline-plain-bullets-string)
(outline-distinctive-bullets-string, outline-old-style-prefixes)
(outline-stylish-prefixes, outline-file-xref-bullet)
(outline-use-hanging-indents, outline-bullets-string)
(outline-write-file-hook, outline-mode, outline-prefix-data)
(outline-before-change-protect, outline-make-topic-prefix)
(outline-rebullet-current-heading, outline-rebullet-heading)
(outline-listify-exposed, outline-expose-topic)
(outline-old-expose-topic, outline-exposure)
(outline-latex-verbatim-quote-curr-line)
(outline-show-current-subtree, outline-hide-current-subtree)
(outline-hide-current-leaves, outline-new-exposure): Doc fix.
1996-07-13 18:46:08 +00:00
|
|
|
|
2000-06-07 13:25:06 +00:00
|
|
|
Optional START and END indicate bounds of region.
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
|
2000-06-07 13:25:06 +00:00
|
|
|
optional arg, FORMAT, designates an alternate presentation form for
|
|
|
|
the prefix:
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
2000-06-07 13:25:06 +00:00
|
|
|
list - Present prefix as numeric section.subsection..., starting with
|
|
|
|
section indicated by the list, innermost nesting first.
|
|
|
|
`indent' \(symbol) - Convert header prefixes to all white space,
|
|
|
|
except for distinctive bullets.
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
2000-06-07 13:25:06 +00:00
|
|
|
The elements of the list produced are lists that represents a topic
|
|
|
|
header and body. The elements of that list are:
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
2000-06-07 13:25:06 +00:00
|
|
|
- a number representing the depth of the topic,
|
|
|
|
- a string representing the header-prefix, including trailing whitespace and
|
|
|
|
bullet.
|
|
|
|
- a string representing the bullet character,
|
|
|
|
- and a series of strings, each containing one line of the exposed
|
|
|
|
portion of the topic entry."
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
2000-06-07 13:25:06 +00:00
|
|
|
(interactive "r")
|
|
|
|
(save-excursion
|
|
|
|
(let*
|
|
|
|
;; state vars:
|
|
|
|
(strings prefix pad result depth new-depth out gone-out bullet beg
|
|
|
|
next done)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
2000-06-07 13:25:06 +00:00
|
|
|
(goto-char start)
|
|
|
|
(beginning-of-line)
|
|
|
|
;; Goto initial topic, and register preceeding stuff, if any:
|
2002-12-16 00:20:42 +00:00
|
|
|
(if (> (allout-goto-prefix) start)
|
2000-06-07 13:25:06 +00:00
|
|
|
;; First topic follows beginning point - register preliminary stuff:
|
|
|
|
(setq result (list (list 0 "" nil
|
|
|
|
(buffer-substring start (1- (point)))))))
|
|
|
|
(while (and (not done)
|
|
|
|
(not (eobp)) ; Loop until we've covered the region.
|
|
|
|
(not (> (point) end)))
|
2002-12-16 00:20:42 +00:00
|
|
|
(setq depth (allout-recent-depth) ; Current topics depth,
|
|
|
|
bullet (allout-recent-bullet) ; ... bullet,
|
|
|
|
prefix (allout-recent-prefix)
|
|
|
|
beg (progn (allout-end-of-prefix t) (point))) ; and beginning.
|
2000-06-07 13:25:06 +00:00
|
|
|
(setq done ; The boundary for the current topic:
|
2002-12-16 00:20:42 +00:00
|
|
|
(not (allout-next-visible-heading 1)))
|
|
|
|
(setq new-depth (allout-recent-depth))
|
2000-06-07 13:25:06 +00:00
|
|
|
(setq gone-out out
|
|
|
|
out (< new-depth depth))
|
|
|
|
(beginning-of-line)
|
|
|
|
(setq next (point))
|
|
|
|
(goto-char beg)
|
|
|
|
(setq strings nil)
|
|
|
|
(while (> next (point)) ; Get all the exposed text in
|
|
|
|
(setq strings
|
|
|
|
(cons (buffer-substring
|
|
|
|
beg
|
|
|
|
;To hidden text or end of line:
|
|
|
|
(progn
|
|
|
|
(search-forward "\r"
|
|
|
|
(save-excursion (end-of-line)
|
|
|
|
(point))
|
|
|
|
1)
|
|
|
|
(if (= (preceding-char) ?\r)
|
|
|
|
(1- (point))
|
|
|
|
(point))))
|
|
|
|
strings))
|
|
|
|
(if (< (point) next) ; Resume from after hid text, if any.
|
|
|
|
(forward-line 1))
|
|
|
|
(setq beg (point)))
|
|
|
|
;; Accumulate list for this topic:
|
|
|
|
(setq strings (nreverse strings))
|
|
|
|
(setq result
|
|
|
|
(cons
|
|
|
|
(if format
|
|
|
|
(let ((special (if (string-match
|
|
|
|
(regexp-quote bullet)
|
2002-12-16 00:20:42 +00:00
|
|
|
allout-distinctive-bullets-string)
|
2000-06-07 13:25:06 +00:00
|
|
|
bullet)))
|
|
|
|
(cond ((listp format)
|
|
|
|
(list depth
|
2002-12-16 00:20:42 +00:00
|
|
|
(if allout-abbreviate-flattened-numbering
|
|
|
|
(allout-stringify-flat-index format
|
2000-06-07 13:25:06 +00:00
|
|
|
gone-out)
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-stringify-flat-index-plain
|
2000-06-07 13:25:06 +00:00
|
|
|
format))
|
|
|
|
strings
|
|
|
|
special))
|
|
|
|
((eq format 'indent)
|
|
|
|
(if special
|
|
|
|
(list depth
|
|
|
|
(concat (make-string (1+ depth) ? )
|
|
|
|
(substring prefix -1))
|
|
|
|
strings)
|
|
|
|
(list depth
|
|
|
|
(make-string depth ? )
|
|
|
|
strings)))
|
2002-12-16 00:20:42 +00:00
|
|
|
(t (error "allout-listify-exposed: %s %s"
|
2000-06-07 13:25:06 +00:00
|
|
|
"invalid format" format))))
|
|
|
|
(list depth prefix strings))
|
|
|
|
result))
|
|
|
|
;; Reasses format, if any:
|
|
|
|
(if (and format (listp format))
|
|
|
|
(cond ((= new-depth depth)
|
|
|
|
(setq format (cons (1+ (car format))
|
|
|
|
(cdr format))))
|
|
|
|
((> new-depth depth) ; descending - assume by 1:
|
|
|
|
(setq format (cons 1 format)))
|
|
|
|
(t
|
|
|
|
; Pop the residue:
|
|
|
|
(while (< new-depth depth)
|
|
|
|
(setq format (cdr format))
|
|
|
|
(setq depth (1- depth)))
|
|
|
|
; And increment the current one:
|
|
|
|
(setq format
|
|
|
|
(cons (1+ (or (car format)
|
|
|
|
-1))
|
|
|
|
(cdr format)))))))
|
|
|
|
;; Put the list with first at front, to last at back:
|
|
|
|
(nreverse result))))
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
;;;_ > my-region-active-p ()
|
|
|
|
(defmacro my-region-active-p ()
|
|
|
|
(if (fboundp 'region-active-p)
|
|
|
|
'(region-active-p)
|
|
|
|
'mark-active))
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-process-exposed (&optional func from to frombuf
|
2000-06-07 13:25:06 +00:00
|
|
|
;;; tobuf format)
|
2002-12-16 00:20:42 +00:00
|
|
|
(defun allout-process-exposed (&optional func from to frombuf tobuf
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
format &optional start-num)
|
2000-06-07 13:25:06 +00:00
|
|
|
"Map function on exposed parts of current topic; results to another buffer.
|
(outline-auto-activation, outline-layout)
(outline-primary-bullet, outline-plain-bullets-string)
(outline-distinctive-bullets-string, outline-old-style-prefixes)
(outline-stylish-prefixes, outline-file-xref-bullet)
(outline-use-hanging-indents, outline-bullets-string)
(outline-write-file-hook, outline-mode, outline-prefix-data)
(outline-before-change-protect, outline-make-topic-prefix)
(outline-rebullet-current-heading, outline-rebullet-heading)
(outline-listify-exposed, outline-expose-topic)
(outline-old-expose-topic, outline-exposure)
(outline-latex-verbatim-quote-curr-line)
(outline-show-current-subtree, outline-hide-current-subtree)
(outline-hide-current-leaves, outline-new-exposure): Doc fix.
1996-07-13 18:46:08 +00:00
|
|
|
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
All args are options; default values itemized below.
|
|
|
|
|
|
|
|
Apply FUNCTION to exposed portions FROM position TO position in buffer
|
2000-06-07 13:25:06 +00:00
|
|
|
FROMBUF to buffer TOBUF. Sixth optional arg, FORMAT, designates an
|
|
|
|
alternate presentation form:
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
2000-06-07 13:25:06 +00:00
|
|
|
`flat' - Present prefix as numeric section.subsection..., starting with
|
|
|
|
section indicated by the start-num, innermost nesting first.
|
|
|
|
X`flat-indented' - Prefix is like `flat' for first topic at each
|
|
|
|
X level, but subsequent topics have only leaf topic
|
|
|
|
X number, padded with blanks to line up with first.
|
|
|
|
`indent' \(symbol) - Convert header prefixes to all white space,
|
|
|
|
except for distinctive bullets.
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
2000-06-07 13:25:06 +00:00
|
|
|
Defaults:
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
FUNCTION: `allout-insert-listified'
|
2000-06-07 13:25:06 +00:00
|
|
|
FROM: region start, if region active, else start of buffer
|
|
|
|
TO: region end, if region active, else end of buffer
|
|
|
|
FROMBUF: current buffer
|
|
|
|
TOBUF: buffer name derived: \"*current-buffer-name exposed*\"
|
|
|
|
FORMAT: nil"
|
|
|
|
|
|
|
|
; Resolve arguments,
|
|
|
|
; defaulting if necessary:
|
2002-12-16 00:20:42 +00:00
|
|
|
(if (not func) (setq func 'allout-insert-listified))
|
2000-06-07 13:25:06 +00:00
|
|
|
(if (not (and from to))
|
|
|
|
(if (my-region-active-p)
|
|
|
|
(setq from (region-beginning) to (region-end))
|
|
|
|
(setq from (point-min) to (point-max))))
|
|
|
|
(if frombuf
|
|
|
|
(if (not (bufferp frombuf))
|
|
|
|
;; Specified but not a buffer - get it:
|
|
|
|
(let ((got (get-buffer frombuf)))
|
|
|
|
(if (not got)
|
2002-12-16 00:20:42 +00:00
|
|
|
(error (concat "allout-process-exposed: source buffer "
|
2000-06-07 13:25:06 +00:00
|
|
|
frombuf
|
|
|
|
" not found."))
|
|
|
|
(setq frombuf got))))
|
|
|
|
;; not specified - default it:
|
|
|
|
(setq frombuf (current-buffer)))
|
|
|
|
(if tobuf
|
|
|
|
(if (not (bufferp tobuf))
|
|
|
|
(setq tobuf (get-buffer-create tobuf)))
|
|
|
|
;; not specified - default it:
|
|
|
|
(setq tobuf (concat "*" (buffer-name frombuf) " exposed*")))
|
|
|
|
(if (listp format)
|
|
|
|
(nreverse format))
|
|
|
|
|
|
|
|
(let* ((listified
|
|
|
|
(progn (set-buffer frombuf)
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-listify-exposed from to format))))
|
2000-06-07 13:25:06 +00:00
|
|
|
(set-buffer tobuf)
|
|
|
|
(mapcar func listified)
|
|
|
|
(pop-to-buffer tobuf)))
|
|
|
|
|
|
|
|
;;;_ - Copy exposed
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-insert-listified (listified)
|
|
|
|
(defun allout-insert-listified (listified)
|
2000-06-07 13:25:06 +00:00
|
|
|
"Insert contents of listified outline portion in current buffer.
|
|
|
|
|
(allout-chart-subtree, allout-rebullet-topic-grunt): Don't mention in the
docstring these arguments meant for internal (recursive) use only.
(allout-char-spec): Comment out (it's not implemented).
(allout-old-expose-topic, allout-exposure): Fix docstring and add obsolescence
declaration.
(allout-flatten-exposed-to-buffer, allout-indented-exposed-to-buffer): Fix typos
in docstring.
(my-mark-marker): Doc fix.
(produce-allout-mode-map, allout-sibling-index, allout-isearch-expose)
(allout-distinctive-bullet, allout-open-topic, allout-reindent-body)
(allout-rebullet-heading, allout-process-exposed, allout-insert-listified)
(allout-latex-verb-quote, allout-insert-latex-header)
(allout-insert-latex-trailer): Make arguments match their use in
docstring.
(allout-primary-bullet, allout-old-style-prefixes, allout-inhibit-protection)
(allout-init, allout-mode, allout-before-change-protect, allout-flag-region):
Use "Emacs" instead of "emacs" in docstrings.
2004-05-21 18:10:21 +00:00
|
|
|
LISTIFIED is a list representing each topic header and body:
|
2000-06-07 13:25:06 +00:00
|
|
|
|
|
|
|
\`(depth prefix text)'
|
|
|
|
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
or \`(depth prefix text bullet-plus)'
|
2000-06-07 13:25:06 +00:00
|
|
|
|
|
|
|
If `bullet-plus' is specified, it is inserted just after the entire prefix."
|
|
|
|
(setq listified (cdr listified))
|
|
|
|
(let ((prefix (prog1
|
|
|
|
(car listified)
|
|
|
|
(setq listified (cdr listified))))
|
|
|
|
(text (prog1
|
|
|
|
(car listified)
|
|
|
|
(setq listified (cdr listified))))
|
|
|
|
(bullet-plus (car listified)))
|
2001-11-26 16:24:26 +00:00
|
|
|
(insert prefix)
|
|
|
|
(if bullet-plus (insert (concat " " bullet-plus)))
|
2000-06-07 13:25:06 +00:00
|
|
|
(while text
|
2001-11-26 16:24:26 +00:00
|
|
|
(insert (car text))
|
2000-06-07 13:25:06 +00:00
|
|
|
(if (setq text (cdr text))
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
(insert "\n")))
|
2001-11-26 16:24:26 +00:00
|
|
|
(insert "\n")))
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-copy-exposed-to-buffer (&optional arg tobuf format)
|
|
|
|
(defun allout-copy-exposed-to-buffer (&optional arg tobuf format)
|
2000-06-07 13:25:06 +00:00
|
|
|
"Duplicate exposed portions of current outline to another buffer.
|
|
|
|
|
|
|
|
Other buffer has current buffers name with \" exposed\" appended to it.
|
|
|
|
|
|
|
|
With repeat count, copy the exposed parts of only the current topic.
|
|
|
|
|
|
|
|
Optional second arg TOBUF is target buffer name.
|
|
|
|
|
|
|
|
Optional third arg FORMAT, if non-nil, symbolically designates an
|
|
|
|
alternate presentation format for the outline:
|
|
|
|
|
|
|
|
`flat' - Convert topic header prefixes to numeric
|
|
|
|
section.subsection... identifiers.
|
|
|
|
`indent' - Convert header prefixes to all white space, except for
|
|
|
|
distinctive bullets.
|
|
|
|
`indent-flat' - The best of both - only the first of each level has
|
|
|
|
the full path, the rest have only the section number
|
|
|
|
of the leaf, preceded by the right amount of indentation."
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
|
|
|
(interactive "P")
|
|
|
|
(if (not tobuf)
|
|
|
|
(setq tobuf (get-buffer-create (concat "*" (buffer-name) " exposed*"))))
|
|
|
|
(let* ((start-pt (point))
|
2002-12-16 00:20:42 +00:00
|
|
|
(beg (if arg (allout-back-to-current-heading) (point-min)))
|
|
|
|
(end (if arg (allout-end-of-current-subtree) (point-max)))
|
2000-06-07 13:25:06 +00:00
|
|
|
(buf (current-buffer))
|
|
|
|
(start-list ()))
|
|
|
|
(if (eq format 'flat)
|
|
|
|
(setq format (if arg (save-excursion
|
|
|
|
(goto-char beg)
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-topic-flat-index))
|
2000-06-07 13:25:06 +00:00
|
|
|
'(1))))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(save-excursion (set-buffer tobuf)(erase-buffer))
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-process-exposed 'allout-insert-listified
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
beg
|
|
|
|
end
|
|
|
|
(current-buffer)
|
2000-06-07 13:25:06 +00:00
|
|
|
tobuf
|
|
|
|
format start-list)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(goto-char (point-min))
|
|
|
|
(pop-to-buffer buf)
|
|
|
|
(goto-char start-pt)))
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-flatten-exposed-to-buffer (&optional arg tobuf)
|
|
|
|
(defun allout-flatten-exposed-to-buffer (&optional arg tobuf)
|
2000-06-07 13:25:06 +00:00
|
|
|
"Present numeric outline of outline's exposed portions in another buffer.
|
|
|
|
|
(allout-chart-subtree, allout-rebullet-topic-grunt): Don't mention in the
docstring these arguments meant for internal (recursive) use only.
(allout-char-spec): Comment out (it's not implemented).
(allout-old-expose-topic, allout-exposure): Fix docstring and add obsolescence
declaration.
(allout-flatten-exposed-to-buffer, allout-indented-exposed-to-buffer): Fix typos
in docstring.
(my-mark-marker): Doc fix.
(produce-allout-mode-map, allout-sibling-index, allout-isearch-expose)
(allout-distinctive-bullet, allout-open-topic, allout-reindent-body)
(allout-rebullet-heading, allout-process-exposed, allout-insert-listified)
(allout-latex-verb-quote, allout-insert-latex-header)
(allout-insert-latex-trailer): Make arguments match their use in
docstring.
(allout-primary-bullet, allout-old-style-prefixes, allout-inhibit-protection)
(allout-init, allout-mode, allout-before-change-protect, allout-flag-region):
Use "Emacs" instead of "emacs" in docstrings.
2004-05-21 18:10:21 +00:00
|
|
|
The resulting outline is not compatible with outline mode - use
|
2002-12-16 00:20:42 +00:00
|
|
|
`allout-copy-exposed-to-buffer' if you want that.
|
2000-06-07 13:25:06 +00:00
|
|
|
|
2002-12-16 00:20:42 +00:00
|
|
|
Use `allout-indented-exposed-to-buffer' for indented presentation.
|
2000-06-07 13:25:06 +00:00
|
|
|
|
|
|
|
With repeat count, copy the exposed portions of only current topic.
|
|
|
|
|
(allout-chart-subtree, allout-rebullet-topic-grunt): Don't mention in the
docstring these arguments meant for internal (recursive) use only.
(allout-char-spec): Comment out (it's not implemented).
(allout-old-expose-topic, allout-exposure): Fix docstring and add obsolescence
declaration.
(allout-flatten-exposed-to-buffer, allout-indented-exposed-to-buffer): Fix typos
in docstring.
(my-mark-marker): Doc fix.
(produce-allout-mode-map, allout-sibling-index, allout-isearch-expose)
(allout-distinctive-bullet, allout-open-topic, allout-reindent-body)
(allout-rebullet-heading, allout-process-exposed, allout-insert-listified)
(allout-latex-verb-quote, allout-insert-latex-header)
(allout-insert-latex-trailer): Make arguments match their use in
docstring.
(allout-primary-bullet, allout-old-style-prefixes, allout-inhibit-protection)
(allout-init, allout-mode, allout-before-change-protect, allout-flag-region):
Use "Emacs" instead of "emacs" in docstrings.
2004-05-21 18:10:21 +00:00
|
|
|
Other buffer has current buffer's name with \" exposed\" appended to
|
2000-06-07 13:25:06 +00:00
|
|
|
it, unless optional second arg TOBUF is specified, in which case it is
|
|
|
|
used verbatim."
|
|
|
|
(interactive "P")
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-copy-exposed-to-buffer arg tobuf 'flat))
|
|
|
|
;;;_ > allout-indented-exposed-to-buffer (&optional arg tobuf)
|
|
|
|
(defun allout-indented-exposed-to-buffer (&optional arg tobuf)
|
2000-06-07 13:25:06 +00:00
|
|
|
"Present indented outline of outline's exposed portions in another buffer.
|
|
|
|
|
(allout-chart-subtree, allout-rebullet-topic-grunt): Don't mention in the
docstring these arguments meant for internal (recursive) use only.
(allout-char-spec): Comment out (it's not implemented).
(allout-old-expose-topic, allout-exposure): Fix docstring and add obsolescence
declaration.
(allout-flatten-exposed-to-buffer, allout-indented-exposed-to-buffer): Fix typos
in docstring.
(my-mark-marker): Doc fix.
(produce-allout-mode-map, allout-sibling-index, allout-isearch-expose)
(allout-distinctive-bullet, allout-open-topic, allout-reindent-body)
(allout-rebullet-heading, allout-process-exposed, allout-insert-listified)
(allout-latex-verb-quote, allout-insert-latex-header)
(allout-insert-latex-trailer): Make arguments match their use in
docstring.
(allout-primary-bullet, allout-old-style-prefixes, allout-inhibit-protection)
(allout-init, allout-mode, allout-before-change-protect, allout-flag-region):
Use "Emacs" instead of "emacs" in docstrings.
2004-05-21 18:10:21 +00:00
|
|
|
The resulting outline is not compatible with outline mode - use
|
2002-12-16 00:20:42 +00:00
|
|
|
`allout-copy-exposed-to-buffer' if you want that.
|
2000-06-07 13:25:06 +00:00
|
|
|
|
2002-12-16 00:20:42 +00:00
|
|
|
Use `allout-flatten-exposed-to-buffer' for numeric sectional presentation.
|
2000-06-07 13:25:06 +00:00
|
|
|
|
|
|
|
With repeat count, copy the exposed portions of only current topic.
|
|
|
|
|
(allout-chart-subtree, allout-rebullet-topic-grunt): Don't mention in the
docstring these arguments meant for internal (recursive) use only.
(allout-char-spec): Comment out (it's not implemented).
(allout-old-expose-topic, allout-exposure): Fix docstring and add obsolescence
declaration.
(allout-flatten-exposed-to-buffer, allout-indented-exposed-to-buffer): Fix typos
in docstring.
(my-mark-marker): Doc fix.
(produce-allout-mode-map, allout-sibling-index, allout-isearch-expose)
(allout-distinctive-bullet, allout-open-topic, allout-reindent-body)
(allout-rebullet-heading, allout-process-exposed, allout-insert-listified)
(allout-latex-verb-quote, allout-insert-latex-header)
(allout-insert-latex-trailer): Make arguments match their use in
docstring.
(allout-primary-bullet, allout-old-style-prefixes, allout-inhibit-protection)
(allout-init, allout-mode, allout-before-change-protect, allout-flag-region):
Use "Emacs" instead of "emacs" in docstrings.
2004-05-21 18:10:21 +00:00
|
|
|
Other buffer has current buffer's name with \" exposed\" appended to
|
2000-06-07 13:25:06 +00:00
|
|
|
it, unless optional second arg TOBUF is specified, in which case it is
|
|
|
|
used verbatim."
|
|
|
|
(interactive "P")
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-copy-exposed-to-buffer arg tobuf 'indent))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
|
|
|
;;;_ - LaTeX formatting
|
(allout-chart-subtree, allout-rebullet-topic-grunt): Don't mention in the
docstring these arguments meant for internal (recursive) use only.
(allout-char-spec): Comment out (it's not implemented).
(allout-old-expose-topic, allout-exposure): Fix docstring and add obsolescence
declaration.
(allout-flatten-exposed-to-buffer, allout-indented-exposed-to-buffer): Fix typos
in docstring.
(my-mark-marker): Doc fix.
(produce-allout-mode-map, allout-sibling-index, allout-isearch-expose)
(allout-distinctive-bullet, allout-open-topic, allout-reindent-body)
(allout-rebullet-heading, allout-process-exposed, allout-insert-listified)
(allout-latex-verb-quote, allout-insert-latex-header)
(allout-insert-latex-trailer): Make arguments match their use in
docstring.
(allout-primary-bullet, allout-old-style-prefixes, allout-inhibit-protection)
(allout-init, allout-mode, allout-before-change-protect, allout-flag-region):
Use "Emacs" instead of "emacs" in docstrings.
2004-05-21 18:10:21 +00:00
|
|
|
;;;_ > allout-latex-verb-quote (string &optional flow)
|
|
|
|
(defun allout-latex-verb-quote (string &optional flow)
|
(my-mark-marker, allout-isearch-prior-pos, allout-unprotected,
allout-undo-aggregation, allout-snug-back, allout-post-command-business,
allout-flag-region, isearch-reenable-font-lock, allout-yank,
allout-insert-latex-header, allout-insert-latex-trailer,
allout-latex-verbatim-quote-curr-line, allout-latexify-exposed,
allout-latex-verb-quote): Fix typos in docstrings.
(allout-enwrap-isearch, regexp-sans-escapes): Doc fix.
(allout-unprotected, allout-prefix-data): Improve argument/docstring
consistency.
(allout-chart-subtree): Fix argument spec.
(allout-open-topic): Rename `use_sib_bullet' argument to `use-sib-bullet'.
Doc fix.
2005-07-13 10:15:39 +00:00
|
|
|
"Return copy of STRING for literal reproduction across LaTeX processing.
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
Expresses the original characters \(including carriage returns) of the
|
(my-mark-marker, allout-isearch-prior-pos, allout-unprotected,
allout-undo-aggregation, allout-snug-back, allout-post-command-business,
allout-flag-region, isearch-reenable-font-lock, allout-yank,
allout-insert-latex-header, allout-insert-latex-trailer,
allout-latex-verbatim-quote-curr-line, allout-latexify-exposed,
allout-latex-verb-quote): Fix typos in docstrings.
(allout-enwrap-isearch, regexp-sans-escapes): Doc fix.
(allout-unprotected, allout-prefix-data): Improve argument/docstring
consistency.
(allout-chart-subtree): Fix argument spec.
(allout-open-topic): Rename `use_sib_bullet' argument to `use-sib-bullet'.
Doc fix.
2005-07-13 10:15:39 +00:00
|
|
|
string across LaTeX processing."
|
2000-06-07 13:25:06 +00:00
|
|
|
(mapconcat (function
|
|
|
|
(lambda (char)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(cond ((memq char '(?\\ ?$ ?% ?# ?& ?{ ?} ?_ ?^ ?- ?*))
|
|
|
|
(concat "\\char" (number-to-string char) "{}"))
|
|
|
|
((= char ?\n) "\\\\")
|
2000-06-07 13:25:06 +00:00
|
|
|
(t (char-to-string char)))))
|
(allout-chart-subtree, allout-rebullet-topic-grunt): Don't mention in the
docstring these arguments meant for internal (recursive) use only.
(allout-char-spec): Comment out (it's not implemented).
(allout-old-expose-topic, allout-exposure): Fix docstring and add obsolescence
declaration.
(allout-flatten-exposed-to-buffer, allout-indented-exposed-to-buffer): Fix typos
in docstring.
(my-mark-marker): Doc fix.
(produce-allout-mode-map, allout-sibling-index, allout-isearch-expose)
(allout-distinctive-bullet, allout-open-topic, allout-reindent-body)
(allout-rebullet-heading, allout-process-exposed, allout-insert-listified)
(allout-latex-verb-quote, allout-insert-latex-header)
(allout-insert-latex-trailer): Make arguments match their use in
docstring.
(allout-primary-bullet, allout-old-style-prefixes, allout-inhibit-protection)
(allout-init, allout-mode, allout-before-change-protect, allout-flag-region):
Use "Emacs" instead of "emacs" in docstrings.
2004-05-21 18:10:21 +00:00
|
|
|
string
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
""))
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-latex-verbatim-quote-curr-line ()
|
|
|
|
(defun allout-latex-verbatim-quote-curr-line ()
|
(my-mark-marker, allout-isearch-prior-pos, allout-unprotected,
allout-undo-aggregation, allout-snug-back, allout-post-command-business,
allout-flag-region, isearch-reenable-font-lock, allout-yank,
allout-insert-latex-header, allout-insert-latex-trailer,
allout-latex-verbatim-quote-curr-line, allout-latexify-exposed,
allout-latex-verb-quote): Fix typos in docstrings.
(allout-enwrap-isearch, regexp-sans-escapes): Doc fix.
(allout-unprotected, allout-prefix-data): Improve argument/docstring
consistency.
(allout-chart-subtree): Fix argument spec.
(allout-open-topic): Rename `use_sib_bullet' argument to `use-sib-bullet'.
Doc fix.
2005-07-13 10:15:39 +00:00
|
|
|
"Express line for exact \(literal) representation across LaTeX processing.
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
|
|
|
|
Adjust line contents so it is unaltered \(from the original line)
|
(my-mark-marker, allout-isearch-prior-pos, allout-unprotected,
allout-undo-aggregation, allout-snug-back, allout-post-command-business,
allout-flag-region, isearch-reenable-font-lock, allout-yank,
allout-insert-latex-header, allout-insert-latex-trailer,
allout-latex-verbatim-quote-curr-line, allout-latexify-exposed,
allout-latex-verb-quote): Fix typos in docstrings.
(allout-enwrap-isearch, regexp-sans-escapes): Doc fix.
(allout-unprotected, allout-prefix-data): Improve argument/docstring
consistency.
(allout-chart-subtree): Fix argument spec.
(allout-open-topic): Rename `use_sib_bullet' argument to `use-sib-bullet'.
Doc fix.
2005-07-13 10:15:39 +00:00
|
|
|
across LaTeX processing, within the context of a `verbatim'
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
environment. Leaves point at the end of the line."
|
|
|
|
(beginning-of-line)
|
|
|
|
(let ((beg (point))
|
|
|
|
(end (progn (end-of-line)(point))))
|
|
|
|
(goto-char beg)
|
|
|
|
(while (re-search-forward "\\\\"
|
|
|
|
;;"\\\\\\|\\{\\|\\}\\|\\_\\|\\$\\|\\\"\\|\\&\\|\\^\\|\\-\\|\\*\\|#"
|
|
|
|
end ; bounded by end-of-line
|
|
|
|
1) ; no matches, move to end & return nil
|
|
|
|
(goto-char (match-beginning 0))
|
2001-11-26 16:24:26 +00:00
|
|
|
(insert "\\")
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(setq end (1+ end))
|
|
|
|
(goto-char (1+ (match-end 0))))))
|
(allout-chart-subtree, allout-rebullet-topic-grunt): Don't mention in the
docstring these arguments meant for internal (recursive) use only.
(allout-char-spec): Comment out (it's not implemented).
(allout-old-expose-topic, allout-exposure): Fix docstring and add obsolescence
declaration.
(allout-flatten-exposed-to-buffer, allout-indented-exposed-to-buffer): Fix typos
in docstring.
(my-mark-marker): Doc fix.
(produce-allout-mode-map, allout-sibling-index, allout-isearch-expose)
(allout-distinctive-bullet, allout-open-topic, allout-reindent-body)
(allout-rebullet-heading, allout-process-exposed, allout-insert-listified)
(allout-latex-verb-quote, allout-insert-latex-header)
(allout-insert-latex-trailer): Make arguments match their use in
docstring.
(allout-primary-bullet, allout-old-style-prefixes, allout-inhibit-protection)
(allout-init, allout-mode, allout-before-change-protect, allout-flag-region):
Use "Emacs" instead of "emacs" in docstrings.
2004-05-21 18:10:21 +00:00
|
|
|
;;;_ > allout-insert-latex-header (buffer)
|
|
|
|
(defun allout-insert-latex-header (buffer)
|
(my-mark-marker, allout-isearch-prior-pos, allout-unprotected,
allout-undo-aggregation, allout-snug-back, allout-post-command-business,
allout-flag-region, isearch-reenable-font-lock, allout-yank,
allout-insert-latex-header, allout-insert-latex-trailer,
allout-latex-verbatim-quote-curr-line, allout-latexify-exposed,
allout-latex-verb-quote): Fix typos in docstrings.
(allout-enwrap-isearch, regexp-sans-escapes): Doc fix.
(allout-unprotected, allout-prefix-data): Improve argument/docstring
consistency.
(allout-chart-subtree): Fix argument spec.
(allout-open-topic): Rename `use_sib_bullet' argument to `use-sib-bullet'.
Doc fix.
2005-07-13 10:15:39 +00:00
|
|
|
"Insert initial LaTeX commands at point in BUFFER."
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
;; Much of this is being derived from the stuff in appendix of E in
|
|
|
|
;; the TeXBook, pg 421.
|
(allout-chart-subtree, allout-rebullet-topic-grunt): Don't mention in the
docstring these arguments meant for internal (recursive) use only.
(allout-char-spec): Comment out (it's not implemented).
(allout-old-expose-topic, allout-exposure): Fix docstring and add obsolescence
declaration.
(allout-flatten-exposed-to-buffer, allout-indented-exposed-to-buffer): Fix typos
in docstring.
(my-mark-marker): Doc fix.
(produce-allout-mode-map, allout-sibling-index, allout-isearch-expose)
(allout-distinctive-bullet, allout-open-topic, allout-reindent-body)
(allout-rebullet-heading, allout-process-exposed, allout-insert-listified)
(allout-latex-verb-quote, allout-insert-latex-header)
(allout-insert-latex-trailer): Make arguments match their use in
docstring.
(allout-primary-bullet, allout-old-style-prefixes, allout-inhibit-protection)
(allout-init, allout-mode, allout-before-change-protect, allout-flag-region):
Use "Emacs" instead of "emacs" in docstrings.
2004-05-21 18:10:21 +00:00
|
|
|
(set-buffer buffer)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(let ((doc-style (format "\n\\documentstyle{%s}\n"
|
|
|
|
"report"))
|
2002-12-16 00:20:42 +00:00
|
|
|
(page-numbering (if allout-number-pages
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
"\\pagestyle{empty}\n"
|
|
|
|
""))
|
|
|
|
(linesdef (concat "\\def\\beginlines{"
|
|
|
|
"\\par\\begingroup\\nobreak\\medskip"
|
|
|
|
"\\parindent=0pt\n"
|
|
|
|
" \\kern1pt\\nobreak \\obeylines \\obeyspaces "
|
|
|
|
"\\everypar{\\strut}}\n"
|
|
|
|
"\\def\\endlines{"
|
|
|
|
"\\kern1pt\\endgroup\\medbreak\\noindent}\n"))
|
|
|
|
(titlecmd (format "\\newcommand{\\titlecmd}[1]{{%s #1}}\n"
|
2002-12-16 00:20:42 +00:00
|
|
|
allout-title-style))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(labelcmd (format "\\newcommand{\\labelcmd}[1]{{%s #1}}\n"
|
2002-12-16 00:20:42 +00:00
|
|
|
allout-label-style))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(headlinecmd (format "\\newcommand{\\headlinecmd}[1]{{%s #1}}\n"
|
2002-12-16 00:20:42 +00:00
|
|
|
allout-head-line-style))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(bodylinecmd (format "\\newcommand{\\bodylinecmd}[1]{{%s #1}}\n"
|
2002-12-16 00:20:42 +00:00
|
|
|
allout-body-line-style))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(setlength (format "%s%s%s%s"
|
|
|
|
"\\newlength{\\stepsize}\n"
|
|
|
|
"\\setlength{\\stepsize}{"
|
2002-12-16 00:20:42 +00:00
|
|
|
allout-indent
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
"}\n"))
|
|
|
|
(oneheadline (format "%s%s%s%s%s%s%s"
|
|
|
|
"\\newcommand{\\OneHeadLine}[3]{%\n"
|
|
|
|
"\\noindent%\n"
|
|
|
|
"\\hspace*{#2\\stepsize}%\n"
|
|
|
|
"\\labelcmd{#1}\\hspace*{.2cm}"
|
|
|
|
"\\headlinecmd{#3}\\\\["
|
2002-12-16 00:20:42 +00:00
|
|
|
allout-line-skip
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
"]\n}\n"))
|
|
|
|
(onebodyline (format "%s%s%s%s%s%s"
|
|
|
|
"\\newcommand{\\OneBodyLine}[2]{%\n"
|
|
|
|
"\\noindent%\n"
|
|
|
|
"\\hspace*{#1\\stepsize}%\n"
|
|
|
|
"\\bodylinecmd{#2}\\\\["
|
2002-12-16 00:20:42 +00:00
|
|
|
allout-line-skip
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
"]\n}\n"))
|
|
|
|
(begindoc "\\begin{document}\n\\begin{center}\n")
|
|
|
|
(title (format "%s%s%s%s"
|
|
|
|
"\\titlecmd{"
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-latex-verb-quote (if allout-title
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(condition-case err
|
2002-12-16 00:20:42 +00:00
|
|
|
(eval allout-title)
|
2000-06-07 13:25:06 +00:00
|
|
|
('error "<unnamed buffer>"))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
"Unnamed Outline"))
|
|
|
|
"}\n"
|
|
|
|
"\\end{center}\n\n"))
|
|
|
|
(hsize "\\hsize = 7.5 true in\n")
|
|
|
|
(hoffset "\\hoffset = -1.5 true in\n")
|
|
|
|
(vspace "\\vspace{.1cm}\n\n"))
|
|
|
|
(insert (concat doc-style
|
|
|
|
page-numbering
|
|
|
|
titlecmd
|
|
|
|
labelcmd
|
|
|
|
headlinecmd
|
|
|
|
bodylinecmd
|
|
|
|
setlength
|
|
|
|
oneheadline
|
|
|
|
onebodyline
|
|
|
|
begindoc
|
|
|
|
title
|
|
|
|
hsize
|
|
|
|
hoffset
|
|
|
|
vspace)
|
|
|
|
)))
|
(allout-chart-subtree, allout-rebullet-topic-grunt): Don't mention in the
docstring these arguments meant for internal (recursive) use only.
(allout-char-spec): Comment out (it's not implemented).
(allout-old-expose-topic, allout-exposure): Fix docstring and add obsolescence
declaration.
(allout-flatten-exposed-to-buffer, allout-indented-exposed-to-buffer): Fix typos
in docstring.
(my-mark-marker): Doc fix.
(produce-allout-mode-map, allout-sibling-index, allout-isearch-expose)
(allout-distinctive-bullet, allout-open-topic, allout-reindent-body)
(allout-rebullet-heading, allout-process-exposed, allout-insert-listified)
(allout-latex-verb-quote, allout-insert-latex-header)
(allout-insert-latex-trailer): Make arguments match their use in
docstring.
(allout-primary-bullet, allout-old-style-prefixes, allout-inhibit-protection)
(allout-init, allout-mode, allout-before-change-protect, allout-flag-region):
Use "Emacs" instead of "emacs" in docstrings.
2004-05-21 18:10:21 +00:00
|
|
|
;;;_ > allout-insert-latex-trailer (buffer)
|
|
|
|
(defun allout-insert-latex-trailer (buffer)
|
(my-mark-marker, allout-isearch-prior-pos, allout-unprotected,
allout-undo-aggregation, allout-snug-back, allout-post-command-business,
allout-flag-region, isearch-reenable-font-lock, allout-yank,
allout-insert-latex-header, allout-insert-latex-trailer,
allout-latex-verbatim-quote-curr-line, allout-latexify-exposed,
allout-latex-verb-quote): Fix typos in docstrings.
(allout-enwrap-isearch, regexp-sans-escapes): Doc fix.
(allout-unprotected, allout-prefix-data): Improve argument/docstring
consistency.
(allout-chart-subtree): Fix argument spec.
(allout-open-topic): Rename `use_sib_bullet' argument to `use-sib-bullet'.
Doc fix.
2005-07-13 10:15:39 +00:00
|
|
|
"Insert concluding LaTeX commands at point in BUFFER."
|
(allout-chart-subtree, allout-rebullet-topic-grunt): Don't mention in the
docstring these arguments meant for internal (recursive) use only.
(allout-char-spec): Comment out (it's not implemented).
(allout-old-expose-topic, allout-exposure): Fix docstring and add obsolescence
declaration.
(allout-flatten-exposed-to-buffer, allout-indented-exposed-to-buffer): Fix typos
in docstring.
(my-mark-marker): Doc fix.
(produce-allout-mode-map, allout-sibling-index, allout-isearch-expose)
(allout-distinctive-bullet, allout-open-topic, allout-reindent-body)
(allout-rebullet-heading, allout-process-exposed, allout-insert-listified)
(allout-latex-verb-quote, allout-insert-latex-header)
(allout-insert-latex-trailer): Make arguments match their use in
docstring.
(allout-primary-bullet, allout-old-style-prefixes, allout-inhibit-protection)
(allout-init, allout-mode, allout-before-change-protect, allout-flag-region):
Use "Emacs" instead of "emacs" in docstrings.
2004-05-21 18:10:21 +00:00
|
|
|
(set-buffer buffer)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(insert "\n\\end{document}\n"))
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-latexify-one-item (depth prefix bullet text)
|
|
|
|
(defun allout-latexify-one-item (depth prefix bullet text)
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
"Insert LaTeX commands for formatting one outline item.
|
|
|
|
|
2000-06-07 13:25:06 +00:00
|
|
|
Args are the topics numeric DEPTH, the header PREFIX lead string, the
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
BULLET string, and a list of TEXT strings for the body."
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(let* ((head-line (if text (car text)))
|
|
|
|
(body-lines (cdr text))
|
|
|
|
(curr-line)
|
|
|
|
body-content bop)
|
|
|
|
; Do the head line:
|
2003-02-04 11:26:42 +00:00
|
|
|
(insert (concat "\\OneHeadLine{\\verb\1 "
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
(allout-latex-verb-quote bullet)
|
|
|
|
"\1}{"
|
|
|
|
depth
|
|
|
|
"}{\\verb\1 "
|
|
|
|
(if head-line
|
|
|
|
(allout-latex-verb-quote head-line)
|
|
|
|
"")
|
|
|
|
"\1}\n"))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(if (not body-lines)
|
|
|
|
nil
|
2001-11-26 16:24:26 +00:00
|
|
|
;;(insert "\\beginlines\n")
|
|
|
|
(insert "\\begin{verbatim}\n")
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(while body-lines
|
|
|
|
(setq curr-line (car body-lines))
|
|
|
|
(if (and (not body-content)
|
|
|
|
(not (string-match "^\\s-*$" curr-line)))
|
|
|
|
(setq body-content t))
|
|
|
|
; Mangle any occurrences of
|
|
|
|
; "\end{verbatim}" in text,
|
|
|
|
; it's special:
|
|
|
|
(if (and body-content
|
|
|
|
(setq bop (string-match "\\end{verbatim}" curr-line)))
|
|
|
|
(setq curr-line (concat (substring curr-line 0 bop)
|
|
|
|
">"
|
|
|
|
(substring curr-line bop))))
|
2001-11-26 16:24:26 +00:00
|
|
|
;;(insert "|" (car body-lines) "|")
|
|
|
|
(insert curr-line)
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-latex-verbatim-quote-curr-line)
|
2001-11-26 16:24:26 +00:00
|
|
|
(insert "\n")
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(setq body-lines (cdr body-lines)))
|
|
|
|
(if body-content
|
|
|
|
(setq body-content nil)
|
|
|
|
(forward-char -1)
|
2001-11-26 16:24:26 +00:00
|
|
|
(insert "\\ ")
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(forward-char 1))
|
2001-11-26 16:24:26 +00:00
|
|
|
;;(insert "\\endlines\n")
|
|
|
|
(insert "\\end{verbatim}\n")
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
)))
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-latexify-exposed (arg &optional tobuf)
|
|
|
|
(defun allout-latexify-exposed (arg &optional tobuf)
|
(my-mark-marker, allout-isearch-prior-pos, allout-unprotected,
allout-undo-aggregation, allout-snug-back, allout-post-command-business,
allout-flag-region, isearch-reenable-font-lock, allout-yank,
allout-insert-latex-header, allout-insert-latex-trailer,
allout-latex-verbatim-quote-curr-line, allout-latexify-exposed,
allout-latex-verb-quote): Fix typos in docstrings.
(allout-enwrap-isearch, regexp-sans-escapes): Doc fix.
(allout-unprotected, allout-prefix-data): Improve argument/docstring
consistency.
(allout-chart-subtree): Fix argument spec.
(allout-open-topic): Rename `use_sib_bullet' argument to `use-sib-bullet'.
Doc fix.
2005-07-13 10:15:39 +00:00
|
|
|
"Format current topics exposed portions to TOBUF for LaTeX processing.
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
TOBUF defaults to a buffer named the same as the current buffer, but
|
|
|
|
with \"*\" prepended and \" latex-formed*\" appended.
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
|
|
|
With repeat count, copy the exposed portions of entire buffer."
|
|
|
|
|
|
|
|
(interactive "P")
|
|
|
|
(if (not tobuf)
|
|
|
|
(setq tobuf
|
|
|
|
(get-buffer-create (concat "*" (buffer-name) " latexified*"))))
|
|
|
|
(let* ((start-pt (point))
|
2002-12-16 00:20:42 +00:00
|
|
|
(beg (if arg (point-min) (allout-back-to-current-heading)))
|
|
|
|
(end (if arg (point-max) (allout-end-of-current-subtree)))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(buf (current-buffer)))
|
|
|
|
(set-buffer tobuf)
|
1993-06-02 17:53:31 +00:00
|
|
|
(erase-buffer)
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-insert-latex-header tobuf)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(goto-char (point-max))
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-process-exposed 'allout-latexify-one-item
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
beg
|
|
|
|
end
|
|
|
|
buf
|
|
|
|
tobuf)
|
|
|
|
(goto-char (point-max))
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-insert-latex-trailer tobuf)
|
1993-06-02 17:53:31 +00:00
|
|
|
(goto-char (point-min))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(pop-to-buffer buf)
|
|
|
|
(goto-char start-pt)))
|
|
|
|
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
;;;_ #8 Encryption
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
;;;_ > allout-toggle-current-subtree-encryption (&optional fetch-pass)
|
|
|
|
(defun allout-toggle-current-subtree-encryption (&optional fetch-pass)
|
|
|
|
"Encrypt clear text or decrypt encoded topic contents \(body and subtopics.)
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
Optional FETCH-PASS universal argument provokes key-pair encryption with
|
|
|
|
single universal argument. With doubled universal argument \(value = 16),
|
|
|
|
it forces prompting for the passphrase regardless of availability from the
|
|
|
|
passphrase cache. With no universal argument, the appropriate passphrase
|
|
|
|
for the is obtained from the cache, if available, else from the user.
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
|
|
|
|
Currently only GnuPG encryption is supported.
|
|
|
|
|
|
|
|
\**NOTE WELL** that the encrypted text must be ascii-armored. For gnupg
|
|
|
|
encryption, include the option ``armor'' in your ~/.gnupg/gpg.conf file.
|
|
|
|
|
|
|
|
Both symmetric-key and key-pair encryption is implemented. Symmetric is
|
|
|
|
the default, use a single \(x4) universal argument for keypair mode.
|
|
|
|
|
|
|
|
Encrypted topic's bullet is set to a `~' to signal that the contents of the
|
|
|
|
topic \(body and subtopics, but not heading) is pending encryption or
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
encrypted. `*' asterisk immediately after the bullet signals that the body
|
|
|
|
is encrypted, its' absence means the topic is meant to be encrypted but is
|
|
|
|
not. When a file with topics pending encryption is saved, topics pending
|
|
|
|
encryption are encrypted. See allout-encrypt-unencrypted-on-saves for
|
|
|
|
auto-encryption specifics.
|
|
|
|
|
|
|
|
\**NOTE WELL** that automatic encryption that happens during saves will
|
|
|
|
default to symmetric encryption - you must manually \(re)encrypt key-pair
|
|
|
|
encrypted topics if you want them to continue to use the key-pair cipher.
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
|
|
|
|
Level-1 topics, with prefix consisting solely of an `*' asterisk, cannot be
|
|
|
|
encrypted. If you want to encrypt the contents of a top-level topic, use
|
|
|
|
\\[allout-shift-in] to increase its depth.
|
|
|
|
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
Passphrase Caching
|
|
|
|
|
|
|
|
The encryption passphrase is solicited if not currently available in the
|
|
|
|
passphrase cache from a recent encryption action.
|
|
|
|
|
|
|
|
The solicited passphrase is retained for reuse in a buffer-specific cache
|
|
|
|
for some set period of time \(default, 60 seconds), after which the string
|
|
|
|
is nulled. The passphrase cache timeout is customized by setting
|
|
|
|
`pgg-passphrase-cache-expiry'.
|
|
|
|
|
|
|
|
Symmetric Passphrase Hinting and Verification
|
|
|
|
|
|
|
|
If the file previously had no associated passphrase, or had a different
|
|
|
|
passphrase than specified, the user is prompted to repeat the new one for
|
|
|
|
corroboration. A random string encrypted by the new passphrase is set on
|
|
|
|
the buffer-specific variable `allout-passphrase-verifier-string', for
|
|
|
|
confirmation of the passphrase when next obtained, before encrypting or
|
|
|
|
decrypting anything with it. This helps avoid mistakenly shifting between
|
|
|
|
keys.
|
|
|
|
|
|
|
|
If allout customization var `allout-passphrase-verifier-handling' is
|
|
|
|
non-nil, an entry for `allout-passphrase-verifier-string' and its value is
|
|
|
|
added to an Emacs 'local variables' section at the end of the file, which
|
|
|
|
is created if necessary. That setting is for retention of the passphrase
|
|
|
|
verifier across emacs sessions.
|
|
|
|
|
|
|
|
Similarly, `allout-passphrase-hint-string' stores a user-provided reminder
|
|
|
|
about their passphrase, and `allout-passphrase-hint-handling' specifies
|
|
|
|
when the hint is presented, or if passphrase hints are disabled. If
|
|
|
|
enabled \(see the `allout-passphrase-hint-handling' docstring for details),
|
|
|
|
the hint string is stored in the local-variables section of the file, and
|
|
|
|
solicited whenever the passphrase is changed."
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
|
|
|
|
(interactive "P")
|
|
|
|
(save-excursion
|
|
|
|
(allout-end-of-prefix t)
|
|
|
|
|
|
|
|
(if (= (allout-recent-depth) 1)
|
|
|
|
(error (concat "Cannot encrypt or decrypt level 1 topics -"
|
|
|
|
" shift it in to make it encryptable")))
|
|
|
|
|
|
|
|
(let* ((allout-buffer (current-buffer))
|
|
|
|
;; Asses location:
|
|
|
|
(after-bullet-pos (point))
|
|
|
|
(was-encrypted
|
|
|
|
(progn (if (= (point-max) after-bullet-pos)
|
|
|
|
(error "no body to encrypt"))
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
(allout-encrypted-topic-p)))
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
(was-collapsed (if (not (re-search-forward "[\n\r]" nil t))
|
|
|
|
nil
|
|
|
|
(backward-char 1)
|
|
|
|
(looking-at "\r")))
|
|
|
|
(subtree-beg (1+ (point)))
|
|
|
|
(subtree-end (allout-end-of-subtree))
|
|
|
|
(subject-text (buffer-substring-no-properties subtree-beg
|
|
|
|
subtree-end))
|
|
|
|
(subtree-end-char (char-after (1- subtree-end)))
|
|
|
|
(subtree-trailling-char (char-after subtree-end))
|
|
|
|
(place-holder (if (or (string= "" subject-text)
|
|
|
|
(string= "\n" subject-text))
|
|
|
|
(error "No topic contents to %scrypt"
|
|
|
|
(if was-encrypted "de" "en"))))
|
|
|
|
;; Assess key parameters:
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
(key-info (or
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
;; detect the type by which it is already encrypted
|
|
|
|
(and was-encrypted
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
(allout-encrypted-key-info subject-text))
|
|
|
|
(and (member fetch-pass '(4 (4)))
|
|
|
|
'(keypair nil))
|
|
|
|
'(symmetric nil)))
|
|
|
|
(for-key-type (car key-info))
|
|
|
|
(for-key-identity (cadr key-info))
|
|
|
|
(fetch-pass (and fetch-pass (member fetch-pass '(16 (16)))))
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
result-text)
|
|
|
|
|
|
|
|
(setq result-text
|
|
|
|
(allout-encrypt-string subject-text was-encrypted
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
(current-buffer)
|
|
|
|
for-key-type for-key-identity fetch-pass))
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
|
|
|
|
;; Replace the subtree with the processed product.
|
|
|
|
(allout-unprotected
|
|
|
|
(progn
|
|
|
|
(set-buffer allout-buffer)
|
|
|
|
(delete-region subtree-beg subtree-end)
|
|
|
|
(insert result-text)
|
|
|
|
(if was-collapsed
|
|
|
|
(allout-flag-region subtree-beg (1- (point)) ?\r))
|
|
|
|
;; adjust trailling-blank-lines to preserve topic spacing:
|
|
|
|
(if (not was-encrypted)
|
|
|
|
(if (and (member subtree-end-char '(?\r ?\n))
|
|
|
|
(member subtree-trailling-char '(?\r ?\n)))
|
|
|
|
(insert subtree-trailling-char)))
|
|
|
|
;; Ensure that the item has an encrypted-entry bullet:
|
|
|
|
(if (not (string= (buffer-substring-no-properties
|
|
|
|
(1- after-bullet-pos) after-bullet-pos)
|
|
|
|
allout-topic-encryption-bullet))
|
|
|
|
(progn (goto-char (1- after-bullet-pos))
|
|
|
|
(delete-char 1)
|
|
|
|
(insert allout-topic-encryption-bullet)))
|
|
|
|
(if was-encrypted
|
|
|
|
;; Remove the is-encrypted bullet qualifier:
|
|
|
|
(progn (goto-char after-bullet-pos)
|
|
|
|
(delete-char 1))
|
|
|
|
;; Add the is-encrypted bullet qualifier:
|
|
|
|
(goto-char after-bullet-pos)
|
|
|
|
(insert "*"))
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
;;;_ > allout-encrypt-string (text decrypt allout-buffer key-type for-key
|
|
|
|
;;; fetch-pass &optional retried verifying
|
|
|
|
;;; passphrase)
|
|
|
|
(defun allout-encrypt-string (text decrypt allout-buffer key-type for-key
|
|
|
|
fetch-pass &optional retried verifying
|
|
|
|
passphrase)
|
|
|
|
"Encrypt or decrypt message TEXT.
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
If DECRYPT is true (default false), then decrypt instead of encrypt.
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
FETCH-PASS (default false) forces fresh prompting for the passphrase.
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
KEY-TYPE indicates whether to use a 'symmetric or 'keypair cipher.
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
FOR-KEY is human readable identification of the first of the user's
|
|
|
|
eligible secret keys a keypair decryption targets, or else nil.
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
Optional RETRIED is for internal use - conveys the number of failed keys
|
|
|
|
that have been solicited in sequence leading to this current call.
|
|
|
|
|
|
|
|
Optional PASSPHRASE enables explicit delivery of the decryption passphrase,
|
|
|
|
for verification purposes.
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
Returns the resulting string, or nil if the transformation fails."
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
(require 'pgg)
|
|
|
|
|
|
|
|
(let* ((scheme (upcase
|
|
|
|
(format "%s" (or pgg-scheme pgg-default-scheme "GPG"))))
|
|
|
|
(for-key (and (equal key-type 'keypair)
|
|
|
|
(or for-key
|
|
|
|
(split-string (read-string
|
|
|
|
(format "%s message recipients: "
|
|
|
|
scheme))
|
|
|
|
"[ \t,]+"))))
|
|
|
|
(target-prompt-id (if (equal key-type 'keypair)
|
|
|
|
(if (= (length for-key) 1)
|
|
|
|
(car for-key) for-key)
|
|
|
|
(buffer-name allout-buffer)))
|
|
|
|
(target-cache-id (format "%s-%s"
|
|
|
|
key-type
|
|
|
|
(if (equal key-type 'keypair)
|
|
|
|
target-prompt-id
|
|
|
|
(or (buffer-file-name allout-buffer)
|
|
|
|
target-prompt-id))))
|
|
|
|
(comment "Processed by allout driving pgg")
|
|
|
|
work-buffer result result-text status)
|
|
|
|
|
|
|
|
(if (and fetch-pass (not passphrase))
|
|
|
|
;; Force later fetch by evicting passphrase from the cache.
|
|
|
|
(pgg-remove-passphrase-from-cache target-cache-id t))
|
|
|
|
|
|
|
|
(catch 'encryption-failed
|
|
|
|
|
|
|
|
;; Obtain the passphrase if we don't already have one and we're not
|
|
|
|
;; doing a keypair encryption:
|
|
|
|
(if (not (or passphrase
|
|
|
|
(and (equal key-type 'keypair)
|
|
|
|
(not decrypt))))
|
|
|
|
|
|
|
|
(setq passphrase (allout-obtain-passphrase for-key
|
|
|
|
target-cache-id
|
|
|
|
target-prompt-id
|
|
|
|
key-type
|
|
|
|
allout-buffer
|
|
|
|
retried fetch-pass)))
|
|
|
|
(with-temp-buffer
|
|
|
|
|
|
|
|
(insert (subst-char-in-string ?\r ?\n text))
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
(cond
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
;; symmetric:
|
|
|
|
((equal key-type 'symmetric)
|
|
|
|
(setq status
|
|
|
|
(if decrypt
|
|
|
|
|
|
|
|
(pgg-decrypt (point-min) (point-max) passphrase)
|
|
|
|
|
|
|
|
(pgg-encrypt-symmetric (point-min) (point-max)
|
|
|
|
passphrase)))
|
|
|
|
|
|
|
|
(if status
|
|
|
|
(pgg-situate-output (point-min) (point-max))
|
|
|
|
;; failed - handle passphrase caching
|
|
|
|
(if verifying
|
|
|
|
(throw 'encryption-failed nil)
|
|
|
|
(pgg-remove-passphrase-from-cache target-cache-id t)
|
|
|
|
(error "Symmetric-cipher encryption failed - %s"
|
|
|
|
"try again with different passphrase."))))
|
|
|
|
|
|
|
|
;; encrypt 'keypair:
|
|
|
|
((not decrypt)
|
|
|
|
|
|
|
|
(setq status
|
|
|
|
|
|
|
|
(pgg-encrypt for-key
|
|
|
|
nil (point-min) (point-max) passphrase))
|
|
|
|
|
|
|
|
(if status
|
|
|
|
(pgg-situate-output (point-min) (point-max))
|
|
|
|
(error (pgg-remove-passphrase-from-cache target-cache-id t)
|
|
|
|
(error "encryption failed"))))
|
|
|
|
|
|
|
|
;; decrypt 'keypair:
|
|
|
|
(t
|
|
|
|
|
|
|
|
(setq status
|
|
|
|
(pgg-decrypt (point-min) (point-max) passphrase))
|
|
|
|
|
|
|
|
(if status
|
|
|
|
(pgg-situate-output (point-min) (point-max))
|
|
|
|
(error (pgg-remove-passphrase-from-cache target-cache-id t)
|
|
|
|
(error "decryption failed"))))
|
|
|
|
)
|
|
|
|
|
|
|
|
(setq result-text
|
|
|
|
(buffer-substring 1 (- (point-max) (if decrypt 0 1))))
|
|
|
|
|
|
|
|
;; validate result - non-empty
|
|
|
|
(cond ((not result-text)
|
|
|
|
(if verifying
|
|
|
|
nil
|
|
|
|
;; transform was fruitless, retry w/new passphrase.
|
|
|
|
(pgg-remove-passphrase-from-cache target-cache-id t)
|
|
|
|
(allout-encrypt-string text allout-buffer decrypt nil
|
|
|
|
(if retried (1+ retried) 1)
|
|
|
|
passphrase)))
|
|
|
|
|
|
|
|
;; Barf if encryption yields extraordinary control chars:
|
|
|
|
((and (not decrypt)
|
|
|
|
(string-match "[\C-a\C-k\C-o-\C-z\C-@]"
|
|
|
|
result-text))
|
|
|
|
(error (concat "encryption produced unusable"
|
|
|
|
" non-armored text - reconfigure!")))
|
|
|
|
|
|
|
|
;; valid result and just verifying or non-symmetric:
|
|
|
|
((or verifying (not (equal key-type 'symmetric)))
|
|
|
|
(if (or verifying decrypt)
|
|
|
|
(pgg-add-passphrase-to-cache target-cache-id
|
|
|
|
passphrase t))
|
|
|
|
result-text)
|
|
|
|
|
|
|
|
;; valid result and regular symmetric - "register"
|
|
|
|
;; passphrase with mnemonic aids/cache.
|
|
|
|
(t
|
|
|
|
(set-buffer allout-buffer)
|
|
|
|
(if passphrase
|
|
|
|
(pgg-add-passphrase-to-cache target-cache-id
|
|
|
|
passphrase t))
|
|
|
|
(allout-update-passphrase-mnemonic-aids for-key passphrase
|
|
|
|
allout-buffer)
|
|
|
|
result-text)
|
|
|
|
)
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
;;;_ > allout-obtain-passphrase (for-key cache-id prompt-id key-type
|
|
|
|
;;; allout-buffer retried fetch-pass)
|
|
|
|
(defun allout-obtain-passphrase (for-key cache-id prompt-id key-type
|
|
|
|
allout-buffer retried fetch-pass)
|
|
|
|
"Obtain passphrase for a key from the cache or else from the user.
|
|
|
|
|
|
|
|
When obtaining from the user, symmetric-cipher passphrases are verified
|
|
|
|
against either, if available and enabled, a random string that was
|
|
|
|
encrypted against the passphrase, or else against repeated entry by the
|
|
|
|
user for corroboration.
|
|
|
|
|
|
|
|
FOR-KEY is the key for which the passphrase is being obtained.
|
|
|
|
|
|
|
|
CACHE-ID is the cache id of the key for the passphrase.
|
|
|
|
|
|
|
|
PROMPT-ID is the id for use when prompting the user.
|
|
|
|
|
|
|
|
KEY-TYPE is either 'symmetric or 'keypair.
|
|
|
|
|
|
|
|
ALLOUT-BUFFER is the buffer containing the entry being en/decrypted.
|
|
|
|
|
|
|
|
RETRIED is the number of this attempt to obtain this passphrase.
|
|
|
|
|
|
|
|
FETCH-PASS causes the passphrase to be solicited from the user, regardless
|
|
|
|
of the availability of a cached copy."
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
|
|
|
|
(if (not (equal key-type 'symmetric))
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
;; do regular passphrase read on non-symmetric passphrase:
|
|
|
|
(pgg-read-passphrase (format "%s passphrase%s: "
|
|
|
|
(upcase (format "%s" (or pgg-scheme
|
|
|
|
pgg-default-scheme
|
|
|
|
"GPG")))
|
|
|
|
(if prompt-id
|
|
|
|
(format " for %s" prompt-id)
|
|
|
|
""))
|
|
|
|
cache-id t)
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
|
|
|
|
;; Symmetric hereon:
|
|
|
|
|
|
|
|
(save-excursion
|
|
|
|
(set-buffer allout-buffer)
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
(let* ((hint (if (and (not (string= allout-passphrase-hint-string ""))
|
|
|
|
(or (equal allout-passphrase-hint-handling 'always)
|
|
|
|
(and (equal allout-passphrase-hint-handling
|
|
|
|
'needed)
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
retried)))
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
(format " [%s]" allout-passphrase-hint-string)
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
""))
|
|
|
|
(retry-message (if retried (format " (%s retry)" retried) ""))
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
(prompt-sans-hint (format "'%s' symmetric passphrase%s: "
|
|
|
|
prompt-id retry-message))
|
|
|
|
(full-prompt (format "'%s' symmetric passphrase%s%s: "
|
|
|
|
prompt-id hint retry-message))
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
(prompt full-prompt)
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
(verifier-string (allout-get-encryption-passphrase-verifier))
|
|
|
|
|
|
|
|
(cached (and (not fetch-pass)
|
|
|
|
(pgg-read-passphrase-from-cache cache-id t)))
|
|
|
|
(got-pass (or cached
|
|
|
|
(pgg-read-passphrase full-prompt cache-id t)))
|
|
|
|
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
confirmation)
|
|
|
|
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
(if (not got-pass)
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
nil
|
|
|
|
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
;; Duplicate our handle on the passphrase so it's not clobbered by
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
;; deactivate-passwd memory clearing:
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
(setq got-pass (format "%s" got-pass))
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
|
|
|
|
(cond (verifier-string
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
(save-window-excursion
|
|
|
|
(if (allout-encrypt-string verifier-string 'decrypt
|
|
|
|
allout-buffer 'symmetric
|
|
|
|
for-key nil 0 'verifying
|
|
|
|
got-pass)
|
|
|
|
(setq confirmation (format "%s" got-pass))))
|
|
|
|
|
|
|
|
(if (and (not confirmation)
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
(if (yes-or-no-p
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
(concat "Passphrase differs from established"
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
" - use new one instead? "))
|
|
|
|
;; deactivate password for subsequent
|
|
|
|
;; confirmation:
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
(progn
|
|
|
|
(pgg-remove-passphrase-from-cache cache-id t)
|
|
|
|
(setq prompt prompt-sans-hint)
|
|
|
|
nil)
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
t))
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
(progn (pgg-remove-passphrase-from-cache cache-id t)
|
|
|
|
(error "Wrong passphrase."))))
|
|
|
|
;; No verifier string - force confirmation by repetition of
|
|
|
|
;; (new) passphrase:
|
|
|
|
((or fetch-pass (not cached))
|
|
|
|
(pgg-remove-passphrase-from-cache cache-id t))))
|
|
|
|
;; confirmation vs new input - doing pgg-read-passphrase will do the
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
;; right thing, in either case:
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
(if (not confirmation)
|
|
|
|
(setq confirmation
|
|
|
|
(pgg-read-passphrase (concat prompt
|
|
|
|
" ... confirm spelling: ")
|
|
|
|
cache-id t)))
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
(prog1
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
(if (equal got-pass confirmation)
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
confirmation
|
|
|
|
(if (yes-or-no-p (concat "spelling of original and"
|
|
|
|
" confirmation differ - retry? "))
|
|
|
|
(progn (setq retried (if retried (1+ retried) 1))
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
(pgg-remove-passphrase-from-cache cache-id t)
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
;; recurse to this routine:
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
(pgg-read-passphrase prompt-sans-hint cache-id t))
|
|
|
|
(pgg-remove-passphrase-from-cache cache-id t)
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
(error "Confirmation failed.")))
|
|
|
|
;; reduce opportunity for memory cherry-picking by zeroing duplicate:
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
(dotimes (i (length got-pass))
|
|
|
|
(aset got-pass i 0))
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
;;;_ > allout-encrypted-topic-p ()
|
|
|
|
(defun allout-encrypted-topic-p ()
|
|
|
|
"True if the current topic is encryptable and encrypted."
|
|
|
|
(save-excursion
|
|
|
|
(allout-end-of-prefix t)
|
|
|
|
(and (string= (buffer-substring-no-properties (1- (point)) (point))
|
|
|
|
allout-topic-encryption-bullet)
|
|
|
|
(looking-at "\\*"))
|
|
|
|
)
|
|
|
|
)
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
;;;_ > allout-encrypted-key-info (text)
|
|
|
|
;; XXX gpg-specific, alas
|
|
|
|
(defun allout-encrypted-key-info (text)
|
|
|
|
"Return a pair of the key type and identity of a recipient's secret key.
|
|
|
|
|
|
|
|
The key type is one of 'symmetric or 'keypair.
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
if 'keypair, and some of the user's secret keys are among those for which
|
|
|
|
the message was encoded, return the identity of the first. otherwise,
|
|
|
|
return nil for the second item of the pair.
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
An error is raised if the text is not encrypted."
|
|
|
|
(require 'pgg-parse)
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
(save-excursion
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
(with-temp-buffer
|
|
|
|
(insert (subst-char-in-string ?\r ?\n text))
|
|
|
|
(let* ((parsed-armor (pgg-parse-armor-region (point-min) (point-max)))
|
|
|
|
(type (if (pgg-gpg-symmetric-key-p parsed-armor)
|
|
|
|
'symmetric
|
|
|
|
'keypair))
|
|
|
|
secret-keys first-secret-key for-key-owner)
|
|
|
|
(if (equal type 'keypair)
|
|
|
|
(setq secret-keys (pgg-gpg-lookup-all-secret-keys)
|
|
|
|
first-secret-key (pgg-gpg-select-matching-key parsed-armor
|
|
|
|
secret-keys)
|
|
|
|
for-key-owner (and first-secret-key
|
|
|
|
(pgg-gpg-lookup-key-owner
|
|
|
|
first-secret-key))))
|
|
|
|
(list type (pgg-gpg-key-id-from-key-owner for-key-owner))
|
|
|
|
)
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
;;;_ > allout-create-encryption-passphrase-verifier (passphrase)
|
|
|
|
(defun allout-create-encryption-passphrase-verifier (passphrase)
|
|
|
|
"Encrypt random message for later validation of symmetric key's passphrase."
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
;; use 20 random ascii characters, across the entire ascii range.
|
|
|
|
(random t)
|
|
|
|
(let ((spew (make-string 20 ?\0)))
|
|
|
|
(dotimes (i (length spew))
|
|
|
|
(aset spew i (1+ (random 254))))
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
(allout-encrypt-string spew nil (current-buffer) 'symmetric
|
|
|
|
nil nil 0 passphrase))
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
)
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
;;;_ > allout-update-passphrase-mnemonic-aids (for-key passphrase
|
|
|
|
;;; outline-buffer)
|
|
|
|
(defun allout-update-passphrase-mnemonic-aids (for-key passphrase
|
|
|
|
outline-buffer)
|
|
|
|
"Update passphrase verifier and hint strings if necessary.
|
|
|
|
|
|
|
|
See `allout-passphrase-verifier-string' and `allout-passphrase-hint-string'
|
|
|
|
settings.
|
|
|
|
|
|
|
|
PASSPHRASE is the passphrase being mnemonicized
|
|
|
|
|
|
|
|
OUTLINE-BUFFER is the buffer of the outline being adjusted.
|
|
|
|
|
|
|
|
These are used to help the user keep track of the passphrase they use for
|
|
|
|
symmetric encryption in the file.
|
|
|
|
|
|
|
|
Behavior is governed by `allout-passphrase-verifier-handling',
|
|
|
|
`allout-passphrase-hint-handling', and also, controlling whether the values
|
|
|
|
are preserved on Emacs local file variables,
|
|
|
|
`allout-enable-file-variable-adjustment'."
|
|
|
|
|
|
|
|
;; If passphrase doesn't agree with current verifier:
|
|
|
|
;; - adjust the verifier
|
|
|
|
;; - if passphrase hint handling is enabled, adjust the passphrase hint
|
|
|
|
;; - if file var settings are enabled, adjust the file vars
|
|
|
|
|
|
|
|
(let* ((new-verifier-needed (not (allout-verify-passphrase
|
|
|
|
for-key passphrase outline-buffer)))
|
|
|
|
(new-verifier-string
|
|
|
|
(if new-verifier-needed
|
|
|
|
;; Collapse to a single line and enclose in string quotes:
|
|
|
|
(subst-char-in-string
|
|
|
|
?\n ?\C-a (allout-create-encryption-passphrase-verifier
|
|
|
|
passphrase))))
|
|
|
|
new-hint)
|
|
|
|
(when new-verifier-string
|
|
|
|
;; do the passphrase hint first, since it's interactive
|
|
|
|
(when (and allout-passphrase-hint-handling
|
|
|
|
(not (equal allout-passphrase-hint-handling 'disabled)))
|
|
|
|
(setq new-hint
|
|
|
|
(read-from-minibuffer "Passphrase hint to jog your memory: "
|
|
|
|
allout-passphrase-hint-string))
|
|
|
|
(when (not (string= new-hint allout-passphrase-hint-string))
|
|
|
|
(setq allout-passphrase-hint-string new-hint)
|
|
|
|
(allout-adjust-file-variable "allout-passphrase-hint-string"
|
|
|
|
allout-passphrase-hint-string)))
|
|
|
|
(when allout-passphrase-verifier-handling
|
|
|
|
(setq allout-passphrase-verifier-string new-verifier-string)
|
|
|
|
(allout-adjust-file-variable "allout-passphrase-verifier-string"
|
|
|
|
allout-passphrase-verifier-string))
|
|
|
|
)
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
)
|
|
|
|
)
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
;;;_ > allout-get-encryption-passphrase-verifier ()
|
|
|
|
(defun allout-get-encryption-passphrase-verifier ()
|
|
|
|
"Return text of the encrypt passphrase verifier, unmassaged, or nil if none.
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
Derived from value of `allout-file-passphrase-verifier-string'."
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
(let ((verifier-string (and (boundp 'allout-passphrase-verifier-string)
|
|
|
|
allout-passphrase-verifier-string)))
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
(if verifier-string
|
|
|
|
;; Return it uncollapsed
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
(subst-char-in-string ?\C-a ?\n verifier-string))
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
)
|
|
|
|
)
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
;;;_ > allout-verify-passphrase (key passphrase allout-buffer)
|
|
|
|
(defun allout-verify-passphrase (key passphrase allout-buffer)
|
|
|
|
"True if passphrase successfully decrypts verifier, nil otherwise.
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
\"Otherwise\" includes absence of passphrase verifier."
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
(save-excursion
|
|
|
|
(set-buffer allout-buffer)
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
(and (boundp 'allout-passphrase-verifier-string)
|
|
|
|
allout-passphrase-verifier-string
|
|
|
|
(allout-encrypt-string (allout-get-encryption-passphrase-verifier)
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
'decrypt allout-buffer 'symmetric
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
key nil 0 'verifying passphrase)
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
t)))
|
|
|
|
;;;_ > allout-next-topic-pending-encryption (&optional except-mark)
|
|
|
|
(defun allout-next-topic-pending-encryption (&optional except-mark)
|
|
|
|
"Return the point of the next topic pending encryption, or nil if none.
|
|
|
|
|
|
|
|
EXCEPT-MARK identifies a point whose containing topics should be excluded
|
|
|
|
from encryption. This supports 'except-current mode of
|
|
|
|
`allout-encrypt-unencrypted-on-saves'.
|
|
|
|
|
|
|
|
Such a topic has the allout-topic-encryption-bullet without an
|
|
|
|
immediately following '*' that would mark the topic as being encrypted. It
|
|
|
|
must also have content."
|
|
|
|
(let (done got content-beg)
|
|
|
|
(while (not done)
|
|
|
|
|
|
|
|
(if (not (re-search-forward
|
|
|
|
(format "\\(\\`\\|[\n\r]\\)%s *%s[^*]"
|
|
|
|
(regexp-quote allout-header-prefix)
|
|
|
|
(regexp-quote allout-topic-encryption-bullet))
|
|
|
|
nil t))
|
|
|
|
(setq got nil
|
|
|
|
done t)
|
|
|
|
(goto-char (setq got (match-beginning 0)))
|
|
|
|
(if (looking-at "[\n\r]")
|
|
|
|
(forward-char 1))
|
|
|
|
(setq got (point)))
|
|
|
|
|
|
|
|
(cond ((not got)
|
|
|
|
(setq done t))
|
|
|
|
|
|
|
|
((not (re-search-forward "[\n\r]"))
|
|
|
|
(setq got nil
|
|
|
|
done t))
|
|
|
|
|
|
|
|
((eobp)
|
|
|
|
(setq got nil
|
|
|
|
done t))
|
|
|
|
|
|
|
|
(t
|
|
|
|
(setq content-beg (point))
|
|
|
|
(backward-char 1)
|
|
|
|
(allout-end-of-subtree)
|
|
|
|
(if (or (<= (point) content-beg)
|
|
|
|
(and except-mark
|
|
|
|
(<= content-beg except-mark)
|
|
|
|
(>= (point) except-mark)))
|
|
|
|
;; Continue looking
|
|
|
|
(setq got nil)
|
|
|
|
;; Got it!
|
|
|
|
(setq done t)))
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if got
|
|
|
|
(goto-char got))
|
|
|
|
)
|
|
|
|
)
|
|
|
|
;;;_ > allout-encrypt-decrypted (&optional except-mark)
|
|
|
|
(defun allout-encrypt-decrypted (&optional except-mark)
|
|
|
|
"Encrypt topics pending encryption except those containing exemption point.
|
|
|
|
|
|
|
|
EXCEPT-MARK identifies a point whose containing topics should be excluded
|
|
|
|
from encryption. This supports 'except-current mode of
|
|
|
|
`allout-encrypt-unencrypted-on-saves'.
|
|
|
|
|
|
|
|
If a topic that is currently being edited was encrypted, we return a list
|
|
|
|
containing the location of the topic and the location of the cursor just
|
|
|
|
before the topic was encrypted. This can be used, eg, to decrypt the topic
|
|
|
|
and exactly resituate the cursor if this is being done as part of a file
|
|
|
|
save. See `allout-encrypt-unencrypted-on-saves' for more info."
|
|
|
|
|
|
|
|
(interactive "p")
|
|
|
|
(save-excursion
|
|
|
|
(let ((current-mark (point-marker))
|
|
|
|
was-modified
|
|
|
|
bo-subtree
|
|
|
|
editing-topic editing-point)
|
|
|
|
(goto-char (point-min))
|
|
|
|
(while (allout-next-topic-pending-encryption except-mark)
|
|
|
|
(setq was-modified (buffer-modified-p))
|
|
|
|
(if (save-excursion
|
|
|
|
(and (boundp 'allout-encrypt-unencrypted-on-saves)
|
|
|
|
allout-encrypt-unencrypted-on-saves
|
|
|
|
(setq bo-subtree (re-search-forward "[\n\r]"))
|
|
|
|
;; Not collapsed:
|
|
|
|
(string= (match-string 0) "\n")
|
|
|
|
(>= current-mark (point))
|
|
|
|
(allout-end-of-current-subtree)
|
|
|
|
(<= current-mark (point))))
|
|
|
|
(setq editing-topic (point)
|
|
|
|
;; we had to wait for this 'til now so prior topics are
|
|
|
|
;; encrypted, any relevant text shifts are in place:
|
|
|
|
editing-point (marker-position current-mark)))
|
|
|
|
(allout-toggle-current-subtree-encryption)
|
|
|
|
(if (not was-modified)
|
|
|
|
(set-buffer-modified-p nil))
|
|
|
|
)
|
|
|
|
(if (not was-modified)
|
|
|
|
(set-buffer-modified-p nil))
|
|
|
|
(if editing-topic (list editing-topic editing-point))
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
;;;_ #9 miscellaneous
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-mark-topic ()
|
|
|
|
(defun allout-mark-topic ()
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
"Put the region around topic currently containing point."
|
|
|
|
(interactive)
|
|
|
|
(beginning-of-line)
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-goto-prefix)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(push-mark (point))
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-end-of-current-subtree)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(exchange-point-and-mark))
|
|
|
|
;;;_ > outlineify-sticky ()
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
;; outlinify-sticky is correct spelling; provide this alias for sticklers:
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
;;;###autoload
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
(defalias 'outlinify-sticky 'outlineify-sticky)
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
;;;###autoload
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(defun outlineify-sticky (&optional arg)
|
(outline-primary-bullet, outline-numbered-bullet,
outline-override-protect, outline-explicitly-deactivated,
outline-init, outline-chart-subtree, outline-chart-spec,
outline-make-topic-prefix, outline-open-topic,
outline-reindent-body, outline-yank-processing, outline-yank,
outlineify-sticky): Doc fix.
1996-01-04 23:26:20 +00:00
|
|
|
"Activate outline mode and establish file var so it is started subsequently.
|
1993-06-02 17:53:31 +00:00
|
|
|
|
2002-12-16 00:20:42 +00:00
|
|
|
See doc-string for `allout-layout' and `allout-init' for details on
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
setup for auto-startup."
|
|
|
|
|
|
|
|
(interactive "P")
|
|
|
|
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-mode t)
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
|
|
|
|
(save-excursion
|
|
|
|
(goto-char (point-min))
|
2002-12-16 00:20:42 +00:00
|
|
|
(if (looking-at allout-regexp)
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
t
|
2002-12-16 00:20:42 +00:00
|
|
|
(allout-open-topic 2)
|
2001-11-26 16:24:26 +00:00
|
|
|
(insert (concat "Dummy outline topic header - see"
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
"`allout-mode' docstring: `^Hm'."))
|
|
|
|
(allout-adjust-file-variable
|
|
|
|
"allout-layout" (format "%s" (or allout-layout '(-1 : 0)))))))
|
|
|
|
;;;_ > allout-file-vars-section-data ()
|
|
|
|
(defun allout-file-vars-section-data ()
|
|
|
|
"Return data identifying the file-vars section, or nil if none.
|
|
|
|
|
|
|
|
Returns list `(beginning-point prefix-string suffix-string)'."
|
|
|
|
;; minimally gleaned from emacs 21.4 files.el hack-local-variables function.
|
|
|
|
(let (beg prefix suffix)
|
|
|
|
(save-excursion
|
1993-06-02 17:53:31 +00:00
|
|
|
(goto-char (point-max))
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
(search-backward "\n\^L" (max (- (point-max) 3000) (point-min)) 'move)
|
|
|
|
(if (let ((case-fold-search t))
|
|
|
|
(not (search-forward "Local Variables:" nil t)))
|
|
|
|
nil
|
|
|
|
(setq beg (- (point) 16))
|
|
|
|
(setq suffix (buffer-substring-no-properties
|
|
|
|
(point)
|
|
|
|
(progn (if (re-search-forward "[\n\r]" nil t)
|
|
|
|
(forward-char -1))
|
|
|
|
(point))))
|
|
|
|
(setq prefix (buffer-substring-no-properties
|
|
|
|
(progn (if (re-search-backward "[\n\r]" nil t)
|
|
|
|
(forward-char 1))
|
|
|
|
(point))
|
|
|
|
beg))
|
|
|
|
(list beg prefix suffix))
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
;;;_ > allout-adjust-file-variable (varname value)
|
|
|
|
(defun allout-adjust-file-variable (varname value)
|
|
|
|
"Adjust the setting of an emacs file variable named VARNAME to VALUE.
|
|
|
|
|
|
|
|
This activity is inhibited if either `enable-local-variables'
|
|
|
|
`allout-enable-file-variable-adjustment' are nil.
|
|
|
|
|
|
|
|
When enabled, an entry for the variable is created if not already present,
|
|
|
|
or changed if established with a different value. The section for the file
|
|
|
|
variables, itself, is created if not already present. When created, the
|
|
|
|
section lines \(including the section line) exist as second-level topics in
|
|
|
|
a top-level topic at the end of the file.
|
|
|
|
|
|
|
|
enable-local-variables must be true for any of this to happen."
|
|
|
|
(if (not (and enable-local-variables
|
|
|
|
allout-enable-file-variable-adjustment))
|
|
|
|
nil
|
|
|
|
(save-excursion
|
|
|
|
(let ((section-data (allout-file-vars-section-data))
|
|
|
|
beg prefix suffix)
|
|
|
|
(if section-data
|
|
|
|
(setq beg (car section-data)
|
|
|
|
prefix (cadr section-data)
|
|
|
|
suffix (car (cddr section-data)))
|
|
|
|
;; create the section
|
|
|
|
(goto-char (point-max))
|
|
|
|
(open-line 1)
|
|
|
|
(allout-open-topic 0)
|
|
|
|
(end-of-line)
|
|
|
|
(insert "Local emacs vars.\n")
|
|
|
|
(allout-open-topic 1)
|
|
|
|
(setq beg (point)
|
|
|
|
suffix ""
|
|
|
|
prefix (buffer-substring-no-properties (progn
|
|
|
|
(beginning-of-line)
|
|
|
|
(point))
|
|
|
|
beg))
|
|
|
|
(goto-char beg)
|
|
|
|
(insert "Local variables:\n")
|
|
|
|
(allout-open-topic 0)
|
|
|
|
(insert "End:\n")
|
|
|
|
)
|
|
|
|
;; look for existing entry or create one, leaving point for insertion
|
|
|
|
;; of new value:
|
|
|
|
(goto-char beg)
|
|
|
|
(allout-show-to-offshoot)
|
|
|
|
(if (search-forward (concat "\n" prefix varname ":") nil t)
|
|
|
|
(let* ((value-beg (point))
|
|
|
|
(line-end (progn (if (re-search-forward "[\n\r]" nil t)
|
|
|
|
(forward-char -1))
|
|
|
|
(point)))
|
|
|
|
(value-end (- line-end (length suffix))))
|
|
|
|
(if (> value-end value-beg)
|
|
|
|
(delete-region value-beg value-end)))
|
|
|
|
(end-of-line)
|
|
|
|
(open-line 1)
|
|
|
|
(forward-line 1)
|
|
|
|
(insert (concat prefix varname ":")))
|
|
|
|
(insert (format " %S%s" value suffix))
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
;;;_ > solicit-char-in-string (prompt string &optional do-defaulting)
|
1993-06-02 17:53:31 +00:00
|
|
|
(defun solicit-char-in-string (prompt string &optional do-defaulting)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
"Solicit (with first arg PROMPT) choice of a character from string STRING.
|
1993-06-02 17:53:31 +00:00
|
|
|
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
Optional arg DO-DEFAULTING indicates to accept empty input (CR)."
|
1993-06-02 17:53:31 +00:00
|
|
|
|
|
|
|
(let ((new-prompt prompt)
|
|
|
|
got)
|
|
|
|
|
|
|
|
(while (not got)
|
|
|
|
(message "%s" new-prompt)
|
|
|
|
|
|
|
|
;; We do our own reading here, so we can circumvent, eg, special
|
2000-06-07 13:25:06 +00:00
|
|
|
;; treatment for `?' character. (Oughta use minibuffer keymap instead.)
|
1993-06-02 17:53:31 +00:00
|
|
|
(setq got
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(char-to-string (let ((cursor-in-echo-area nil)) (read-char))))
|
1993-06-02 17:53:31 +00:00
|
|
|
|
2000-06-07 13:25:06 +00:00
|
|
|
(setq got
|
|
|
|
(cond ((string-match (regexp-quote got) string) got)
|
|
|
|
((and do-defaulting (string= got "\r"))
|
|
|
|
;; Return empty string to default:
|
|
|
|
"")
|
|
|
|
((string= got "\C-g") (signal 'quit nil))
|
|
|
|
(t
|
|
|
|
(setq new-prompt (concat prompt
|
|
|
|
got
|
|
|
|
" ...pick from: "
|
|
|
|
string
|
|
|
|
""))
|
|
|
|
nil))))
|
|
|
|
;; got something out of loop - return it:
|
|
|
|
got)
|
1993-06-02 17:53:31 +00:00
|
|
|
)
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
;;;_ > regexp-sans-escapes (string)
|
|
|
|
(defun regexp-sans-escapes (regexp &optional successive-backslashes)
|
|
|
|
"Return a copy of REGEXP with all character escapes stripped out.
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
Representations of actual backslashes - '\\\\\\\\' - are left as a
|
|
|
|
single backslash.
|
|
|
|
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
Optional arg SUCCESSIVE-BACKSLASHES is used internally for recursion."
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
|
|
|
(if (string= regexp "")
|
|
|
|
""
|
|
|
|
;; Set successive-backslashes to number if current char is
|
|
|
|
;; backslash, or else to nil:
|
|
|
|
(setq successive-backslashes
|
|
|
|
(if (= (aref regexp 0) ?\\)
|
|
|
|
(if successive-backslashes (1+ successive-backslashes) 1)
|
|
|
|
nil))
|
|
|
|
(if (or (not successive-backslashes) (= 2 successive-backslashes))
|
|
|
|
;; Include first char:
|
|
|
|
(concat (substring regexp 0 1)
|
|
|
|
(regexp-sans-escapes (substring regexp 1)))
|
|
|
|
;; Exclude first char, but maintain count:
|
|
|
|
(regexp-sans-escapes (substring regexp 1) successive-backslashes))))
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
;;;_ - add-hook definition for divergent emacsen
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
;;;_ > add-hook (hook function &optional append)
|
|
|
|
(if (not (fboundp 'add-hook))
|
|
|
|
(defun add-hook (hook function &optional append)
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
"Add to the value of HOOK the function FUNCTION unless already present.
|
(outline-auto-activation, outline-layout)
(outline-primary-bullet, outline-plain-bullets-string)
(outline-distinctive-bullets-string, outline-old-style-prefixes)
(outline-stylish-prefixes, outline-file-xref-bullet)
(outline-use-hanging-indents, outline-bullets-string)
(outline-write-file-hook, outline-mode, outline-prefix-data)
(outline-before-change-protect, outline-make-topic-prefix)
(outline-rebullet-current-heading, outline-rebullet-heading)
(outline-listify-exposed, outline-expose-topic)
(outline-old-expose-topic, outline-exposure)
(outline-latex-verbatim-quote-curr-line)
(outline-show-current-subtree, outline-hide-current-subtree)
(outline-hide-current-leaves, outline-new-exposure): Doc fix.
1996-07-13 18:46:08 +00:00
|
|
|
\(It becomes the first hook on the list unless optional APPEND is non-nil, in
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
which case it becomes the last). HOOK should be a symbol, and FUNCTION may be
|
|
|
|
any valid function. HOOK's value should be a list of functions, not a single
|
|
|
|
function. If HOOK is void, it is first set to nil."
|
|
|
|
(or (boundp hook) (set hook nil))
|
|
|
|
(or (if (consp function)
|
|
|
|
;; Clever way to tell whether a given lambda-expression
|
|
|
|
;; is equal to anything in the hook.
|
|
|
|
(let ((tail (assoc (cdr function) (symbol-value hook))))
|
|
|
|
(equal function tail))
|
|
|
|
(memq function (symbol-value hook)))
|
(outline-auto-activation, outline-layout)
(outline-primary-bullet, outline-plain-bullets-string)
(outline-distinctive-bullets-string, outline-old-style-prefixes)
(outline-stylish-prefixes, outline-file-xref-bullet)
(outline-use-hanging-indents, outline-bullets-string)
(outline-write-file-hook, outline-mode, outline-prefix-data)
(outline-before-change-protect, outline-make-topic-prefix)
(outline-rebullet-current-heading, outline-rebullet-heading)
(outline-listify-exposed, outline-expose-topic)
(outline-old-expose-topic, outline-exposure)
(outline-latex-verbatim-quote-curr-line)
(outline-show-current-subtree, outline-hide-current-subtree)
(outline-hide-current-leaves, outline-new-exposure): Doc fix.
1996-07-13 18:46:08 +00:00
|
|
|
(set hook
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(if append
|
|
|
|
(nconc (symbol-value hook) (list function))
|
|
|
|
(cons function (symbol-value hook)))))))
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
;;;_ > subst-char-in-string if necessary
|
|
|
|
(if (not (fboundp 'subst-char-in-string))
|
|
|
|
(defun subst-char-in-string (fromchar tochar string &optional inplace)
|
|
|
|
"Replace FROMCHAR with TOCHAR in STRING each time it occurs.
|
|
|
|
Unless optional argument INPLACE is non-nil, return a new string."
|
|
|
|
(let ((i (length string))
|
|
|
|
(newstr (if inplace string (copy-sequence string))))
|
|
|
|
(while (> i 0)
|
|
|
|
(setq i (1- i))
|
|
|
|
(if (eq (aref newstr i) fromchar)
|
|
|
|
(aset newstr i tochar)))
|
|
|
|
newstr)))
|
2002-08-30 11:03:28 +00:00
|
|
|
;;;_ : my-mark-marker to accommodate divergent emacsen:
|
2000-06-07 13:25:06 +00:00
|
|
|
(defun my-mark-marker (&optional force buffer)
|
(my-mark-marker, allout-isearch-prior-pos, allout-unprotected,
allout-undo-aggregation, allout-snug-back, allout-post-command-business,
allout-flag-region, isearch-reenable-font-lock, allout-yank,
allout-insert-latex-header, allout-insert-latex-trailer,
allout-latex-verbatim-quote-curr-line, allout-latexify-exposed,
allout-latex-verb-quote): Fix typos in docstrings.
(allout-enwrap-isearch, regexp-sans-escapes): Doc fix.
(allout-unprotected, allout-prefix-data): Improve argument/docstring
consistency.
(allout-chart-subtree): Fix argument spec.
(allout-open-topic): Rename `use_sib_bullet' argument to `use-sib-bullet'.
Doc fix.
2005-07-13 10:15:39 +00:00
|
|
|
"Accommodate the different signature for `mark-marker' across Emacsen.
|
2000-06-07 13:25:06 +00:00
|
|
|
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
XEmacs takes two optional args, while mainline GNU Emacs does not,
|
2000-06-07 13:25:06 +00:00
|
|
|
so pass them along when appropriate."
|
Increment version number to 2.1, and use a literal
rather than RCS $Id$. Remove autoloads for mailcrypt and crypt++.
Require pgg, pgg-gpg during compilation.
(allout-version): Increment version number to 2.1, and use a literal
rather than RCS $Id$.
(allout-default-encryption-scheme): Removed.
(allout-passphrase-verifier-handling): Renamed from
allout-key-verifier-handling.
(allout-passphrase-verifier-string): Renamed from allout-key-verifier-string.
(allout-file-passphrase-verifier-string): Renamed from
allout-file-key-verifier-string.
(allout-enable-file-variable-adjustment): Simplified.
(allout-passphrase-hint-handling): Renamed from
allout-key-hint-handling and simplified.
(allout-passphrase-hint-string): Renamed from allout-key-hint-string.
(allout-init): Use `find-file-hook' if available, otherwise `find-file-hooks'.
(allout-mode): Use `write-file-functions' if available, otherwise
`local-write-file-hooks' and, instead of making auto-save-hook
buffer local, make the write-file-hook activity contingent to allout-mode.
(allout-mode): Use key-binding substitution placeholders in the docstring.
(allout-kill-line): Spell-out kill ring data structure mutation
instead of using byte-compiler-complaint-provoking `pop'.
(allout-insert-listified): Use `insert' rather than `insert-string'
(allout-toggle-current-subtree-encryption): Updated docstring,
adjust to new gpp-based encryption, use new `allout-encrypted-topic-p'.
(allout-encrypt-string): Totally revamped vis new underlying encryption
facilities.
(allout-mc-activate-passwd): Removed.
(allout-obtain-passphrase): New, more or less replaces
allout-mc-activate-passwd.
(allout-encrypted-key-info): More or less replaces allout-encrypted-text-type.
(outlineify-sticky, outlinify-sticky): Add autoload cookie.
(my-mark-marker): Use `(featurep 'xemacs)' to distinguish between Emacs and
XEmacs.
2005-10-23 08:24:15 +00:00
|
|
|
(if (featurep 'xemacs)
|
|
|
|
(apply 'mark-marker force buffer)
|
2000-06-07 13:25:06 +00:00
|
|
|
(mark-marker)))
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
|
Add autoloads of crypt++ and mailcrypt routines, all for encryption
functionality.
allout customization subgroup now positioned in `outlines' group
instead of prior `editing' group.
(allout-encrypt-string, allout-encryption-produce-work-buffer)
(allout-encrypted-topic-p, allout-encrypted-text-type)
(allout-mc-activate-passwd, allout-create-encryption-key-verifier)
(allout-situate-encryption-key-verifier)
(allout-get-encryption-key-verifier, allout-verify-key)
(allout-next-topic-pending-encryption)
(allout-encrypt-decrypted, allout-encrypted-type-prefix): New
functions.
(outline-topic-encryption-bullet, outline-default-encryption-scheme)
(outline-key-verifier-handling, outline-key-hint-handling)
(outline-encrypt-unencrypted-on-saves): New defcustoms.
(allout-file-key-verifier-string, allout-encryption-scheme)
(allout-key-verifier-string, allout-key-hint-string)
(allout-after-save-decrypt): New variables.
(allout-write-file-hook-handler, allout-auto-save-hook-handler)
(allout-after-saves-handler): New hook functions.
(allout-post-command-business): Do allout-after-save-decrypt.
(allout-enable-file-variable-adjustment): Custom var to enable
mechanism for adding and adjusting settings of Emacs file variables.
(allout-adjust-file-variable, allout-file-vars-section-data): New
functions, implement the mechanism.
(outlineify-sticky): Use the file vars mechanism.
(allout-inhibit-protection, allout-during-write-cue)
(allout-override-protect, allout-before-change-protect): Removed.
(allout-flag-region, allout-open-topic): Revised to adjust
read-only text.
(allout-open-line-not-read-only): Added to facilitate read-only
text based protection.
(allout-kill-line): Revised to adjust read-only text, clue the
user about the inhibition.
(allout-unprotected): Robustified with an unwind-protect.
(allout-shift-in, allout-shift-out): Disallow manually shifting a
topic deeper than the offspring depth of the previous topic -
avoiding confusing "containment discontinuities".
(allout-reindent-bodies): Fixed retention of body relative hanging
indent during promotion of collapsed bodies.
(allout-open-topic): Made it easy to open new topic with same
bullet as current topic - topic creation functions provided with
any universal argument provokes now prompt for bullet, defaulting
to the bullet of the previous topic.
(allout-plain-bullets-string, allout-distinctive-bullets-string):
Plain bullet alternates '.' period and ',' comma only. All other
bullets are relegated to special status (but customizable).
(allout-end-of-entry): Renamed from 'allout-end-of-current-entry
since it actually operates w.r.t. most immediately containing
entry, visible or not.
(allout-hide-current-entry, allout-show-current-entry): Use the
revised version.
(allout-old-expose-topic): Solidify deprecation.
(allout-end-of-subtree): Added, so we can span concealed as well
as visible topics.
(allout-end-of-current-subtree): Use `allout-end-of-subtree'.
(allout-end-of-current-heading): Tweaked to just respect the first
line.
(allout-get-body-text): Added.
(allout-ascend-to-depth, allout-ascend): Position at end of prefix
when invoked interactively.
(allout-up-current-level): Use `interactive-p'.
(allout-mode, allout-init): Miscellaneous docstring and
operational refinements, as well as hookups of new encryption stuff.
(allout-beginning-of-current-entry): Now works as advertised.
(allout-end-of-current-entry): Relieved of superfluous
allout-show-entry.
(allout-isearch-rectification): Refine condition for isearching
(allout-isearch-abort, allout-enwrap-isearch).
(allout-flag-region, my-region-active-p): Relocated some macros.
(allout-title): Fallback title is '(buffer-name)', not
non-existing '(current-buffer-name)'.
(subst-char-in-string): Define if absent (for some XEmacs versions).
Corrected commentary 'keywords' to legitimate ones.
Updated comentary author info (using my current email address,
obscurified).
2005-10-20 14:59:51 +00:00
|
|
|
;;;_ #10 Under development
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;_ > allout-bullet-isearch (&optional bullet)
|
|
|
|
(defun allout-bullet-isearch (&optional bullet)
|
2000-06-07 13:25:06 +00:00
|
|
|
"Isearch \(regexp) for topic with bullet BULLET."
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(interactive)
|
|
|
|
(if (not bullet)
|
|
|
|
(setq bullet (solicit-char-in-string
|
|
|
|
"ISearch for topic with bullet: "
|
2002-12-16 00:20:42 +00:00
|
|
|
(regexp-sans-escapes allout-bullets-string))))
|
(outline-auto-activation, outline-layout)
(outline-primary-bullet, outline-plain-bullets-string)
(outline-distinctive-bullets-string, outline-old-style-prefixes)
(outline-stylish-prefixes, outline-file-xref-bullet)
(outline-use-hanging-indents, outline-bullets-string)
(outline-write-file-hook, outline-mode, outline-prefix-data)
(outline-before-change-protect, outline-make-topic-prefix)
(outline-rebullet-current-heading, outline-rebullet-heading)
(outline-listify-exposed, outline-expose-topic)
(outline-old-expose-topic, outline-exposure)
(outline-latex-verbatim-quote-curr-line)
(outline-show-current-subtree, outline-hide-current-subtree)
(outline-hide-current-leaves, outline-new-exposure): Doc fix.
1996-07-13 18:46:08 +00:00
|
|
|
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
(let ((isearch-regexp t)
|
|
|
|
(isearch-string (concat "^"
|
2002-12-16 00:20:42 +00:00
|
|
|
allout-header-prefix
|
major code speedups, bug fixes, behavior
refinements, doc-string clarification and elaboration, etc.
Prominent new features include:
- Exposure changes and navigation are greatly accelerated.
- More elaborate and clear doc-string for outline-mode,
giving better guidance on use of the mode.
- A new exposure-layout syntax, which accomodates outlines
with multiple top-level topics. (See `outline-expose' and
`outline-new-exposure'.)
- Automatic exposure and verfication-prompting on attempts to
change text within concealed regions, before they are
applied. (Undo affecting concealed regions is only
exposed, not verified, to facilitate smooth undo sequences.)
- 'hot-spot' navigation implemented. When the cursor is on a
topic's bullet, regular-character keystrokes will be
interepreted as if they were preceded by ^C, when
appropriate, so users can navigate and adjust exposure,
etc, with single-stroke commands.
- Lucid emacs accomodated.
1994-04-30 04:47:22 +00:00
|
|
|
"[ \t]*"
|
|
|
|
bullet)))
|
|
|
|
(isearch-repeat 'forward)
|
|
|
|
(isearch-mode t)))
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
;;;_ ? Re hooking up with isearch - use isearch-op-fun rather than
|
(outline-auto-activation, outline-layout)
(outline-primary-bullet, outline-plain-bullets-string)
(outline-distinctive-bullets-string, outline-old-style-prefixes)
(outline-stylish-prefixes, outline-file-xref-bullet)
(outline-use-hanging-indents, outline-bullets-string)
(outline-write-file-hook, outline-mode, outline-prefix-data)
(outline-before-change-protect, outline-make-topic-prefix)
(outline-rebullet-current-heading, outline-rebullet-heading)
(outline-listify-exposed, outline-expose-topic)
(outline-old-expose-topic, outline-exposure)
(outline-latex-verbatim-quote-curr-line)
(outline-show-current-subtree, outline-hide-current-subtree)
(outline-hide-current-leaves, outline-new-exposure): Doc fix.
1996-07-13 18:46:08 +00:00
|
|
|
;;; wrapping the isearch functions.
|
1993-06-02 17:53:31 +00:00
|
|
|
|
|
|
|
;;;_* Local emacs vars.
|
2002-12-16 00:20:42 +00:00
|
|
|
;;; The following `allout-layout' local variable setting:
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
;;; - closes all topics from the first topic to just before the third-to-last,
|
|
|
|
;;; - shows the children of the third to last (config vars)
|
|
|
|
;;; - and the second to last (code section),
|
|
|
|
;;; - and closes the last topic (this local-variables section).
|
|
|
|
;;;Local variables:
|
2002-12-16 00:20:42 +00:00
|
|
|
;;;allout-layout: (0 : -1 -1 0)
|
(outline-init) New user interface for control of
outline-mode session setup, sets up `outline-find-file-hook',
`outline-layout', and `outline-auto-activation'.
(outline-mode-post-command-business, outline-mode)
(outlineify-sticky): Major new mode activation
scheme. See outline-layout docstring for details.
(outline-layout, outline-use-mode-specific-leader)
(outline-mode-leaders): Variables for new mode-activation scheme.
(outline-expose-topic): New specification format and
optimizations, including thorough accomodation of multiple top-level topics.
(outline-forward-current-level, outline-next-sibling)
(outline-backward-current-level, outline-goto-prefix)
(outline-show-children, outline-up-current-level)
(outline-expose-topic): Behavior refinements and repairs, and
speed optimizations. Better accomodation for multiple top-level topics.
(outline-recent-end-of-subtree): New state var,
basis for many topic-oriented optimizations.
Revisions of many docstrings, for conformance to
GNU standards and/or clarity.
1994-05-09 06:36:19 +00:00
|
|
|
;;;End:
|
|
|
|
|
2003-09-01 15:45:59 +00:00
|
|
|
;;; arch-tag: cf38fbc3-c044-450f-8bff-afed8ba5681c
|
2001-07-16 11:39:42 +00:00
|
|
|
;;; allout.el ends here
|