[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/undo-tree f956d55 074/195: Added autoload cookies, and
From: |
Stefan Monnier |
Subject: |
[elpa] externals/undo-tree f956d55 074/195: Added autoload cookies, and other tweaks to prepare for ELPA packaging. |
Date: |
Sat, 28 Nov 2020 13:41:25 -0500 (EST) |
branch: externals/undo-tree
commit f956d5568fa1cdab969a08b44a2e8770809d528e
Author: Toby S. Cubitt <toby-undo-tree@dr-qubit.org>
Commit: Toby S. Cubitt <toby-undo-tree@dr-qubit.org>
Added autoload cookies, and other tweaks to prepare for ELPA packaging.
---
undo-tree.el | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/undo-tree.el b/undo-tree.el
index d1a839d..869e567 100644
--- a/undo-tree.el
+++ b/undo-tree.el
@@ -1,4 +1,3 @@
-
;;; undo-tree.el --- Treat undo history as a tree
@@ -6,7 +5,7 @@
;; Author: Toby Cubitt <toby-undo-tree@dr-qubit.org>
;; Version: 0.3.1
-;; Keywords: undo, redo, history, tree
+;; Keywords: convenience, files, undo, redo, history, tree
;; URL: http://www.dr-qubit.org/emacs.php
;; Git Repository: http://www.dr-qubit.org/git/undo-tree.git
@@ -2228,6 +2227,7 @@ of either NODE itself or some node above it in the tree."
;;; =====================================================================
;;; Undo-tree commands
+;;;###autoload
(define-minor-mode undo-tree-mode
"Toggle undo-tree mode.
With no argument, this command toggles the mode.
@@ -2256,7 +2256,7 @@ Within the undo-tree visualizer, the following keys are
available:
(setq buffer-undo-tree nil)))
-(defun turn-on-undo-tree-mode ()
+(defun turn-on-undo-tree-mode (&optional print-message)
"Enable `undo-tree-mode' in the current buffer, when appropriate.
Some major modes implement their own undo system, which should
not normally be overridden by `undo-tree-mode'. This command does
@@ -2271,11 +2271,11 @@ keybindings (C-/ and C-_) have been overridden
somewhere other
than in the global map. In addition, `undo-tree-mode' will not be
enabled if the buffer's `major-mode' appears in
`undo-tree-incompatible-major-modes'."
- (interactive)
+ (interactive "p")
(if (or (key-binding [remap undo])
(undo-tree-overridden-undo-bindings-p)
(memq major-mode undo-tree-incompatible-major-modes))
- (when (interactive-p)
+ (when print-message
(message "Buffer does not support undo-tree-mode;\
undo-tree-mode NOT enabled"))
(undo-tree-mode 1)))
@@ -2300,6 +2300,7 @@ key bindings do not count.)"
(global-set-key [?\C-_] binding2))))
+;;;###autoload
(define-globalized-minor-mode global-undo-tree-mode
undo-tree-mode turn-on-undo-tree-mode)
- [elpa] externals/undo-tree f0a6192 184/195: Proper fix to copy-undo-tree by writing bespoke copier., (continued)
- [elpa] externals/undo-tree f0a6192 184/195: Proper fix to copy-undo-tree by writing bespoke copier., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree 3090c4f 185/195: Temporarily increase max-lisp-eval-depth and max-specpdl-size when copying undo-trees., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree 8cf384f 187/195: Redraw visualizer when history-discarding invalidates it., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree d79fab9 193/195: Switch from cl to cl-lib., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree bd65bb0 192/195: Fix hook function issue in Emacs 27., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree e01a3e7 191/195: Fix some byte-compilation warnings., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree 17454bd 084/195: Improved undo-tree-switch-branch behaviour., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree f16ab5f 067/195: Trivial fix in Commentary., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree e8215a7 078/195: Minor typo fixes in comments., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree 8697a0b 077/195: Clear registers referring to nodes being discarded from undo history., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree f956d55 074/195: Added autoload cookies, and other tweaks to prepare for ELPA packaging.,
Stefan Monnier <=
- [elpa] externals/undo-tree 4e558f8 088/195: Make various interactive commands signal an error if buffer is read-only., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree e001bd5 091/195: Implemented diff display in visualizer., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree 1229460 095/195: Make visualizer diff buffer name into a defconst., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree 7fef53f 092/195: Display diff with current node in visualizer selection mode., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree f3e7324 090/195: Use undo-tree-inhibit-kill-visualizer to inhibit undo-tree-kill-visualizer., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree bb92692 093/195: Don't override diff-switches customization option in visualizer diff display., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree a220a42 097/195: Added registerv-make and registerv-data compatibility macros in Emacs <= 23., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree 95599db 100/195: Fixed bug in visualizer selection mode when timestamps are displayed., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree 81f1417 098/195: Added diff-no-select and diff-file-local-copy compatibility hacks, Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree aa7202c 103/195: Fix the way keymaps are defined., Stefan Monnier, 2020/11/28