branch: elpa/undo-fu
commit 994aa7f62c9f6aef152439ca7405dda88ca43747
Author: Campbell Barton <[email protected]>
Commit: Campbell Barton <[email protected]>

    Fix undo-fu-clear-all clearing the equiv-table for all buffers
---
 undo-fu.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/undo-fu.el b/undo-fu.el
index 0879756c879..a170056aae6 100644
--- a/undo-fu.el
+++ b/undo-fu.el
@@ -439,9 +439,10 @@ Optional argument ARG the number of steps to undo."
 (defun undo-fu-clear-all ()
   "Clear all undo/redo steps."
   (interactive)
+  ;; NOTE: don't touch `undo-equiv-table' as this is global,
+  ;; since it uses weak references, clearing these values is sufficient.
   (setq buffer-undo-list nil)
-  (setq pending-undo-list nil)
-  (clrhash undo-equiv-table))
+  (setq pending-undo-list nil))
 
 
 ;; Evil Mode (setup if in use)

Reply via email to