From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ian Hulin Newsgroups: gmane.lisp.guile.bugs Subject: bug#10326: Need to document %load-path, %load-compiled-path, and add %search-load-compiled-path and load-compiled-from-path to API Date: Mon, 19 Dec 2011 15:00:19 +0000 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1324306890 27661 80.91.229.12 (19 Dec 2011 15:01:30 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 19 Dec 2011 15:01:30 +0000 (UTC) To: 10326@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Mon Dec 19 16:01:26 2011 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RceiT-0004fv-NY for guile-bugs@m.gmane.org; Mon, 19 Dec 2011 16:01:25 +0100 Original-Received: from localhost ([::1]:45745 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RceiT-0003bx-A2 for guile-bugs@m.gmane.org; Mon, 19 Dec 2011 10:01:25 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:49350) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RceiI-0003Yx-Ot for bug-guile@gnu.org; Mon, 19 Dec 2011 10:01:24 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RceiD-0002qd-7b for bug-guile@gnu.org; Mon, 19 Dec 2011 10:01:14 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43669) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RceiD-0002qZ-66 for bug-guile@gnu.org; Mon, 19 Dec 2011 10:01:09 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Rcek1-0006jw-QB for bug-guile@gnu.org; Mon, 19 Dec 2011 10:03:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ian Hulin Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-guile@gnu.org Resent-Date: Mon, 19 Dec 2011 15:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 10326 X-GNU-PR-Package: guile X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-guile@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.132430697625894 (code B ref -1); Mon, 19 Dec 2011 15:03:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 19 Dec 2011 15:02:56 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Rcejv-0006jb-9p for submit@debbugs.gnu.org; Mon, 19 Dec 2011 10:02:55 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Rcejs-0006jO-Et for submit@debbugs.gnu.org; Mon, 19 Dec 2011 10:02:53 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rcehx-0002ni-E0 for submit@debbugs.gnu.org; Mon, 19 Dec 2011 10:00:59 -0500 Original-Received: from lists.gnu.org ([140.186.70.17]:41485) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rcehx-0002ne-CZ for submit@debbugs.gnu.org; Mon, 19 Dec 2011 10:00:53 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:49202) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rcehn-0003S8-TN for bug-guile@gnu.org; Mon, 19 Dec 2011 10:00:53 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rcehh-0002kU-HX for bug-guile@gnu.org; Mon, 19 Dec 2011 10:00:43 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:55829) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rcehh-0002k1-CS for bug-guile@gnu.org; Mon, 19 Dec 2011 10:00:37 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Rcehc-000493-HH for bug-guile@gnu.org; Mon, 19 Dec 2011 16:00:32 +0100 Original-Received: from cpc13-rdng21-2-0-cust334.15-3.cable.virginmedia.com ([82.12.149.79]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 19 Dec 2011 16:00:32 +0100 Original-Received: from ian by cpc13-rdng21-2-0-cust334.15-3.cable.virginmedia.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 19 Dec 2011 16:00:32 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 41 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: cpc13-rdng21-2-0-cust334.15-3.cable.virginmedia.com User-Agent: Mozilla/5.0 (X11; Linux i686; rv:8.0) Gecko/20111124 Thunderbird/8.0 X-Enigmail-Version: 1.3.4 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 19 Dec 2011 10:03:01 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:5988 Archived-At: Section 6.17.6 of the manual could do with a sections for %load-path and %load-compiled-path. e.g. — Variable: %load-path The list of directories which will currently be searched by load-from-path, primitive-load-path and %search-load-path to locate a scheme file. - Variable: %load-compiled-path The list of directories which will currently be searched by load-compiled-from-path and %search-load-compiled-path to locate a compiled scheme file. Also, Guile really needs to provide a %search-load-compiled-path and a load-compiled-from-path, it would have been useful in LilyPond code, and Manual Section 4.7 (discussing site locations says) "As with Scheme files, Guile searches a path to find compiled .go files, the %load-compiled-path. By default, this path has two entries: a path for Guile's files, and a path for site packages. You should install your .go files into the latter. Currently there is no procedure to get at this path, which is probably a bug." — Scheme Procedure: %search-load-compiled-path filename — C Function: scm_sys_search_load_compiled_path (filename) Search %load-compiled-path for the file named filename, which must be readable by the current user. If filename is found in the list of paths to search or is an absolute pathname, return its full pathname. Otherwise, return #f. — Scheme Procedure: load-compiled-from-path filename Similar to load-compiled, but searches for filename in the compiled load paths.