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

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

[elpa] externals/trie 304b8e9 059/111: Added fboundp guard around ad-def


From: Stefan Monnier
Subject: [elpa] externals/trie 304b8e9 059/111: Added fboundp guard around ad-define-subr-args (removed in Emacs-24).
Date: Mon, 14 Dec 2020 11:35:20 -0500 (EST)

branch: externals/trie
commit 304b8e94116b70b1e8aaf8f54d8b2186a009fdf3
Author: Toby S. Cubitt <toby-predictive@dr-qubit.org>
Commit: Toby S. Cubitt <toby-predictive@dr-qubit.org>

    Added fboundp guard around ad-define-subr-args (removed in Emacs-24).
---
 trie.el | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/trie.el b/trie.el
index 474fbad..024a52f 100644
--- a/trie.el
+++ b/trie.el
@@ -1942,7 +1942,8 @@ elements that matched the corresponding groups, in order."
    ))
 
 
-(ad-define-subr-args 'edebug-prin1 '(object &optional printcharfun))
+(when (fboundp 'ad-define-subr-args)
+  (ad-define-subr-args 'edebug-prin1 '(object &optional printcharfun)))
 
 (defadvice edebug-prin1
   (around trie activate compile preactivate)
@@ -1954,7 +1955,8 @@ elements that matched the corresponding groups, in order."
     ad-do-it)))
 
 
-(ad-define-subr-args 'edebug-prin1-to-string '(object &optional noescape))
+(when (fboundp 'ad-define-subr-args)
+  (ad-define-subr-args 'edebug-prin1-to-string '(object &optional noescape)))
 
 (defadvice edebug-prin1-to-string
   (around trie activate compile preactivate)



reply via email to

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