unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* To `boundp' or not to `boundp'?
@ 2015-09-01 15:50 Alexander Shukaev
  2015-09-01 15:51 ` Dmitry Gutov
  0 siblings, 1 reply; 76+ messages in thread
From: Alexander Shukaev @ 2015-09-01 15:50 UTC (permalink / raw)
  To: help-gnu-emacs

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



^ permalink raw reply	[flat|nested] 76+ messages in thread

end of thread, other threads:[~2015-09-14  1:31 UTC | newest]

Thread overview: 76+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.719.1441763081.19560.help-gnu-emacs@gnu.org>
2015-09-09 15:03 ` member returns list Barry Margolin
2015-09-09 19:44   ` Ted Zlatanov
2015-09-01 15:50 To `boundp' or not to `boundp'? Alexander Shukaev
2015-09-01 15:51 ` Dmitry Gutov
     [not found]   ` <mailman.331.1441125765.19560.help-gnu-emacs@gnu.org>
2015-09-01 20:20     ` Barry Margolin
2015-09-01 23:37       ` member returns list (was: Re: To `boundp' or not to `boundp'?) Emanuel Berg
2015-09-02  0:10         ` Drew Adams
2015-09-02  0:27           ` Emanuel Berg
2015-09-02  0:38             ` Drew Adams
     [not found]               ` <mailman.370.1441156160.19560.help-gnu-emacs@gnu.org>
2015-09-03  5:17                 ` member returns list Pascal J. Bourguignon
2015-09-04  0:26                   ` Emanuel Berg
2015-09-02 16:45         ` Michael Heerdegen
2015-09-02 21:47           ` Emanuel Berg
2015-09-02 22:09             ` Michael Heerdegen
2015-09-02 22:11             ` Drew Adams
2015-09-02 22:13             ` Marcin Borkowski
2015-09-04  1:03               ` Emanuel Berg
2015-09-04  6:50                 ` Marcin Borkowski
2015-09-05 17:35                   ` Emanuel Berg
2015-09-05 17:55                     ` Random832
2015-09-05 18:09                       ` Emanuel Berg
2015-09-05 21:04                         ` Random832
2015-09-06  2:57                           ` Emanuel Berg
     [not found]                     ` <mailman.552.1441475739.19560.help-gnu-emacs@gnu.org>
2015-09-05 23:39                       ` Pascal J. Bourguignon
2015-09-06  2:46                         ` Emanuel Berg
2015-09-09  1:48                           ` Robert Thorpe
2015-09-09  2:44                             ` Pascal J. Bourguignon
2015-09-09  3:19                               ` John Mastro
2015-09-10  0:25                             ` Emanuel Berg
     [not found]                         ` <mailman.557.1441507097.19560.help-gnu-emacs@gnu.org>
2015-09-06 21:20                           ` Pascal J. Bourguignon
2015-09-06 23:33                             ` Emanuel Berg
     [not found]                             ` <mailman.598.1441581917.19560.help-gnu-emacs@gnu.org>
2015-09-06 23:47                               ` Pascal J. Bourguignon
2015-09-07  1:29                                 ` Pascal J. Bourguignon
2015-09-07  2:25                                   ` Emanuel Berg
2015-09-09  1:44                                   ` Robert Thorpe
2015-09-10  0:23                                     ` Emanuel Berg
     [not found]                                     ` <mailman.793.1441844665.19560.help-gnu-emacs@gnu.org>
2015-09-10  2:01                                       ` Pascal J. Bourguignon
2015-09-10  2:32                                         ` Emanuel Berg
     [not found]                                           ` <ECCA0E56-A051-4D38-8CBB-6CE9208BB047@openmailbox.org>
2015-09-11  1:32                                             ` Emanuel Berg
2015-09-11  1:46                                               ` Emanuel Berg
     [not found]                                         ` <mailman.797.1441852386.19560.help-gnu-emacs@gnu.org>
2015-09-10  4:21                                           ` Pascal J. Bourguignon
2015-09-10 18:09                                             ` Alex Kost
2015-09-11  1:01                                               ` Random832
2015-09-11  1:28                                                 ` Emanuel Berg
2015-09-11  2:01                                                   ` Emanuel Berg
2015-09-11  2:52                                                     ` Random832
     [not found]                                                   ` <mailman.890.1441936900.19560.help-gnu-emacs@gnu.org>
2015-09-11  2:27                                                     ` Pascal J. Bourguignon
2015-09-12  0:10                                                       ` Emanuel Berg
2015-09-11  2:37                                                   ` Ian Zimmerman
2015-09-11  1:03                                               ` Emanuel Berg
2015-09-11  0:57                                             ` Emanuel Berg
2015-09-11  5:42                                               ` tomas
2015-09-12  0:18                                                 ` Emanuel Berg
2015-09-13  8:12                                                   ` tomas
     [not found]                                               ` <mailman.897.1441950163.19560.help-gnu-emacs@gnu.org>
2015-09-11 23:29                                                 ` Pascal J. Bourguignon
2015-09-12  0:20                                                   ` Emanuel Berg
     [not found]                                                   ` <mailman.966.1442016910.19560.help-gnu-emacs@gnu.org>
2015-09-12  2:01                                                     ` Pascal J. Bourguignon
2015-09-12  3:26                                                       ` Emanuel Berg
2015-09-13  7:50                                                       ` tomas
2015-09-12  2:03                                                     ` Pascal J. Bourguignon
2015-09-12  2:45                                                       ` Stefan Monnier
2015-09-12  3:12                                                         ` Emanuel Berg
2015-09-12  3:31                                                       ` Emanuel Berg
     [not found]                                                       ` <mailman.972.1442025961.19560.help-gnu-emacs@gnu.org>
2015-09-12  6:16                                                         ` Pascal J. Bourguignon
2015-09-12 23:38                                                           ` Emanuel Berg
2015-09-13  8:03                                                             ` tomas
2015-09-14  1:31                                                               ` Emanuel Berg
     [not found]                                                           ` <mailman.1016.1442100597.19560.help-gnu-emacs@gnu.org>
2015-09-13  0:09                                                             ` Pascal J. Bourguignon
2015-09-13  0:24                                                               ` John Mastro
     [not found]                                                               ` <mailman.1019.1442103883.19560.help-gnu-emacs@gnu.org>
2015-09-13  4:29                                                                 ` Pascal J. Bourguignon
     [not found]                                                       ` <mailman.978.1442028310.19560.help-gnu-emacs@gnu.org>
2015-09-12  6:18                                                         ` Pascal J. Bourguignon
2015-09-12 23:56                                                           ` Emanuel Berg
     [not found]                                                           ` <mailman.1018.1442101697.19560.help-gnu-emacs@gnu.org>
2015-09-13  0:20                                                             ` Pascal J. Bourguignon
2015-09-14  1:24                                                               ` Emanuel Berg
2015-09-12  2:04                                                     ` Pascal J. Bourguignon
2015-09-12  3:15                                                       ` Emanuel Berg
2015-09-12  7:40                                                   ` Eli Zaretskii
     [not found]                                             ` <mailman.884.1441933051.19560.help-gnu-emacs@gnu.org>
2015-09-11  2:26                                               ` Pascal J. Bourguignon
2015-09-12  0:16                                                 ` Emanuel Berg
2015-09-07  2:38                                 ` Drew Adams
2015-09-07  2:37                             ` Drew Adams
     [not found]                 ` <mailman.502.1441349470.19560.help-gnu-emacs@gnu.org>
2015-09-04 17:26                   ` Barry Margolin
2015-09-05 17:40                     ` Emanuel Berg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).