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:31 +0800 Organization: HFG Message-ID: <1375248931.8252.59.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 1375248965 31062 80.91.229.3 (31 Jul 2013 05:36:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 31 Jul 2013 05:36:05 +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:36:07 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 1V4P4x-0000kE-AS for guile-user@m.gmane.org; Wed, 31 Jul 2013 07:36:07 +0200 Original-Received: from localhost ([::1]:38038 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V4P4w-00061a-Us for guile-user@m.gmane.org; Wed, 31 Jul 2013 01:36:06 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60143) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V4P4e-0005tx-Tp for guile-user@gnu.org; Wed, 31 Jul 2013 01:35:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V4P4V-0004Z1-Pg for guile-user@gnu.org; Wed, 31 Jul 2013 01:35:48 -0400 Original-Received: from mail-pa0-x232.google.com ([2607:f8b0:400e:c03::232]:65071) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V4P4V-0004Yu-Fd for guile-user@gnu.org; Wed, 31 Jul 2013 01:35:39 -0400 Original-Received: by mail-pa0-f50.google.com with SMTP id fb10so432872pad.23 for ; Tue, 30 Jul 2013 22:35:38 -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=mkssiMOx4gw8M/F1Y/y0sHkTQFXZ9IedPLFH9wtcV4k=; b=XqNnA3I4RbKyC64qipVPXKPE+bCu6PaoYAmLgsd+i9w3TsdTfkffOBCl/EN8rF140v LXU5inILxCDOc7TpzxrcOLdNa6TqhEFAReJHDk9dJYKN+ErJ1bfRabiVl0JtTw1c15U4 WhxffRtr1mHR2V0kIzgbktIY+BIkyaOH4/et3KJTpLZpjQ9drC8BW+QnS/OeCFnZ1RUW kMRUs3gWSBLqLBb0HYKcj9n5/tKMYOhCBkcTnKhX7ouAIzWO2ol4EZds+0iBnt+sJ9PZ KlIKyGcRA/sRYJbnmeMYZ2zADM+5fD4ZROHPWal4SQEm9Y4J/0mMbAUG28O9XS+eZ+c0 j8YQ== X-Received: by 10.66.26.194 with SMTP id n2mr69826245pag.151.1375248938707; Tue, 30 Jul 2013 22:35:38 -0700 (PDT) Original-Received: from [147.2.147.115] ([203.192.156.9]) by mx.google.com with ESMTPSA id w8sm2146164pab.12.2013.07.30.22.35.35 for (version=SSLv3 cipher=RC4-SHA bits=128/128); Tue, 30 Jul 2013 22:35:38 -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::232 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:10588 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 that "with-output-to-string" appears in clisp, but I'm not familiar with elisp