branch: externals/trie commit 304b8e94116b70b1e8aaf8f54d8b2186a009fdf3 Author: Toby S. Cubitt <toby-predict...@dr-qubit.org> Commit: Toby S. Cubitt <toby-predict...@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)