From: Chris Hanson Date: Sat, 2 Aug 1997 06:49:05 +0000 (+0000) Subject: Don't lose if directories in info-directory-list are lacking the X-Git-Tag: 20090517-FFI~5029 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=a4a79dbac69543571b6b21f26f82a26216d14689;p=mit-scheme.git Don't lose if directories in info-directory-list are lacking the trailing slash. --- diff --git a/v7/src/edwin/info.scm b/v7/src/edwin/info.scm index 07d44c775..d90eb3917 100644 --- a/v7/src/edwin/info.scm +++ b/v7/src/edwin/info.scm @@ -1,6 +1,6 @@ ;;; -*-Scheme-*- ;;; -;;; $Id: info.scm,v 1.124 1997/03/19 05:23:43 cph Exp $ +;;; $Id: info.scm,v 1.125 1997/08/02 06:49:05 cph Exp $ ;;; ;;; Copyright (c) 1986, 1989-97 Massachusetts Institute of Technology ;;; @@ -768,22 +768,23 @@ The name may be an abbreviation of the reference name." (loop (cdr directories))))) (define (buffer-directory-list buffer) - (let ((variable (ref-variable-object info-directory-list))) - (let ((directories (variable-local-value buffer variable))) - (if (null? directories) - (let ((directories - (let ((dirlist - (lambda (directory) - (list (->namestring directory))))) - (cond ((ref-variable info-directory buffer) - => dirlist) - ((get-environment-variable "INFOPATH") - => os/parse-path-string) - (else - (dirlist (edwin-info-directory))))))) - (set-variable-local-value! buffer variable directories) - directories) - directories)))) + (map pathname-as-directory + (let ((variable (ref-variable-object info-directory-list))) + (let ((directories (variable-local-value buffer variable))) + (if (null? directories) + (let ((directories + (let ((dirlist + (lambda (directory) + (list (->namestring directory))))) + (cond ((ref-variable info-directory buffer) + => dirlist) + ((get-environment-variable "INFOPATH") + => os/parse-path-string) + (else + (dirlist (edwin-info-directory))))))) + (set-variable-local-value! buffer variable directories) + directories) + directories))))) (define (find-node-2 buffer pathname) (let ((group (buffer-group buffer)))