From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?B?55m944GE54aK?= Newsgroups: gmane.lisp.guile.user Subject: Re: Determining programatically whether the interpreter is Guile or Clisp or Emcs Date: Mon, 29 Jul 2013 15:53:44 +0400 Message-ID: <98cb166e-7ada-4494-b728-d2c8b1aefc08@email.android.com> References: <23837d79-03e3-4792-a4b7-e3a6c96ed390@email.android.com> <1375086985.8252.2.camel@Renee-desktop.suse> <66a9b4c8-96e9-421e-b74d-2eb48d26e603@email.android.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1375098925 16331 80.91.229.3 (29 Jul 2013 11:55:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 29 Jul 2013 11:55:25 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Mon Jul 29 13:55:24 2013 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1V3m2u-0007q6-ED for guile-user@m.gmane.org; Mon, 29 Jul 2013 13:55:24 +0200 Original-Received: from localhost ([::1]:39570 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V3m2u-0004fd-06 for guile-user@m.gmane.org; Mon, 29 Jul 2013 07:55:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45038) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V3m2g-0004fO-Nk for guile-user@gnu.org; Mon, 29 Jul 2013 07:55:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V3m2Z-0002eF-Ei for guile-user@gnu.org; Mon, 29 Jul 2013 07:55:10 -0400 Original-Received: from deleuze.hcoop.net ([69.90.123.67]:42119) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V3m2Z-0002cS-9Y for guile-user@gnu.org; Mon, 29 Jul 2013 07:55:03 -0400 Original-Received: from [83.149.8.78] (helo=[172.23.152.209]) by deleuze.hcoop.net with esmtpsa (TLS-1.0:RSA_ARCFOUR_MD5:16) (Exim 4.63) (envelope-from ) id 1V3m2X-0002tW-QB for guile-user@gnu.org; Mon, 29 Jul 2013 07:55:02 -0400 User-Agent: K-9 Mail for Android In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 69.90.123.67 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:10584 Archived-At: Nala Ginrut wrote: >I think the most efficient way= is to use 'cpp' of gcc to do the >pre-processer, or you have to try eval-w= hen, please read the manual for OK, I did read up on it, but it's not a p= arent how to go about this interpreter testing=2E I don't want to get a p= reprocessor into it, because I want to be able to call the same functions w= hether I'm in a clisp interpreter, or guile etc=2E and want to do it it li= sp=2E If it's just figuring out whether I'm in clisp or Emacs, the funct= ionp call is good, as the function I use to test is not defined in Emacs, = so I know I'm in lisp=2E If it's just deciding between guile and Emacs, = it's easy too, a simple (version) gives info on the Emacs version or guile= =2E But if call version from clisp it bombs, because there is no such fun= ction=2E=2E=2E But I can't use module-defined? because it's not defined = in lisp or elisp=2E I think I'm missing something very simple=2E=2E=2E = -- =E7=99=BD=E3=81=84=E7=86=8A