mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-29 19:30:36 +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:
parent
131826039c
commit
64e5d08d3e
3 changed files with 25 additions and 26 deletions
|
@ -169,24 +169,22 @@
|
|||
(define-public (set-readline-read-hook! h)
|
||||
(set! read-hook h))
|
||||
|
||||
(if (provided? 'regex)
|
||||
(begin
|
||||
(define-public apropos-completion-function
|
||||
(let ((completions '()))
|
||||
(lambda (text cont?)
|
||||
(if (not cont?)
|
||||
(set! completions
|
||||
(map symbol->string
|
||||
(apropos-internal
|
||||
(string-append "^" (regexp-quote text))))))
|
||||
(if (null? completions)
|
||||
#f
|
||||
(let ((retval (car completions)))
|
||||
(begin (set! completions (cdr completions))
|
||||
retval))))))
|
||||
(define-public apropos-completion-function
|
||||
(let ((completions '()))
|
||||
(lambda (text cont?)
|
||||
(if (not cont?)
|
||||
(set! completions
|
||||
(map symbol->string
|
||||
(apropos-internal
|
||||
(string-append "^" (regexp-quote text))))))
|
||||
(if (null? completions)
|
||||
#f
|
||||
(let ((retval (car completions)))
|
||||
(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)
|
||||
"With @var{completer} as readline completion function, call @var{thunk}."
|
||||
|
|
|
@ -2162,6 +2162,7 @@ module '(ice-9 q) '(make-q q-length))}."
|
|||
(and (not (autoload-done-or-in-progress? dir-hint name))
|
||||
(let ((didit #f))
|
||||
(define (load-file proc file)
|
||||
(pk 'loading proc file)
|
||||
(save-module-excursion (lambda () (proc file)))
|
||||
(set! didit #t))
|
||||
(dynamic-wind
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue