emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/undo-tree bca52bf 042/195: Added undo-tree-mode-lighter


From: Stefan Monnier
Subject: [elpa] externals/undo-tree bca52bf 042/195: Added undo-tree-mode-lighter customization option
Date: Sat, 28 Nov 2020 13:41:18 -0500 (EST)

branch: externals/undo-tree
commit bca52bff488336e956a5a30e536f27e4bbecb897
Author: tsc25 <tsc25@cantab.net>
Commit: tsc25 <tsc25@cantab.net>

    Added undo-tree-mode-lighter customization option
    to allow the mode-line lighter to be customized.
---
 undo-tree.el | 18 ++++++++++++++----
 1 file changed, 14 insertions(+), 4 deletions(-)

diff --git a/undo-tree.el b/undo-tree.el
index b638740..502803f 100644
--- a/undo-tree.el
+++ b/undo-tree.el
@@ -5,7 +5,7 @@
 ;; Copyright (C) 2009-2010 Toby Cubitt
 
 ;; Author: Toby Cubitt <toby-undo-tree@dr-qubit.org>
-;; Version: 0.1.5
+;; Version: 0.1.6
 ;; Keywords: undo, redo, history, tree
 ;; URL: http://www.dr-qubit.org/emacs.php
 ;; Git Repository: http://www.dr-qubit.org/git/undo-tree.git
@@ -463,6 +463,10 @@
 
 ;;; Change Log:
 ;;
+;; Version 0.1.6
+;; * added `undo-tree-mode-lighter' customization option to allow the
+;;   mode-line lighter to be changed
+;;
 ;; Version 0.1.5
 ;; * modified `undo-tree-visualize' to mark the visualizer window as
 ;;   soft-dedicated and changed `undo-tree-visualizer-quit' to use
@@ -523,6 +527,12 @@
   "Tree undo/redo."
   :group 'undo)
 
+(defcustom undo-tree-mode-lighter " Undo-Tree"
+  "Lighter displayed in mode line
+when `undo-tree-mode' is enabled."
+  :group 'undo-tree
+  :type 'string)
+
 (defcustom undo-tree-visualizer-spacing 3
   "Horizontal spacing in undo-tree visualization.
 Must be a postivie odd integer."
@@ -1119,9 +1129,9 @@ Within the undo-tree visualizer, the following keys are 
available:
 
   \\{undo-tree-visualizer-map}"
 
-  nil             ; init value
-  " Undo-Tree"    ; lighter
-  undo-tree-map   ; keymap
+  nil                       ; init value
+  undo-tree-mode-lighter    ; lighter
+  undo-tree-map             ; keymap
   ;; if disabling `undo-tree-mode', remove "canary" from `buffer-undo-list'
   (unless undo-tree-mode (setq buffer-undo-list nil)))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]