mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-26 19:18:50 +00:00
(toplevel): Require cl at compile time.
Remove conditional definitions of `ignore-errors' and `caddar' because they occur at run time.
This commit is contained in:
parent
2883e85a24
commit
d70d59e9d7
@ -1,3 +1,9 @@
|
||||
2004-04-29 John Paul Wallington <jpw@gnu.org>
|
||||
|
||||
* thumbs.el (toplevel): Require cl at compile time.
|
||||
Remove conditional definitions of `ignore-errors' and `caddar'
|
||||
because they occur at run time.
|
||||
|
||||
2004-04-28 Nick Roberts <nickrob@gnu.org>
|
||||
|
||||
* progmodes/gdb-ui.el (gdb-frame-breakpoints-buffer)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user