* lisp/emacs-lisp/ert.el (should, should-not, should-error): Add edebug
authorNic Ferrier <nferrier@ferrier.me.uk>
Sun, 7 Apr 2013 18:56:28 +0000 (14:56 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sun, 7 Apr 2013 18:56:28 +0000 (14:56 -0400)
declaration.

lisp/ChangeLog
lisp/emacs-lisp/ert.el

index ca9c545..a2be105 100644 (file)
@@ -1,3 +1,8 @@
+2013-04-07  Nic Ferrier  <nferrier@ferrier.me.uk>
+
+       * emacs-lisp/ert.el (should, should-not, should-error): Add edebug
+       declaration.
+
 2013-04-07  Leo Liu  <sdl.web@gmail.com>
 
        * pcmpl-x.el: New file.
@@ -31,8 +36,8 @@
 
 2013-04-05  Dmitry Gutov  <dgutov@yandex.ru>
 
-       * whitespace.el (whitespace-color-on, whitespace-color-off): Only
-       call `font-lock-fontify-buffer' when `font-lock-mode' is on.
+       * whitespace.el (whitespace-color-on, whitespace-color-off):
+       Only call `font-lock-fontify-buffer' when `font-lock-mode' is on.
 
 2013-04-05  Jacek ChrzÄ…szcz  <chrzaszcz@mimuw.edu.pl> (tiny change)
 
index 7df3acc..a9c06b0 100644 (file)
@@ -464,6 +464,7 @@ FORM-DESCRIPTION-FORM before it has called INNER-FORM."
   "Evaluate FORM.  If it returns nil, abort the current test as failed.
 
 Returns the value of FORM."
+  (declare (debug t)))
   (ert--expand-should `(should ,form) form
                       (lambda (inner-form form-description-form _value-var)
                         `(unless ,inner-form
@@ -473,6 +474,7 @@ Returns the value of FORM."
   "Evaluate FORM.  If it returns non-nil, abort the current test as failed.
 
 Returns nil."
+  (declare (debug t)))
   (ert--expand-should `(should-not ,form) form
                       (lambda (inner-form form-description-form _value-var)
                         `(unless (not ,inner-form)
@@ -520,6 +522,7 @@ non-nil, the error matches TYPE if it is an element of TYPE.
 If the error matches, returns (ERROR-SYMBOL . DATA) from the
 error.  If not, or if no error was signaled, abort the test as
 failed."
+  (declare (debug t))
   (unless type (setq type ''error))
   (ert--expand-should
    `(should-error ,form ,@keys)