branch: externals/compat commit cac99291348be757cddc57d54f26d9bfd4d5381c Author: Philip Kaludercic <phil...@posteo.net> Commit: Philip Kaludercic <phil...@posteo.net>
Check if nadvice is available using fboundp --- compat-tests.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compat-tests.el b/compat-tests.el index 820927e6ac..30b58b74f3 100644 --- a/compat-tests.el +++ b/compat-tests.el @@ -121,9 +121,9 @@ the compatibility function." -(require 'package) -(package-initialize) -(unless (package-installed-p 'nadvice) +(unless (fboundp 'nadvice) + (require 'package) + (package-initialize) (package-install 'nadvice)) (ert-deftest compat-string-search ()