home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / gnu / lucid / lemacs-19.6 / lisp / comint / inf-lisp.elc < prev    next >
Emacs Compiled Lisp  |  1993-04-01  |  7.2 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was processed as: Emacs Compiled Lisp (other/emacsCompiledLisp).
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
1% dexvert Emacs Compiled Lisp (other/emacsCompiledLisp) magic Unsupported
1% dexvert Combustion 2 Particle Library (other/combustion2ParticleLibrary) ext Unsupported
100% file Emacs/XEmacs v19 byte-compiled Lisp data default
99% file data default
100% TrID Emacs/XEmacs byte-compiled Lisp (generic) default
100% xdgMime text/x-emacs-lisp default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 13 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 6a 77 7a 40 74 68 61 |piled by| jwz@tha|
|00000020| 6c 69 64 6f 6d 69 64 65 | 20 6f 6e 20 4d 6f 6e 20 |lidomide| on Mon |
|00000030| 46 65 62 20 20 31 20 31 | 38 3a 33 38 3a 30 37 20 |Feb 1 1|8:38:07 |
|00000040| 31 39 39 33 0a 3b 3b 3b | 20 66 72 6f 6d 20 66 69 |1993.;;;| from fi|
|00000050| 6c 65 20 2f 63 61 64 69 | 6c 6c 61 63 31 2f 63 6f |le /cadi|llac1/co|
|00000060| 64 65 2f 62 75 69 6c 64 | 2f 6c 65 6d 61 63 73 2f |de/build|/lemacs/|
|00000070| 6c 69 73 70 2f 63 6f 6d | 69 6e 74 2f 69 6e 66 2d |lisp/com|int/inf-|
|00000080| 6c 69 73 70 2e 65 6c 0a | 3b 3b 3b 20 65 6d 61 63 |lisp.el.|;;; emac|
|00000090| 73 20 76 65 72 73 69 6f | 6e 20 31 39 2e 34 2e 31 |s versio|n 19.4.1|
|000000a0| 33 20 4c 75 63 69 64 2e | 0a 3b 3b 3b 20 62 79 74 |3 Lucid.|.;;; byt|
|000000b0| 65 63 6f 6d 70 20 76 65 | 72 73 69 6f 6e 20 32 2e |ecomp ve|rsion 2.|
|000000c0| 31 30 3b 20 20 31 2d 66 | 65 62 2d 39 33 2e 0a 3b |10; 1-f|eb-93..;|
|000000d0| 3b 3b 20 6f 70 74 69 6d | 69 7a 61 74 69 6f 6e 20 |;; optim|ization |
|000000e0| 69 73 20 6f 6e 2e 0a 3b | 3b 3b 20 74 68 69 73 20 |is on..;|;; this |
|000000f0| 66 69 6c 65 20 75 73 65 | 73 20 6f 70 63 6f 64 65 |file use|s opcode|
|00000100| 73 20 77 68 69 63 68 20 | 64 6f 20 6e 6f 74 20 65 |s which |do not e|
|00000110| 78 69 73 74 20 69 6e 20 | 45 6d 61 63 73 31 38 2e |xist in |Emacs18.|
|00000120| 0a 0a 28 69 66 20 28 61 | 6e 64 20 28 62 6f 75 6e |..(if (a|nd (boun|
|00000130| 64 70 20 27 65 6d 61 63 | 73 2d 76 65 72 73 69 6f |dp 'emac|s-versio|
|00000140| 6e 29 0a 09 20 28 6f 72 | 20 28 61 6e 64 20 28 62 |n).. (or| (and (b|
|00000150| 6f 75 6e 64 70 20 27 65 | 70 6f 63 68 3a 3a 76 65 |oundp 'e|poch::ve|
|00000160| 72 73 69 6f 6e 29 20 65 | 70 6f 63 68 3a 3a 76 65 |rsion) e|poch::ve|
|00000170| 72 73 69 6f 6e 29 0a 09 | 20 20 20 20 20 28 73 74 |rsion)..| (st|
|00000180| 72 69 6e 67 2d 6c 65 73 | 73 70 20 65 6d 61 63 73 |ring-les|sp emacs|
|00000190| 2d 76 65 72 73 69 6f 6e | 20 22 31 39 22 29 29 29 |-version| "19")))|
|000001a0| 0a 20 20 20 20 28 65 72 | 72 6f 72 20 22 54 68 69 |. (er|ror "Thi|
|000001b0| 73 20 66 69 6c 65 20 77 | 61 73 20 63 6f 6d 70 69 |s file w|as compi|
|000001c0| 6c 65 64 20 66 6f 72 20 | 45 6d 61 63 73 31 39 2e |led for |Emacs19.|
|000001d0| 22 29 29 0a 0a 28 62 79 | 74 65 2d 63 6f 64 65 20 |"))..(by|te-code |
|000001e0| 22 c0 c1 21 88 c2 c3 21 | 87 22 20 5b 72 65 71 75 |"..!...!|." [requ|
|000001f0| 69 72 65 20 63 6f 6d 69 | 6e 74 20 70 72 6f 76 69 |ire comi|nt provi|
|00000200| 64 65 20 69 6e 66 2d 6c | 69 73 70 5d 20 32 29 0a |de inf-l|isp] 2).|
|00000210| 28 64 65 66 76 61 72 20 | 6c 69 73 70 2d 66 69 6c |(defvar |lisp-fil|
|00000220| 74 65 72 2d 72 65 67 65 | 78 70 20 22 5c 5c 60 5c |ter-rege|xp "\\`\|
|00000230| 5c 73 20 2a 5c 5c 28 3a | 5c 5c 28 5c 5c 77 5c 5c |\s *\\(:|\\(\\w\\|
|00000240| 7c 5c 5c 73 5f 5c 5c 29 | 5c 5c 29 3f 5c 5c 73 20 ||\\s_\\)|\\)?\\s |
|00000250| 2a 5c 5c 27 22 20 22 5c | 0a 2a 57 68 61 74 20 6e |*\\'" "\|.*What n|
|00000260| 6f 74 20 74 6f 20 73 61 | 76 65 20 6f 6e 20 69 6e |ot to sa|ve on in|
|00000270| 66 65 72 69 6f 72 20 4c | 69 73 70 27 73 20 69 6e |ferior L|isp's in|
|00000280| 70 75 74 20 68 69 73 74 | 6f 72 79 0a 49 6e 70 75 |put hist|ory.Inpu|
|00000290| 74 20 6d 61 74 63 68 69 | 6e 67 20 74 68 69 73 20 |t matchi|ng this |
|000002a0| 72 65 67 65 78 70 20 69 | 73 20 6e 6f 74 20 73 61 |regexp i|s not sa|
|000002b0| 76 65 64 20 6f 6e 20 74 | 68 65 20 69 6e 70 75 74 |ved on t|he input|
|000002c0| 20 68 69 73 74 6f 72 79 | 20 69 6e 20 6c 69 73 70 | history| in lisp|
|000002d0| 0a 6d 6f 64 65 2e 20 44 | 65 66 61 75 6c 74 20 69 |.mode. D|efault i|
|000002e0| 73 20 77 68 69 74 65 73 | 70 61 63 65 20 66 6f 6c |s whites|pace fol|
|000002f0| 6c 6f 77 65 64 20 62 79 | 20 30 20 6f 72 20 31 20 |lowed by| 0 or 1 |
|00000300| 73 69 6e 67 6c 65 2d 6c | 65 74 74 65 72 20 3a 6b |single-l|etter :k|
|00000310| 65 79 77 6f 72 64 20 0a | 28 61 73 20 69 6e 20 3a |eyword .|(as in :|
|00000320| 61 2c 20 3a 63 2c 20 65 | 74 63 2e 29 22 29 0a 28 |a, :c, e|tc.)").(|
|00000330| 62 79 74 65 2d 63 6f 64 | 65 20 22 c0 09 c2 c3 23 |byte-cod|e "....#|
|00000340| 88 c0 09 c4 c5 23 88 c0 | 09 c6 c7 23 88 c0 09 c8 |.....#..|...#....|
|00000350| c9 23 88 c0 09 ca cb 23 | 88 c0 09 cc cd 23 88 ce |.#.....#|.....#..|
|00000360| cf 21 ac 83 d0 16 0f 0e | 0f ac 94 d1 0e 12 21 16 |.!......|......!.|
|00000370| 0f d3 0e 0f 0e 14 5c 22 | 88 c0 0e 0f d5 d6 23 88 |......\"|......#.|
|00000380| d0 87 22 20 5b 64 65 66 | 69 6e 65 2d 6b 65 79 20 |.." [def|ine-key |
|00000390| 6c 69 73 70 2d 6d 6f 64 | 65 2d 6d 61 70 20 22 03 |lisp-mod|e-map ".|
|000003a0| 06 22 20 6c 69 73 70 2d | 6c 6f 61 64 2d 66 69 6c |." lisp-|load-fil|
|000003b0| 65 20 22 03 0b 22 20 6c | 69 73 70 2d 63 6f 6d 70 |e ".." l|isp-comp|
|000003c0| 69 6c 65 2d 66 69 6c 65 | 20 22 98 22 20 6c 69 73 |ile-file| "." lis|
|000003d0| 70 2d 65 76 61 6c 2d 64 | 65 66 75 6e 20 22 03 05 |p-eval-d|efun "..|
|000003e0| 22 20 6c 69 73 70 2d 65 | 76 61 6c 2d 72 65 67 69 |" lisp-e|val-regi|
|000003f0| 6f 6e 20 22 03 18 22 20 | 6c 69 73 70 2d 63 6f 6d |on ".." |lisp-com|
|00000400| 70 69 6c 65 2d 64 65 66 | 75 6e 20 22 03 03 22 20 |pile-def|un ".." |
|00000410| 6c 69 73 70 2d 63 6f 6d | 70 69 6c 65 2d 72 65 67 |lisp-com|pile-reg|
|00000420| 69 6f 6e 20 62 6f 75 6e | 64 70 20 69 6e 66 65 72 |ion boun|dp infer|
|00000430| 69 6f 72 2d 6c 69 73 70 | 2d 6d 6f 64 65 2d 6d 61 |ior-lisp|-mode-ma|
|00000440| 70 20 6e 69 6c 20 63 6f | 70 79 2d 6b 65 79 6d 61 |p nil co|py-keyma|
|00000450| 70 20 73 68 61 72 65 64 | 2d 6c 69 73 70 2d 6d 6f |p shared|-lisp-mo|
|00000460| 64 65 2d 6d 61 70 20 73 | 65 74 2d 6b 65 79 6d 61 |de-map s|et-keyma|
|00000470| 70 2d 70 61 72 65 6e 74 | 20 63 6f 6d 69 6e 74 2d |p-parent| comint-|
|00000480| 6d 6f 64 65 2d 6d 61 70 | 20 22 1b 18 22 20 6c 69 |mode-map| ".." li|
|00000490| 73 70 2d 73 65 6e 64 2d | 64 65 66 75 6e 5d 20 34 |sp-send-|defun] 4|
|000004a0| 29 0a 28 64 65 66 76 61 | 72 20 69 6e 66 65 72 69 |).(defva|r inferi|
|000004b0| 6f 72 2d 6c 69 73 70 2d | 70 72 6f 67 72 61 6d 20 |or-lisp-|program |
|000004c0| 22 6c 69 73 70 22 20 22 | 5c 0a 2a 50 72 6f 67 72 |"lisp" "|\.*Progr|
|000004d0| 61 6d 20 6e 61 6d 65 20 | 66 6f 72 20 69 6e 76 6f |am name |for invo|
|000004e0| 6b 69 6e 67 20 61 6e 20 | 69 6e 66 65 72 69 6f 72 |king an |inferior|
|000004f0| 20 4c 69 73 70 20 77 69 | 74 68 20 60 6c 69 73 70 | Lisp wi|th `lisp|
|00000500| 27 2e 0a 4f 70 74 69 6f | 6e 61 6c 6c 79 2c 20 61 |'..Optio|nally, a|
|00000510| 20 6c 69 73 74 20 6f 66 | 20 73 74 72 69 6e 67 73 | list of| strings|
|00000520| 20 74 68 65 20 63 61 72 | 20 6f 66 20 77 68 69 63 | the car| of whic|
|00000530| 68 20 69 73 20 74 68 65 | 20 70 72 6f 67 72 61 6d |h is the| program|
|00000540| 6d 65 20 74 6f 20 72 75 | 6e 0a 61 6e 64 20 74 68 |me to ru|n.and th|
|00000550| 65 20 63 64 72 20 6f 66 | 20 77 68 69 63 68 20 69 |e cdr of| which i|
|00000560| 73 20 63 6f 6d 6d 61 6e | 64 20 6c 69 6e 65 20 61 |s comman|d line a|
|00000570| 72 67 75 6d 65 6e 74 73 | 20 64 65 73 69 72 65 64 |rguments| desired|
|00000580| 2e 22 29 0a 28 64 65 66 | 76 61 72 20 69 6e 66 65 |.").(def|var infe|
|00000590| 72 69 6f 72 2d 6c 69 73 | 70 2d 6c 6f 61 64 2d 63 |rior-lis|p-load-c|
|000005a0| 6f 6d 6d 61 6e 64 20 22 | 28 6c 6f 61 64 20 5c 22 |ommand "|(load \"|
|000005b0| 25 73 5c 22 29 5c 6e 22 | 20 22 5c 0a 2a 46 6f 72 |%s\")\n"| "\.*For|
|000005c0| 6d 61 74 2d 73 74 72 69 | 6e 67 20 66 6f 72 20 62 |mat-stri|ng for b|
|000005d0| 75 69 6c 64 69 6e 67 20 | 61 20 4c 69 73 70 20 65 |uilding |a Lisp e|
|000005e0| 78 70 72 65 73 73 69 6f | 6e 20 74 6f 20 6c 6f 61 |xpressio|n to loa|
|000005f0| 64 20 61 20 66 69 6c 65 | 2e 0a 54 68 69 73 20 66 |d a file|..This f|
|00000600| 6f 72 6d 61 74 20 73 74 | 72 69 6e 67 20 73 68 6f |ormat st|ring sho|
|00000610| 75 6c 64 20 75 73 65 20 | 25 73 20 74 6f 20 73 75 |uld use |%s to su|
|00000620| 62 73 74 69 74 75 74 65 | 20 61 20 66 69 6c 65 20 |bstitute| a file |
|00000630| 6e 61 6d 65 0a 61 6e 64 | 20 73 68 6f 75 6c 64 20 |name.and| should |
|00000640| 72 65 73 75 6c 74 20 69 | 6e 20 61 20 4c 69 73 70 |result i|n a Lisp|
|00000650| 20 65 78 70 72 65 73 73 | 69 6f 6e 20 74 68 61 74 | express|ion that|
|00000660| 20 77 69 6c 6c 20 63 6f | 6d 6d 61 6e 64 20 74 68 | will co|mmand th|
|00000670| 65 20 69 6e 66 65 72 69 | 6f 72 20 4c 69 73 70 0a |e inferi|or Lisp.|
|00000680| 74 6f 20 6c 6f 61 64 20 | 74 68 61 74 20 66 69 6c |to load |that fil|
|00000690| 65 2e 20 20 54 68 65 20 | 64 65 66 61 75 6c 74 20 |e. The |default |
|000006a0| 77 6f 72 6b 73 20 61 63 | 63 65 70 74 61 62 6c 79 |works ac|ceptably|
|000006b0| 20 6f 6e 20 6d 6f 73 74 | 20 4c 69 73 70 73 2e 0a | on most| Lisps..|
|000006c0| 54 68 65 20 73 74 72 69 | 6e 67 20 5c 22 28 70 72 |The stri|ng \"(pr|
|000006d0| 6f 67 6e 20 28 6c 6f 61 | 64 20 5c 5c 5c 22 25 73 |ogn (loa|d \\\"%s|
|000006e0| 5c 5c 5c 22 20 3a 76 65 | 72 62 6f 73 65 20 6e 69 |\\\" :ve|rbose ni|
|000006f0| 6c 20 3a 70 72 69 6e 74 | 20 74 29 20 28 76 61 6c |l :print| t) (val|
|00000700| 75 65 73 29 29 5c 5c 0a | 5c 22 0a 70 72 6f 64 75 |ues))\\.|\".produ|
|00000710| 63 65 73 20 63 6f 73 6d | 65 74 69 63 61 6c 6c 79 |ces cosm|etically|
|00000720| 20 73 75 70 65 72 69 6f | 72 20 6f 75 74 70 75 74 | superio|r output|
|00000730| 20 66 6f 72 20 74 68 69 | 73 20 61 70 70 6c 69 63 | for thi|s applic|
|00000740| 61 74 69 6f 6e 2c 0a 62 | 75 74 20 69 74 20 77 6f |ation,.b|ut it wo|
|00000750| 72 6b 73 20 6f 6e 6c 79 | 20 69 6e 20 43 6f 6d 6d |rks only| in Comm|
|00000760| 6f 6e 20 4c 69 73 70 2e | 22 29 0a 28 64 65 66 76 |on Lisp.|").(defv|
|00000770| 61 72 20 69 6e 66 65 72 | 69 6f 72 2d 6c 69 73 70 |ar infer|ior-lisp|
|00000780| 2d 70 72 6f 6d 70 74 20 | 22 5e 5b 5e 3e 20 5d 2a |-prompt |"^[^> ]*|
|00000790| 3e 2b 3a 3f 20 2a 22 20 | 22 5c 0a 52 65 67 65 78 |>+:? *" |"\.Regex|
|000007a0| 70 20 74 6f 20 72 65 63 | 6f 67 6e 69 73 65 20 70 |p to rec|ognise p|
|000007b0| 72 6f 6d 70 74 73 20 69 | 6e 20 74 68 65 20 69 6e |rompts i|n the in|
|000007c0| 66 65 72 69 6f 72 20 4c | 69 73 70 2e 0a 44 65 66 |ferior L|isp..Def|
|000007d0| 61 75 6c 74 73 20 74 6f | 20 5c 22 5e 5b 5e 3e 20 |aults to| \"^[^> |
|000007e0| 5d 2a 3e 2b 3a 3f 20 2a | 5c 22 2c 20 77 68 69 63 |]*>+:? *|\", whic|
|000007f0| 68 20 77 6f 72 6b 73 20 | 70 72 65 74 74 79 20 67 |h works |pretty g|
|00000800| 6f 6f 64 20 66 6f 72 20 | 4c 75 63 69 64 2c 20 6b |ood for |Lucid, k|
|00000810| 63 6c 2c 0a 61 6e 64 20 | 66 72 61 6e 7a 2e 20 54 |cl,.and |franz. T|
|00000820| 68 69 73 20 76 61 72 69 | 61 62 6c 65 20 69 73 20 |his vari|able is |
|00000830| 75 73 65 64 20 74 6f 20 | 69 6e 69 74 69 61 6c 69 |used to |initiali|
|00000840| 73 65 20 63 6f 6d 69 6e | 74 2d 70 72 6f 6d 70 74 |se comin|t-prompt|
|00000850| 2d 72 65 67 65 78 70 20 | 69 6e 20 74 68 65 20 0a |-regexp |in the .|
|00000860| 6c 69 73 70 20 62 75 66 | 66 65 72 2e 0a 0a 4d 6f |lisp buf|fer...Mo|
|00000870| 72 65 20 70 72 65 63 69 | 73 65 20 63 68 6f 69 63 |re preci|se choic|
|00000880| 65 73 3a 0a 4c 75 63 69 | 64 20 43 6f 6d 6d 6f 6e |es:.Luci|d Common|
|00000890| 20 4c 69 73 70 3a 20 5c | 22 5e 5c 5c 28 3e 5c 5c | Lisp: \|"^\\(>\\|
|000008a0| 7c 5c 5c 28 2d 3e 5c 5c | 29 2b 5c 5c 29 20 2a 5c ||\\(->\\|)+\\) *\|
|000008b0| 22 0a 66 72 61 6e 7a 3a | 20 5c 22 5e 5c 5c 28 2d |".franz:| \"^\\(-|
|000008c0| 3e 5c 5c 7c 3c 5b 30 2d | 39 5d 2a 3e 3a 5c 5c 29 |>\\|<[0-|9]*>:\\)|
|000008d0| 20 2a 5c 22 0a 6b 63 6c | 3a 20 5c 22 5e 3e 2b 20 | *\".kcl|: \"^>+ |
|000008e0| 2a 5c 22 22 29 0a 28 64 | 65 66 76 61 72 20 69 6e |*\"").(d|efvar in|
|000008f0| 66 65 72 69 6f 72 2d 6c | 69 73 70 2d 6d 6f 64 65 |ferior-l|isp-mode|
|00000900| 2d 68 6f 6f 6b 20 6e 69 | 6c 20 22 5c 0a 2a 48 6f |-hook ni|l "\.*Ho|
|00000910| 6f 6b 20 66 6f 72 20 63 | 75 73 74 6f 6d 69 73 69 |ok for c|ustomisi|
|00000920| 6e 67 20 6c 69 73 70 20 | 6d 6f 64 65 22 29 0a 28 |ng lisp |mode").(|
|00000930| 66 73 65 74 20 27 69 6e | 66 65 72 69 6f 72 2d 6c |fset 'in|ferior-l|
|00000940| 69 73 70 2d 6d 6f 64 65 | 20 23 5b 6e 69 6c 20 22 |isp-mode| #[nil "|
|00000950| c0 20 88 c1 5c 6e 21 88 | c3 14 c5 16 06 0e 07 16 |. ..\n!.|........|
|00000960| 08 c9 16 5c 6e cb 16 0c | cd 16 0e cf d0 21 88 d1 |...\n...|.....!..|
|00000970| d2 21 87 22 20 5b 63 6f | 6d 69 6e 74 2d 6d 6f 64 |.!." [co|mint-mod|
|00000980| 65 20 75 73 65 2d 6c 6f | 63 61 6c 2d 6d 61 70 20 |e use-lo|cal-map |
|00000990| 69 6e 66 65 72 69 6f 72 | 2d 6c 69 73 70 2d 6d 6f |inferior|-lisp-mo|
|000009a0| 64 65 2d 6d 61 70 20 69 | 6e 66 65 72 69 6f 72 2d |de-map i|nferior-|
|000009b0| 6c 69 73 70 2d 6d 6f 64 | 65 20 6d 61 6a 6f 72 2d |lisp-mod|e major-|
|000009c0| 6d 6f 64 65 20 22 49 6e | 66 65 72 69 6f 72 20 4c |mode "In|ferior L|
|000009d0| 69 73 70 22 20 6d 6f 64 | 65 2d 6e 61 6d 65 20 69 |isp" mod|e-name i|
|000009e0| 6e 66 65 72 69 6f 72 2d | 6c 69 73 70 2d 70 72 6f |nferior-|lisp-pro|
|000009f0| 6d 70 74 20 63 6f 6d 69 | 6e 74 2d 70 72 6f 6d 70 |mpt comi|nt-promp|
|00000a00| 74 2d 72 65 67 65 78 70 | 20 69 6e 66 65 72 69 6f |t-regexp| inferio|
|00000a10| 72 2d 6c 69 73 70 2d 67 | 65 74 2d 6f 6c 64 2d 69 |r-lisp-g|et-old-i|
|00000a20| 6e 70 75 74 20 63 6f 6d | 69 6e 74 2d 67 65 74 2d |nput com|int-get-|
|00000a30| 6f 6c 64 2d 69 6e 70 75 | 74 20 69 6e 66 65 72 69 |old-inpu|t inferi|
|00000a40| 6f 72 2d 6c 69 73 70 2d | 69 6e 70 75 74 2d 66 69 |or-lisp-|input-fi|
|00000a50| 6c 74 65 72 20 63 6f 6d | 69 6e 74 2d 69 6e 70 75 |lter com|int-inpu|
|00000a60| 74 2d 66 69 6c 74 65 72 | 20 69 67 6e 6f 72 65 20 |t-filter| ignore |
|00000a70| 63 6f 6d 69 6e 74 2d 69 | 6e 70 75 74 2d 73 65 6e |comint-i|nput-sen|
|00000a80| 74 69 6e 65 6c 20 6c 69 | 73 70 2d 6d 6f 64 65 2d |tinel li|sp-mode-|
|00000a90| 76 61 72 69 61 62 6c 65 | 73 20 74 20 72 75 6e 2d |variable|s t run-|
|00000aa0| 68 6f 6f 6b 73 20 69 6e | 66 65 72 69 6f 72 2d 6c |hooks in|ferior-l|
|00000ab0| 69 73 70 2d 6d 6f 64 65 | 2d 68 6f 6f 6b 5d 20 32 |isp-mode|-hook] 2|
|00000ac0| 20 22 5c 0a 4d 61 6a 6f | 72 20 6d 6f 64 65 20 66 | "\.Majo|r mode f|
|00000ad0| 6f 72 20 69 6e 74 65 72 | 61 63 74 69 6e 67 20 77 |or inter|acting w|
|00000ae0| 69 74 68 20 61 6e 20 69 | 6e 66 65 72 69 6f 72 20 |ith an i|nferior |
|00000af0| 4c 69 73 70 20 70 72 6f | 63 65 73 73 2e 20 20 0a |Lisp pro|cess. .|
|00000b00| 52 75 6e 73 20 61 20 4c | 69 73 70 20 69 6e 74 65 |Runs a L|isp inte|
|00000b10| 72 70 72 65 74 65 72 20 | 61 73 20 61 20 73 75 62 |rpreter |as a sub|
|00000b20| 70 72 6f 63 65 73 73 20 | 6f 66 20 45 6d 61 63 73 |process |of Emacs|
|00000b30| 2c 20 77 69 74 68 20 4c | 69 73 70 20 49 2f 4f 20 |, with L|isp I/O |
|00000b40| 74 68 72 6f 75 67 68 20 | 61 6e 0a 45 6d 61 63 73 |through |an.Emacs|
|00000b50| 20 62 75 66 66 65 72 2e | 20 20 56 61 72 69 61 62 | buffer.| Variab|
|00000b60| 6c 65 20 69 6e 66 65 72 | 69 6f 72 2d 6c 69 73 70 |le infer|ior-lisp|
|00000b70| 2d 70 72 6f 67 72 61 6d | 20 63 6f 6e 74 72 6f 6c |-program| control|
|00000b80| 73 20 77 68 69 63 68 20 | 4c 69 73 70 20 69 6e 74 |s which |Lisp int|
|00000b90| 65 72 70 72 65 74 65 72 | 0a 69 73 20 72 75 6e 2e |erpreter|.is run.|
|00000ba0| 20 20 56 61 72 69 61 62 | 6c 65 73 20 69 6e 66 65 | Variab|les infe|
|00000bb0| 72 69 6f 72 2d 6c 69 73 | 70 2d 70 72 6f 6d 70 74 |rior-lis|p-prompt|
|00000bc0| 2c 20 6c 69 73 70 2d 66 | 69 6c 74 65 72 2d 72 65 |, lisp-f|ilter-re|
|00000bd0| 67 65 78 70 20 61 6e 64 | 0a 69 6e 66 65 72 69 6f |gexp and|.inferio|
|00000be0| 72 2d 6c 69 73 70 2d 6c | 6f 61 64 2d 63 6f 6d 6d |r-lisp-l|oad-comm|
|00000bf0| 61 6e 64 20 63 61 6e 20 | 63 75 73 74 6f 6d 69 7a |and can |customiz|
|00000c00| 65 20 74 68 69 73 20 6d | 6f 64 65 20 66 6f 72 20 |e this m|ode for |
|00000c10| 64 69 66 66 65 72 65 6e | 74 20 4c 69 73 70 0a 69 |differen|t Lisp.i|
|00000c20| 6e 74 65 72 70 72 65 74 | 65 72 73 2e 0a 0a 5c 5c |nterpret|ers...\\|
|00000c30| 7b 69 6e 66 65 72 69 6f | 72 2d 6c 69 73 70 2d 6d |{inferio|r-lisp-m|
|00000c40| 6f 64 65 2d 6d 61 70 7d | 0a 0a 43 75 73 74 6f 6d |ode-map}|..Custom|
|00000c50| 69 7a 61 74 69 6f 6e 3a | 20 45 6e 74 72 79 20 74 |ization:| Entry t|
|00000c60| 6f 20 74 68 69 73 20 6d | 6f 64 65 20 72 75 6e 73 |o this m|ode runs|
|00000c70| 20 63 6f 6d 69 6e 74 2d | 6d 6f 64 65 2d 68 6f 6f | comint-|mode-hoo|
|00000c80| 6b 20 61 6e 64 20 6c 69 | 73 70 2d 6d 6f 64 65 2d |k and li|sp-mode-|
|00000c90| 68 6f 6f 6b 2c 0a 69 6e | 20 74 68 61 74 20 6f 72 |hook,.in| that or|
|00000ca0| 64 65 72 2e 0a 0a 59 6f | 75 20 63 61 6e 20 73 65 |der...Yo|u can se|
|00000cb0| 6e 64 20 74 65 78 74 20 | 74 6f 20 74 68 65 20 69 |nd text |to the i|
|00000cc0| 6e 66 65 72 69 6f 72 20 | 4c 69 73 70 20 70 72 6f |nferior |Lisp pro|
|00000cd0| 63 65 73 73 20 66 72 6f | 6d 20 6f 74 68 65 72 20 |cess fro|m other |
|00000ce0| 62 75 66 66 65 72 73 20 | 63 6f 6e 74 61 69 6e 69 |buffers |containi|
|00000cf0| 6e 67 0a 4c 69 73 70 20 | 73 6f 75 72 63 65 2e 20 |ng.Lisp |source. |
|00000d00| 20 0a 20 20 20 20 6c 69 | 73 70 2d 65 76 61 6c 2d | . li|sp-eval-|
|00000d10| 64 65 66 75 6e 20 73 65 | 6e 64 73 20 74 68 65 20 |defun se|nds the |
|00000d20| 63 75 72 72 65 6e 74 20 | 64 65 66 75 6e 20 74 6f |current |defun to|
|00000d30| 20 74 68 65 20 4c 69 73 | 70 20 70 72 6f 63 65 73 | the Lis|p proces|
|00000d40| 73 2e 0a 20 20 20 20 6c | 69 73 70 2d 63 6f 6d 70 |s.. l|isp-comp|
|00000d50| 69 6c 65 2d 64 65 66 75 | 6e 20 63 6f 6d 70 69 6c |ile-defu|n compil|
|00000d60| 65 73 20 74 68 65 20 63 | 75 72 72 65 6e 74 20 64 |es the c|urrent d|
|00000d70| 65 66 75 6e 2e 0a 20 20 | 20 20 6c 69 73 70 2d 65 |efun.. | lisp-e|
|00000d80| 76 61 6c 2d 72 65 67 69 | 6f 6e 20 73 65 6e 64 73 |val-regi|on sends|
|00000d90| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 72 65 67 | the cur|rent reg|
|00000da0| 69 6f 6e 20 74 6f 20 74 | 68 65 20 4c 69 73 70 20 |ion to t|he Lisp |
|00000db0| 70 72 6f 63 65 73 73 2e | 0a 20 20 20 20 6c 69 73 |process.|. lis|
|00000dc0| 70 2d 63 6f 6d 70 69 6c | 65 2d 72 65 67 69 6f 6e |p-compil|e-region|
|00000dd0| 20 63 6f 6d 70 69 6c 65 | 73 20 74 68 65 20 63 75 | compile|s the cu|
|00000de0| 72 72 65 6e 74 20 72 65 | 67 69 6f 6e 2e 0a 0a 43 |rrent re|gion...C|
|00000df0| 6f 6d 6d 61 6e 64 73 3a | 0a 52 65 74 75 72 6e 20 |ommands:|.Return |
|00000e00| 61 66 74 65 72 20 74 68 | 65 20 65 6e 64 20 6f 66 |after th|e end of|
|00000e10| 20 74 68 65 20 70 72 6f | 63 65 73 73 27 20 6f 75 | the pro|cess' ou|
|00000e20| 74 70 75 74 20 73 65 6e | 64 73 20 74 68 65 20 74 |tput sen|ds the t|
|00000e30| 65 78 74 20 66 72 6f 6d | 20 74 68 65 20 0a 20 20 |ext from| the . |
|00000e40| 20 20 65 6e 64 20 6f 66 | 20 70 72 6f 63 65 73 73 | end of| process|
|00000e50| 20 74 6f 20 70 6f 69 6e | 74 2e 0a 52 65 74 75 72 | to poin|t..Retur|
|00000e60| 6e 20 62 65 66 6f 72 65 | 20 74 68 65 20 65 6e 64 |n before| the end|
|00000e70| 20 6f 66 20 74 68 65 20 | 70 72 6f 63 65 73 73 27 | of the |process'|
|00000e80| 20 6f 75 74 70 75 74 20 | 63 6f 70 69 65 73 20 74 | output |copies t|
|00000e90| 68 65 20 73 65 78 70 20 | 65 6e 64 69 6e 67 20 61 |he sexp |ending a|
|00000ea0| 74 20 70 6f 69 6e 74 0a | 20 20 20 20 74 6f 20 74 |t point.| to t|
|00000eb0| 68 65 20 65 6e 64 20 6f | 66 20 74 68 65 20 70 72 |he end o|f the pr|
|00000ec0| 6f 63 65 73 73 27 20 6f | 75 74 70 75 74 2c 20 61 |ocess' o|utput, a|
|00000ed0| 6e 64 20 73 65 6e 64 73 | 20 69 74 2e 0a 44 65 6c |nd sends| it..Del|
|00000ee0| 65 74 65 20 63 6f 6e 76 | 65 72 74 73 20 74 61 62 |ete conv|erts tab|
|00000ef0| 73 20 74 6f 20 73 70 61 | 63 65 73 20 61 73 20 69 |s to spa|ces as i|
|00000f00| 74 20 6d 6f 76 65 73 20 | 62 61 63 6b 2e 0a 54 61 |t moves |back..Ta|
|00000f10| 62 20 69 6e 64 65 6e 74 | 73 20 66 6f 72 20 4c 69 |b indent|s for Li|
|00000f20| 73 70 3b 20 77 69 74 68 | 20 61 72 67 75 6d 65 6e |sp; with| argumen|
|00000f30| 74 2c 20 73 68 69 66 74 | 73 20 72 65 73 74 0a 20 |t, shift|s rest. |
|00000f40| 20 20 20 6f 66 20 65 78 | 70 72 65 73 73 69 6f 6e | of ex|pression|
|00000f50| 20 72 69 67 69 64 6c 79 | 20 77 69 74 68 20 74 68 | rigidly| with th|
|00000f60| 65 20 63 75 72 72 65 6e | 74 20 6c 69 6e 65 2e 0a |e curren|t line..|
|00000f70| 43 2d 4d 2d 71 20 64 6f | 65 73 20 54 61 62 20 6f |C-M-q do|es Tab o|
|00000f80| 6e 20 65 61 63 68 20 6c | 69 6e 65 20 73 74 61 72 |n each l|ine star|
|00000f90| 74 69 6e 67 20 77 69 74 | 68 69 6e 20 66 6f 6c 6c |ting wit|hin foll|
|00000fa0| 6f 77 69 6e 67 20 65 78 | 70 72 65 73 73 69 6f 6e |owing ex|pression|
|00000fb0| 2e 0a 50 61 72 61 67 72 | 61 70 68 73 20 61 72 65 |..Paragr|aphs are|
|00000fc0| 20 73 65 70 61 72 61 74 | 65 64 20 6f 6e 6c 79 20 | separat|ed only |
|00000fd0| 62 79 20 62 6c 61 6e 6b | 20 6c 69 6e 65 73 2e 20 |by blank| lines. |
|00000fe0| 20 53 65 6d 69 63 6f 6c | 6f 6e 73 20 73 74 61 72 | Semicol|ons star|
|00000ff0| 74 20 63 6f 6d 6d 65 6e | 74 73 2e 0a 49 66 20 79 |t commen|ts..If y|
|00001000| 6f 75 20 61 63 63 69 64 | 65 6e 74 61 6c 6c 79 20 |ou accid|entally |
|00001010| 73 75 73 70 65 6e 64 20 | 79 6f 75 72 20 70 72 6f |suspend |your pro|
|00001020| 63 65 73 73 2c 20 75 73 | 65 20 5c 5c 5b 63 6f 6d |cess, us|e \\[com|
|00001030| 69 6e 74 2d 63 6f 6e 74 | 69 6e 75 65 2d 73 75 62 |int-cont|inue-sub|
|00001040| 6a 6f 62 5d 0a 74 6f 20 | 63 6f 6e 74 69 6e 75 65 |job].to |continue|
|00001050| 20 69 74 2e 22 20 6e 69 | 6c 5d 29 0a 28 66 73 65 | it." ni|l]).(fse|
|00001060| 74 20 27 69 6e 66 65 72 | 69 6f 72 2d 6c 69 73 70 |t 'infer|ior-lisp|
|00001070| 2d 67 65 74 2d 6f 6c 64 | 2d 69 6e 70 75 74 20 23 |-get-old|-input #|
|00001080| 5b 6e 69 6c 20 22 8a 60 | 18 c1 20 88 60 08 7b 2a |[nil ".`|.. .`.{*|
|00001090| 87 22 20 5b 65 6e 64 20 | 62 61 63 6b 77 61 72 64 |." [end |backward|
|000010a0| 2d 73 65 78 70 5d 20 32 | 20 22 5c 0a 53 6e 61 72 |-sexp] 2| "\.Snar|
|000010b0| 66 20 74 68 65 20 73 65 | 78 70 20 65 6e 64 69 6e |f the se|xp endin|
|000010c0| 67 20 61 74 20 70 6f 69 | 6e 74 22 5d 29 0a 28 66 |g at poi|nt"]).(f|
|000010d0| 73 65 74 20 27 69 6e 66 | 65 72 69 6f 72 2d 6c 69 |set 'inf|erior-li|
|000010e0| 73 70 2d 69 6e 70 75 74 | 2d 66 69 6c 74 65 72 20 |sp-input|-filter |
|000010f0| 23 5b 28 73 74 72 29 20 | 22 c0 09 5c 6e 5c 22 3f |#[(str) |"..\n\"?|
|00001100| 87 22 20 5b 73 74 72 69 | 6e 67 2d 6d 61 74 63 68 |." [stri|ng-match|
|00001110| 20 6c 69 73 70 2d 66 69 | 6c 74 65 72 2d 72 65 67 | lisp-fi|lter-reg|
|00001120| 65 78 70 20 73 74 72 5d | 20 33 20 22 5c 0a 44 6f |exp str]| 3 "\.Do|
|00001130| 6e 27 74 20 73 61 76 65 | 20 61 6e 79 74 68 69 6e |n't save| anythin|
|00001140| 67 20 6d 61 74 63 68 69 | 6e 67 20 6c 69 73 70 2d |g matchi|ng lisp-|
|00001150| 66 69 6c 74 65 72 2d 72 | 65 67 65 78 70 22 5d 29 |filter-r|egexp"])|
|00001160| 0a 28 66 73 65 74 20 27 | 72 75 6e 2d 6c 69 73 70 |.(fset '|run-lisp|
|00001170| 20 23 5b 6e 69 6c 20 22 | 08 c1 c2 c3 21 1c 1d 89 | #[nil "|....!...|
|00001180| 1e 06 3c ab 89 0e 06 41 | 15 0e 06 40 16 06 0c ab |..<....A|...@....|
|00001190| 87 c7 0c 21 c8 3e ac 8d | c9 ca cb 0e 06 c1 0d 25 |...!.>..|.......%|
|000011a0| 71 88 cc 20 88 2b cd c3 | 21 87 22 20 5b 69 6e 66 |q.. .+..|!." [inf|
|000011b0| 65 72 69 6f 72 2d 6c 69 | 73 70 2d 70 72 6f 67 72 |erior-li|sp-progr|
|000011c0| 61 6d 20 6e 69 6c 20 67 | 65 74 2d 62 75 66 66 65 |am nil g|et-buffe|
|000011d0| 72 2d 70 72 6f 63 65 73 | 73 20 22 2a 6c 69 73 70 |r-proces|s "*lisp|
|000011e0| 2a 22 20 70 72 6f 63 20 | 73 77 69 74 63 68 65 73 |*" proc |switches|
|000011f0| 20 70 72 6f 67 20 70 72 | 6f 63 65 73 73 2d 73 74 | prog pr|ocess-st|
|00001200| 61 74 75 73 20 28 72 75 | 6e 20 73 74 6f 70 29 20 |atus (ru|n stop) |
|00001210| 61 70 70 6c 79 20 6d 61 | 6b 65 2d 63 6f 6d 69 6e |apply ma|ke-comin|
|00001220| 74 20 22 6c 69 73 70 22 | 20 69 6e 66 65 72 69 6f |t "lisp"| inferio|
|00001230| 72 2d 6c 69 73 70 2d 6d | 6f 64 65 20 73 77 69 74 |r-lisp-m|ode swit|
|00001240| 63 68 2d 74 6f 2d 62 75 | 66 66 65 72 5d 20 37 20 |ch-to-bu|ffer] 7 |
|00001250| 22 5c 0a 52 75 6e 20 61 | 6e 20 69 6e 66 65 72 69 |"\.Run a|n inferi|
|00001260| 6f 72 20 4c 69 73 70 20 | 70 72 6f 63 65 73 73 2c |or Lisp |process,|
|00001270| 20 69 6e 70 75 74 20 61 | 6e 64 20 6f 75 74 70 75 | input a|nd outpu|
|00001280| 74 20 76 69 61 20 62 75 | 66 66 65 72 20 2a 6c 69 |t via bu|ffer *li|
|00001290| 73 70 2a 2e 0a 49 66 20 | 74 68 65 72 65 20 69 73 |sp*..If |there is|
|000012a0| 20 61 20 70 72 6f 63 65 | 73 73 20 61 6c 72 65 61 | a proce|ss alrea|
|000012b0| 64 79 20 72 75 6e 6e 69 | 6e 67 20 69 6e 20 2a 6c |dy runni|ng in *l|
|000012c0| 69 73 70 2a 2c 20 6a 75 | 73 74 20 73 77 69 74 63 |isp*, ju|st switc|
|000012d0| 68 20 74 6f 20 74 68 61 | 74 20 62 75 66 66 65 72 |h to tha|t buffer|
|000012e0| 2e 0a 54 61 6b 65 73 20 | 74 68 65 20 70 72 6f 67 |..Takes |the prog|
|000012f0| 72 61 6d 20 6e 61 6d 65 | 20 66 72 6f 6d 20 74 68 |ram name| from th|
|00001300| 65 20 76 61 72 69 61 62 | 6c 65 20 69 6e 66 65 72 |e variab|le infer|
|00001310| 69 6f 72 2d 6c 69 73 70 | 2d 70 72 6f 67 72 61 6d |ior-lisp|-program|
|00001320| 2e 0a 28 54 79 70 65 20 | 5c 5c 5b 64 65 73 63 72 |..(Type |\\[descr|
|00001330| 69 62 65 2d 6d 6f 64 65 | 5d 20 69 6e 20 74 68 65 |ibe-mode|] in the|
|00001340| 20 70 72 6f 63 65 73 73 | 20 62 75 66 66 65 72 20 | process| buffer |
|00001350| 66 6f 72 20 61 20 6c 69 | 73 74 20 6f 66 20 63 6f |for a li|st of co|
|00001360| 6d 6d 61 6e 64 73 2e 29 | 22 20 6e 69 6c 5d 29 0a |mmands.)|" nil]).|
|00001370| 28 66 73 65 74 20 27 6c | 69 73 70 2d 65 76 61 6c |(fset 'l|isp-eval|
|00001380| 2d 72 65 67 69 6f 6e 20 | 23 5b 28 73 74 61 72 74 |-region |#[(start|
|00001390| 20 65 6e 64 29 20 22 c0 | c1 21 1a c3 c4 c5 5c 6e | end) ".|.!....\n|
|000013a0| 21 5c 22 1e 06 5c 6e ab | 87 c7 5c 6e 21 c8 3e ac |!\"..\n.|..\n!.>.|
|000013b0| 85 c9 ca 21 aa 9d cb 0e | 0c 0e 0d 0e 06 ce cf 25 |...!....|.......%|
|000013c0| 88 d0 5c 6e c3 0e 11 0e | 06 5c 22 5c 22 88 d0 5c |..\n....|.\"\"..\|
|000013d0| 6e c3 d2 0e 06 5c 22 5c | 22 2a 87 22 20 5b 67 65 |n....\"\|"*." [ge|
|000013e0| 74 2d 62 75 66 66 65 72 | 2d 70 72 6f 63 65 73 73 |t-buffer|-process|
|000013f0| 20 22 2a 6c 69 73 70 2a | 22 20 70 72 6f 63 20 66 | "*lisp*|" proc f|
|00001400| 6f 72 6d 61 74 20 22 2f | 74 6d 70 2f 65 6d 65 25 |ormat "/|tmp/eme%|
|00001410| 64 2e 6c 69 73 70 22 20 | 70 72 6f 63 65 73 73 2d |d.lisp" |process-|
|00001420| 69 64 20 66 69 6c 65 6e | 61 6d 65 20 70 72 6f 63 |id filen|ame proc|
|00001430| 65 73 73 2d 73 74 61 74 | 75 73 20 28 72 75 6e 20 |ess-stat|us (run |
|00001440| 73 74 6f 70 29 20 65 72 | 72 6f 72 20 22 4e 6f 20 |stop) er|ror "No |
|00001450| 63 75 72 72 65 6e 74 20 | 6c 69 73 70 20 70 72 6f |current |lisp pro|
|00001460| 63 65 73 73 22 20 77 72 | 69 74 65 2d 72 65 67 69 |cess" wr|ite-regi|
|00001470| 6f 6e 20 73 74 61 72 74 | 20 65 6e 64 20 6e 69 6c |on start| end nil|
|00001480| 20 6e 6f 6d 65 73 73 61 | 67 65 20 73 65 6e 64 2d | nomessa|ge send-|
|00001490| 73 74 72 69 6e 67 20 69 | 6e 66 65 72 69 6f 72 2d |string i|nferior-|
|000014a0| 6c 69 73 70 2d 6c 6f 61 | 64 2d 63 6f 6d 6d 61 6e |lisp-loa|d-comman|
|000014b0| 64 20 22 28 64 65 6c 65 | 74 65 2d 66 69 6c 65 20 |d "(dele|te-file |
|000014c0| 25 73 29 5c 6e 22 5d 20 | 36 20 22 5c 0a 53 65 6e |%s)\n"] |6 "\.Sen|
|000014d0| 64 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 72 65 |d the cu|rrent re|
|000014e0| 67 69 6f 6e 20 74 6f 20 | 74 68 65 20 69 6e 66 65 |gion to |the infe|
|000014f0| 72 69 6f 72 20 4c 69 73 | 70 20 70 72 6f 63 65 73 |rior Lis|p proces|
|00001500| 73 2e 22 20 22 72 22 5d | 29 0a 28 66 73 65 74 20 |s." "r"]|).(fset |
|00001510| 27 6c 69 73 70 2d 65 76 | 61 6c 2d 64 65 66 75 6e |'lisp-ev|al-defun|
|00001520| 20 23 5b 6e 69 6c 20 22 | 8a c0 20 88 60 19 c2 20 | #[nil "|.. .`.. |
|00001530| 88 c3 60 09 5c 22 2a 87 | 22 20 5b 65 6e 64 2d 6f |..`.\"*.|" [end-o|
|00001540| 66 2d 64 65 66 75 6e 20 | 65 6e 64 20 62 65 67 69 |f-defun |end begi|
|00001550| 6e 6e 69 6e 67 2d 6f 66 | 2d 64 65 66 75 6e 20 6c |nning-of|-defun l|
|00001560| 69 73 70 2d 65 76 61 6c | 2d 72 65 67 69 6f 6e 5d |isp-eval|-region]|
|00001570| 20 33 20 22 5c 0a 53 65 | 6e 64 20 74 68 65 20 63 | 3 "\.Se|nd the c|
|00001580| 75 72 72 65 6e 74 20 64 | 65 66 75 6e 20 74 6f 20 |urrent d|efun to |
|00001590| 74 68 65 20 69 6e 66 65 | 72 69 6f 72 20 4c 69 73 |the infe|rior Lis|
|000015a0| 70 20 70 72 6f 63 65 73 | 73 2e 22 20 6e 69 6c 5d |p proces|s." nil]|
|000015b0| 29 0a 28 66 73 65 74 20 | 27 6c 69 73 70 2d 63 6f |).(fset |'lisp-co|
|000015c0| 6d 70 69 6c 65 2d 72 65 | 67 69 6f 6e 20 23 5b 28 |mpile-re|gion #[(|
|000015d0| 73 74 61 72 74 20 65 6e | 64 29 20 22 c0 c1 21 1a |start en|d) "..!.|
|000015e0| c3 c4 c5 5c 6e 21 5c 22 | 1e 06 5c 6e ab 87 c7 5c |...\n!\"|..\n...\|
|000015f0| 6e 21 c8 3e ac 85 c9 ca | 21 aa a2 cb cc 0e 0d 0e |n!.>....|!.......|
|00001600| 0e 7b cf 51 d0 0e 06 d0 | d1 25 88 d2 5c 6e c3 0e |.{.Q....|.%..\n..|
|00001610| 13 0e 06 5c 22 5c 22 88 | d2 5c 6e c3 d4 0e 06 5c |...\"\".|.\n....\|
|00001620| 22 5c 22 2a 87 22 20 5b | 67 65 74 2d 62 75 66 66 |"\"*." [|get-buff|
|00001630| 65 72 2d 70 72 6f 63 65 | 73 73 20 22 2a 6c 69 73 |er-proce|ss "*lis|
|00001640| 70 2a 22 20 70 72 6f 63 | 20 66 6f 72 6d 61 74 20 |p*" proc| format |
|00001650| 22 2f 74 6d 70 2f 65 6d | 63 25 64 2e 6c 69 73 70 |"/tmp/em|c%d.lisp|
|00001660| 22 20 70 72 6f 63 65 73 | 73 2d 69 64 20 66 69 6c |" proces|s-id fil|
|00001670| 65 6e 61 6d 65 20 70 72 | 6f 63 65 73 73 2d 73 74 |ename pr|ocess-st|
|00001680| 61 74 75 73 20 28 72 75 | 6e 20 73 74 6f 70 29 20 |atus (ru|n stop) |
|00001690| 65 72 72 6f 72 20 22 4e | 6f 20 63 75 72 72 65 6e |error "N|o curren|
|000016a0| 74 20 6c 69 73 70 20 70 | 72 6f 63 65 73 73 22 20 |t lisp p|rocess" |
|000016b0| 77 72 69 74 65 2d 72 65 | 67 69 6f 6e 20 22 28 66 |write-re|gion "(f|
|000016c0| 75 6e 63 61 6c 6c 20 28 | 63 6f 6d 70 69 6c 65 20 |uncall (|compile |
|000016d0| 6e 69 6c 20 60 28 6c 61 | 6d 62 64 61 20 28 29 20 |nil `(la|mbda () |
|000016e0| 28 70 72 6f 67 6e 20 27 | 63 6f 6d 70 69 6c 65 20 |(progn '|compile |
|000016f0| 22 20 73 74 61 72 74 20 | 65 6e 64 20 22 29 29 29 |" start |end ")))|
|00001700| 29 5c 6e 22 20 6e 69 6c | 20 6e 6f 6d 65 73 73 61 |)\n" nil| nomessa|
|00001710| 67 65 20 73 65 6e 64 2d | 73 74 72 69 6e 67 20 69 |ge send-|string i|
|00001720| 6e 66 65 72 69 6f 72 2d | 6c 69 73 70 2d 6c 6f 61 |nferior-|lisp-loa|
|00001730| 64 2d 63 6f 6d 6d 61 6e | 64 20 22 28 64 65 6c 65 |d-comman|d "(dele|
|00001740| 74 65 2d 66 69 6c 65 20 | 25 73 29 5c 6e 22 5d 20 |te-file |%s)\n"] |
|00001750| 36 20 22 5c 0a 43 6f 6d | 70 69 6c 65 20 74 68 65 |6 "\.Com|pile the|
|00001760| 20 63 75 72 72 65 6e 74 | 20 72 65 67 69 6f 6e 20 | current| region |
|00001770| 69 6e 20 74 68 65 20 69 | 6e 66 65 72 69 6f 72 20 |in the i|nferior |
|00001780| 4c 69 73 70 20 70 72 6f | 63 65 73 73 2e 22 20 22 |Lisp pro|cess." "|
|00001790| 72 22 5d 29 0a 28 66 73 | 65 74 20 27 6c 69 73 70 |r"]).(fs|et 'lisp|
|000017a0| 2d 63 6f 6d 70 69 6c 65 | 2d 64 65 66 75 6e 20 23 |-compile|-defun #|
|000017b0| 5b 6e 69 6c 20 22 8a c0 | 20 88 60 19 c2 20 88 c3 |[nil "..| .`.. ..|
|000017c0| 60 09 5c 22 2a 87 22 20 | 5b 65 6e 64 2d 6f 66 2d |`.\"*." |[end-of-|
|000017d0| 64 65 66 75 6e 20 65 20 | 62 65 67 69 6e 6e 69 6e |defun e |beginnin|
|000017e0| 67 2d 6f 66 2d 64 65 66 | 75 6e 20 6c 69 73 70 2d |g-of-def|un lisp-|
|000017f0| 63 6f 6d 70 69 6c 65 2d | 72 65 67 69 6f 6e 5d 20 |compile-|region] |
|00001800| 33 20 22 5c 0a 43 6f 6d | 70 69 6c 65 20 74 68 65 |3 "\.Com|pile the|
|00001810| 20 63 75 72 72 65 6e 74 | 20 64 65 66 75 6e 20 69 | current| defun i|
|00001820| 6e 20 74 68 65 20 69 6e | 66 65 72 69 6f 72 20 4c |n the in|ferior L|
|00001830| 69 73 70 20 70 72 6f 63 | 65 73 73 2e 22 20 6e 69 |isp proc|ess." ni|
|00001840| 6c 5d 29 0a 28 64 65 66 | 76 61 72 20 6c 69 73 70 |l]).(def|var lisp|
|00001850| 2d 70 72 65 76 2d 6c 2f | 63 2d 64 69 72 2f 66 69 |-prev-l/|c-dir/fi|
|00001860| 6c 65 20 6e 69 6c 20 22 | 5c 0a 53 61 76 65 73 20 |le nil "|\.Saves |
|00001870| 74 68 65 20 28 64 69 72 | 65 63 74 6f 72 79 20 2e |the (dir|ectory .|
|00001880| 20 66 69 6c 65 29 20 70 | 61 69 72 20 75 73 65 64 | file) p|air used|
|00001890| 20 69 6e 20 74 68 65 20 | 6c 61 73 74 20 6c 69 73 | in the |last lis|
|000018a0| 70 2d 6c 6f 61 64 2d 66 | 69 6c 65 20 6f 72 0a 6c |p-load-f|ile or.l|
|000018b0| 69 73 70 2d 63 6f 6d 70 | 69 6c 65 2d 66 69 6c 65 |isp-comp|ile-file|
|000018c0| 20 63 6f 6d 6d 61 6e 64 | 2e 20 55 73 65 64 20 66 | command|. Used f|
|000018d0| 6f 72 20 64 65 74 65 72 | 6d 69 6e 69 6e 67 20 74 |or deter|mining t|
|000018e0| 68 65 20 64 65 66 61 75 | 6c 74 20 69 6e 20 74 68 |he defau|lt in th|
|000018f0| 65 20 0a 6e 65 78 74 20 | 6f 6e 65 2e 22 29 0a 28 |e .next |one.").(|
|00001900| 64 65 66 76 61 72 20 6c | 69 73 70 2d 73 6f 75 72 |defvar l|isp-sour|
|00001910| 63 65 2d 6d 6f 64 65 73 | 20 27 28 6c 69 73 70 2d |ce-modes| '(lisp-|
|00001920| 6d 6f 64 65 29 20 22 5c | 0a 2a 55 73 65 64 20 74 |mode) "\|.*Used t|
|00001930| 6f 20 64 65 74 65 72 6d | 69 6e 65 20 69 66 20 61 |o determ|ine if a|
|00001940| 20 62 75 66 66 65 72 20 | 63 6f 6e 74 61 69 6e 73 | buffer |contains|
|00001950| 20 4c 69 73 70 20 73 6f | 75 72 63 65 20 63 6f 64 | Lisp so|urce cod|
|00001960| 65 2e 0a 49 66 20 69 74 | 27 73 20 6c 6f 61 64 65 |e..If it|'s loade|
|00001970| 64 20 69 6e 74 6f 20 61 | 20 62 75 66 66 65 72 20 |d into a| buffer |
|00001980| 74 68 61 74 20 69 73 20 | 69 6e 20 6f 6e 65 20 6f |that is |in one o|
|00001990| 66 20 74 68 65 73 65 20 | 6d 61 6a 6f 72 20 6d 6f |f these |major mo|
|000019a0| 64 65 73 2c 20 69 74 27 | 73 0a 63 6f 6e 73 69 64 |des, it'|s.consid|
|000019b0| 65 72 65 64 20 61 20 6c | 69 73 70 20 73 6f 75 72 |ered a l|isp sour|
|000019c0| 63 65 20 66 69 6c 65 20 | 62 79 20 6c 69 73 70 2d |ce file |by lisp-|
|000019d0| 6c 6f 61 64 2d 66 69 6c | 65 20 61 6e 64 20 6c 69 |load-fil|e and li|
|000019e0| 73 70 2d 63 6f 6d 70 69 | 6c 65 2d 66 69 6c 65 2e |sp-compi|le-file.|
|000019f0| 0a 55 73 65 64 20 62 79 | 20 74 68 65 73 65 20 63 |.Used by| these c|
|00001a00| 6f 6d 6d 61 6e 64 73 20 | 74 6f 20 64 65 74 65 72 |ommands |to deter|
|00001a10| 6d 69 6e 65 20 64 65 66 | 61 75 6c 74 73 2e 22 29 |mine def|aults.")|
|00001a20| 0a 28 66 73 65 74 20 27 | 6c 69 73 70 2d 6c 6f 61 |.(fset '|lisp-loa|
|00001a30| 64 2d 66 69 6c 65 20 23 | 5b 28 66 69 6c 65 2d 6e |d-file #|[(file-n|
|00001a40| 61 6d 65 29 20 22 c0 09 | 21 88 c2 09 21 c3 09 21 |ame) "..|!...!..!|
|00001a50| 42 14 c5 c6 c7 0e 08 09 | 5c 22 5c 22 87 22 20 5b |B.......|\"\"." [|
|00001a60| 63 6f 6d 69 6e 74 2d 63 | 68 65 63 6b 2d 73 6f 75 |comint-c|heck-sou|
|00001a70| 72 63 65 20 66 69 6c 65 | 2d 6e 61 6d 65 20 66 69 |rce file|-name fi|
|00001a80| 6c 65 2d 6e 61 6d 65 2d | 64 69 72 65 63 74 6f 72 |le-name-|director|
|00001a90| 79 20 66 69 6c 65 2d 6e | 61 6d 65 2d 6e 6f 6e 64 |y file-n|ame-nond|
|00001aa0| 69 72 65 63 74 6f 72 79 | 20 6c 69 73 70 2d 70 72 |irectory| lisp-pr|
|00001ab0| 65 76 2d 6c 2f 63 2d 64 | 69 72 2f 66 69 6c 65 20 |ev-l/c-d|ir/file |
|00001ac0| 73 65 6e 64 2d 73 74 72 | 69 6e 67 20 22 6c 69 73 |send-str|ing "lis|
|00001ad0| 70 22 20 66 6f 72 6d 61 | 74 20 69 6e 66 65 72 69 |p" forma|t inferi|
|00001ae0| 6f 72 2d 6c 69 73 70 2d | 6c 6f 61 64 2d 63 6f 6d |or-lisp-|load-com|
|00001af0| 6d 61 6e 64 5d 20 35 20 | 22 5c 0a 4c 6f 61 64 20 |mand] 5 |"\.Load |
|00001b00| 61 20 6c 69 73 70 20 66 | 69 6c 65 20 69 6e 74 6f |a lisp f|ile into|
|00001b10| 20 74 68 65 20 69 6e 66 | 65 72 69 6f 72 20 4c 69 | the inf|erior Li|
|00001b20| 73 70 20 70 72 6f 63 65 | 73 73 2e 22 20 28 63 6f |sp proce|ss." (co|
|00001b30| 6d 69 6e 74 2d 67 65 74 | 2d 73 6f 75 72 63 65 20 |mint-get|-source |
|00001b40| 22 4c 6f 61 64 20 4c 69 | 73 70 20 66 69 6c 65 3a |"Load Li|sp file:|
|00001b50| 20 22 20 6c 69 73 70 2d | 70 72 65 76 2d 6c 2f 63 | " lisp-|prev-l/c|
|00001b60| 2d 64 69 72 2f 66 69 6c | 65 20 6c 69 73 70 2d 73 |-dir/fil|e lisp-s|
|00001b70| 6f 75 72 63 65 2d 6d 6f | 64 65 73 20 6e 69 6c 29 |ource-mo|des nil)|
|00001b80| 5d 29 0a 28 66 73 65 74 | 20 27 6c 69 73 70 2d 63 |]).(fset| 'lisp-c|
|00001b90| 6f 6d 70 69 6c 65 2d 66 | 69 6c 65 20 23 5b 28 66 |ompile-f|ile #[(f|
|00001ba0| 69 6c 65 2d 6e 61 6d 65 | 29 20 22 c0 09 21 88 c2 |ile-name|) "..!..|
|00001bb0| 09 21 c3 09 21 42 14 c5 | c6 c7 09 c8 51 5c 22 87 |.!..!B..|....Q\".|
|00001bc0| 22 20 5b 63 6f 6d 69 6e | 74 2d 63 68 65 63 6b 2d |" [comin|t-check-|
|00001bd0| 73 6f 75 72 63 65 20 66 | 69 6c 65 2d 6e 61 6d 65 |source f|ile-name|
|00001be0| 20 66 69 6c 65 2d 6e 61 | 6d 65 2d 64 69 72 65 63 | file-na|me-direc|
|00001bf0| 74 6f 72 79 20 66 69 6c | 65 2d 6e 61 6d 65 2d 6e |tory fil|e-name-n|
|00001c00| 6f 6e 64 69 72 65 63 74 | 6f 72 79 20 6c 69 73 70 |ondirect|ory lisp|
|00001c10| 2d 70 72 65 76 2d 6c 2f | 63 2d 64 69 72 2f 66 69 |-prev-l/|c-dir/fi|
|00001c20| 6c 65 20 73 65 6e 64 2d | 73 74 72 69 6e 67 20 22 |le send-|string "|
|00001c30| 6c 69 73 70 22 20 22 28 | 63 6f 6d 70 69 6c 65 2d |lisp" "(|compile-|
|00001c40| 66 69 6c 65 20 5c 22 22 | 20 22 5c 22 29 5c 6e 22 |file \""| "\")\n"|
|00001c50| 5d 20 35 20 22 5c 0a 43 | 6f 6d 70 69 6c 65 20 61 |] 5 "\.C|ompile a|
|00001c60| 20 4c 69 73 70 20 66 69 | 6c 65 20 69 6e 20 74 68 | Lisp fi|le in th|
|00001c70| 65 20 69 6e 66 65 72 69 | 6f 72 20 4c 69 73 70 20 |e inferi|or Lisp |
|00001c80| 70 72 6f 63 65 73 73 2e | 22 20 28 63 6f 6d 69 6e |process.|" (comin|
|00001c90| 74 2d 67 65 74 2d 73 6f | 75 72 63 65 20 22 43 6f |t-get-so|urce "Co|
|00001ca0| 6d 70 69 6c 65 20 4c 69 | 73 70 20 66 69 6c 65 3a |mpile Li|sp file:|
|00001cb0| 20 22 20 6c 69 73 70 2d | 70 72 65 76 2d 6c 2f 63 | " lisp-|prev-l/c|
|00001cc0| 2d 64 69 72 2f 66 69 6c | 65 20 6c 69 73 70 2d 73 |-dir/fil|e lisp-s|
|00001cd0| 6f 75 72 63 65 2d 6d 6f | 64 65 73 20 6e 69 6c 29 |ource-mo|des nil)|
|00001ce0| 5d 29 0a | |]). | |
+--------+-------------------------+-------------------------+--------+--------+