home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / gnu / lucid / lemacs-19.6 / lisp / vms / vmsproc.elc < prev    next >
Emacs Compiled Lisp  |  1993-04-01  |  2.6 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 | 39 3a 33 32 3a 31 31 20 |Feb 1 1|9:32:11 |
|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 76 6d 73 | 2f 76 6d 73 70 72 6f 63 |lisp/vms|/vmsproc|
|00000080| 2e 65 6c 0a 3b 3b 3b 20 | 65 6d 61 63 73 20 76 65 |.el.;;; |emacs ve|
|00000090| 72 73 69 6f 6e 20 31 39 | 2e 34 2e 31 33 20 4c 75 |rsion 19|.4.13 Lu|
|000000a0| 63 69 64 2e 0a 3b 3b 3b | 20 62 79 74 65 63 6f 6d |cid..;;;| bytecom|
|000000b0| 70 20 76 65 72 73 69 6f | 6e 20 32 2e 31 30 3b 20 |p versio|n 2.10; |
|000000c0| 20 31 2d 66 65 62 2d 39 | 33 2e 0a 3b 3b 3b 20 6f | 1-feb-9|3..;;; o|
|000000d0| 70 74 69 6d 69 7a 61 74 | 69 6f 6e 20 69 73 20 6f |ptimizat|ion is o|
|000000e0| 6e 2e 0a 3b 3b 3b 20 74 | 68 69 73 20 66 69 6c 65 |n..;;; t|his file|
|000000f0| 20 75 73 65 73 20 6f 70 | 63 6f 64 65 73 20 77 68 | uses op|codes wh|
|00000100| 69 63 68 20 64 6f 20 6e | 6f 74 20 65 78 69 73 74 |ich do n|ot exist|
|00000110| 20 69 6e 20 45 6d 61 63 | 73 31 38 2e 0a 0a 28 69 | in Emac|s18...(i|
|00000120| 66 20 28 61 6e 64 20 28 | 62 6f 75 6e 64 70 20 27 |f (and (|boundp '|
|00000130| 65 6d 61 63 73 2d 76 65 | 72 73 69 6f 6e 29 0a 09 |emacs-ve|rsion)..|
|00000140| 20 28 6f 72 20 28 61 6e | 64 20 28 62 6f 75 6e 64 | (or (an|d (bound|
|00000150| 70 20 27 65 70 6f 63 68 | 3a 3a 76 65 72 73 69 6f |p 'epoch|::versio|
|00000160| 6e 29 20 65 70 6f 63 68 | 3a 3a 76 65 72 73 69 6f |n) epoch|::versio|
|00000170| 6e 29 0a 09 20 20 20 20 | 20 28 73 74 72 69 6e 67 |n).. | (string|
|00000180| 2d 6c 65 73 73 70 20 65 | 6d 61 63 73 2d 76 65 72 |-lessp e|macs-ver|
|00000190| 73 69 6f 6e 20 22 31 39 | 22 29 29 29 0a 20 20 20 |sion "19|"))). |
|000001a0| 20 28 65 72 72 6f 72 20 | 22 54 68 69 73 20 66 69 | (error |"This fi|
|000001b0| 6c 65 20 77 61 73 20 63 | 6f 6d 70 69 6c 65 64 20 |le was c|ompiled |
|000001c0| 66 6f 72 20 45 6d 61 63 | 73 31 39 2e 22 29 29 0a |for Emac|s19.")).|
|000001d0| 0a 28 64 65 66 76 61 72 | 20 64 69 73 70 6c 61 79 |.(defvar| display|
|000001e0| 2d 73 75 62 70 72 6f 63 | 65 73 73 2d 77 69 6e 64 |-subproc|ess-wind|
|000001f0| 6f 77 20 6e 69 6c 20 22 | 5c 0a 49 66 20 6e 6f 6e |ow nil "|\.If non|
|00000200| 2d 6e 69 6c 2c 20 74 68 | 65 20 73 75 70 72 6f 63 |-nil, th|e suproc|
|00000210| 65 73 73 20 77 69 6e 64 | 6f 77 20 69 73 20 64 69 |ess wind|ow is di|
|00000220| 73 70 6c 61 79 65 64 20 | 77 68 65 6e 65 76 65 72 |splayed |whenever|
|00000230| 20 69 6e 70 75 74 20 69 | 73 20 72 65 63 65 69 76 | input i|s receiv|
|00000240| 65 64 2e 22 29 0a 28 64 | 65 66 76 61 72 20 63 6f |ed.").(d|efvar co|
|00000250| 6d 6d 61 6e 64 2d 70 72 | 65 66 69 78 2d 73 74 72 |mmand-pr|efix-str|
|00000260| 69 6e 67 20 22 24 20 22 | 20 22 5c 0a 53 74 72 69 |ing "$ "| "\.Stri|
|00000270| 6e 67 20 74 6f 20 69 6e | 73 65 72 74 20 74 6f 20 |ng to in|sert to |
|00000280| 64 69 73 74 69 6e 67 75 | 69 73 68 20 63 6f 6d 6d |distingu|ish comm|
|00000290| 61 6e 64 73 20 65 6e 74 | 65 72 65 64 20 62 79 20 |ands ent|ered by |
|000002a0| 75 73 65 72 2e 22 29 0a | 28 62 79 74 65 2d 63 6f |user.").|(byte-co|
|000002b0| 64 65 20 22 c0 c1 21 ac | 82 c2 11 c0 c3 21 ac 82 |de "..!.|.....!..|
|000002c0| c2 13 0b ac 8f c4 20 13 | c5 0b c6 c7 23 88 c5 0b |...... .|....#...|
|000002d0| c8 c9 23 88 c2 87 22 20 | 5b 62 6f 75 6e 64 70 20 |..#..." |[boundp |
|000002e0| 73 75 62 70 72 6f 63 65 | 73 73 2d 72 75 6e 6e 69 |subproce|ss-runni|
|000002f0| 6e 67 20 6e 69 6c 20 63 | 6f 6d 6d 61 6e 64 2d 6d |ng nil c|ommand-m|
|00000300| 6f 64 65 2d 6d 61 70 20 | 6d 61 6b 65 2d 73 70 61 |ode-map |make-spa|
|00000310| 72 73 65 2d 6b 65 79 6d | 61 70 20 64 65 66 69 6e |rse-keym|ap defin|
|00000320| 65 2d 6b 65 79 20 22 0d | 22 20 63 6f 6d 6d 61 6e |e-key ".|" comman|
|00000330| 64 2d 73 65 6e 64 2d 69 | 6e 70 75 74 20 22 15 22 |d-send-i|nput "."|
|00000340| 20 63 6f 6d 6d 61 6e 64 | 2d 6b 69 6c 6c 2d 6c 69 | command|-kill-li|
|00000350| 6e 65 5d 20 34 29 0a 28 | 66 73 65 74 20 27 73 75 |ne] 4).(|fset 'su|
|00000360| 62 70 72 6f 63 65 73 73 | 2d 69 6e 70 75 74 20 23 |bprocess|-input #|
|00000370| 5b 28 6e 61 6d 65 20 73 | 74 72 29 20 22 08 ab 84 |[(name s|tr) "...|
|00000380| c1 5c 6e 21 88 70 1b 5c | 6e 71 88 64 62 88 0c 63 |.\n!.p.\|nq.db..c|
|00000390| 88 c5 63 88 0b 71 29 87 | 22 20 5b 64 69 73 70 6c |..c..q).|" [displ|
|000003a0| 61 79 2d 73 75 62 70 72 | 6f 63 65 73 73 2d 77 69 |ay-subpr|ocess-wi|
|000003b0| 6e 64 6f 77 20 64 69 73 | 70 6c 61 79 2d 62 75 66 |ndow dis|play-buf|
|000003c0| 66 65 72 20 73 75 62 70 | 72 6f 63 65 73 73 2d 62 |fer subp|rocess-b|
|000003d0| 75 66 20 6f 6c 64 2d 62 | 75 66 66 65 72 20 73 74 |uf old-b|uffer st|
|000003e0| 72 20 31 30 5d 20 32 20 | 22 5c 0a 48 61 6e 64 6c |r 10] 2 |"\.Handl|
|000003f0| 65 73 20 69 6e 70 75 74 | 20 66 72 6f 6d 20 61 20 |es input| from a |
|00000400| 73 75 62 70 72 6f 63 65 | 73 73 2e 20 20 43 61 6c |subproce|ss. Cal|
|00000410| 6c 65 64 20 62 79 20 45 | 6d 61 63 73 2e 22 5d 29 |led by E|macs."])|
|00000420| 0a 28 66 73 65 74 20 27 | 73 75 62 70 72 6f 63 65 |.(fset '|subproce|
|00000430| 73 73 2d 65 78 69 74 20 | 23 5b 28 6e 61 6d 65 29 |ss-exit |#[(name)|
|00000440| 20 22 c0 89 11 87 22 20 | 5b 6e 69 6c 20 73 75 62 | "...." |[nil sub|
|00000450| 70 72 6f 63 65 73 73 2d | 72 75 6e 6e 69 6e 67 5d |process-|running]|
|00000460| 20 32 20 22 5c 0a 43 61 | 6c 6c 65 64 20 62 79 20 | 2 "\.Ca|lled by |
|00000470| 45 6d 61 63 73 20 75 70 | 6f 6e 20 73 75 62 70 72 |Emacs up|on subpr|
|00000480| 6f 63 65 73 73 20 65 78 | 69 74 2e 22 5d 29 0a 28 |ocess ex|it."]).(|
|00000490| 66 73 65 74 20 27 73 74 | 61 72 74 2d 73 75 62 70 |fset 'st|art-subp|
|000004a0| 72 6f 63 65 73 73 20 23 | 5b 6e 69 6c 20 22 08 ab |rocess #|[nil "..|
|000004b0| 84 c1 c2 21 88 c3 c4 21 | 15 8a 0d 71 88 c6 0e 07 |...!...!|...q....|
|000004c0| 21 88 29 c8 c9 ca cb 23 | 89 10 ad 84 cc c9 cd 5c |!.)....#|.......\|
|000004d0| 22 87 22 20 5b 73 75 62 | 70 72 6f 63 65 73 73 2d |"." [sub|process-|
|000004e0| 72 75 6e 6e 69 6e 67 20 | 72 65 74 75 72 6e 20 74 |running |return t|
|000004f0| 20 67 65 74 2d 62 75 66 | 66 65 72 2d 63 72 65 61 | get-buf|fer-crea|
|00000500| 74 65 20 22 2a 43 4f 4d | 4d 41 4e 44 2a 22 20 73 |te "*COM|MAND*" s|
|00000510| 75 62 70 72 6f 63 65 73 | 73 2d 62 75 66 20 75 73 |ubproces|s-buf us|
|00000520| 65 2d 6c 6f 63 61 6c 2d | 6d 61 70 20 63 6f 6d 6d |e-local-|map comm|
|00000530| 61 6e 64 2d 6d 6f 64 65 | 2d 6d 61 70 20 73 70 61 |and-mode|-map spa|
|00000540| 77 6e 2d 73 75 62 70 72 | 6f 63 65 73 73 20 31 20 |wn-subpr|ocess 1 |
|00000550| 73 75 62 70 72 6f 63 65 | 73 73 2d 69 6e 70 75 74 |subproce|ss-input|
|00000560| 20 73 75 62 70 72 6f 63 | 65 73 73 2d 65 78 69 74 | subproc|ess-exit|
|00000570| 20 73 65 6e 64 2d 63 6f | 6d 6d 61 6e 64 2d 74 6f | send-co|mmand-to|
|00000580| 2d 73 75 62 70 72 6f 63 | 65 73 73 20 22 4f 4e 20 |-subproc|ess "ON |
|00000590| 53 45 56 45 52 45 5f 45 | 52 52 4f 52 20 54 48 45 |SEVERE_E|RROR THE|
|000005a0| 4e 20 43 4f 4e 54 49 4e | 55 45 22 5d 20 35 20 22 |N CONTIN|UE"] 5 "|
|000005b0| 5c 0a 53 70 61 77 6e 73 | 20 61 6e 20 61 73 79 6e |\.Spawns| an asyn|
|000005c0| 63 68 72 6f 6e 6f 75 73 | 20 73 75 62 70 72 6f 63 |chronous| subproc|
|000005d0| 65 73 73 20 77 69 74 68 | 20 6f 75 74 70 75 74 20 |ess with| output |
|000005e0| 72 65 64 69 72 65 63 74 | 65 64 20 74 6f 0a 74 68 |redirect|ed to.th|
|000005f0| 65 20 62 75 66 66 65 72 | 20 2a 43 4f 4d 4d 41 4e |e buffer| *COMMAN|
|00000600| 44 2a 2e 20 20 57 69 74 | 68 69 6e 20 74 68 69 73 |D*. Wit|hin this|
|00000610| 20 62 75 66 66 65 72 2c | 20 75 73 65 20 43 2d 6d | buffer,| use C-m|
|00000620| 20 74 6f 20 73 65 6e 64 | 0a 74 68 65 20 6c 61 73 | to send|.the las|
|00000630| 74 20 6c 69 6e 65 20 74 | 6f 20 74 68 65 20 73 75 |t line t|o the su|
|00000640| 62 70 72 6f 63 65 73 73 | 20 6f 72 20 74 6f 20 62 |bprocess| or to b|
|00000650| 72 69 6e 67 20 61 6e 6f | 74 68 65 72 20 6c 69 6e |ring ano|ther lin|
|00000660| 65 20 74 6f 0a 74 68 65 | 20 65 6e 64 2e 22 5d 29 |e to.the| end."])|
|00000670| 0a 28 66 73 65 74 20 27 | 73 75 62 70 72 6f 63 65 |.(fset '|subproce|
|00000680| 73 73 2d 63 6f 6d 6d 61 | 6e 64 2d 74 6f 2d 62 75 |ss-comma|nd-to-bu|
|00000690| 66 66 65 72 20 23 5b 28 | 63 6f 6d 6d 61 6e 64 20 |ffer #[(|command |
|000006a0| 62 75 66 66 65 72 29 20 | 22 c0 89 19 1a 0b c4 c5 |buffer) |".......|
|000006b0| c6 0b 5c 22 4f 12 0b c5 | c6 0b 5c 22 c0 4f 11 c7 |..\"O...|..\".O..|
|000006c0| 5c 6e c0 0e 08 c0 c9 09 | 26 06 2a 87 22 20 5b 6e |\n......|&.*." [n|
|000006d0| 69 6c 20 61 72 67 73 20 | 63 6d 64 20 63 6f 6d 6d |il args |cmd comm|
|000006e0| 61 6e 64 20 30 20 73 74 | 72 69 6e 67 2d 6d 61 74 |and 0 st|ring-mat|
|000006f0| 63 68 20 22 20 22 20 63 | 61 6c 6c 2d 70 72 6f 63 |ch " " c|all-proc|
|00000700| 65 73 73 20 62 75 66 66 | 65 72 20 22 2a 64 63 6c |ess buff|er "*dcl|
|00000710| 2a 22 5d 20 37 20 22 5c | 0a 45 78 65 63 75 74 65 |*"] 7 "\|.Execute|
|00000720| 20 43 4f 4d 4d 41 4e 44 | 20 61 6e 64 20 72 65 64 | COMMAND| and red|
|00000730| 69 72 65 63 74 20 6f 75 | 74 70 75 74 20 69 6e 74 |irect ou|tput int|
|00000740| 6f 20 42 55 46 46 45 52 | 2e 22 5d 29 0a 28 66 73 |o BUFFER|."]).(fs|
|00000750| 65 74 20 27 73 75 62 70 | 72 6f 63 65 73 73 2d 63 |et 'subp|rocess-c|
|00000760| 6f 6d 6d 61 6e 64 20 23 | 5b 6e 69 6c 20 22 08 ac |ommand #|[nil "..|
|00000770| 83 c1 20 88 08 ad 86 c2 | 0b 21 88 64 62 87 22 20 |.. .....|.!.db." |
|00000780| 5b 73 75 62 70 72 6f 63 | 65 73 73 2d 72 75 6e 6e |[subproc|ess-runn|
|00000790| 69 6e 67 20 73 74 61 72 | 74 2d 73 75 62 70 72 6f |ing star|t-subpro|
|000007a0| 63 65 73 73 20 70 6f 70 | 2d 74 6f 2d 62 75 66 66 |cess pop|-to-buff|
|000007b0| 65 72 20 73 75 62 70 72 | 6f 63 65 73 73 2d 62 75 |er subpr|ocess-bu|
|000007c0| 66 5d 20 32 20 22 5c 0a | 53 74 61 72 74 73 20 61 |f] 2 "\.|Starts a|
|000007d0| 73 79 6e 63 68 72 6f 6e | 6f 75 73 20 73 75 62 70 |synchron|ous subp|
|000007e0| 72 6f 63 65 73 73 20 69 | 66 20 6e 6f 74 20 72 75 |rocess i|f not ru|
|000007f0| 6e 6e 69 6e 67 20 61 6e | 64 20 73 77 69 74 63 68 |nning an|d switch|
|00000800| 65 73 20 74 6f 20 69 74 | 73 20 77 69 6e 64 6f 77 |es to it|s window|
|00000810| 2e 22 20 6e 69 6c 5d 29 | 0a 28 66 73 65 74 20 27 |." nil])|.(fset '|
|00000820| 63 6f 6d 6d 61 6e 64 2d | 73 65 6e 64 2d 69 6e 70 |command-|send-inp|
|00000830| 75 74 20 23 5b 6e 69 6c | 20 22 c0 79 88 60 c1 7f |ut #[nil| ".y.`..|
|00000840| 88 60 7b 1a 6d ab a1 0b | ac 83 c4 20 88 0b ad b8 |.`{.m...|... ....|
|00000850| c0 79 88 c5 c6 5c 6e 5c | 22 88 0e 07 ab 87 c0 79 |.y...\n\|"......y|
|00000860| 88 0e 07 63 88 c8 c6 21 | aa a0 c9 20 88 ca 20 88 |...c...!|... .. .|
|00000870| c8 c6 21 88 0e 07 5c 6e | c0 0e 07 47 4f 98 ab 89 |..!...\n|...GO...|
|00000880| 5c 6e 0e 07 47 c1 4f 63 | aa 82 5c 6e 63 29 87 22 |\n..G.Oc|..\nc)."|
|00000890| 20 5b 30 20 6e 69 6c 20 | 63 75 72 72 65 6e 74 2d | [0 nil |current-|
|000008a0| 6c 69 6e 65 20 73 75 62 | 70 72 6f 63 65 73 73 2d |line sub|process-|
|000008b0| 72 75 6e 6e 69 6e 67 20 | 73 74 61 72 74 2d 73 75 |running |start-su|
|000008c0| 62 70 72 6f 63 65 73 73 | 20 73 65 6e 64 2d 63 6f |bprocess| send-co|
|000008d0| 6d 6d 61 6e 64 2d 74 6f | 2d 73 75 62 70 72 6f 63 |mmand-to|-subproc|
|000008e0| 65 73 73 20 31 20 63 6f | 6d 6d 61 6e 64 2d 70 72 |ess 1 co|mmand-pr|
|000008f0| 65 66 69 78 2d 73 74 72 | 69 6e 67 20 6e 65 78 74 |efix-str|ing next|
|00000900| 2d 6c 69 6e 65 20 65 6e | 64 2d 6f 66 2d 62 75 66 |-line en|d-of-buf|
|00000910| 66 65 72 20 62 61 63 6b | 77 61 72 64 2d 63 68 61 |fer back|ward-cha|
|00000920| 72 5d 20 34 20 22 5c 0a | 49 66 20 61 74 20 6c 61 |r] 4 "\.|If at la|
|00000930| 73 74 20 6c 69 6e 65 20 | 6f 66 20 62 75 66 66 65 |st line |of buffe|
|00000940| 72 2c 20 73 65 6e 64 73 | 20 74 68 65 20 63 75 72 |r, sends| the cur|
|00000950| 72 65 6e 74 20 6c 69 6e | 65 20 74 6f 0a 74 68 65 |rent lin|e to.the|
|00000960| 20 73 70 61 77 6e 65 64 | 20 73 75 62 70 72 6f 63 | spawned| subproc|
|00000970| 65 73 73 2e 20 20 4f 74 | 68 65 72 77 69 73 65 20 |ess. Ot|herwise |
|00000980| 62 72 69 6e 67 73 20 62 | 61 63 6b 20 63 75 72 72 |brings b|ack curr|
|00000990| 65 6e 74 0a 6c 69 6e 65 | 20 74 6f 20 74 68 65 20 |ent.line| to the |
|000009a0| 6c 61 73 74 20 6c 69 6e | 65 20 66 6f 72 20 72 65 |last lin|e for re|
|000009b0| 73 75 62 6d 69 73 73 69 | 6f 6e 2e 22 20 6e 69 6c |submissi|on." nil|
|000009c0| 5d 29 0a 28 66 73 65 74 | 20 27 63 6f 6d 6d 61 6e |]).(fset| 'comman|
|000009d0| 64 2d 6b 69 6c 6c 2d 6c | 69 6e 65 20 23 5b 6e 69 |d-kill-l|ine #[ni|
|000009e0| 6c 20 22 c0 79 88 c1 20 | 87 22 20 5b 30 20 6b 69 |l ".y.. |." [0 ki|
|000009f0| 6c 6c 2d 6c 69 6e 65 5d | 20 31 20 22 5c 0a 4b 69 |ll-line]| 1 "\.Ki|
|00000a00| 6c 6c 73 20 74 68 65 20 | 63 75 72 72 65 6e 74 20 |lls the |current |
|00000a10| 6c 69 6e 65 2e 20 20 55 | 73 65 64 20 69 6e 20 63 |line. U|sed in c|
|00000a20| 6f 6d 6d 61 6e 64 20 6d | 6f 64 65 2e 22 20 6e 69 |ommand m|ode." ni|
|00000a30| 6c 5d 29 0a 28 64 65 66 | 69 6e 65 2d 6b 65 79 20 |l]).(def|ine-key |
|00000a40| 65 73 63 2d 6d 61 70 20 | 22 24 22 20 27 73 75 62 |esc-map |"$" 'sub|
|00000a50| 70 72 6f 63 65 73 73 2d | 63 6f 6d 6d 61 6e 64 29 |process-|command)|
|00000a60| 0a | |. | |
+--------+-------------------------+-------------------------+--------+--------+