all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kai Grossjohann <kai@emptydomain.de>
To: help-gnu-emacs@gnu.org
Subject: Re: .emacs handling multiple versions
Date: Wed, 04 Apr 2007 17:31:55 +0200	[thread overview]
Message-ID: <86lkh8b1g4.fsf@ketchup.de.uu.net> (raw)
In-Reply-To: 8896027D-3B50-4A48-82C6-51E9D230A710@monkeybytes.org

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	other threads:[~2007-04-04 15:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-04 15:15 .emacs handling multiple versions perldev
2007-04-04 15:31 ` Kai Grossjohann [this message]
2007-04-04 17:21 ` Peter Dyballa
2007-04-04 18:12   ` perldev
     [not found] <mailman.1747.1175699939.7795.help-gnu-emacs@gnu.org>
2007-04-04 15:42 ` 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=86lkh8b1g4.fsf@ketchup.de.uu.net \
    --to=kai@emptydomain.de \
    --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.