From: Ilya Zakharevich <nospam-abuse@ilyaz.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Q: Testing forthe existence of a function
Date: Tue, 27 Oct 2009 19:08:48 +0000 (UTC) [thread overview]
Message-ID: <slrnheeha0.dlf.nospam-abuse@powdermilk.math.berkeley.edu> (raw)
In-Reply-To: mailman.9565.1256661618.2239.help-gnu-emacs@gnu.org
On 2009-10-27, Giles Chamberlin <giles.chamberlin@tandberg.com> wrote:
> grkuntzmd <grk@usa.net> writes:
>
>> I would like to add a statement of the form
>> (if (defined 'tool-bar-mode) (tool-bar-mode nil))
>
> It's not the function you should be testing for but the feature which
> implements it:
>
> (if (featurep 'tool-bar) ...)
If one want to guard a call to tool-bar-mode(), then one should test
for function tool-bar-mode(), not some [possibly unrelated] feature.
Hope this helps,
Ilya
next prev parent reply other threads:[~2009-10-27 19:08 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-27 13:11 Q: Testing forthe existence of a function grkuntzmd
2009-10-27 16:32 ` Giles Chamberlin
2009-10-27 16:49 ` Drew Adams
2009-10-27 17:06 ` Giles Chamberlin
2009-10-27 16:44 ` Drew Adams
[not found] ` <mailman.9565.1256661618.2239.help-gnu-emacs@gnu.org>
2009-10-27 19:08 ` Ilya Zakharevich [this message]
[not found] <mailman.9564.1256660727.2239.help-gnu-emacs@gnu.org>
2009-10-27 16:41 ` Q: " Colin S. Miller
2009-10-27 17:43 ` grkuntzmd
[not found] ` <mailman.9573.1256665424.2239.help-gnu-emacs@gnu.org>
2009-10-27 17:57 ` Colin S. Miller
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=slrnheeha0.dlf.nospam-abuse@powdermilk.math.berkeley.edu \
--to=nospam-abuse@ilyaz.org \
--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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).