]> code.delx.au - gnu-emacs/blobdiff - lisp/emacs-lisp/ert.el
* lisp/emacs-lisp/ert.el (ert--special-operator-p):
[gnu-emacs] / lisp / emacs-lisp / ert.el
index 4ffd8cd85584ed9f3f4e22014cd16a360a7d2dbc..384fef546aec86e9d1ea1769af01d7599747bea8 100644 (file)
@@ -269,7 +269,7 @@ DATA is displayed to the user and should state the reason for skipping."
 (defun ert--special-operator-p (thing)
   "Return non-nil if THING is a symbol naming a special operator."
   (and (symbolp thing)
-       (let ((definition (indirect-function thing t)))
+       (let ((definition (ignore-errors (indirect-function thing))))
          (and (subrp definition)
               (eql (cdr (subr-arity definition)) 'unevalled)))))