aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Paul Wallington2004-04-28 23:20:59 +0000
committerJohn Paul Wallington2004-04-28 23:20:59 +0000
commitd70d59e9d7a024883bd551d9c93a2be3ed77a43b (patch)
tree7026c4016fa7e68f6b4677fc6709905ad2cae30a
parent2883e85a242c8167da1e52304008880b23872bde (diff)
downloademacs-d70d59e9d7a024883bd551d9c93a2be3ed77a43b.tar.gz
emacs-d70d59e9d7a024883bd551d9c93a2be3ed77a43b.zip
(toplevel): Require cl at compile time.
Remove conditional definitions of `ignore-errors' and `caddar' because they occur at run time.
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/thumbs.el14
2 files changed, 8 insertions, 12 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index bfec23fb22a..c3ab8ad0f4b 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12004-04-29 John Paul Wallington <jpw@gnu.org>
2
3 * thumbs.el (toplevel): Require cl at compile time.
4 Remove conditional definitions of `ignore-errors' and `caddar'
5 because they occur at run time.
6
12004-04-28 Nick Roberts <nickrob@gnu.org> 72004-04-28 Nick Roberts <nickrob@gnu.org>
2 8
3 * progmodes/gdb-ui.el (gdb-frame-breakpoints-buffer) 9 * progmodes/gdb-ui.el (gdb-frame-breakpoints-buffer)
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 @@
56 56
57;;; Code: 57;;; Code:
58 58
59(eval-when-compile
60 (require 'cl))
59(require 'dired) 61(require 'dired)
60 62
61;; Abort if in-line imaging isn't supported (i.e. Emacs-20.7) 63;; Abort if in-line imaging isn't supported (i.e. Emacs-20.7)
@@ -182,18 +184,6 @@ see some of your images."
182 (make-directory thumbs-thumbsdir) 184 (make-directory thumbs-thumbsdir)
183 (message "Creating thumbnails directory"))) 185 (message "Creating thumbnails directory")))
184 186
185(when (not (fboundp 'ignore-errors))
186 (defmacro ignore-errors (&rest body)
187 "Execute FORMS; if anz error occurs, return nil.
188Otherwise, return result of last FORM."
189 (let ((err (thumbs-gensym)))
190 (list 'condition-case err (cons 'progn body) '(error nil)))))
191
192(when (not (fboundp 'caddar))
193 (defun caddar (x)
194 "Return the `car' of the `cdr' of the `cdr' of the `car' of X."
195 (car (cdr (cdr (car x))))))
196
197(defvar thumbs-gensym-counter 0) 187(defvar thumbs-gensym-counter 0)
198 188
199(defun thumbs-gensym (&optional arg) 189(defun thumbs-gensym (&optional arg)