From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alexander Shukaev Newsgroups: gmane.emacs.help Subject: To `boundp' or not to `boundp'? Date: Tue, 1 Sep 2015 17:50:12 +0200 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1441122630 19805 80.91.229.3 (1 Sep 2015 15:50:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 1 Sep 2015 15:50:30 +0000 (UTC) To: help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Sep 01 17:50:29 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZWnpL-0001Wl-Ad for geh-help-gnu-emacs@m.gmane.org; Tue, 01 Sep 2015 17:50:27 +0200 Original-Received: from localhost ([::1]:55275 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZWnpL-0001yK-1z for geh-help-gnu-emacs@m.gmane.org; Tue, 01 Sep 2015 11:50:27 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45344) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZWnp8-0001y9-Cz for help-gnu-emacs@gnu.org; Tue, 01 Sep 2015 11:50:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZWnp7-0005lx-Jd for help-gnu-emacs@gnu.org; Tue, 01 Sep 2015 11:50:14 -0400 Original-Received: from mail-la0-x22d.google.com ([2a00:1450:4010:c03::22d]:34682) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZWnp7-0005ls-Be for help-gnu-emacs@gnu.org; Tue, 01 Sep 2015 11:50:13 -0400 Original-Received: by laeb10 with SMTP id b10so2825981lae.1 for ; Tue, 01 Sep 2015 08:50:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=k60VsD9Beys4ptPQIj548xG3RcNmP1j/6YX+P4c1pKg=; b=KLRHixcsIzlIrb8Klu3x9EkAoP5eAe0AK1KAXtow4wcWr51FRWAJ0n0td8r7owkJS8 aZvlXPCTy6qUqcOchN6o74LSaYGfYQ/QtiWPmQI5pGt0YI1MUCPczYue+2lWXQwv6uPH iU2Cjt8vnjyYBUlpNHoAPgTKn3YmkKcAjeDk2wJUMBx3COy7c4umD8ZyGtY6RYI/aZiY Vja4Ch1PD6Yy0jew3/NWqbgzKg3TgOzBwknOuxvyjz1Y3lKGsMjYpHNDFfpTdyjYrRGQ 3cbUYfZf4V2I1ho5dVtiQiyz1VJkQ6H+OOYsfW3NF8iUqoNSMJsFhb/q2u6ANXxFxbJI j0WA== X-Received: by 10.112.170.103 with SMTP id al7mr13741568lbc.66.1441122612472; Tue, 01 Sep 2015 08:50:12 -0700 (PDT) Original-Received: by 10.112.34.17 with HTTP; Tue, 1 Sep 2015 08:50:12 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::22d X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:106958 Archived-At: 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