;ELC ;;; compiled by kwzh@hal.gnu.ai.mit.edu on Tue Apr 25 18:10:37 1995 ;;; from file /gd/gnu/emacs/19.0/lisp/xscheme.el ;;; emacs version 19.28.90.40. ;;; bytecomp version FSF 2.10 ;;; optimization is on. ;;; this file uses opcodes which do not exist in Emacs 18. (if (and (boundp 'emacs-version) (or (and (boundp 'epoch::version) epoch::version) (string-lessp emacs-version "19"))) (error "`/gd/gnu/emacs/19.0/lisp/xscheme.el' was compiled for Emacs 19")) (require (quote scheme)) #@47 *Program invoked by the `run-scheme' command. (defvar scheme-program-name "scheme" (#$ . -508)) #@43 *Band loaded by the `run-scheme' command. (defvar scheme-band-name nil (#$ . -610)) #@70 *Arguments passed to the Scheme program by the `run-scheme' command. (defvar scheme-program-arguments nil (#$ . -700)) #@200 If non-nil, an expression may be transmitted while another is evaluating. Otherwise, attempting to evaluate an expression before the previous expression has finished evaluating will signal an error. (defvar xscheme-allow-pipelined-evaluation t (#$ . 826)) #@122 String to insert into Scheme process buffer first time it is started. Is processed with `substitute-command-keys' first. (defvar xscheme-startup-message "This is the Scheme process buffer.\nType \\[advertised-xscheme-send-previous-expression] to evaluate the expression before point.\nType \\[xscheme-send-control-g-interrupt] to abort evaluation.\nType \\[describe-mode] for more information.\n\n" (#$ . 1089)) #@76 If non-nil, causes a message to be generated when the Scheme process dies. (defvar xscheme-signal-death-message nil (#$ . 1507)) (defalias 'xscheme-evaluation-commands #[(keymap) "À ÂÃ#ˆÀ ÄÅ#ˆÀ ÆÇ#ˆÀ ÈÃ#ˆÀ ÉÊ#ˆÀ ËÌ#‡" [define-key keymap "" xscheme-send-definition "" advertised-xscheme-send-previous-expression "o" xscheme-send-buffer "z" " " xscheme-send-previous-expression "" xscheme-send-region] 4]) (defalias 'xscheme-interrupt-commands #[(keymap) "À ÂÃ#ˆÀ ÄÅ#ˆÀ ÆÇ#ˆÀ ÈÉ#ˆÀ ÊË#‡" [define-key keymap "" xscheme-select-process-buffer "" xscheme-send-breakpoint-interrupt "" xscheme-send-control-g-interrupt "" xscheme-send-control-u-interrupt "" xscheme-send-control-x-interrupt] 4]) (byte-code "À !ˆÂ !‡" [xscheme-evaluation-commands scheme-mode-map xscheme-interrupt-commands] 2) #@118 Run MIT Scheme in an inferior process. Output goes to the buffer `*scheme*'. With argument, asks for a command line. (defalias 'run-scheme #[(command-line) "ÂÃ!!‡" [command-line xscheme-process-command-line switch-to-buffer xscheme-start-process] 3 (#$ . 2319) (list (let ((default (or xscheme-process-command-line (xscheme-default-command-line)))) (if current-prefix-arg (read-string "Run Scheme: " default) default)))]) #@27 Reset the Scheme process. (defalias 'reset-scheme #[nil "ÀÁ!‰ƒÃ\n!Ä=ƒÅÆ!…+ÇÈ!ˆ\nƒ#É\nÊ\"ˆË\f!ˆÇÍ!)‡" [get-process "scheme" process process-status run yes-or-no-p "The Scheme process is running, are you SURE you want to reset it? " message "Resetting Scheme process..." kill-process t xscheme-start-process xscheme-process-command-line "Resetting Scheme process...done"] 4 (#$ . 2750) nil]) (defalias 'xscheme-default-command-line #[nil "Á\nƒ\fÃ\nP‚ Ä ƒÆ P‚ÄR‡" [scheme-program-name " -emacs" scheme-program-arguments " " "" scheme-band-name " -band "] 5]) #@3241 Major mode for interacting with the inferior Scheme process. Like scheme-mode except that: \[advertised-xscheme-send-previous-expression] sends the expression before point to the Scheme process as input \[xscheme-yank-previous-send] yanks the expression most recently sent to Scheme All output from the Scheme process is written in the Scheme process buffer, which is initially named "*scheme*". The result of evaluating a Scheme expression is also printed in the process buffer, preceded by the string ";Value: " to highlight it. If the process buffer is not visible at that time, the value will also be displayed in the minibuffer. If an error occurs, the process buffer will automatically pop up to show you the error message. While the Scheme process is running, the modelines of all buffers in scheme-mode are modified to show the state of the process. The possible states and their meanings are: input waiting for input run evaluating gc garbage collecting The process buffer's modeline contains additional information where the buffer's name is normally displayed: the command interpreter level and type. Scheme maintains a stack of command interpreters. Every time an error or breakpoint occurs, the current command interpreter is pushed on the command interpreter stack, and a new command interpreter is started. One example of why this is done is so that an error that occurs while you are debugging another error will not destroy the state of the initial error, allowing you to return to it after the second error has been fixed. The command interpreter level indicates how many interpreters are in the command interpreter stack. It is initially set to one, and it is incremented every time that stack is pushed, and decremented every time it is popped. The following commands are useful for manipulating the command interpreter stack: \[xscheme-send-breakpoint-interrupt] pushes the stack once \[xscheme-send-control-u-interrupt] pops the stack once \[xscheme-send-control-g-interrupt] pops everything off \[xscheme-send-control-x-interrupt] aborts evaluation, doesn't affect stack Some possible command interpreter types and their meanings are: [Evaluator] read-eval-print loop for evaluating expressions [Debugger] single character commands for debugging errors [Where] single character commands for examining environments Starting with release 6.2 of Scheme, the latter two types of command interpreters will change the major mode of the Scheme process buffer to scheme-debugger-mode , in which the evaluation commands are disabled, and the keys which normally self insert instead send themselves to the Scheme process. The command character ? will list the available commands. For older releases of Scheme, the major mode will be be scheme-interaction-mode , and the command characters must be sent as if they were expressions. Commands: Delete converts tabs to spaces as it moves back. Blank lines separate paragraphs. Semicolons start comments. \{scheme-interaction-mode-map} Entry to this mode calls the value of scheme-interaction-mode-hook with no args, if that value is non-nil. Likewise with the value of scheme-mode-hook. scheme-interaction-mode-hook is called after scheme-mode-hook. (defalias 'scheme-interaction-mode #[nil "À ˆÁ ˆÂ ˆÃÄ!ˆÅÆÇ\"‡" [kill-all-local-variables scheme-interaction-mode-initialize scheme-mode-variables make-local-variable xscheme-previous-send run-hooks scheme-mode-hook scheme-interaction-mode-hook] 3 (#$ . 3329) nil]) (defalias 'scheme-interaction-mode-initialize #[nil "À !ˆÂĉ‡" [use-local-map scheme-interaction-mode-map scheme-interaction-mode major-mode "Scheme Interaction" mode-name] 2]) (defalias 'scheme-interaction-mode-commands #[(keymap) "À ÂÃ#ˆÀ ÄÅ#ˆÀ ÆÇ#‡" [define-key keymap " " xscheme-send-current-line "" xscheme-send-proceed "" xscheme-yank-previous-send] 4]) (byte-code "ÀÁ!„ÂÁ B „#Ä Å !ˆÆ !ˆÇ !ˆÈ !ˆÂ‡" [boundp scheme-interaction-mode-map nil current-load-list make-keymap scheme-mode-commands xscheme-interrupt-commands xscheme-evaluation-commands scheme-interaction-mode-commands] 2) (defalias 'xscheme-enter-interaction-mode #[nil "ŠÀ qˆ Â=?… Ã=ƒÄ ‚ )‡" [xscheme-process-buffer major-mode scheme-interaction-mode scheme-debugger-mode scheme-interaction-mode-initialize] 2]) (fset (quote advertised-xscheme-send-previous-expression) (quote xscheme-send-previous-expression)) #@316 Major mode for executing the Scheme debugger. Like scheme-mode except that the evaluation commands are disabled, and characters that would normally be self inserting are sent to the Scheme process instead. Typing ? will show you which characters perform useful functions. Commands: \{scheme-debugger-mode-map} (defalias 'scheme-debugger-mode #[nil "ÀÁ!‡" [error "Illegal entry to scheme-debugger-mode"] 2 (#$ . 7741)]) (defalias 'scheme-debugger-mode-initialize #[nil "À !ˆÂĉ‡" [use-local-map scheme-debugger-mode-map scheme-debugger-mode major-mode "Scheme Debugger" mode-name] 2]) (defalias 'scheme-debugger-mode-commands #[(keymap) "ÀÀÂW…Ã\fÅ !Æ#ˆ T‰‚)‡" [32 char 127 define-key keymap char-to-string scheme-debugger-self-insert] 5]) (byte-code "ÀÁ!„ÂÁ B „Ä Å !ˆÆ !ˆÇ !ˆÂ‡" [boundp scheme-debugger-mode-map nil current-load-list make-keymap scheme-mode-commands xscheme-interrupt-commands scheme-debugger-mode-commands] 2) #@48 Transmit this character to the Scheme process. (defalias 'scheme-debugger-self-insert #[nil "À !‡" [xscheme-send-char last-command-char] 2 (#$ . 8694) nil]) (defalias 'xscheme-enter-debugger-mode #[(prompt-string) "ŠÀ qˆ Â=?… Ã=„à ˆÄ )‡" [xscheme-process-buffer major-mode scheme-debugger-mode scheme-interaction-mode scheme-debugger-mode-initialize] 2]) (defalias 'xscheme-debugger-mode-p #[nil "À ‰…Š qˆ\n)Ã=)‡" [xscheme-process-buffer buffer major-mode scheme-debugger-mode] 3]) #@108 Send the string arguments to the Scheme process. The strings are concatenated and terminated by a newline. (defalias 'xscheme-send-string #[(&rest strings) "À „ÁÂ!…:à ˆÄ ˆdbˆÅÆ\"ˆÈ!‡É ƒ(ÊË!‡\f„6 ƒ6ÊÎ!‡È!‡" [xscheme-process-running-p yes-or-no-p "The Scheme process has died. Reset it? " reset-scheme xscheme-wait-for-process apply insert-before-markers strings xscheme-send-string-1 xscheme-debugger-mode-p error "No sends allowed in debugger mode" xscheme-allow-pipelined-evaluation xscheme-running-p "No sends allowed while Scheme running"] 3 (#$ . 9190)]) (defalias 'xscheme-send-string-1 #[(strings) "ÀÁ\n\"Ä !ˆ Æ=… ‰)‡" [apply concat strings string xscheme-send-string-2 major-mode scheme-interaction-mode xscheme-previous-send] 3]) (defalias 'xscheme-send-string-2 #[(string) "ÀÁ!Ã\n\fÅP\"ˆÆ …Ç\n!`È“)‡" [get-process "scheme" process send-string string "\n" xscheme-process-buffer-current-p process-mark nil] 4]) #@45 Insert the most recent expression at point. (defalias 'xscheme-yank-previous-send #[nil "À ˆ c‡" [push-mark xscheme-previous-send] 1 (#$ . 10138) nil]) #@64 Select the Scheme process buffer and move to its output point. (defalias 'xscheme-select-process-buffer #[nil "ÀÁ!† ÂÃ!Å\f!†ÂÆ!È!‰ ƒ'Ê !ˆ‚,Ë!ˆÌ\f!b+‡" [get-process "scheme" error "No scheme process" process process-buffer "No process buffer" buffer get-buffer-window window select-window switch-to-buffer process-mark] 3 (#$ . 10296) nil]) #@92 Send the current region to the Scheme process. The region is sent terminated by a newline. (defalias 'xscheme-send-region #[(start end) "À ƒ bˆÂÃÄ!! Å“ˆÆ {!‡" [xscheme-process-buffer-current-p end process-mark get-process "scheme" nil xscheme-send-string start] 3 (#$ . 10656) "r"]) #@186 Send the current definition to the Scheme process. If the current line begins with a non-whitespace character, parse an expression from the beginning of the line and send that instead. (defalias 'xscheme-send-definition #[nil "À‰ŠÃ ˆ`ÄÅÀÆ#ƒ`‚ÇÈ!ˆ)É\n \"*‡" [nil end start end-of-defun re-search-backward "^\\s(" t error "Can't find definition" xscheme-send-region] 4 (#$ . 10950) nil]) #@68 Send the expression to the right of `point' to the Scheme process. (defalias 'xscheme-send-next-expression #[nil "`ÁŠÂ ˆ`)\")‡" [start xscheme-send-region forward-sexp] 3 (#$ . 11350) nil]) #@67 Send the expression to the left of `point' to the Scheme process. (defalias 'xscheme-send-previous-expression #[nil "`ÁŠÂ ˆ`)\")‡" [end xscheme-send-region backward-sexp] 3 (#$ . 11548) nil]) #@98 Send the current line to the Scheme process. Useful for working with debugging Scheme under adb. (defalias 'xscheme-send-current-line #[nil "ŠÀyˆ`ˆ `{*ˆÄcˆÅ !)‡" [0 start nil line 10 xscheme-send-string-2] 2 (#$ . 11748) nil]) #@48 Send the current buffer to the Scheme process. (defalias 'xscheme-send-buffer #[nil "À ƒ ÁÂ!ˆÃed\"‡" [xscheme-process-buffer-current-p error "Not allowed to send this buffer's contents to Scheme" xscheme-send-region] 3 (#$ . 11987) nil]) #@59 Prompt for a character and send it to the Scheme process. (defalias 'xscheme-send-char #[(char) "ÀÁ !\"‡" [send-string "scheme" char-to-string char] 4 (#$ . 12232) "cCharacter to send: "]) #@49 Cause the Scheme process to enter a breakpoint. (defalias 'xscheme-send-breakpoint-interrupt #[nil "ÀÁÂ\"‡" [xscheme-send-interrupt 98 nil] 3 (#$ . 12428) nil]) #@56 Cause the Scheme process to proceed from a breakpoint. (defalias 'xscheme-send-proceed #[nil "ÀÁÂ\"‡" [send-string "scheme" "(proceed)\n"] 3 (#$ . 12595) nil]) #@96 Cause the Scheme processor to halt and flush input. Control returns to the top level rep loop. (defalias 'xscheme-send-control-g-interrupt #[nil "À\n„\fÃÄ!‚& ƒÆÇ!‚&ÀÆÈ!ˆÃÄ!ˆÉÄÊË!\")‡" [t inhibit-quit xscheme-control-g-synchronization-p interrupt-process "scheme" xscheme-control-g-disabled-p message "Relax..." "Sending C-G interrupt to Scheme..." send-string char-to-string 0] 4 (#$ . 12761) nil]) #@67 Cause the Scheme process to halt, returning to previous rep loop. (defalias 'xscheme-send-control-u-interrupt #[nil "ÀÁÂ\"‡" [xscheme-send-interrupt 117 t] 3 (#$ . 13173) nil]) #@66 Cause the Scheme process to halt, returning to current rep loop. (defalias 'xscheme-send-control-x-interrupt #[nil "ÀÁÂ\"‡" [xscheme-send-interrupt 120 t] 3 (#$ . 13356) nil]) #@49 Send a ^A type interrupt to the Scheme process. (defalias 'xscheme-send-interrupt #[(char mark-p) "ÀÁ!ˆÂÁÃ\f!\"ˆ ……ÂÁÃÇ!\"‡" [quit-process "scheme" send-string char-to-string char mark-p xscheme-control-g-synchronization-p 0] 4 (#$ . 13538) "cInterrupt character to send: "]) #@55 Command used to start the most recent Scheme process. (defvar xscheme-process-command-line nil (#$ . 13826)) #@59 Most recent expression transmitted to the Scheme process. (defvar xscheme-previous-send "" (#$ . 13941)) #@213 State of scheme process escape reader state machine: idle waiting for an escape sequence reading-type received an altmode but nothing else reading-string reading prompt string (defvar xscheme-process-filter-state (quote idle) (#$ . 14053)) #@125 This variable, if nil, indicates that the scheme process is waiting for input. Otherwise, it is busy evaluating something. (defvar xscheme-running-p nil (#$ . 14336)) #@203 If non-nil, insert markers in the scheme input stream to indicate when control-g interrupts were signalled. Do not allow more control-g's to be signalled until the scheme process acknowledges receipt. (defconst xscheme-control-g-synchronization-p t (#$ . 14511)) #@142 This variable, if non-nil, indicates that a control-g is being processed by the scheme process, so additional control-g's are to be ignored. (defvar xscheme-control-g-disabled-p nil (#$ . 14782)) #@109 This variable, if nil, prevents output from the scheme process from being inserted into the process-buffer. (defvar xscheme-allow-output-p t (#$ . 14985)) #@35 The current scheme prompt string. (defvar xscheme-prompt "" (#$ . 15146)) #@68 Accumulator for the string being received from the scheme process. (defvar xscheme-string-accumulator "" (#$ . 15226)) #@64 Procedure to send the string argument from the scheme process. (defvar xscheme-string-receiver nil (#$ . 15351)) #@136 If non-nil, a procedure to call when the Scheme process is started. When called, the current buffer will be the Scheme process-buffer. (defvar xscheme-start-hook nil (#$ . 15471)) (byte-code "ÀÁ!„ÂÁ BÀÄ!„ÂÄ BÀÅ!„ ÂÅ B‡" [boundp xscheme-runlight-string nil current-load-list xscheme-mode-string xscheme-filter-input] 2) (defalias 'xscheme-start-process #[(command-line) "ÀÁ!Ã\n!Š\nqˆ\fƒ\"Å\f!Æ>ƒ\"Ç\f!dÈ“ˆ‚g\fƒ*É\f!ˆdbˆÊ ˆoƒ;ËÌ !!ˆÈÏÐÑ\nÒ!BB\")Ç\f!dÈ“ˆÔÕ!ˆÖ ˆ×\fØ\"ˆÙ\fÚ\"ˆÛÜ!ˆ*\n)‡" [get-buffer-create "*scheme*" buffer get-buffer-process process process-status (run stop) process-mark nil delete-process scheme-interaction-mode insert-before-markers substitute-command-keys xscheme-startup-message process-connection-type apply start-process "scheme" xscheme-parse-command-line command-line xscheme-process-filter-initialize t xscheme-modeline-initialize set-process-sentinel xscheme-process-sentinel set-process-filter xscheme-process-filter run-hooks xscheme-start-hook] 6]) (defalias 'xscheme-parse-command-line #[(string) "À !Âà ƒAÆÇ #‰„\" ÃO\fBÂ< Uƒ1ÆÉ #‚< O\fBT)‚\fŸ*‡" [substitute-in-file-name string 0 nil result start string-match "[ ]" index "[^ ]"] 5]) (defalias 'xscheme-wait-for-process #[nil "ÀÁ!ˆ\n…ÀÃ!ˆ‚‡" [sleep-for 2 xscheme-running-p 1] 2]) #@59 True iff there is a Scheme process whose status is `run'. (defalias 'xscheme-process-running-p #[nil "ÀÁ!‰… Ã\n!Ä=)‡" [get-process "scheme" process process-status run] 3 (#$ . 16795)]) (defalias 'xscheme-process-buffer #[nil "ÀÁ!‰… Ã\n!)‡" [get-process "scheme" process process-buffer] 3]) (defalias 'xscheme-process-buffer-window #[nil "À ‰…\n !)‡" [xscheme-process-buffer buffer get-buffer-window] 3]) #@59 True iff the current buffer is the Scheme process buffer. (defalias 'xscheme-process-buffer-current-p #[nil "À p=‡" [xscheme-process-buffer] 2 (#$ . 17212)]) (defalias 'xscheme-process-sentinel #[(proc reason) "À Â=!ˆ Â=ƒà ˆ‚ÄÆ È>?…) …)Ê ˆËÌ!‡" [xscheme-process-filter-initialize reason run xscheme-modeline-initialize "" scheme-mode-line-process "no process" xscheme-mode-string (run stop) xscheme-signal-death-message beep message "The Scheme process has died! Do M-x reset-scheme to restart it"] 3]) (defalias 'xscheme-process-filter-initialize #[(running-p) "À\nÄÆÈ ʉ ‡" [idle xscheme-process-filter-state running-p xscheme-running-p nil xscheme-control-g-disabled-p t xscheme-allow-output-p "" xscheme-prompt (": " xscheme-runlight-string) scheme-mode-line-process] 2]) (defalias 'xscheme-process-filter #[(proc string) " …·\nÃ=ƒ7ÄÅ \"‰ƒ*Ç ÈO!ˆ TÉOÊ‚3 ÉÇ!ˆ))‚\nÊ=ƒy GÈUƒJɉ‚ ÈH ÌÉOÍ \"‰ƒmÐ8A@!ˆ‚uÇÑ \"ˆÃ*‚\nÒ=ƒ°ÄÅ \"‰ƒ¤ ÈOP TÉOÃ!ˆ)‚¬ PÉ)‚ÕÖ!ˆ‚)‡" [string xscheme-filter-input xscheme-process-filter-state idle string-match "" start xscheme-process-filter-output 0 nil reading-type char 1 assoc xscheme-process-filter-alist entry 2 27 reading-string xscheme-string-accumulator xscheme-string-receiver error "Scheme process filter -- bad state"] 5]) (defalias 'xscheme-process-filter-output #[(&rest args) "…NÁ \"ŠÅ ˆÆÇ\f\"ƒJȔȕ \nË\fÈ\nO!ˆ\f\nHÌUƒ<n„5ËÍ!ˆËÌ!ˆ‚?Î ˆ\f\nTÏO*‚ Ë\f!*‡" [xscheme-allow-output-p apply concat args string xscheme-goto-output-point string-match "\\(\\|\f\\)" 0 end start insert-before-markers 12 10 beep nil] 4]) (defalias 'xscheme-guarantee-newlines #[(n) "…;ŠÁ ˆÂ „%nƒ%\fSoƒʼn‚ Æ ˆ‚\n)Á ˆ\fÇV…:ÈÉ!ˆ\fS‰‚*)‡" [xscheme-allow-output-p xscheme-goto-output-point nil stop n t backward-char 0 insert-before-markers 10] 3]) (defalias 'xscheme-goto-output-point #[nil "ÀÁ!Ã\n!qˆÄ\n!b)‡" [get-process "scheme" process process-buffer process-mark] 2]) (defalias 'xscheme-modeline-initialize #[nil "ÀÀɇ" ["" xscheme-runlight-string xscheme-mode-string ("Scheme: " xscheme-mode-string) mode-line-buffer-identification] 2]) (defalias 'xscheme-set-runlight #[(runlight) "ÂÃ!‡" [runlight xscheme-runlight-string force-mode-line-update t] 2]) #@673 Table used to decide how to handle process filter commands. Value is a list of entries, each entry is a list of three items. The first item is the character that the process filter dispatches on. The second item is the action to be taken, a function. The third item is the handler for the entry, a function. When the process filter sees a command whose character matches a particular entry, it calls the handler with two arguments: the action and the string containing the rest of the process filter's input stream. It is the responsibility of the handler to invoke the action with the appropriate arguments, and to reenter the process filter with the remaining input. (defvar xscheme-process-filter-alist (quote ((68 xscheme-enter-debugger-mode xscheme-process-filter:string-action) (69 xscheme-eval xscheme-process-filter:string-action) (80 xscheme-set-prompt-variable xscheme-process-filter:string-action) (82 xscheme-enter-interaction-mode xscheme-process-filter:simple-action) (98 xscheme-start-gc xscheme-process-filter:simple-action) (101 xscheme-finish-gc xscheme-process-filter:simple-action) (102 xscheme-exit-input-wait xscheme-process-filter:simple-action) (103 xscheme-enable-control-g xscheme-process-filter:simple-action) (105 xscheme-prompt-for-expression xscheme-process-filter:string-action) (109 xscheme-message xscheme-process-filter:string-action) (110 xscheme-prompt-for-confirmation xscheme-process-filter:string-action) (111 xscheme-output-goto xscheme-process-filter:simple-action) (112 xscheme-set-prompt xscheme-process-filter:string-action) (115 xscheme-enter-input-wait xscheme-process-filter:simple-action) (118 xscheme-write-value xscheme-process-filter:string-action) (119 xscheme-cd xscheme-process-filter:string-action) (122 xscheme-display-process-buffer xscheme-process-filter:simple-action) (99 xscheme-unsolicited-read-char xscheme-process-filter:simple-action))) (#$ . 19504)) (defalias 'xscheme-process-filter:simple-action #[(action) "À\n ‡" [idle xscheme-process-filter-state action] 1]) (defalias 'xscheme-process-filter:string-action #[(action) "Âĉ‡" [action xscheme-string-receiver "" xscheme-string-accumulator reading-string xscheme-process-filter-state] 2]) #@61 The character displayed when the Scheme process is running. (defconst xscheme-runlight:running "run" (#$ . 21725)) #@71 The character displayed when the Scheme process is waiting for input. (defconst xscheme-runlight:input "input" (#$ . 21846)) #@72 The character displayed when the Scheme process is garbage collecting. (defconst xscheme-runlight:gc "gc" (#$ . 21977)) (defalias 'xscheme-start-gc #[nil "À !‡" [xscheme-set-runlight xscheme-runlight:gc] 2]) (defalias 'xscheme-finish-gc #[nil "À ƒ \n‚\n !‡" [xscheme-set-runlight xscheme-running-p xscheme-runlight:running xscheme-runlight:input] 2]) (defalias 'xscheme-enter-input-wait #[nil "À !ˆÂ‰‡" [xscheme-set-runlight xscheme-runlight:input nil xscheme-running-p] 2]) (defalias 'xscheme-exit-input-wait #[nil "À !ˆÂ‰‡" [xscheme-set-runlight xscheme-runlight:running t xscheme-running-p] 2]) (defalias 'xscheme-enable-control-g #[nil "À‰‡" [nil xscheme-control-g-disabled-p] 2]) (defalias 'xscheme-display-process-buffer #[nil "À † Á !Ä‹)‡" [xscheme-process-buffer-window display-buffer xscheme-process-buffer window ((byte-code "À !ˆÂ ˆÃ …Ä ‡" [select-window window xscheme-goto-output-point xscheme-debugger-mode-p xscheme-enter-interaction-mode] 2))] 2]) (defalias 'xscheme-unsolicited-read-char #[nil "À‡" [nil] 1]) (defalias 'xscheme-eval #[(string) "ÀÁ\n!@!‡" [eval read-from-string string] 3]) (defalias 'xscheme-message #[(string) "GÁU?…ÂÃÄ\"\"‡" [string 0 xscheme-write-message-1 format ";%s"] 5]) (defalias 'xscheme-write-value #[(string) "GÁUƒ\fÂÃÄ\"‡ÂÅÆ\"\"‡" [string 0 xscheme-write-message-1 "(no value)" ";No value" format ";Value: %s"] 5]) (defalias 'xscheme-write-message-1 #[(message-string output-string) "ÀÁ!ÃÄ\n!!‰ƒÆÇ\n! \"„ÈÉ\n\"ˆ*ËÌ!ˆÍ!‡" [get-process "scheme" process get-buffer-window process-buffer window pos-visible-in-window-p process-mark message "%s" message-string xscheme-guarantee-newlines 1 xscheme-process-filter-output output-string] 4]) (defalias 'xscheme-set-prompt-variable #[(string) "‰‡" [string xscheme-prompt] 2]) (defalias 'xscheme-set-prompt #[(string) "ÂÃ!ˆÄ!ÆÇ!‡" [string xscheme-prompt xscheme-guarantee-newlines 2 xscheme-coerce-prompt xscheme-mode-string force-mode-line-update t] 2]) (defalias 'xscheme-output-goto #[nil "À ˆÁÂ!‡" [xscheme-goto-output-point xscheme-guarantee-newlines 2] 2]) (defalias 'xscheme-coerce-prompt #[(string) "ÀÁ\n\"ƒ,Õ\nÃ\fO\n\fÅOÇ\"‰ ƒ& A‚(*P)‡\n‡" [string-match "^[0-9]+ " string 0 end nil prompt assoc xscheme-prompt-alist entry] 5]) #@76 An alist which maps the Scheme command interpreter type to a print string. (defvar xscheme-prompt-alist (quote (("[Normal REPL]" . "[Evaluator]") ("[Error REPL]" . "[Evaluator]") ("[Breakpoint REPL]" . "[Evaluator]") ("[Debugger REPL]" . "[Evaluator]") ("[Visiting environment]" . "[Evaluator]") ("[Environment Inspector]" . "[Where]"))) (#$ . 24255)) (defalias 'xscheme-cd #[(directory-string) "ŠÀ qˆÁ\n!)‡" [xscheme-process-buffer cd directory-string] 2]) (defalias 'xscheme-prompt-for-confirmation #[(prompt-string) "ÀÁ\n!ƒ Â\fÄ!‡" [xscheme-send-char y-or-n-p prompt-string 121 110] 3]) (defalias 'xscheme-prompt-for-expression #[(prompt-string) "ÀÁ\nÃ\f#!‡" [xscheme-send-string-2 read-from-minibuffer prompt-string nil xscheme-prompt-for-expression-map] 5]) (byte-code "ÀÁ!„ÂÁ B „Ä !ÆÇÈ #ˆÂ‡" [boundp xscheme-prompt-for-expression-map nil current-load-list copy-keymap minibuffer-local-map substitute-key-definition exit-minibuffer xscheme-prompt-for-expression-exit] 4) (defalias 'xscheme-prompt-for-expression-exit #[nil "Àed\"Á=ƒ\f ‡ÃÄ!‡" [xscheme-region-expression-p one exit-minibuffer error "input must be a single, complete expression"] 3 nil nil]) (defalias 'xscheme-region-expression-p #[(start end) "ŠÀ ÂŽÃ\f!ˆÅ\"‰@ÉU…7Ê8…7ÅÊ8\"Ê8ƒ5Ë‚6Ì),‡" [syntax-table old-syntax-table ((set-syntax-table old-syntax-table)) set-syntax-table scheme-mode-syntax-table parse-partial-sexp start end state 0 2 many one] 5]) (provide (quote xscheme))