On Sun, 17 Jan 2010 16:35:07 -0800, D M German wrote:
> something like: if this function is defined used it, but otherwise
> don't generate an error?
There're several ways.
1.
(when (load "foo" 'no-error)
;; non-nil means success
body...)
2.
(let ((filename "foo.jl"))
(when (file-exist-p filename)
(load filename
nil ;; no-error
nil ;; no-path
'no-suffix ;; this is necessary, if you add ".jl[c]".
;; Current doc is wrong.
)))
3.
(when (condition-case nil
(require 'foo)
(error nil))
body...)
> Just wondering... what is the status of undo?
Dunno.
Teika (Teika kazura)