branch: elpa/undo-fu-session
commit fedd4730ffa0b984436a22d395d3ee6cafd56548
Author: Campbell Barton <[email protected]>
Commit: Campbell Barton <[email protected]>
Fix undo-fu-session-compression not working when set to ni
Since nil is a symbol: nil returned ".nil" instead of ".el".
Remove compatibility check for "t" since this has not been working
for a long time.
---
changelog.rst | 4 ++++
undo-fu-session.el | 5 +----
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/changelog.rst b/changelog.rst
index f2fcc3fe3af..72d2f45ba67 100644
--- a/changelog.rst
+++ b/changelog.rst
@@ -3,6 +3,10 @@
Change Log
##########
+- Unreleased
+
+ - Fix undo session files using wrong extension (``.nil`` instead of writing
``.el`` files).
+
- Version 0.7 (2024-07-07)
- Support custom file-system locations for undo data via
``undo-fu-session-make-file-name-function``.
diff --git a/undo-fu-session.el b/undo-fu-session.el
index 3157831b260..c56dcf8fd16 100755
--- a/undo-fu-session.el
+++ b/undo-fu-session.el
@@ -540,11 +540,8 @@ Argument PENDING-LIST an `pending-undo-list' compatible
list."
(declare (important-return-value t) (side-effect-free error-free))
(cond
- ((symbolp undo-fu-session-compression)
+ (undo-fu-session-compression
(concat "." (symbol-name undo-fu-session-compression)))
- ((eq undo-fu-session-compression t)
- ;; Used for older versions where compression was a boolean.
- ".gz")
(t
".el")))