diff options
author | Glenn Morris <rgm@gnu.org> | 2012-11-20 20:47:55 -0800 |
---|---|---|
committer | Glenn Morris <rgm@gnu.org> | 2012-11-20 20:47:55 -0800 |
commit | 6ef2e5ef5278a807132b78c42de402925b20bfb3 (patch) | |
tree | e5711cdfcdf8a152416c2a96e399695285a4a3a8 /lisp/emacs-lisp | |
parent | eadf1faa3cb5eea8c25a5166a9a97ebd63525c56 (diff) | |
parent | b6729a180f4b81ac26bd7b61f5330643b2d5e994 (diff) | |
download | emacs-6ef2e5ef5278a807132b78c42de402925b20bfb3.tar.gz emacs-6ef2e5ef5278a807132b78c42de402925b20bfb3.tar.bz2 emacs-6ef2e5ef5278a807132b78c42de402925b20bfb3.zip |
Merge from emacs-24; up to 2012-11-17T22:12:47Z!eggert@cs.ucla.edu
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r-- | lisp/emacs-lisp/ert.el | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/lisp/emacs-lisp/ert.el b/lisp/emacs-lisp/ert.el index ff00be7a237..9cbf417d876 100644 --- a/lisp/emacs-lisp/ert.el +++ b/lisp/emacs-lisp/ert.el @@ -388,16 +388,11 @@ DATA is displayed to the user and should state the reason of the failure." (defun ert--expand-should-1 (whole form inner-expander) "Helper function for the `should' macro and its variants." (let ((form - ;; If `cl-macroexpand' isn't bound, the code that we're - ;; compiling doesn't depend on cl and thus doesn't need an - ;; environment arg for `macroexpand'. - (if (fboundp 'cl-macroexpand) - ;; Suppress warning about run-time call to cl function: we - ;; only call it if it's fboundp. - (with-no-warnings - (cl-macroexpand form (and (boundp 'cl-macro-environment) - cl-macro-environment))) - (macroexpand form)))) + (macroexpand form (cond + ((boundp 'macroexpand-all-environment) + macroexpand-all-environment) + ((boundp 'cl-macro-environment) + cl-macro-environment))))) (cond ((or (atom form) (ert--special-operator-p (car form))) (let ((value (ert--gensym "value-"))) |