[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/undo-tree b074b86 029/195: Updated commentary, and swit
From: |
Stefan Monnier |
Subject: |
[elpa] externals/undo-tree b074b86 029/195: Updated commentary, and switched to GPLv3. |
Date: |
Sat, 28 Nov 2020 13:41:14 -0500 (EST) |
branch: externals/undo-tree
commit b074b869e4f3e01e7b48294f5ea9f722b1c33acd
Author: tsc25 <tsc25@cantab.net>
Commit: tsc25 <tsc25@cantab.net>
Updated commentary, and switched to GPLv3.
---
undo-tree.el | 63 ++++++++++++++++++++++++++++++------------------------------
1 file changed, 32 insertions(+), 31 deletions(-)
diff --git a/undo-tree.el b/undo-tree.el
index e34f712..9db7262 100644
--- a/undo-tree.el
+++ b/undo-tree.el
@@ -12,36 +12,34 @@
;; This file is NOT part of Emacs.
;;
-;; This program 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
-;; of the License, or (at your option) any later version.
-;;
-;; This program is distributed in the hope that it will be useful,
-;; 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
-;; along with this program; if not, write to the Free Software
-;; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
-;; MA 02110-1301, USA.
+;; 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 3 of the License, or (at your option)
+;; any later version.
+
+;; This program is distributed in the hope that it will be useful, 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 along
+;; with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
;;; Commentary:
;;
-;; Emacs has a powerful undo-system. Unlike the standard undo/redo system in
+;; Emacs has a powerful undo system. Unlike the standard undo/redo system in
;; most software, it allows you to recover *any* past state of a buffer
-;; (whereas the standard undo/redo system loses past states as soon as you
-;; redo). However, this power comes at a price: some people find Emacs' undo
-;; confusing and difficult to use, spawning a number of packages that replace
-;; it with the less powerful but more intuitive undo/redo system.
+;; (whereas the standard undo/redo system can lose past states as soon as you
+;; redo). However, this power comes at a price: many people find Emacs' undo
+;; system confusing and difficult to use, spawning a number of packages that
+;; replace it with the less powerful but more intuitive undo/redo system.
;;
;; Both the loss of data with standard undo/redo, and the confusion of Emacs'
;; undo, stem from trying to treat undo history as a linear sequence of
;; changes. It's not. The `undo-tree-mode' provided by this package replaces
;; Emacs' undo system with a system that treats undo history as what it is: a
-;; branching tree of changes. This simple change allows the more intuitive
+;; branching tree of changes. This simple idea allows the more intuitive
;; behaviour of the standard undo/redo system to be combined with the power of
;; never losing any history. An added side bonus is that undo history can in
;; some cases be stored more efficiently, allowing more changes to accumulate
@@ -70,10 +68,12 @@
;; Redo changes.
;;
;; `undo-tree-switch-branch'
-;; Switch undo-tree branch. (What does this mean? Better press it and see!)
+;; Switch undo-tree branch.
+;; (What does this mean? Better press the button and see!)
;;
;; C-x u (`undo-tree-visualize')
-;; Visualize undo tree. (Better try this button too!)
+;; Visualize undo tree.
+;; (Better try pressing this button too!)
;;
;;
;; In the undo visualizer:
@@ -90,10 +90,10 @@
;; <right> f C-f (`undo-tree-visualize-switch-next-branch')
;; Switch to next undo-tree branch.
;;
-;; t
+;; t (`undo-tree-visualizer-toggle-timestamps')
;; Toggle display of time-stamps.
;;
-;; q C-q
+;; q C-q (`undo-tree-visualizer-quit')
;; Quit undo-tree-visualizer.
;;
;; , <
@@ -423,9 +423,10 @@
;; them to be garbage-collected, `undo-tree-mode' doesn't record marker
;; adjustments. Markers are rarely explicitly created by users, so the impact
;; of this will primarily be through its effects on other features that make
-;; use of markers. However, undoing marker adjustments is anyway buggy in
-;; standard Emacs' undo (see Emacs bug#4803), so it seems plausible that
-;; relatively little code relies heavily on correct marker restoration.
+;; use of markers. Since marker adjustments haven't always been restored by
+;; undo, and even then it was buggy until recently (see Emacs bug#4803), it
+;; seems likely that relatively little code relies heavily on correct marker
+;; restoration.
@@ -541,13 +542,13 @@ in visualizer.")
'undo-tree-visualizer-toggle-timestamps)
;; horizontal scrolling may be needed if tree is very wide
(define-key undo-tree-visualizer-map ","
- (lambda () (interactive) "Scroll right." (scroll-right 1 t)))
+ (lambda () (interactive) "Scroll left." (scroll-right 1 t)))
(define-key undo-tree-visualizer-map "."
- (lambda () (interactive) "Scroll left." (scroll-left 1 t)))
+ (lambda () (interactive) "Scroll right." (scroll-left 1 t)))
(define-key undo-tree-visualizer-map "<"
- (lambda () (interactive) "Scroll right." (scroll-right 1 t)))
+ (lambda () (interactive) "Scroll left." (scroll-right 1 t)))
(define-key undo-tree-visualizer-map ">"
- (lambda () (interactive) "Scroll left." (scroll-left 1 t)))
+ (lambda () (interactive) "Scroll right." (scroll-left 1 t)))
;; quit visualizer
(define-key undo-tree-visualizer-map "q"
'undo-tree-visualizer-quit)
- [elpa] externals/undo-tree 0368f0f 006/195: Implemented undo-tree visualisation., (continued)
- [elpa] externals/undo-tree 0368f0f 006/195: Implemented undo-tree visualisation., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree 711dd60 003/195: Implemented undo-tree data structure and undo command., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree b15904c 023/195: Update timestamps when nodes are visited by undo/redo., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree 21d3c89 004/195: Implemented redo command., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree f87f815 024/195: Added utility functions for use in discarding undo history., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree dcabd4f 002/195: Added .gitignore to ignore byte-compiled elisp files., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree f370170 019/195: Rewrote undo-tree-draw-tree and undo-tree-draw-subtree, Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree 73c1d04 007/195: Lumped visualizer data into single undo-tree node entry,, Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree 4dd6905 028/195: Discard marker adjustment undo entries., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree 09fb370 027/195: Added lighter to undo-tree-mode., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree b074b86 029/195: Updated commentary, and switched to GPLv3.,
Stefan Monnier <=
- [elpa] externals/undo-tree c00c1fe 031/195: Add new undo-tree-kill-visualizer to before-change-functions hook, Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree aaa4c6d 012/195: Don't create new marker each time we draw a node., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree 159c9b4 005/195: Implemented undo-tree branch switching., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree 0bbfa5c 026/195: Tweaked commentary., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree 86fb076 034/195: Fixed keybindings., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree 948386b 035/195: Modified undo-tree-visualizer-active-branch-face, Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree bca52bf 042/195: Added undo-tree-mode-lighter customization option, Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree 50ccefd 043/195: Fixed bug in undo-tree-discard-node., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree fd3fc5c 046/195: Pass null argument to kill-buffer call in undo-tree-visualizer-quit,, Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree 45751ef 050/195: Fixed bug in undo-tree-switch-branch., Stefan Monnier, 2020/11/28