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: Re: To `boundp' or not to `boundp'? Date: Tue, 1 Sep 2015 17:53:55 +0200 Message-ID: References: <55E5C99B.3020608@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1441122856 24438 80.91.229.3 (1 Sep 2015 15:54:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 1 Sep 2015 15:54:16 +0000 (UTC) Cc: help-gnu-emacs To: Dmitry Gutov Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Sep 01 17:54:15 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 1ZWnsz-0004Hc-NU for geh-help-gnu-emacs@m.gmane.org; Tue, 01 Sep 2015 17:54:13 +0200 Original-Received: from localhost ([::1]:55298 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZWnsz-0003w2-Am for geh-help-gnu-emacs@m.gmane.org; Tue, 01 Sep 2015 11:54:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46243) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZWnsj-0003ul-02 for help-gnu-emacs@gnu.org; Tue, 01 Sep 2015 11:54:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZWnsi-0007vo-8g for help-gnu-emacs@gnu.org; Tue, 01 Sep 2015 11:53:56 -0400 Original-Received: from mail-la0-x232.google.com ([2a00:1450:4010:c03::232]:33071) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZWnsi-0007vh-1G for help-gnu-emacs@gnu.org; Tue, 01 Sep 2015 11:53:56 -0400 Original-Received: by lamp12 with SMTP id p12so2886170lam.0 for ; Tue, 01 Sep 2015 08:53:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=/4NINDwqs+Ikp94tGKuiN9w4f/5Kt1n4brKgLLPvNes=; b=BeXjfY8yzfo9Dsu0BBMBxZDt77jkIj39bR7hqNV8Z6mUGWmo5m9lLDKYWFLboNxSeX UQ3EME/gKFo6Y+o9TO5QDwJ+k0Rj+hSNNDb272U44WeErXtRVGqFJhrXPIverkrsVqAi mHOrtM7Bw7thXjSirQP6oUMokHbVC8wgH1npK4FlhXGbgOwVZCLFy9Lt5ls8YVgCHKOk DaPgBA+XiWd620gpqQRCPMzRr43679dePzuikncwUlIE6LglpZnsx/ZitKxO1oZu9CPD RBTGaezdc2e03qYKjLPCASh3kvsMdvdeGH+8V5eEzNMbWArTKaS8iZHhhch92jxCbI7T 86ow== X-Received: by 10.152.18.164 with SMTP id x4mr13753304lad.35.1441122835253; Tue, 01 Sep 2015 08:53:55 -0700 (PDT) Original-Received: by 10.112.34.17 with HTTP; Tue, 1 Sep 2015 08:53:55 -0700 (PDT) In-Reply-To: <55E5C99B.3020608@yandex.ru> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::232 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:106960 Archived-At: >> I often see code like this >> >> (when (and (boundp 'xxx-mode) xxx-mode) >> ...) > > > The "proper" way to do that is to use bound-and-true-p. Interesting, thanks, Dmitry.