unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Q: Testing forthe existence of a function
@ 2009-10-27 13:11 grkuntzmd
  2009-10-27 16:32 ` Giles Chamberlin
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: grkuntzmd @ 2009-10-27 13:11 UTC (permalink / raw)
  To: Help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 697 bytes --]


I am trying to share my .emacs file across multiple hosts, some of which have
emacs compiled for X and some which do not.


On the ones that don't, the statement
(tool-bar-mode nil)

causes an error: Symbol's function definition is void: tool-bar-mode


I would like to add a statement of the form
(if (defined 'tool-bar-mode) (tool-bar-mode nil))

but I can't find the proper format -- is there a defined-p predicate?


I checked the elisp manual but could not find it.


Thanks


-----
G. Ralph Kuntz, MD

-- 
View this message in context: http://www.nabble.com/Q%3A-Testing-forthe-existence-of-a-function-tp26077455p26077455.html
Sent from the Emacs - Help mailing list archive at Nabble.com.

[-- Attachment #2: Type: text/html, Size: 978 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread
[parent not found: <mailman.9564.1256660727.2239.help-gnu-emacs@gnu.org>]

end of thread, other threads:[~2009-10-27 19:08 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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   ` Q: " Ilya Zakharevich
     [not found] <mailman.9564.1256660727.2239.help-gnu-emacs@gnu.org>
2009-10-27 16:41 ` 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

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).