1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-04-30 03:40:34 +02:00

leap of faith: (ice-9 syncase) in psyntax-pp.scm -> (guile)

* module/ice-9/psyntax-pp.scm: Manually switch psyntax-pp over to (guile)
  from (ice-9 syncase). Heh heh.
This commit is contained in:
Andy Wingo 2009-04-24 14:01:26 +02:00
parent 131826039c
commit 64e5d08d3e
3 changed files with 25 additions and 26 deletions

View file

@ -169,24 +169,22 @@
(define-public (set-readline-read-hook! h) (define-public (set-readline-read-hook! h)
(set! read-hook h)) (set! read-hook h))
(if (provided? 'regex) (define-public apropos-completion-function
(begin (let ((completions '()))
(define-public apropos-completion-function (lambda (text cont?)
(let ((completions '())) (if (not cont?)
(lambda (text cont?) (set! completions
(if (not cont?) (map symbol->string
(set! completions (apropos-internal
(map symbol->string (string-append "^" (regexp-quote text))))))
(apropos-internal (if (null? completions)
(string-append "^" (regexp-quote text)))))) #f
(if (null? completions) (let ((retval (car completions)))
#f (begin (set! completions (cdr completions))
(let ((retval (car completions))) retval))))))
(begin (set! completions (cdr completions))
retval))))))
(set! *readline-completion-function* apropos-completion-function) (if (provided? 'regex)
)) (set! *readline-completion-function* apropos-completion-function))
(define-public (with-readline-completion-function completer thunk) (define-public (with-readline-completion-function completer thunk)
"With @var{completer} as readline completion function, call @var{thunk}." "With @var{completer} as readline completion function, call @var{thunk}."

View file

@ -2162,6 +2162,7 @@ module '(ice-9 q) '(make-q q-length))}."
(and (not (autoload-done-or-in-progress? dir-hint name)) (and (not (autoload-done-or-in-progress? dir-hint name))
(let ((didit #f)) (let ((didit #f))
(define (load-file proc file) (define (load-file proc file)
(pk 'loading proc file)
(save-module-excursion (lambda () (proc file))) (save-module-excursion (lambda () (proc file)))
(set! didit #t)) (set! didit #t))
(dynamic-wind (dynamic-wind

File diff suppressed because one or more lines are too long