[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/undo-tree 2ac4eac 181/195: Improve messages displayed t
From: |
Stefan Monnier |
Subject: |
[elpa] externals/undo-tree 2ac4eac 181/195: Improve messages displayed to user when undo history is discarded. |
Date: |
Sat, 28 Nov 2020 13:41:48 -0500 (EST) |
branch: externals/undo-tree
commit 2ac4eacb3a866c1200186cc5097ba548fbec949d
Author: Toby S. Cubitt <toby-undo-tree@dr-qubit.org>
Commit: Toby S. Cubitt <toby-undo-tree@dr-qubit.org>
Improve messages displayed to user when undo history is discarded.
---
undo-tree.el | 18 ++++++++++--------
1 file changed, 10 insertions(+), 8 deletions(-)
diff --git a/undo-tree.el b/undo-tree.el
index 71a4ee0..0e75e44 100644
--- a/undo-tree.el
+++ b/undo-tree.el
@@ -881,15 +881,16 @@
If `undo-limit' is larger than `undo-tree-limit', the larger of
the two values will be used.
+See also `undo-tree-strong-limit' and `undo-tree-outer-limit'.
+
Setting this to nil prevents `undo-tree-mode' ever discarding
undo history. (As far as possible. In principle, it is still
possible for Emacs to discard undo history behind
-`undo-tree-mode's back.)
-
-USE THIS SETTING AT YOUR OWN RISK! Emacs may crash if undo
-history exceeds Emacs' available memory. This is particularly
-risky if `undo-tree-auto-save-history' is enabled, as in that
-case undo history is preserved even between Emacs sessions."
+`undo-tree-mode's back.) USE THIS SETTING AT YOUR OWN RISK! Emacs
+may crash if undo history exceeds Emacs' available memory. This
+is particularly risky if `undo-tree-auto-save-history' is
+enabled, as in that case undo history is preserved even between
+Emacs sessions."
:group 'undo-tree
:type '(choice integer (const nil)))
@@ -1850,7 +1851,7 @@ Comparison is done with `eq'."
;; if undo history has been discarded, replace entire
;; `buffer-undo-tree' with new tree fragment
(unless (= (undo-tree-size buffer-undo-tree) 0)
- (message "Undo history discarded by Emacs - rebuilding undo-tree"))
+ (message "Undo history discarded by Emacs (see `undo-limit') -
rebuilding undo-tree"))
(setq node (undo-tree-grow-backwards node nil))
(setf (undo-tree-root buffer-undo-tree) node)
(setf (undo-tree-size buffer-undo-tree) size)
@@ -2042,6 +2043,7 @@ set by `undo-limit', `undo-strong-limit' and
`undo-outer-limit'."
))
undo-limit))
(setq node (undo-tree-discard-node node)))
+ (message "Undo history discarded by undo-tree (see `undo-tree-limit')")
;; if we're still over the `undo-outer-limit', discard entire history
(when (> (undo-tree-size buffer-undo-tree) undo-outer-limit)
@@ -4168,7 +4170,7 @@ at mouse event POS."
(defun undo-tree-visualize-undo-to-x (&optional x)
"Undo to last branch point, register, or saved state.
If X is the symbol `branch', undo to last branch point. If X is
-the symbol `register', undo to last register. If X is the sumbol
+the symbol `register', undo to last register. If X is the symbol
`saved', undo to last saved state. If X is null, undo to first of
these that's encountered.
- [elpa] externals/undo-tree 8105f5f 143/195: Temporarily disable diff wto speed up undoing-to-x., (continued)
- [elpa] externals/undo-tree 8105f5f 143/195: Temporarily disable diff wto speed up undoing-to-x., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree aabc832 147/195: Remove unused variable., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree 4cba00b 163/195: Fix one of the diagrams in the Commentary., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree 3a772b7 170/195: Bump copyright year and version number., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree bf3a146 167/195: Disable undo-in-region by default., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree eec9edd 168/195: Silence some unused variable compiler warnings., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree 77c29a6 171/195: Factor out canary checking into undo-list-found-canary-p., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree 4a72a1e 172/195: Change undo-list-pop-changeset to macro taking buffer-undo-list argument., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree c39882f 177/195: Prevent misleading message about discarded undo history on first undo., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree e6f31a0 179/195: Use custom undo-[strong-|outer]-limit values in undo-tree-mode., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree 2ac4eac 181/195: Improve messages displayed to user when undo history is discarded.,
Stefan Monnier <=
- [elpa] externals/undo-tree 6a428ce 182/195: Bump copyright year in readiness for new release., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree 7fb46cb 183/195: Fix copy-undo-tree by forcing vector rather than native defstruct., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree 5011f91 186/195: Implement non-recursive undo-tree copier, to avoid hitting Elisp and c stack space limits., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree 0161041 194/195: Fix argument order in gv setter definitions., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree bf2e9ba 195/195: Print complete objects when saving undo-tree history, Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree 75b17c3 189/195: undo-outer-limit can also be null (no limit) in recent Emacsen., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree 09641b2 188/195: Bump version number., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree 1cc3a18 052/195: Minor documentation fix., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree fbcb046 085/195: Implemented persistent storage of undo history., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree 6824805 064/195: Merge branch 'undo-in-region', Stefan Monnier, 2020/11/28