branch: elpa/undo-fu-session
commit e6cf0dca6ae598b1c752dec7bdc18daeac88acec
Author: Campbell Barton <[email protected]>
Commit: Campbell Barton <[email protected]>
Rename global-undo-fu-session-mode to undo-fu-session-global-mode
---
changelog.rst | 5 +++++
readme.rst | 4 ++--
tests/undo-fu-session-test.el | 2 +-
undo-fu-session.el | 12 +++++++-----
4 files changed, 15 insertions(+), 8 deletions(-)
diff --git a/changelog.rst b/changelog.rst
index e3a66b7c0d..a52063192c 100644
--- a/changelog.rst
+++ b/changelog.rst
@@ -3,6 +3,11 @@
Change Log
##########
+
+- Version 0.4 (2023-01-07)
+
+ - Rename ``global-undo-fu-session-mode`` to ``undo-fu-session-global-mode``.
+
- Version 0.3 (2022-07-08)
- Support conversion of existing undo data to other formats via
``undo-fu-session-compression-update``.
diff --git a/readme.rst b/readme.rst
index 7957ba405d..9f13fb4ad3 100644
--- a/readme.rst
+++ b/readme.rst
@@ -45,7 +45,7 @@ disable storing undo information by mode and file-name.
.. code-block:: elisp
- (global-undo-fu-session-mode)
+ (undo-fu-session-global-mode)
Enable (Buffer)
@@ -106,7 +106,7 @@ The package is available in melpa as ``undo-fu-session``,
here is an example wit
:config
(setq undo-fu-session-incompatible-files '("/COMMIT_EDITMSG\\'"
"/git-rebase-todo\\'")))
- (global-undo-fu-session-mode)
+ (undo-fu-session-global-mode)
Undo Tree
diff --git a/tests/undo-fu-session-test.el b/tests/undo-fu-session-test.el
index a06b47b0d4..ee6971176e 100644
--- a/tests/undo-fu-session-test.el
+++ b/tests/undo-fu-session-test.el
@@ -105,7 +105,7 @@
(defun undo-fu-session-test-run-all ()
"Run every test."
- (global-undo-fu-session-mode)
+ (undo-fu-session-global-mode)
(message "Running with `undo-fu-session-linear' enabled:")
(setq undo-fu-session-linear t)
diff --git a/undo-fu-session.el b/undo-fu-session.el
index 038f5dbad0..4402763ee7 100755
--- a/undo-fu-session.el
+++ b/undo-fu-session.el
@@ -8,7 +8,7 @@
;; URL: https://codeberg.com/ideasman42/emacs-undo-fu-session
;; Keywords: convenience
-;; Version: 0.3
+;; Version: 0.4
;; Package-Requires: ((emacs "28.1"))
;;; Commentary:
@@ -23,15 +23,15 @@
;; Write the following code to your .emacs file:
;;
;; (require 'undo-fu-session)
-;; (global-undo-fu-session-mode)
+;; (undo-fu-session-global-mode)
;;
;; Or with `use-package':
;;
;; (use-package undo-fu-session)
-;; (global-undo-fu-session-mode)
+;; (undo-fu-session-global-mode)
;;
;; If you prefer to enable this per-mode, you may do so using
-;; mode hooks instead of calling `global-undo-fu-session-mode'.
+;; mode hooks instead of calling `undo-fu-session-global-mode'.
;; The following example enables this for org-mode:
;;
;; (add-hook 'org-mode-hook (lambda () (undo-fu-session-mode))
@@ -726,9 +726,11 @@ Argument PENDING-LIST an `pending-undo-list' compatible
list."
(undo-fu-session--mode-disable))))
;;;###autoload
-(define-globalized-minor-mode global-undo-fu-session-mode
+(define-globalized-minor-mode undo-fu-session-global-mode
undo-fu-session-mode
undo-fu-session--mode-turn-on)
+(define-obsolete-function-alias 'global-undo-fu-session-mode
#'undo-fu-session-global-mode "0.4")
+
(provide 'undo-fu-session)
;;; undo-fu-session.el ends here