branch: elpa/macrostep
commit 6c8ae5bc6b354430575fcf99de332bef93804df9
Author: joddie <[email protected]>
Commit: joddie <[email protected]>

    Remove call to `define-error` for Emacs <24.4
---
 macrostep.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/macrostep.el b/macrostep.el
index 85550e0..1c2a194 100644
--- a/macrostep.el
+++ b/macrostep.el
@@ -831,8 +831,8 @@ expansion until a non-macro-call results."
            (error "Form left unchanged by compiler macro")
          expansion)))))
 
-(define-error 'macrostep-grab-environment-failed
-    "Extracting the macro environment at point failed.")
+(put 'macrostep-grab-environment-failed 'error-conditions
+     '(macrostep-grab-environment-failed error))
 
 (defun macrostep-environment-at-point ()
   "Return the local macro-expansion environment at point, if any.

Reply via email to