From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.help Subject: Re: To `boundp' or not to `boundp'? Date: Tue, 1 Sep 2015 18:51:55 +0300 Message-ID: <55E5C99B.3020608@yandex.ru> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1441122746 22268 80.91.229.3 (1 Sep 2015 15:52:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 1 Sep 2015 15:52:26 +0000 (UTC) To: Alexander Shukaev , help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Sep 01 17:52:25 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 1ZWnrE-0002wy-H7 for geh-help-gnu-emacs@m.gmane.org; Tue, 01 Sep 2015 17:52:24 +0200 Original-Received: from localhost ([::1]:55285 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZWnrE-0002eg-1Z for geh-help-gnu-emacs@m.gmane.org; Tue, 01 Sep 2015 11:52:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45774) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZWnqx-0002eK-8Q for help-gnu-emacs@gnu.org; Tue, 01 Sep 2015 11:52:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZWnqt-0006mo-1O for help-gnu-emacs@gnu.org; Tue, 01 Sep 2015 11:52:07 -0400 Original-Received: from mail-wi0-x22c.google.com ([2a00:1450:400c:c05::22c]:37831) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZWnqs-0006lg-R9 for help-gnu-emacs@gnu.org; Tue, 01 Sep 2015 11:52:02 -0400 Original-Received: by wicfx3 with SMTP id fx3so17426580wic.0 for ; Tue, 01 Sep 2015 08:52:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=ac38uxthNhqujIObiGAn9jNZjD0y1HEqS1BKPZwT3xU=; b=GfW1DPoA4E2kx2zX4+K/whEMHAxG5SvcUHxq8tKPgVebJ7M3JrwyzfGC9SAAvEN+Nq E6thrGpNektjtkJAPJRgIeunrfafdq8WPUCKQyzfyso5/Bbwf35QuXlPnZkmKRFswNNc /gExK9ng4/B25oXGcYQE5QGt1I7i8K6CkxHDNF6/FMKyFgCdSNgY9IMtyF3yDVjW+88n FcMzzJjS5KhiA94UfdfYCZBnNqsjWjSxKl0Hjk4gQH2KaQ3CeD1RvZ0EKysgMEJcxQrQ sJF2UyNodfKVhw+3FtaGll1IVJM9mWTjG6Ci8G51eswr8Q+yx+FkhGkphayQxPn4ZeLu cwng== X-Received: by 10.194.158.34 with SMTP id wr2mr34413353wjb.23.1441122721456; Tue, 01 Sep 2015 08:52:01 -0700 (PDT) Original-Received: from [10.9.0.103] (nat.webazilla.com. [78.140.128.228]) by smtp.googlemail.com with ESMTPSA id x6sm3378436wiy.6.2015.09.01.08.51.57 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 01 Sep 2015 08:51:58 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:40.0) Gecko/20100101 Thunderbird/40.0 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c05::22c 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:106959 Archived-At: On 09/01/2015 06:50 PM, Alexander Shukaev wrote: > 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.