summaryrefslogtreecommitdiff
path: root/lisp/thumbs.el
diff options
context:
space:
mode:
authorJohn Paul Wallington <jpw@pobox.com>2004-04-28 23:20:59 +0000
committerJohn Paul Wallington <jpw@pobox.com>2004-04-28 23:20:59 +0000
commitd70d59e9d7a024883bd551d9c93a2be3ed77a43b (patch)
tree7026c4016fa7e68f6b4677fc6709905ad2cae30a /lisp/thumbs.el
parent2883e85a242c8167da1e52304008880b23872bde (diff)
downloademacs-d70d59e9d7a024883bd551d9c93a2be3ed77a43b.tar.gz
(toplevel): Require cl at compile time.
Remove conditional definitions of `ignore-errors' and `caddar' because they occur at run time.
Diffstat (limited to 'lisp/thumbs.el')
-rw-r--r--lisp/thumbs.el14
1 files changed, 2 insertions, 12 deletions
diff --git a/lisp/thumbs.el b/lisp/thumbs.el
index 9458f0351ab..206492dee08 100644
--- a/lisp/thumbs.el
+++ b/lisp/thumbs.el
@@ -56,6 +56,8 @@
;;; Code:
+(eval-when-compile
+ (require 'cl))
(require 'dired)
;; Abort if in-line imaging isn't supported (i.e. Emacs-20.7)
@@ -182,18 +184,6 @@ see some of your images."
(make-directory thumbs-thumbsdir)
(message "Creating thumbnails directory")))
-(when (not (fboundp 'ignore-errors))
- (defmacro ignore-errors (&rest body)
- "Execute FORMS; if anz error occurs, return nil.
-Otherwise, return result of last FORM."
- (let ((err (thumbs-gensym)))
- (list 'condition-case err (cons 'progn body) '(error nil)))))
-
-(when (not (fboundp 'caddar))
- (defun caddar (x)
- "Return the `car' of the `cdr' of the `cdr' of the `car' of X."
- (car (cdr (cdr (car x))))))
-
(defvar thumbs-gensym-counter 0)
(defun thumbs-gensym (&optional arg)