Re: Revert try-require?
- From: Teika Kazura <teika lavabit com>
- To: sawfish-list gnome org
- Subject: Re: Revert try-require?
- Date: Tue, 06 Oct 2009 13:31:22 +0900 (JST)
Hi.
Since Timo too says try-require is not necessary, I will delete it.
On Sat, 03 Oct 2009 07:36:55 +0200, Christopher Roy Bratusek wrote:
> Am Samstag, den 03.10.2009, 14:29 +0900 schrieb Teika Kazura:
>> Hi. Recently, new func `try-require' is added into wm.defaults:
>>
> [;;; in sawfish.foo]
> (if (try-require 'sawfish.wm.ext.fdo-menu)
> do that fancy action
> fallback)
My previous message was not accurate, and Chris replied correctly. Let
me amend.
The above example is not a recommended way to code. If `require
fdo-menu' may fail, then it should not be hard-wired into
sawfish.foo. (except .sawfishrc) This is why try-require is not desirable.
And you can do the same thing with:
(condition-case nil
(require 'foo)
;; do fancy things...
(error fallback...))
So it's not necessary.
Teika (Teika kazura)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]