comp.emacs
[Top] [All Lists]

Re: Carbon emacs (OSX) & /usr/bin/emacs using the same .emacs

Subject: Re: Carbon emacs (OSX) & /usr/bin/emacs using the same .emacs
From: Rupert Swarbrick
Date: Mon, 25 Aug 2008 22:26:21 +0100
Newsgroups: comp.emacs
jOHn wONg <thjwong@xxxxxxxxx> writes:

> mac-carbon-version-string is present in Carbon Emacs, and /usr/bin/
> emacs is lacking such a variable. However, I do not know how to make
> use of this to write the .emacs file (evaluating mac-carbon-version-
> string will give me a "void-variable" error in /usr/bin/emacs)
>
> Please suggest! Thanks in advance.

I don't know anything about Carbon Emacs, so I'll have to trust you on
the variable name :) But in lisp there is a function called boundp,
which tells you whether a symbol is bound or not

e.g.

(boundp 'somethingreallysilly)
=> nil

and

(boundp 'emacs-major-version)
=> t

Hope this helps,

Rupert
<Prev in Thread] Current Thread [Next in Thread>
Privacy Policy