branch: elpa-admin
commit 97d276595c5eaa75dae78353a3da26683b8e4303
Author: Stefan Monnier <[email protected]>
Commit: Stefan Monnier <[email protected]>
* elpa-admin.el (ignore-error): Add backward compatibility definition
---
elpa-admin.el | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/elpa-admin.el b/elpa-admin.el
index 16bc7a0..828397c 100644
--- a/elpa-admin.el
+++ b/elpa-admin.el
@@ -69,6 +69,10 @@ to be installed and has only been tested on some Debian
systems.")
(defvar elpaa--debug nil)
+(unless (fboundp 'ignore-error)
+ (defmacro ignore-error (condition &rest body)
+ `(condition-case nil (progn ,@body) (,condition nil))))
+
(defun elpaa--form-from-file-contents (filename)
(with-temp-buffer
(insert-file-contents filename)