From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nala Ginrut Newsgroups: gmane.lisp.guile.user Subject: Re: Determining programatically whether the interpreter is Guile or Clisp or Emcs Date: Wed, 31 Jul 2013 13:35:19 +0800 Organization: HFG Message-ID: <1375248919.8252.58.camel@Renee-desktop.suse> References: <23837d79-03e3-4792-a4b7-e3a6c96ed390@email.android.com> <1375086985.8252.2.camel@Renee-desktop.suse> <66a9b4c8-96e9-421e-b74d-2eb48d26e603@email.android.com> <1375237660.8252.42.camel@Renee-desktop.suse> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1375248955 30976 80.91.229.3 (31 Jul 2013 05:35:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 31 Jul 2013 05:35:55 +0000 (UTC) Cc: guile-user@gnu.org To: =?UTF-8?Q?=E7=99=BD=E3=81=84=E7=86=8A?= Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Wed Jul 31 07:35:57 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 1V4P4m-0000du-3O for guile-user@m.gmane.org; Wed, 31 Jul 2013 07:35:56 +0200 Original-Received: from localhost ([::1]:37754 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V4P4l-0005rj-Fa for guile-user@m.gmane.org; Wed, 31 Jul 2013 01:35:55 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60018) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V4P4Q-0005qT-Kk for guile-user@gnu.org; Wed, 31 Jul 2013 01:35:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V4P4I-0004Us-53 for guile-user@gnu.org; Wed, 31 Jul 2013 01:35:34 -0400 Original-Received: from mail-pa0-x22e.google.com ([2607:f8b0:400e:c03::22e]:55305) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V4P4H-0004Ug-UK for guile-user@gnu.org; Wed, 31 Jul 2013 01:35:26 -0400 Original-Received: by mail-pa0-f46.google.com with SMTP id fa1so437887pad.19 for ; Tue, 30 Jul 2013 22:35:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:subject:from:to:cc:date:in-reply-to:references :organization:content-type:x-mailer:mime-version :content-transfer-encoding; bh=LKi27rJEWzrrxkDwJVbNyG8Jhk4dIfhZrXjiZlaW4KI=; b=qEEg/1Xx9L1N7icfZ3AH035Y/QlR2FWeZ/2n01yjqib7kgdMHghLsD/AaBB2h4v8lE 8lY2GT0Mhyuy+eoy7kdDyeJl5gBhcm8LesxaT9tneix1Nz9h0fEy8rI5GVCjcNl5jdZO x3m8zgQxUQN4Ak+DOH7oJD6/5eRLTeIbwtNXtUFR6X8smZoqg8GqCb4kw11EtnbegnV1 eDZqrO2v3DiKAr9cP7fWr1cGjwEItS9Mz1WIf+wPox/JrcM/mfQbLW1n9KbJTlOSQrMR EJ53EL/NjtJXFx08rHbCRm+BMPbszcoC6nkwDA9Sbvvs0kcDxIEBRYtSUBVcaBi8rcZJ 3Vng== X-Received: by 10.68.114.36 with SMTP id jd4mr78240799pbb.12.1375248925137; Tue, 30 Jul 2013 22:35:25 -0700 (PDT) Original-Received: from [147.2.147.115] ([203.192.156.9]) by mx.google.com with ESMTPSA id wr9sm87028050pbc.7.2013.07.30.22.35.22 for (version=SSLv3 cipher=RC4-SHA bits=128/128); Tue, 30 Jul 2013 22:35:24 -0700 (PDT) In-Reply-To: X-Mailer: Evolution 3.4.4 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400e:c03::22e 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:10587 Archived-At: On Wed, 2013-07-31 at 08:47 +0400, 白い熊 wrote: > Nala Ginrut wrote: > >Here's a dilemma, unless guile/clisp/emacs have the same > >checker-procedure with same name and definition, you have no promise to > >check it under different language environment. The best way is > >prepossess which is portable. > Yes, I have been thinking very hard about this. The closest I came is apropos. > > At least (apropos "guile") gives empty feedback in clisp and (apropos "clisp-data") is empty in guile and so on... So I could differentiate based on this. > > However there's no numeric output so I can't do a cond based on (= ... comparison of output as= is the only equality function the three share so it seems back to square one.... So close.... you may try: (with-output-to-string (lambda () (apropos "guile"))) you're so lucky than "with-output-to-string" appears in clisp, but I'm not familiar with elisp