From: Oleksandr Gavenko <gavenko@bifit.com.ua>
To: help-gnu-emacs@gnu.org
Subject: Re: How check when symbol is introduced in Emacs?
Date: Wed, 19 Jan 2011 18:02:36 +0200 [thread overview]
Message-ID: <ih71uo$5ns$1@dough.gmane.org> (raw)
In-Reply-To: <E1PfZol-0006Qq-Lu@fencepost.gnu.org>
On 19.01.2011 17:19, Eli Zaretskii wrote:
>> From: Oleksandr Gavenko<gavenko@bifit.com.ua>
>> 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'?
>
This is interesting tips. I already use this but not always.
next prev parent reply other threads:[~2011-01-19 16:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-19 10:23 How check when symbol is introduced in Emacs? Oleksandr Gavenko
2011-01-19 14:16 ` suvayu ali
2011-01-19 15:19 ` Eli Zaretskii
2011-01-19 16:02 ` Oleksandr Gavenko [this message]
[not found] <mailman.4.1295432653.6673.help-gnu-emacs@gnu.org>
2011-01-19 15:15 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='ih71uo$5ns$1@dough.gmane.org' \
--to=gavenko@bifit.com.ua \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.