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

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

[elpa] externals/undo-tree a220a42 097/195: Added registerv-make and reg


From: Stefan Monnier
Subject: [elpa] externals/undo-tree a220a42 097/195: Added registerv-make and registerv-data compatibility macros in Emacs <= 23.
Date: Sat, 28 Nov 2020 13:41:30 -0500 (EST)

branch: externals/undo-tree
commit a220a42514bfc99cc319dfebef684b5ba7c5c469
Author: Toby S. Cubitt <toby-undo-tree@dr-qubit.org>
Commit: Toby S. Cubitt <toby-undo-tree@dr-qubit.org>

    Added registerv-make and registerv-data compatibility macros in Emacs <= 23.
---
 undo-tree.el | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/undo-tree.el b/undo-tree.el
index 1f9a733..14a3c9e 100644
--- a/undo-tree.el
+++ b/undo-tree.el
@@ -631,6 +631,8 @@
 ;; * added `undo-tree-visualizer-diff' customization option, to display diff
 ;;   by default
 ;; * added `called-interactively-p' compatibility hack for Emacs <= 23.1
+;; * added `registerv-make' and `registerv-data' compatibility hacks for
+;;   Emacs <= 23
 ;;
 ;; Version 0.4
 ;; * implemented persistent history storage: `undo-tree-save-history' and
@@ -774,6 +776,7 @@
 (eval-when-compile (require 'cl))
 (require 'diff)
 
+
 ;; `characterp' isn't defined in Emacs versions <= 22
 (unless (fboundp 'characterp)
   (defalias 'characterp 'char-valid-p))
@@ -792,6 +795,12 @@
     (around undo-tree (&optional kind) activate compile preactivate)
     ad-do-it)1)
 
+;; `registerv' defstruct isn't defined in Emacs versions <= 23
+(unless (fboundp 'registerv-make)
+  (defmacro registerv-make (data &rest dummy) data))
+(unless (fboundp 'registerv-data)
+  (defmacro registerv-data (data) data))
+
 
 
 ;;; =====================================================================



reply via email to

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