From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: How check when symbol is introduced in Emacs? Date: Wed, 19 Jan 2011 10:19:27 -0500 Message-ID: References: NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1295451433 29601 80.91.229.12 (19 Jan 2011 15:37:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 19 Jan 2011 15:37:13 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jan 19 16:37:09 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Pfa5b-0001VQ-K3 for geh-help-gnu-emacs@m.gmane.org; Wed, 19 Jan 2011 16:36:51 +0100 Original-Received: from localhost ([127.0.0.1]:49965 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pfa5a-0006nY-PN for geh-help-gnu-emacs@m.gmane.org; Wed, 19 Jan 2011 10:36:50 -0500 Original-Received: from [140.186.70.92] (port=50861 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PfZs4-0007vY-Vs for help-gnu-emacs@gnu.org; Wed, 19 Jan 2011 10:22:58 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PfZop-0001vL-NY for help-gnu-emacs@gnu.org; Wed, 19 Jan 2011 10:19:33 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]:34369) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PfZop-0001vE-LR for help-gnu-emacs@gnu.org; Wed, 19 Jan 2011 10:19:31 -0500 Original-Received: from eliz by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1PfZol-0006Qq-Lu for help-gnu-emacs@gnu.org; Wed, 19 Jan 2011 10:19:27 -0500 In-reply-to: (message from Oleksandr Gavenko on Wed, 19 Jan 2011 12:23:59 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:78587 Archived-At: > From: Oleksandr Gavenko > Date: Wed, 19 Jan 2011 12:23:59 +0200 > > Usually I get Error with previous Emacs version when symbol is undefined. > > To workaround I use code like: > > (when (or (>= emacs-major-version 23) > (and (= emacs-major-version 22) (>= > emacs-minor-version 2))) > (setq 'symb val) > ) > > But I must know low limit of version to get better code. Why not use `boundp'?