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

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

[nongnu] elpa/goto-chg ea9adb4 11/27: Check correctly for no changes


From: Philip Kaludercic
Subject: [nongnu] elpa/goto-chg ea9adb4 11/27: Check correctly for no changes
Date: Sun, 1 Aug 2021 18:32:59 -0400 (EDT)

branch: elpa/goto-chg
commit ea9adb4b72d48f87aec80a72d6fbf45e4ad1d66a
Author: Vasilij Schneidermann <mail@vasilij.de>
Commit: Vasilij Schneidermann <mail@vasilij.de>

    Check correctly for no changes
---
 goto-chg.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/goto-chg.el b/goto-chg.el
index 696bc82..af726e7 100644
--- a/goto-chg.el
+++ b/goto-chg.el
@@ -248,7 +248,7 @@ discarded. See variable `undo-limit'."
                glc-current-span glc-default-span)
          (if (< (prefix-numeric-value arg) 0)
              (error "Negative arg: Cannot reverse as the first operation"))))
-  (cond ((null buffer-undo-list)
+  (cond ((and (null buffer-undo-list) (null buffer-undo-tree))
          (error "Buffer has not been changed"))
         ((eq buffer-undo-list t)
          (error "No change info (undo is disabled)")))



reply via email to

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