help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: .emacs handling multiple versions


From: Kai Grossjohann
Subject: Re: .emacs handling multiple versions
Date: Wed, 04 Apr 2007 17:31:55 +0200
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.93 (gnu/linux)

IMVHO the best method is to check for the presence/absence of a
specific feature.

For example, if the problem is that sometimes a function doesn't
exist, then do

(when (fboundp 'foo)
  (foo ...))

Kai

"perldev@monkeybytes.org" <perldev@monkeybytes.org> writes:

> Hey, gang:
>
> I'm running Carbon Emacs on OS X as my main emacs, thus my .emacs file
> has a bunch of carbon only hooks in it. However, sometimes I'll  use
> the terminal emacs (shipped with OS X) and the .emacs file causes
> problems calling things that the terminal version can't handle. I'd
> like to keep the ability to use both... any suggestions for having
> the .emacs file know which version is calling it and respond
> accordingly?
>
> Thanks so much for the help.
>
> PS: I know I can forgo the .emacs file with "emacs -q", but most of my
> problems occur when some other application calls emacs  automatically
> via the environmental $EDITOR....





reply via email to

[Prev in Thread] Current Thread [Next in Thread]