#| -*-Scheme-*-
-$Id: apropos.scm,v 1.4 1999/07/06 15:08:44 cph Exp $
+$Id: apropos.scm,v 1.5 1999/07/31 18:39:59 cph Exp $
Copyright (c) 1993, 1999 Massachusetts Institute of Technology
(let ((text (if (symbol? text) (symbol-name text) text)))
(process-env env)
(for-each (lambda (symbol)
- (if (substring? (symbol-name symbol) text)
+ (if (substring? text (symbol-name symbol))
(process-symbol symbol env)))
(sort (environment-bound-names env) symbol<?))
(if (and search-parents? (environment-has-parent? env))
#| -*-Scheme-*-
-$Id: string.scm,v 14.26 1999/06/22 01:06:52 cph Exp $
+$Id: string.scm,v 14.27 1999/07/31 18:39:29 cph Exp $
Copyright (c) 1988-1999 Massachusetts Institute of Technology
;;;; String Search
(define (substring? pattern text)
- (and (string-search-forward text pattern) #t))
+ (and (string-search-forward pattern text) #t))
(define (string-search-forward pattern text)
(guarantee-string pattern 'STRING-SEARCH-FORWARD)