From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: jason_addison@hotmail.com (Jason Addison) Newsgroups: gmane.emacs.help Subject: detect emacs/xemacs in elisp? Date: 9 Dec 2002 10:30:51 -0800 Organization: http://groups.google.com/ Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <49e2e83d.0212091030.7c05b32@posting.google.com> NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1039459300 2391 80.91.224.249 (9 Dec 2002 18:41:40 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 9 Dec 2002 18:41:40 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18LSqS-0000ba-00 for ; Mon, 09 Dec 2002 19:41:32 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18LSki-0007F2-03 for gnu-help-gnu-emacs@m.gmane.org; Mon, 09 Dec 2002 13:35:36 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews1.google.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 8 Original-NNTP-Posting-Host: 150.135.1.23 Original-X-Trace: posting.google.com 1039458651 28532 127.0.0.1 (9 Dec 2002 18:30:51 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: 9 Dec 2002 18:30:51 GMT Original-Xref: shelby.stanford.edu gnu.emacs.help:107897 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:4441 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:4441 I have some elisp that works/doesn't work in emacs/xemacs in my ".emacs" file. I would like to be able to execute or not execute code depending on which type of emacs I'm running. Another way around this would be to know how to determine if a function is defined before calling it. Any idea on how to do this in elisp? Also, how do you determine the version of emacs that is running in elisp? Thanks, Jason