unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: help-gnu-emacs@gnu.org
Subject: Re: .emacs handling multiple versions
Date: Wed, 04 Apr 2007 11:42:20 -0400	[thread overview]
Message-ID: <jwv4pnwi1wu.fsf-monnier+gnu.emacs.help@gnu.org> (raw)
In-Reply-To: mailman.1747.1175699939.7795.help-gnu-emacs@gnu.org

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

You can also use CarbonEmacs in a terminal, so you'll get the exact same
version in both cases.

> 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?

Typically, you'll want to use things like (fboundp 'foo) to check whether
the function `foo' exists, before calling it.
Tell us more and we'll tell you more.


        Stefan

       reply	other threads:[~2007-04-04 15:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1747.1175699939.7795.help-gnu-emacs@gnu.org>
2007-04-04 15:42 ` Stefan Monnier [this message]
2007-04-04 15:15 .emacs handling multiple versions perldev
2007-04-04 15:31 ` Kai Grossjohann
2007-04-04 17:21 ` Peter Dyballa
2007-04-04 18:12   ` perldev

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=jwv4pnwi1wu.fsf-monnier+gnu.emacs.help@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --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).