Re: status of undo?
- From: Teika Kazura <teika lavabit com>
- To: sawfish-list gnome org
- Subject: Re: status of undo?
- Date: Sat, 23 Jan 2010 13:54:19 +0900 (JST)
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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]