,@operations))
message))))))))
-(define (edwin . args) (apply edit args))
-(simple-command-line-parser "edit" edit
- "Causes Edwin to start immediately after Scheme.")
-
-(define (spawn-edwin . args)
- (let ((thread (create-thread #f (lambda () (apply edwin args)))))
- (detach-thread thread)
- thread))
-
(define edwin-editor #f)
(define editor-abort)
(define current-editor)
(export ()
create-editor
create-editor-args
- edit
- edwin
inhibit-editor-init-file?
reset-editor
reset-editor-windows
- (save-editor-files debug-save-files)
- spawn-edwin)
+ (save-editor-files debug-save-files))
(export (edwin class-macros)
class-instance-transforms))
(if (or (default-object? max) (not max))
(with-output-to-string (lambda () (write object)))
(with-output-to-truncated-string max (lambda () (write object)))))
+
+(define (edit . args)
+ (let ((env (let ((package (name->package '(edwin))))
+ (and package (package/environment package)))))
+ (if env
+ (apply (environment-lookup end 'edit) args)
+ (begin
+ (with-notification
+ (lambda (port) (display "Loading Edwin" port))
+ (lambda ()
+ (parameterize*
+ (list (cons param:suppress-loading-message? #t))
+ (lambda ()
+ (load-option 'EDWIN)
+ (if (let ((DISPLAY (get-environment-variable "DISPLAY")))
+ (and (string? DISPLAY)
+ (not (string-null? DISPLAY))))
+ (ignore-errors (lambda () (load-option 'x11-screen))))))))
+ (apply (environment-lookup (->environment '(edwin)) 'edit) args)))))
+
+(define edwin edit)
+
+(define (spawn-edwin . args)
+ (let ((thread (create-thread #f (lambda () (apply edwin args)))))
+ (detach-thread thread)
+ thread))
\f
(define (pa procedure)
(guarantee procedure? procedure 'PA)
environment
repl)))))
"Evaluates the argument expressions as if in the REPL.")
- (simple-command-line-parser "edit"
- (named-lambda (command-line-edit)
- (with-notification (lambda (port) (display "Loading Edwin" port))
- (lambda ()
- (parameterize* (list (cons param:suppress-loading-message? #t))
- (lambda ()
- (load-option 'EDWIN)
- (if (let ((DISPLAY (get-environment-variable "DISPLAY")))
- (and (string? DISPLAY)
- (not (string-null? DISPLAY))))
- (ignore-errors (lambda () (load-option 'x11-screen))))))))
- ((environment-lookup #f 'edit)))
- "Causes Edwin to start immediately after Scheme.")
+ (simple-command-line-parser "edit" edit
+ "Causes Edwin to start immediately after Scheme.")
(simple-command-line-parser "help" show-command-line-options #f)
(simple-command-line-parser "version" (lambda () (%exit 0)) #f)
(set-command-line-parser!
constant-procedure
default/exit
default/quit
+ edit
+ edwin
environment-link-name
ephemeron-broken?
ephemeron-datum
set-interrupt-enables!
show-time
simple-top-level-environment
+ spawn-edwin
system-hunk3-cons
system-hunk3-cxr0
system-hunk3-cxr1