help-gnu-emacs
[Top][All Lists]
Advanced

[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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]