-;;; -*-Scheme-*-
-;;; $Id: edwin.ldr,v 1.34 1992/09/23 23:06:49 jinx Exp $
+#| -*-Scheme-*-
+
+$Id: edwin.ldr,v 1.35 1992/10/20 20:02:23 jinx Exp $
+
+Copyright (c) 1989-1992 Massachusetts Institute of Technology
+
+This material was developed by the Scheme project at the Massachusetts
+Institute of Technology, Department of Electrical Engineering and
+Computer Science. Permission to copy this software, to redistribute
+it, and to use it for any purpose is granted, subject to the following
+restrictions and understandings.
+
+1. Any copy made of this software must include this copyright notice
+in full.
+
+2. Users of this software agree to make their best efforts (a) to
+return to the MIT Scheme project any improvements or extensions that
+they make, so that these may be included in future releases; and (b)
+to inform MIT of noteworthy uses of this software.
+
+3. All materials developed as a consequence of the use of this
+software shall duly acknowledge such use, in accordance with the usual
+standards of acknowledging credit in academic research.
+
+4. MIT has made no warrantee or representation that the operation of
+this software will be error-free, and MIT is under no obligation to
+provide any services, by way of maintenance, update, or otherwise.
+
+5. In conjunction with products arising from the use of this material,
+there shall be no use of the name of the Massachusetts Institute of
+Technology nor of any adaptation thereof in any advertising,
+promotional, or sales literature without prior written consent from
+MIT in each case. |#
+
;;; program to load package contents
;;; **** This program (unlike most .ldr files) is not generated by a program.
(declare (usual-integrations))
-
+\f
(lambda (package/loader key-alist)
(let ((to-avoid-list (if (file-exists? "edwin.bad")
(fasload "edwin.bad")
false)
(begin (package/loader file env)
true)))
+ (define (load-set files env)
+ (if (null? files)
+ true
+ (let ((val (load (car files) env)))
+ (boolean-and val (load-set (cdr files) env)))))
(define (load-set-and-initialize! files env)
- (define (load-all files)
- (if (null? files)
- true
- (let ((val (load (car files) env)))
- (boolean-and val (load-all (cdr files))))))
- (and (load-all files)
+ (and (load-set files env)
((access initialize-package! env))))
(define (lookup var)
(cond ((assq var key-alist) => cdr)
(load "undo" (->environment '(EDWIN UNDO)))
(load "display" (->environment '(EDWIN DISPLAY-TYPE)))
(load "screen" (->environment '(EDWIN SCREEN)))
- (load "winren" (->environment '(EDWIN)))
+ (load "winren" environment)
+
(let ((environment (->environment '(EDWIN WINDOW))))
(load "window" environment)
(load "utlwin" environment)
(load "modwin" environment)
(load "buffrm" environment)
(load "edtfrm" environment))
+ (load "calias" environment)
(load-set-and-initialize! '("xterm")
- (->environment '(EDWIN X-SCREEN)))
+ (->environment '(EDWIN SCREEN X-SCREEN)))
(load-set-and-initialize! '("key")
(->environment '(EDWIN KEYS)))
- (let ((env (->environment '(EDWIN CONSOLE-SCREEN))))
+ (let ((env (->environment '(EDWIN SCREEN CONSOLE-SCREEN))))
(load-set-and-initialize! '("termcap" "tterm") env)
(if (eq? (lookup 'os-type) 'dos)
(begin
(load "curren" environment)
(load "simple" environment)
(load "debuge" environment)
- (load "calias" environment)
(load "modlin" (->environment '(EDWIN MODELINE-STRING)))
(load "input" (->environment '(EDWIN KEYBOARD)))
(load "prompt" (->environment '(EDWIN PROMPT)))
(load "wincom" environment)
(load "scrcom" environment)
(load "xcom" (->environment '(EDWIN X-COMMANDS)))
- (load "modefs" environment)
+ (load-set '("modefs" "xmodef") environment)
(load "rename" environment)
(load "loadef" environment)
(load-set-and-initialize! '("bochser" "bochsmod")
#| -*-Scheme-*-
-$Id: edwin.pkg,v 1.100 1992/09/23 23:06:38 jinx Exp $
+$Id: edwin.pkg,v 1.101 1992/10/20 20:02:13 jinx Exp $
Copyright (c) 1989-1992 Massachusetts Institute of Technology
"basic" ; basic commands
"bufcom" ; buffer commands
"comhst" ; command history
- "comint" ; command interpreter process stuff
- "compile" ; compilation subprocess
"evlcom" ; evaluation commands
"filcom" ; file commands
"fill" ; text fill commands
"schmod" ; scheme mode
"scrcom" ; screen commands
"sercom" ; search commands
- "shell" ; shell subprocess commands
- "techinfo" ; techinfo commands
- "telnet" ; telnet subprocess commands
"texcom" ; text commands
"wincom" ; window commands
"midas"
"pasmod"
"tximod"
+ "notify" ; mode line notifications
+ "outline" ; outline minor mode
+
+ ;; These are only available under Unix/X
+
+ "comint" ; command interpreter process stuff
+ "compile" ; compilation subprocess
+ "shell" ; shell subprocess commands
+ "techinfo" ; techinfo commands
+ "telnet" ; telnet subprocess commands
+ "xmodef" ; x bindings for fundamental mode
"manual" ; man page display
"print" ; printer output
- "notify" ; mode line notifications
- "outline") ; outline minor mode
+ )
+
(parent ())
(import (runtime rep)
hook/repl-eval)
set-screen-root-window!
update-screen!
window-screen
- with-screen-in-update)
- (export (edwin console-screen)
- make-screen)
- (export (edwin x-screen)
- make-screen
- set-screen-size!
- set-screen-visibility!))
-
-(define-package (edwin x-screen)
- (files "xterm")
- (parent (edwin))
- (export (edwin)
- x-screen-auto-raise
- xterm-screen/flush!
- xterm-screen/grab-focus!)
- (export (edwin x-commands)
- screen-xterm)
- (initialization (initialize-package!)))
+ with-screen-in-update))
-(define-package (edwin x-commands)
- (files "xcom")
- (parent (edwin))
- (export (edwin)
- x-button1-down
- x-button2-down
- x-button3-down
- x-button4-down
- x-button5-down
- x-button1-up
- x-button2-up
- x-button3-up
- x-button4-up
- x-button5-up
- edwin-variable$x-screen-name-format
- edwin-variable$x-screen-icon-name-format
- edwin-variable$x-screen-icon-name-length)
- (export (edwin x-screen)
- update-xterm-screen-names!))
-
-(define-package (edwin keys)
- (files "key")
- (parent (edwin))
- (export (edwin x-screen)
- x-make-special-key)
- (export (edwin)
- make-special-key
- special-key?
- special-key/name
- special-key/bucky-bits
- stop
- f1
- f2
- f3
- f4
- menu
- system
- user
- f5
- f6
- f7
- f8
- f9
- f10
- f11
- f12
- insertline
- deleteline
- insertchar
- deletechar
- home
- prior
- next
- up
- down
- left
- right
- select
- print)
- (initialization (initialize-package!)))
-
-(define-package (edwin console-screen)
- (files "termcap" "tterm" "ansi" "bios")
- (parent (edwin))
+(define-package (edwin screen console-screen)
+ (files "termcap" "tterm")
+ (file-case os-type
+ ((dos) "ansi" "bios"))
+ (parent (edwin screen))
(import (runtime primitive-io)
channel-type=terminal?
terminal-get-state
(files "keymap")
(parent (edwin)))
-(define-package (edwin debugger)
- (files "debug")
+(define-package (edwin inferior-repl)
+ (files "intmod")
(parent (edwin))
(export (edwin)
- continuation-browser-buffer
- debug-scheme-error
- edwin-command$browse-continuation
- edwin-command$browse-environment
- edwin-command$browser-evaluator
- edwin-command$browser-next-line
- edwin-command$browser-previous-line
- edwin-command$browser-quit
- edwin-command$browser-select-line
- edwin-command$browser-where
- edwin-mode$continuation-browser
- edwin-mode$environment-browser
- edwin-variable$debugger-one-at-a-time?
- edwin-variable$debugger-start-on-error?
- edwin-variable$debugger-max-subproblems
- edwin-variable$debugger-confirm-return?
- edwin-variable$debugger-quit-on-restart?
- edwin-variable$debugger-quit-on-return?
- edwin-variable$environment-browser-package-limit
- environment-browser-buffer)
- (import (runtime debugger)
- debugger-pp
- expression-indentation
- invalid-expression?)
- (import (runtime debugger-utilities)
- print-binding
- show-environment-name)
- (import (runtime error-handler)
- hook/invoke-restart))
+ buffer/inferior-cmdl
+ current-repl-buffer
+ edwin-command$inferior-cmdl-abort-nearest
+ edwin-command$inferior-cmdl-abort-previous
+ edwin-command$inferior-cmdl-abort-top-level
+ edwin-command$inferior-cmdl-breakpoint
+ edwin-command$inferior-cmdl-self-insert
+ edwin-command$inferior-repl-eval-defun
+ edwin-command$inferior-repl-eval-last-sexp
+ edwin-command$inferior-repl-eval-region
+ edwin-command$repl
+ edwin-mode$inferior-cmdl
+ edwin-mode$inferior-repl
+ edwin-variable$repl-enable-transcript-buffer
+ edwin-variable$repl-error-decision
+ inferior-repl-eval-expression
+ inferior-repl-eval-region
+ initialize-inferior-repls!
+ start-inferior-repl!))
(define-package (edwin dired)
(files "dired")
edwin-command$visit-tags-table
edwin-variable$tags-table-pathname))
-(define-package (edwin rcs)
- (files "rcs")
- (parent (edwin)))
+(define-package (edwin occurrence)
+ (files "occur")
+ (parent (edwin))
+ (export (edwin)
+ edwin-command$count-matches
+ edwin-command$delete-matching-lines
+ edwin-command$delete-non-matching-lines
+ edwin-command$flush-lines
+ edwin-command$how-many
+ edwin-command$keep-lines
+ edwin-command$list-matching-lines
+ edwin-command$occur
+ edwin-command$occur-mode-goto-occurrence
+ edwin-mode$occur
+ edwin-variable$list-matching-lines-default-context-lines))
+\f
+;;;; The following are the variants used under DOS
+
+#|
+(define-package (edwin debugger)
+ (files "debug")
+ (parent (edwin))
+ (export (edwin)
+ continuation-browser-buffer
+ debug-scheme-error
+ edwin-command$browse-continuation
+ edwin-mode$continuation-browser
+ edwin-variable$debugger-confirm-return?
+ edwin-variable$debugger-debug-evaluations?
+ edwin-variable$debugger-expand-reductions?
+ edwin-variable$debugger-hide-system-code?
+ edwin-variable$debugger-max-subproblems
+ edwin-variable$debugger-one-at-a-time?
+ edwin-variable$debugger-open-markers?
+ edwin-variable$debugger-quit-on-restart?
+ edwin-variable$debugger-quit-on-return?
+ edwin-variable$debugger-show-help-message?
+ edwin-variable$debugger-split-window?
+ edwin-variable$debugger-start-on-error?
+ edwin-variable$debugger-verbose-mode?)
+ (import (runtime continuation-parser)
+ stack-frame/reductions)
+ (import (runtime debugger)
+ command/condition-restart
+ command/frame
+ command/print-environment-procedure
+ command/print-expression
+ command/show-all-frames
+ command/show-current-frame
+ debugger-pp
+ dstate/environment-list
+ dstate/expression
+ dstate/number-of-reductions
+ dstate/previous-subproblems
+ dstate/reduction
+ dstate/reduction-number
+ dstate/subproblem
+ dstate/subproblem-number
+ dstate/using-history?
+ improper-list-length
+ invalid-expression?
+ make-initial-dstate
+ print-reduction-expression
+ print-subproblem-environment
+ print-subproblem-expression
+ reduction-environment
+ reduction-expression
+ set-current-subproblem!
+ set-dstate/environment-list!
+ set-dstate/reduction-number!
+ show-environment-name
+ stack-frame/compiled-code?
+ write-restarts)
+ (import (runtime error-handler)
+ hook/invoke-restart))
+
+(define-package (edwin process)
+ (file-case os-type
+ ((unix) "process")
+ ((dos) "dosproc"))
+ (parent (edwin))
+ (export (edwin)
+ buffer-processes ; always present
+ delete-process ; always present
+ get-buffer-process ; always present
+ initialize-processes! ; always present
+ process-list ; always present
+ subprocesses-available?)) ; always present
+|#
+\f
+;;;; The following are the variants used under Unix/X
+
+(define-package (edwin debugger)
+ (files "debug")
+ (parent (edwin))
+ (export (edwin)
+ continuation-browser-buffer
+ debug-scheme-error
+ edwin-command$browse-continuation
+ edwin-command$browse-environment
+ edwin-command$browser-evaluator
+ edwin-command$browser-next-line
+ edwin-command$browser-previous-line
+ edwin-command$browser-quit
+ edwin-command$browser-select-line
+ edwin-command$browser-where
+ edwin-mode$continuation-browser
+ edwin-mode$environment-browser
+ edwin-variable$debugger-one-at-a-time?
+ edwin-variable$debugger-start-on-error?
+ edwin-variable$debugger-max-subproblems
+ edwin-variable$debugger-confirm-return?
+ edwin-variable$debugger-quit-on-restart?
+ edwin-variable$debugger-quit-on-return?
+ edwin-variable$environment-browser-package-limit
+ environment-browser-buffer)
+ (import (runtime debugger)
+ debugger-pp
+ expression-indentation
+ invalid-expression?)
+ (import (runtime debugger-utilities)
+ print-binding
+ show-environment-name)
+ (import (runtime error-handler)
+ hook/invoke-restart))
(define-package (edwin process)
(file-case os-type
subprocesses-available? ; always present
run-synchronous-process))
+(define-package (edwin screen x-screen)
+ (files "xterm")
+ (parent (edwin screen))
+ (export (edwin)
+ x-screen-auto-raise
+ xterm-screen/flush!
+ xterm-screen/grab-focus!)
+ (export (edwin x-commands)
+ screen-xterm)
+ (initialization (initialize-package!)))
+
+(define-package (edwin x-commands)
+ (files "xcom")
+ (parent (edwin))
+ (export (edwin)
+ x-button1-down
+ x-button2-down
+ x-button3-down
+ x-button4-down
+ x-button5-down
+ x-button1-up
+ x-button2-up
+ x-button3-up
+ x-button4-up
+ x-button5-up
+ edwin-variable$x-screen-name-format
+ edwin-variable$x-screen-icon-name-format
+ edwin-variable$x-screen-icon-name-length)
+ (export (edwin screen x-screen)
+ update-xterm-screen-names!))
+
+(define-package (edwin keys)
+ (files "key")
+ (parent (edwin))
+ (export (edwin screen x-screen)
+ x-make-special-key)
+ (export (edwin)
+ stop
+ f1
+ f2
+ f3
+ f4
+ menu
+ system
+ user
+ f5
+ f6
+ f7
+ f8
+ f9
+ f10
+ f11
+ f12
+ insertline
+ deleteline
+ insertchar
+ deletechar
+ home
+ prior
+ next
+ up
+ down
+ left
+ right
+ select
+ print)
+ (initialization (initialize-package!)))
+
+(define-package (edwin rcs)
+ (files "rcs")
+ (parent (edwin)))
+
(define-package (edwin sendmail)
(files "sendmail")
(parent (edwin))
edwin-variable$rmail-reply-with-re
rmail-spool-directory))
-(define-package (edwin inferior-repl)
- (files "intmod")
- (parent (edwin))
- (export (edwin)
- buffer/inferior-cmdl
- current-repl-buffer
- edwin-command$inferior-cmdl-abort-nearest
- edwin-command$inferior-cmdl-abort-previous
- edwin-command$inferior-cmdl-abort-top-level
- edwin-command$inferior-cmdl-breakpoint
- edwin-command$inferior-cmdl-self-insert
- edwin-command$inferior-repl-eval-defun
- edwin-command$inferior-repl-eval-last-sexp
- edwin-command$inferior-repl-eval-region
- edwin-command$repl
- edwin-mode$inferior-cmdl
- edwin-mode$inferior-repl
- edwin-variable$repl-enable-transcript-buffer
- edwin-variable$repl-error-decision
- inferior-repl-eval-expression
- inferior-repl-eval-region
- initialize-inferior-repls!
- start-inferior-repl!))
-
(define-package (edwin bochser)
(files "bochser"
"bochsmod")
edwin-variable$bindings-window-fraction)
(import (runtime debugger-utilities)
show-environment-bindings)
- (initialization (initialize-bochser-mode!)))
-
-(define-package (edwin occurrence)
- (files "occur")
- (parent (edwin))
- (export (edwin)
- edwin-command$count-matches
- edwin-command$delete-matching-lines
- edwin-command$delete-non-matching-lines
- edwin-command$flush-lines
- edwin-command$how-many
- edwin-command$keep-lines
- edwin-command$list-matching-lines
- edwin-command$occur
- edwin-command$occur-mode-goto-occurrence
- edwin-mode$occur
- edwin-variable$list-matching-lines-default-context-lines))
\ No newline at end of file
+ (initialization (initialize-bochser-mode!)))
\ No newline at end of file