[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
To `boundp' or not to `boundp'?
From: |
Alexander Shukaev |
Subject: |
To `boundp' or not to `boundp'? |
Date: |
Tue, 1 Sep 2015 17:50:12 +0200 |
Hello,
I often see code like this
(when (and (boundp 'xxx-mode) xxx-mode)
...)
I personally prefer to do it shorter
(when (ignore-errors xxx-mode)
...)
Are those equivalent? Are there any pitfalls associated with my approach?
Regards,
Alexander
- To `boundp' or not to `boundp'?,
Alexander Shukaev <=
- Re: To `boundp' or not to `boundp'?, Dmitry Gutov, 2015/09/01
- Message not available
- Re: To `boundp' or not to `boundp'?, Barry Margolin, 2015/09/01
- RE: To `boundp' or not to `boundp'?, Drew Adams, 2015/09/01
- member returns list (was: Re: To `boundp' or not to `boundp'?), Emanuel Berg, 2015/09/01
- RE: member returns list (was: Re: To `boundp' or not to `boundp'?), Drew Adams, 2015/09/01
- Re: member returns list (was: Re: To `boundp' or not to `boundp'?), Emanuel Berg, 2015/09/01