summaryrefslogtreecommitdiff
path: root/lisp/allout.el
Commit message (Collapse)AuthorAgeFilesLines
* Fix typos.Juanma Barranquero2011-11-241-47/+47
|
* Spelling fixes.Paul Eggert2011-11-221-1/+1
|
* Spelling fixes.Paul Eggert2011-11-191-1/+1
|
* Fix typos.Juanma Barranquero2011-11-201-1/+1
|
* Spelling fixes.Paul Eggert2011-11-191-2/+2
|
* Spelling fixes.Paul Eggert2011-11-171-1/+1
|
* Spelling fixes.Paul Eggert2011-11-171-2/+2
|
* * python.el (python-pdbtrack-stack-entry-regexp)Ken Manheimer2011-11-161-3/+3
| | | | | | | (python-pdbtrack-input-prompt, python-pdbtrack-track-stack-file): Adjust to recognize ipdb as well as regular python pdb prompts. Adjustments shamelessly taken exactly as suggested in EmacsWiki page: http://www.emacswiki.org/PythonProgrammingInEmacs#toc14
* Fix typos.Juanma Barranquero2011-11-151-2/+2
|
* Fix typos.Juanma Barranquero2011-11-151-1/+1
|
* Fix typos.Juanma Barranquero2011-11-141-1/+1
|
* Spelling fixes.Paul Eggert2011-11-131-1/+1
|
* Fix minor mode docstrings for the new meaning of a nil ARG.Chong Yidong2011-10-191-10/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * abbrev.el (abbrev-mode): * allout.el (allout-mode): * autoinsert.el (auto-insert-mode): * autoarg.el (autoarg-mode, autoarg-kp-mode): * autorevert.el (auto-revert-mode, auto-revert-tail-mode) (global-auto-revert-mode): * battery.el (display-battery-mode): * composite.el (global-auto-composition-mode) (auto-composition-mode): * delsel.el (delete-selection-mode): * desktop.el (desktop-save-mode): * dired-x.el (dired-omit-mode): * dirtrack.el (dirtrack-mode): * doc-view.el (doc-view-minor-mode): * double.el (double-mode): * electric.el (electric-indent-mode, electric-pair-mode): * emacs-lock.el (emacs-lock-mode): * epa-hook.el (auto-encryption-mode): * follow.el (follow-mode): * font-core.el (font-lock-mode): * frame.el (auto-raise-mode, auto-lower-mode, blink-cursor-mode): * help.el (temp-buffer-resize-mode): * hilit-chg.el (highlight-changes-mode) (highlight-changes-visible-mode): * hi-lock.el (hi-lock-mode): * hl-line.el (hl-line-mode, global-hl-line-mode): * icomplete.el (icomplete-mode): * ido.el (ido-everywhere): * image-file.el (auto-image-file-mode): * image-mode.el (image-minor-mode): * iswitchb.el (iswitchb-mode): * jka-cmpr-hook.el (auto-compression-mode): * linum.el (linum-mode): * longlines.el (longlines-mode): * master.el (master-mode): * mb-depth.el (minibuffer-depth-indicate-mode): * menu-bar.el (menu-bar-mode): * minibuf-eldef.el (minibuffer-electric-default-mode): * mouse-sel.el (mouse-sel-mode): * msb.el (msb-mode): * mwheel.el (mouse-wheel-mode): * outline.el (outline-minor-mode): * paren.el (show-paren-mode): * recentf.el (recentf-mode): * reveal.el (reveal-mode, global-reveal-mode): * rfn-eshadow.el (file-name-shadow-mode): * ruler-mode.el (ruler-mode): * savehist.el (savehist-mode): * scroll-all.el (scroll-all-mode): * scroll-bar.el (scroll-bar-mode): * server.el (server-mode): * shell.el (shell-dirtrack-mode): * simple.el (auto-fill-mode, transient-mark-mode) (visual-line-mode, overwrite-mode, binary-overwrite-mode) (line-number-mode, column-number-mode, size-indication-mode) (auto-save-mode, normal-erase-is-backspace-mode, visible-mode): * strokes.el (strokes-mode): * time.el (display-time-mode): * t-mouse.el (gpm-mouse-mode): * tool-bar.el (tool-bar-mode): * tooltip.el (tooltip-mode): * type-break.el (type-break-mode-line-message-mode) (type-break-query-mode): * view.el (view-mode): * whitespace.el (whitespace-mode, whitespace-newline-mode) (global-whitespace-mode, global-whitespace-newline-mode): * xt-mouse.el (xterm-mouse-mode): Doc fix. * emacs-lisp/easy-mmode.el (define-globalized-minor-mode): Fix autogenerated docstring.
* * allout.el (allout-this-command-hid-stuff): Buffer-local variable that'sKen Manheimer2011-09-241-4/+13
| | | | | | | true if the current command involved collapsing of text. It's reset to false at the beginning of the next command. (allout-post-command-business): Move the cursor to the beginning of entry if the cursor is hidden and collapsing activity just happened.
* * allout.el (allout-post-undo-hook): New allout outline-change event hookKen Manheimer2011-07-051-1/+11
| | | | | | | | | | | | | to signal undo activity. (allout-post-command-business): Run allout-post-undo-hook if an undo just occurred. (allout-after-copy-or-kill-hook), (allout-mode): Minor docstring changes. * allout-widgets.el (allout-widgets-after-undo-function): Ensure the integrity of the current item's decoration after it has been in the vicinity of an undo. (allout-widgets-mode): Include allout-widgets-after-undo-function on the new allout-post-undo-hook.
* * allout.el (allout-encrypt-unencrypted-on-saves): Do not provide insecureKen Manheimer2011-07-041-88/+118
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | exception for current topic. Also note that auto-saves are handled differently. (allout-auto-save-temporarily-disabled), (allout-just-did-undo): State variables for tracking auto-save inhibition situation. (allout-write-contents-hook-handler): Rename from 'allout-write-file-hook-handler', and describe how it depends on write-contents-functions sensitivity to non-nil value to prevent file write. (allout-auto-save-hook-handler): Remove. auto-save does not check this in individual buffers, only in the starting buffer, so this is not the right way for us to inhibit auto-save in a buffer according to its condition. (allout-mode): Use new allout-write-contents-hook-handler, and only with write-contents-functions. Remove auto-save provisions - they're implemented elsewhere. (allout-before-change-handler): If undo is in progress, note that for attention of allout-post-command-business. (allout-post-command-business): If the command we're following was an undo, check for change in the status of encrypted items and adjust auto-save inhibitions accordingly. (allout-toggle-subtree-encryption): Adjust auto-save inhibition according to whether there are or aren't any plain-text topics pending encryption. (allout-inhibit-auto-save-info-for-decryption): Adjust buffer-saved-size and some allout state to inhibit auto-saves if there are plain-text topics pending encryption. (allout-maybe-resume-auto-save-info-after-encryption): Adjust buffer-saved-size and some allout state to not inhibit auto-saves if there are no longer any plain-text topics pending encryption. (allout-next-topic-pending-encryption), (allout-encrypt-decrypted): No longer provide for exemption of the current topic.
* * allout.el (allout-yank-processing): Adjust cursor position forKen Manheimer2011-07-021-1/+5
| | | | backwards-deleted space.
* * allout.el (allout-yank-processing): Fix injection of extra space betweenKen Manheimer2011-06-301-2/+2
| | | | | | | | | | | bullet and non-whitespace character in first topic when pasting, ensuring that the actual spacing in the pasted topic following the bullet char is preserved. This extra space was causing pasted encrypted topics to get a decrypted status even when the content was actually still encrypted. Now the decryption status from before the paste is preserved. (allout-flag-region): Set all allout overlays so they evaporate when reduced to zero length (evanescent), to prevent overlay leakage.
* Simplify unloading functions after 2011-06-25T17:42:18Z!lekktu@gmail.com.Juanma Barranquero2011-06-251-1/+1
| | | | | | | | | | * allout.el (allout-unload-function): Pass -1 to `allout-mode'. * proced.el (proced-unload-function): * progmodes/cperl-mode.el (cperl-mode-unload-function): Remove. * ses.el (ses-unload-function): * emacs-lisp/re-builder.el (re-builder-unload-function): Simplify.
* Don't quote lambda expressions with `quote'.Stefan Monnier2011-05-231-9/+9
|
* * allout.el (allout-inhibit-auto-fill-on-headline): Create newKen Manheimer2011-05-231-1/+9
| | | | | customization variable and implement: If non-nil, auto-fill will be inhibited while on topic's header line.
* * lisp/allout.el: Comment fix.Glenn Morris2011-05-141-1/+1
|
* * allout.el (allout-hide-by-annotation, allout-flag-region): ReduceKen Manheimer2011-03-291-2/+3
| | | | | | | | | | | | possibility of overlay leakage by making them volatile. * allout-widgets.el (allout-widgets-tally): Define as nil so the hash is not shared between buffers. Mode initialization is responsible for giving it a useful starting value. (allout-item-span): Reduce possibility of overlay leakage by making them volatile. (allout-widgets-count-buttons-in-region): Add diagnostic function for tracking down overlay leaks.
* * allout.el (allout-yank-processing): Adjust for new rebulleting regime soKen Manheimer2011-03-161-1/+1
| | | | bullet being yanked is used without prompting the user for a choice.
* * allout.el (allout-make-topic-prefix) (allout-rebullet-heading): InvertKen Manheimer2011-03-151-8/+10
| | | | | the roles of character and string values for INSTEAD, so a string is used for the more common case of a defaulting prompt.
* * lisp/allout.el (allout-abbreviate-flattened-numbering)Stefan Monnier2011-03-141-2/+3
| | | | (allout-mode-deactivate-hook): Fix up obsolescence "date".
* * allout.el Summary: Change so yank of distinctive-bullet items preservesKen Manheimer2011-03-091-49/+43
| | | | | | | | | | the existing header prefix, rebulleting it if necessary, rather than replacing it. This is necessary for proper operation of cooperative addons like allout-widgets. (allout-make-topic-prefix) (allout-rebullet-heading): Change SOLICIT arg to INSTEAD, and interpret additionally a string value as alternate bullet to be used, instead of prompting the user for a bullet character.
* Fix typos.Juanma Barranquero2011-03-061-3/+3
| | | | | | | | | | | | | | | | * etc/srecode/el.srt: Fix typo. * lisp/allout.el (allout-init, allout-prefixed-keybindings) (allout-unprefixed-keybindings): * lisp/progmodes/prolog.el (prolog-find-term): Fix typos in docstrings. * lisp/org/org.el (org-blank-before-new-entry, org-context-in-file-links) (org-refile-targets, org-log-repeat, org-insert-link) (org-speed-command-default-hook, org-speed-command-hook) (org-in-regexps-block-p, org-yank-generic, org-goto-first-child): Fix typos in docstrings. (org-toggle-pretty-entities): Fix typo in message.
* Merge from emacs-23; up to 2010-06-03T05:41:49Z!rgm@gnu.org.Glenn Morris2011-02-271-4/+4
|\
| * Fix spelling of "precede".Glenn Morris2011-02-221-4/+4
| |
* | Fix some mis-spellings of "precede" that are not in emacs-23 branch.Glenn Morris2011-02-221-1/+1
| |
* | (allout-encrypt-string): Recognize epg failure to decrypt gpg2 armored textKen Manheimer2011-02-171-3/+8
| | | | | | | | | | using gpg1, and add indication the gpg version *might* be the problem in the error message.
* | * lisp/allout-widgets.el: (allout-widgets-icons-light-subdir)Ken Manheimer2011-02-171-5/+3
| | | | | | | | | | | | | | | | | | | | (allout-widgets-icons-dark-subdir): Track relocations of icons * lisp/allout.el: Remove commentary about remove encryption passphrase mnemonic support and verification. * etc/images/icons/allout-widgets/dark-bg, etc/images/icons/allout-widgets/light-bg, encrypted-locked.{xpm,png}, unlocked-encrypted.{xpm,png}: Reorganize icon directories and files to reconcile against windows short-filename clashes.
* | Include PGP and GnuPG in Keywords, and other commentary refinements.Ken Manheimer2011-02-161-20/+15
| | | | | | | | | | | | | | | | | | | | | | | | (allout-abbreviate-flattened-numbering): Rename to allout-flattened-numbering-abbreviation, and define-obsolete-variable-alias the old name. (allout-flattened-numbering-abbreviation): Rename from allout-abbreviate-flattened-numbering. (allout-mode-p): Include among autoloads, for use by other modes with impunity. (allout-listify-exposed): Use allout-flattened-numbering-abbreviation. (allout-encrypt-string): Use set-buffer-multibyte directly. (allout-set-buffer-multibyte): Remove.
* | Synopsis: Change allout user configuration so auto-activation is controlledKen Manheimer2011-02-091-125/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | solely by customization `allout-auto-activation'. (allout-auto-activation-helper) (allout-setup): New autoloads implement new custom set procedure for allout-auto-activation. Also, explicitly invoke (allout-setup) after allout-auto-activation is custom-defined, to effect the settings in emacs sessions besides the few where allout-auto-activation customization is donea. (allout-auto-activation): Use allout-auto-activation-helper to :set. Revise the docstring. (allout-init): Reduce functionality to just customizing allout-auto-activation, and mark obsolete. (allout-mode): Respect string values for allout-auto-activation. Run allout-after-copy-or-kill-hook without any args. (allout-mode) (allout-layout) (allout-default-layout) (outlineify-sticky): Adjust docstring for new scheme. (allout-after-copy-or-kill-hook): No arguments - hook implementers should concentrate on the kill ring.
* | allout.el (allout-after-copy-or-kill-hook): New hook for extension-specificKen Manheimer2011-02-071-20/+28
| | | | | | | | | | | | | | | | | | | | processing of killed text. (allout-mode): Include new allout-after-copy-or-kill-hook among mentioned hooks. (allout-kill-line) (allout-kill-topic): Ensure that processing after kill happens even if barf-if-buffer-read-only is raised. Include new allout-after-copy-or-kill-hook among that subsequent processing. (allout-deannotate-hidden): Actually remove the annotation text properties.
* | (allout-listify-exposed): Copy text sans text properties.Ken Manheimer2011-02-071-3/+5
| |
* | Convert consecutive FSF copyright years to ranges.Glenn Morris2011-01-241-2/+1
| |
* | * allout.el (allout-prefixed-keybindings): Bind (prefixed) '#' toKen Manheimer2011-01-211-7/+3
| | | | | | | | | | | | allout-number-siblings, in keeping with what obtained due to (now-defunct) allout-keybindings-list. Ditch repeat binding to (prefixed) ?i. (allout-before-change-handler): Better expose spots affected by undo.
* | (allout-institute-keymap): Use fset instead of reapplying defalias.Ken Manheimer2011-01-201-10/+16
| | | | | | | | | | (allout-hotspot-key-handler): Check for non-control-modified bindings for hotspot characters if there is no control-modified versions.
* | allout.el: Summary - migrate to defining allout mode usingKen Manheimer2011-01-201-201/+100
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | define-minor-mode instead of defun. Significantly clean-up internal keymap provisions, refactoring a bit and removing a lot of accumulated cruft. allout-mode-map is now a keymap by virtue of being an defalias to allout-mode-map-value, which contains the actual keymap structure. (allout-mode): Use define-minor-mode rather than defun. Remove now-unnecessary minor-mode setup activities from the body. Specify :keymap as allout-mode-map so the minor-mode-map-alist entry will be '(allout-mode . allout-mode-map) - see allout-mode-map-value, below. Adjust docstring to track changes. (allout-minor-mode): Remove this defalias, now that we're using define-minor-mode. (allout-mode-map): Set value to be 'allout-mode-map. The actual keymap is allout-mode-map-value, via defalias. (allout-mode-map-value): The variable holding the actual mode keymap structure, by virtue of defalias from allout-mode-map. (allout-compose-and-institute-keymap): Renamed from allout-bind-keys, and including the binding-composition functionality of the former produce-allout-mode-map and allout-setup-mode-map. (allout-institute-keymap): Take over the "setup" part of the former allout-setup-mode-map. Reassign allout-mode-map-value value and update the defalias. (allout-command-prefix) (allout-prefixed-keybindings) (allout-unprefixed-keybindings): Use allout-compose-and-institute-keymap to process the bindings. (allout-unprefixed-keybindings): Remove extraneous '?' question marks. (allout-prefixed-keybindings): Elide binding to (prefixed) \C-h - user can customize if they want to use that binding. Bind allout-copy-topic-as-kill to (prefixed) \M-k. Bind allout-up-current-level to (prefixed) \C-u. (I think i mistakenly elided that, previously, instead of the one for \C-h.) (allout-hotspot-key-handler): Remove attempt to resolve the key through the literal key-string lookup on allout-keybindings-list. That probably hasn't worked for a Long Time, and removal of allout-keybindings-list further simplifies the keybindings situation. (allout-pre-command-business): Use allout-mode-map-value instead of allout-mode-map. (allout-preempt-trailing-ctrl-h): Remove. The user can customize the bindings if they want to use a keybinding having a trailing \C-h. No deprecation needed since this feature was never in a release. (allout-keybindings-list): Remove. It's not been useful for a while. (See allout-hotspot-key-handler changes, above.) (produce-allout-mode-map): Remove. Consolidate into allout-compose-and-institute-keymap. (allout-mode-map-adjustments): Remove. No longer necessary with removal of allout-preempt-trailing-ctrl-h. (allout-setup-mode-map): Remove. Consolidate into allout-compose-and-institute-keymap and allout-institute-keymap.
* | Refill some copyright headers.Glenn Morris2011-01-151-2/+2
| |
* | Merge from emacs-23Stefan Monnier2011-01-141-2/+2
|\|
| * Add 2011 to FSF/AIST copyright years.Glenn Morris2011-01-021-1/+1
| |
* | allout.el: Add 2011 to the file copyright.Ken Manheimer2011-01-101-8/+9
| | | | | | | | | | | | (allout-encrypt-string): Prevent encryption from adding an extra newline at the end of the topic body. (allout-version): Increment to 2.3.
* | allout.el: (allout-back-to-current-heading): Ensure return to the visibleKen Manheimer2011-01-061-21/+13
| | | | | | | | | | | | | | | | | | containing topic, rather than a collapsed one. (allout-view-change-hook): Remove hook that was deprecated long ago. (allout-exposure-change-hook): Remove documentation remarks concerning removed allout-view-change-hook. (allout-flag-region): Remove invocation of and documentation remarks concerning allout-view-change-hook.
* | Reconcile with changes in line movement behavior for long text linesKen Manheimer2011-01-041-2/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | that cross more than a single physical window line, ie when truncate-lines is nil. (allout-next-visible-heading): Provide for change in line-move behavior on long lines when truncate-lines is nil. In that case, line-move can wind up on the same textual line when it moves to the next window line, and moving to the bullet position after the move yields zero advancement. Add logic to detect and compensate for the lack of progress. (allout-current-topic-collapsed-p): move-end-of-line respect for field boundaries is different when operating with body lines shorter than window width versus ones greater than window width, which can yield false negatives in this function. Avoid difference by applying move-end-of-line while field-text-motion is inhibited.
* | (allout-auto-fill): Do not infinitely recurse - use do-auto-fill ifKen Manheimer2011-01-011-3/+9
| | | | | | | | | | | | | | everything points back to allout-auto-fill. (allout-mode-deactivate-hook): Declare obsolete, in favor of standard-formed minor-mode deactivate hook, allout-mode-off-hook.
* | (allout-v18/19-file-var-hack): Obsolete, remove.Ken Manheimer2010-12-281-173/+131
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (allout-mode): Argument "toggle" => "force". Refine the docstring. Remove special provisions for reactivation, besides the 'force' argument. Consolidate layout provisions coce directly into the activation condition branch, now that we've removed those provisions. (allout-unload-function): Explicitly activate the mode before deactivating, if it's initially deactivated. (allout-set-buffer-multibyte): Properly prevent byte-compiler warnings for version of function used only where set-buffer-multibyte is unavailable.
* | Synopsis: Migrate allout encryption provisions from pgg library, which isKen Manheimer2010-12-161-565/+231
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | obsolete, to epg library, which replaces pgg. Due to the underlying GnuPG V2 restrictions on external handling of passphrases (or epg's restrictions when working with GnuPG v2), we are dropping allout's symmetric encryption passphrase hinting and verification. This has the advantage that no emacs code has access to the passphrase, leaving all passphrase handling in GnuPG, which is much more secure. This, together with the reduction in allout code complexity and logistical complications the user would have in arranging to use GnuPG v1, requires dropping these features. Keypair encryption gains features, with adoption of respect for epa-file's 'epa-file-encrypt-to'. This means that allout outlines can be associated with recipients, and encryptions by default will be targeted to those recipients. The default encryption mode (whether to epa-file-encrypt-to recipients, if any, or symmetric mode) is overridden by providing a universal argument greater than 1 to the outline entry encryption command, 'allout-toggle-current-subtree-encryption'. The user is then prompted to select keypair identities from their list of known GnuPG keypairs. If they don't select any, then symmetric encryption is done. Otherwise, the selected keypair identities are targeted. If the universal argument is greater than 4 then the selected recipients (or none, if none were selected) are associated with the outline using a file local variable, as default recipients for subsequent encryptions. This is a big merge from a private branch. Code details: (allout-toggle-current-subtree-encryption, allout-toggle-subtree-encryption): Adjust docstrings to reflect defaulting policy and other changes. Change fetch-pass to keymode-cue, for simpler universal argument interpretation. (allout-toggle-subtree-encryption): Adjust docstring to describe changed encryption provisions. Change fetch-pass to keymode-cue, for simpler universal argument interpretation. Remove provisions for handling key type and identity - they'll all be within allout-encrypt-string or epg/epg or even contained all the way in gpg. (allout-encrypt-string): Include keymode-cue, for optionally prompting for keypair recipients (universal argument > 1) and, in addition, associating the specified recipients with the outline (universal argument > 4) using a file local variable setting for 'epa-file-encrypt-to'. Require epa, for recipients handling. Change how regexp filtering elements are named. Describe the problem with caching of incorrect symmetric-decryption keys. Use the epa-passphrase-callback-function, in case the user is using GnuPG v1. Support saving of the selected keypair recipients when invoked with a keymode-cue > 4. Remove obsolete arguments 'fetch-pass', 'target-cache-id', 'retried'. Require 'epa. Establish epg-context with armoring and default epg-protocol. Remove all passphrase cache, verification, and hinting code. (allout-passphrase-verifier-handling, allout-passphrase-hint-handling): No longer used, delete. (allout-mode): Adjust docstring to describe changed encryption provisions. Describe the problem with caching of incorrect symmetric-decryption keys. (allout-obtain-passphrase, allout-epg-passphrase-callback-function, allout-make-passphrase-state, allout-passphrase-state-passphrase, allout-encrypted-key-info, allout-update-passphrase-mnemonic-aids, allout-get-encryption-passphrase-verifier, allout-verify-passphrase): Obsolete, remove.