From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: P Pareit Newsgroups: gmane.lisp.guile.user Subject: [guile/scwm] 2nd argument problem to scm_definedp() Date: Mon, 16 Sep 2002 20:49:54 +0200 Sender: guile-user-admin@gnu.org Message-ID: <200209162049.54095.pieter.pareit@planetinternet.be> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1032202145 19628 127.0.0.1 (16 Sep 2002 18:49:05 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 16 Sep 2002 18:49:05 +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 17r0vf-00056R-00 for ; Mon, 16 Sep 2002 20:49:03 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17r0vl-0007xQ-00; Mon, 16 Sep 2002 14:49:09 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17r0vO-0007dJ-00 for guile-user@gnu.org; Mon, 16 Sep 2002 14:48:46 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17r0vM-0007Za-00 for guile-user@gnu.org; Mon, 16 Sep 2002 14:48:45 -0400 Original-Received: from vador.skynet.be ([195.238.3.236]) by monty-python.gnu.org with esmtp (Exim 4.10) id 17r0vM-0007ZU-00 for guile-user@gnu.org; Mon, 16 Sep 2002 14:48:44 -0400 Original-Received: from localhost.localdomain (98.95-136-217.adsl.skynet.be [217.136.95.98]) by vador.skynet.be (8.11.6/8.11.6/Skynet-OUT-2.20) with ESMTP id g8GImYx11091 for ; Mon, 16 Sep 2002 20:48:35 +0200 (MET DST) (envelope-from ) Original-To: guile-user@gnu.org User-Agent: KMail/1.4.2 Errors-To: guile-user-admin@gnu.org X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.lisp.guile.user:990 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:990 Hey, Scwm is running but modules do not get loaded. I get an error like: Error loading module: no code for module. It looks like %load-path is messed up, %load-path gives me: ("/usr/local/scwm/modules/" %load-path . 0) The c-code that modifies %load-path looks like creating %load-path in ste= ad of=20 adding strings to %load-path. I would first like to know if %load-path is= =20 already defined, in scheme code this would be: (and (defined? %load-path)= =20 (display "%load-path is defined") (newline)), it seems I cannot get the=20 argument for _current_lexical_environment_ right: if (SCM_NFALSEP(scm_definedp(load_path_symbol,=20 scm_interaction_environment()))) { /* print */ } or if (SCM_NFALSEP(scm_definedp(load_path_symbol, scm_current_module()))) { = /*=20 print */ } give me both: ERROR: In procedure defined?: ERROR: Wrong type argument in position 2: # So what argument should I use? pieter; _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://mail.gnu.org/mailman/listinfo/guile-user