home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / editors / emacs / xemacs / xemacs-1.006 / xemacs-1 / lib / xemacs-19.13 / lisp / packages / remote.elc < prev    next >
Emacs Compiled Lisp  |  1995-08-29  |  9.8 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 63 74 68 6f 6d 70 40 |piled by| cthomp@|
|00000020| 77 69 6c 6c 6f 77 2e 63 | 73 2e 75 69 75 63 2e 65 |willow.c|s.uiuc.e|
|00000030| 64 75 20 6f 6e 20 54 75 | 65 20 41 75 67 20 32 39 |du on Tu|e Aug 29|
|00000040| 20 31 34 3a 31 36 3a 33 | 37 20 31 39 39 35 0a 3b | 14:16:3|7 1995.;|
|00000050| 3b 3b 20 66 72 6f 6d 20 | 66 69 6c 65 20 2f 78 65 |;; from |file /xe|
|00000060| 6d 61 63 73 2f 78 65 6d | 61 63 73 2d 31 39 2e 31 |macs/xem|acs-19.1|
|00000070| 33 2d 72 65 6c 65 61 73 | 65 2f 65 64 69 74 6f 72 |3-releas|e/editor|
|00000080| 2f 6c 69 73 70 2f 70 61 | 63 6b 61 67 65 73 2f 72 |/lisp/pa|ckages/r|
|00000090| 65 6d 6f 74 65 2e 65 6c | 0a 3b 3b 3b 20 65 6d 61 |emote.el|.;;; ema|
|000000a0| 63 73 20 76 65 72 73 69 | 6f 6e 20 31 39 2e 31 33 |cs versi|on 19.13|
|000000b0| 20 58 45 6d 61 63 73 20 | 4c 75 63 69 64 2e 0a 3b | XEmacs |Lucid..;|
|000000c0| 3b 3b 20 62 79 74 65 63 | 6f 6d 70 20 76 65 72 73 |;; bytec|omp vers|
|000000d0| 69 6f 6e 20 32 2e 32 35 | 3b 20 31 2d 53 65 70 2d |ion 2.25|; 1-Sep-|
|000000e0| 39 34 2e 0a 3b 3b 3b 20 | 6f 70 74 69 6d 69 7a 61 |94..;;; |optimiza|
|000000f0| 74 69 6f 6e 20 69 73 20 | 6f 6e 2e 0a 3b 3b 3b 20 |tion is |on..;;; |
|00000100| 74 68 69 73 20 66 69 6c | 65 20 75 73 65 73 20 6f |this fil|e uses o|
|00000110| 70 63 6f 64 65 73 20 77 | 68 69 63 68 20 64 6f 20 |pcodes w|hich do |
|00000120| 6e 6f 74 20 65 78 69 73 | 74 20 69 6e 20 45 6d 61 |not exis|t in Ema|
|00000130| 63 73 20 31 38 2e 0a 0a | 28 69 66 20 28 61 6e 64 |cs 18...|(if (and|
|00000140| 20 28 62 6f 75 6e 64 70 | 20 27 65 6d 61 63 73 2d | (boundp| 'emacs-|
|00000150| 76 65 72 73 69 6f 6e 29 | 0a 09 20 28 6f 72 20 28 |version)|.. (or (|
|00000160| 61 6e 64 20 28 62 6f 75 | 6e 64 70 20 27 65 70 6f |and (bou|ndp 'epo|
|00000170| 63 68 3a 3a 76 65 72 73 | 69 6f 6e 29 20 65 70 6f |ch::vers|ion) epo|
|00000180| 63 68 3a 3a 76 65 72 73 | 69 6f 6e 29 0a 09 20 20 |ch::vers|ion).. |
|00000190| 20 20 20 28 73 74 72 69 | 6e 67 2d 6c 65 73 73 70 | (stri|ng-lessp|
|000001a0| 20 65 6d 61 63 73 2d 76 | 65 72 73 69 6f 6e 20 22 | emacs-v|ersion "|
|000001b0| 31 39 22 29 29 29 0a 20 | 20 20 20 28 65 72 72 6f |19"))). | (erro|
|000001c0| 72 20 22 54 68 69 73 20 | 66 69 6c 65 20 77 61 73 |r "This |file was|
|000001d0| 20 63 6f 6d 70 69 6c 65 | 64 20 66 6f 72 20 45 6d | compile|d for Em|
|000001e0| 61 63 73 20 31 39 2e 22 | 29 29 0a 0a 28 64 65 66 |acs 19."|))..(def|
|000001f0| 76 61 72 20 64 65 66 61 | 75 6c 74 2d 72 65 6d 6f |var defa|ult-remo|
|00000200| 74 65 2d 68 6f 73 74 20 | 22 6e 61 76 69 65 72 3a |te-host |"navier:|
|00000210| 22 20 22 5c 0a 54 68 65 | 20 68 6f 73 74 20 74 6f |" "\.The| host to|
|00000220| 20 75 73 65 20 66 6f 72 | 20 72 65 6d 6f 74 65 20 | use for| remote |
|00000230| 66 69 6c 65 20 6f 70 65 | 72 61 74 69 6f 6e 73 20 |file ope|rations |
|00000240| 77 68 65 6e 20 6e 6f 6e | 65 20 6f 74 68 65 72 20 |when non|e other |
|00000250| 69 73 20 61 70 70 72 6f | 70 72 69 61 74 65 2e 22 |is appro|priate."|
|00000260| 29 0a 28 64 65 66 76 61 | 72 20 74 72 61 63 6b 2d |).(defva|r track-|
|00000270| 64 65 66 61 75 6c 74 2d | 72 65 6d 6f 74 65 2d 68 |default-|remote-h|
|00000280| 6f 73 74 20 74 20 22 5c | 0a 43 6f 6e 74 72 6f 6c |ost t "\|.Control|
|00000290| 73 20 77 68 65 74 68 65 | 72 20 20 64 65 66 61 75 |s whethe|r defau|
|000002a0| 6c 74 2d 72 65 6d 6f 74 | 65 2d 68 6f 73 74 20 20 |lt-remot|e-host |
|000002b0| 69 73 20 63 68 61 6e 67 | 65 64 20 61 66 74 65 72 |is chang|ed after|
|000002c0| 20 72 65 61 64 69 6e 67 | 20 61 20 72 65 6d 6f 74 | reading| a remot|
|000002d0| 65 20 66 69 6c 65 20 6e | 61 6d 65 2e 0a 57 68 65 |e file n|ame..Whe|
|000002e0| 6e 20 6e 6f 6e 2d 6e 69 | 6c 2c 20 20 64 65 66 61 |n non-ni|l, defa|
|000002f0| 75 6c 74 2d 72 65 6d 6f | 74 65 2d 68 6f 73 74 20 |ult-remo|te-host |
|00000300| 20 77 69 6c 6c 20 68 61 | 76 65 20 74 68 65 20 76 | will ha|ve the v|
|00000310| 61 6c 75 65 20 6f 66 20 | 74 68 65 20 6c 61 73 74 |alue of |the last|
|00000320| 20 72 65 6d 6f 74 65 20 | 68 6f 73 74 20 72 65 61 | remote |host rea|
|00000330| 64 2e 22 29 0a 28 62 79 | 74 65 2d 63 6f 64 65 20 |d.").(by|te-code |
|00000340| 22 c0 c1 21 88 c2 c1 c3 | 5c 22 88 c0 c4 21 88 c5 |"..!....|\"...!..|
|00000350| c6 21 ac 93 c7 c8 21 ab | 83 c8 aa 89 c7 c9 21 ab |.!....!.|......!.|
|00000360| 83 c9 aa 81 ca 16 06 cb | c4 0e 0c 5c 22 ac 86 cd |........|...\"...|
|00000370| 0e 0c 42 16 0c c0 87 22 | 20 5b 6d 61 6b 65 2d 76 |..B...."| [make-v|
|00000380| 61 72 69 61 62 6c 65 2d | 62 75 66 66 65 72 2d 6c |ariable-|buffer-l|
|00000390| 6f 63 61 6c 20 62 75 66 | 66 65 72 2d 72 65 6d 6f |ocal buf|fer-remo|
|000003a0| 74 65 2d 66 69 6c 65 2d | 6e 61 6d 65 20 73 65 74 |te-file-|name set|
|000003b0| 2d 64 65 66 61 75 6c 74 | 20 22 22 20 72 65 6d 6f |-default| "" remo|
|000003c0| 74 65 2d 65 64 69 74 69 | 6e 67 20 62 6f 75 6e 64 |te-editi|ng bound|
|000003d0| 70 20 72 63 70 20 66 69 | 6c 65 2d 65 78 69 73 74 |p rcp fi|le-exist|
|000003e0| 73 2d 70 20 22 2f 62 69 | 6e 2f 72 63 70 22 20 22 |s-p "/bi|n/rcp" "|
|000003f0| 2f 75 73 72 2f 62 73 64 | 2f 72 63 70 22 20 22 72 |/usr/bsd|/rcp" "r|
|00000400| 63 70 22 20 61 73 73 6f | 63 20 6d 69 6e 6f 72 2d |cp" asso|c minor-|
|00000410| 6d 6f 64 65 2d 61 6c 69 | 73 74 20 28 72 65 6d 6f |mode-ali|st (remo|
|00000420| 74 65 2d 65 64 69 74 69 | 6e 67 20 22 20 52 65 6d |te-editi|ng " Rem|
|00000430| 6f 74 65 22 29 5d 20 33 | 29 0a 28 66 73 65 74 20 |ote")] 3|).(fset |
|00000440| 27 72 65 6d 6f 74 65 2d | 65 64 69 74 69 6e 67 20 |'remote-|editing |
|00000450| 23 5b 28 61 72 67 29 20 | 22 08 ac 84 09 3f aa 85 |#[(arg) |"....?..|
|00000460| c2 08 21 c3 56 11 c4 c5 | 20 21 87 22 20 5b 61 72 |..!.V...| !." [ar|
|00000470| 67 20 72 65 6d 6f 74 65 | 2d 65 64 69 74 69 6e 67 |g remote|-editing|
|00000480| 20 70 72 65 66 69 78 2d | 6e 75 6d 65 72 69 63 2d | prefix-|numeric-|
|00000490| 76 61 6c 75 65 20 30 20 | 73 65 74 2d 62 75 66 66 |value 0 |set-buff|
|000004a0| 65 72 2d 6d 6f 64 69 66 | 69 65 64 2d 70 20 62 75 |er-modif|ied-p bu|
|000004b0| 66 66 65 72 2d 6d 6f 64 | 69 66 69 65 64 2d 70 5d |ffer-mod|ified-p]|
|000004c0| 20 32 20 22 5c 0a 54 6f | 67 67 6c 65 20 72 65 6d | 2 "\.To|ggle rem|
|000004d0| 6f 74 65 2d 65 64 69 74 | 69 6e 67 20 6d 6f 64 65 |ote-edit|ing mode|
|000004e0| 2e 0a 57 69 74 68 20 61 | 72 67 2c 20 74 75 72 6e |..With a|rg, turn|
|000004f0| 20 6f 6e 20 72 65 6d 6f | 74 65 20 65 64 69 74 69 | on remo|te editi|
|00000500| 6e 67 20 6d 6f 64 65 20 | 69 66 66 20 61 72 67 20 |ng mode |iff arg |
|00000510| 69 73 20 70 6f 73 69 74 | 69 76 65 2c 20 6f 74 68 |is posit|ive, oth|
|00000520| 65 72 77 69 73 65 20 6a | 75 73 74 20 74 6f 67 67 |erwise j|ust togg|
|00000530| 6c 65 20 69 74 2e 0a 0a | 49 6e 20 72 65 6d 6f 74 |le it...|In remot|
|00000540| 65 20 65 64 69 74 69 6e | 67 20 6d 6f 64 65 2c 20 |e editin|g mode, |
|00000550| 74 68 65 20 6e 6f 72 6d | 61 6c 20 62 69 6e 64 69 |the norm|al bindi|
|00000560| 6e 67 73 20 66 6f 72 20 | 66 69 6e 64 2d 66 69 6c |ngs for |find-fil|
|00000570| 65 2c 0a 66 69 6e 64 2d | 66 69 6c 65 2d 72 65 61 |e,.find-|file-rea|
|00000580| 64 2d 6f 6e 6c 79 2c 20 | 66 69 6e 64 2d 61 6c 74 |d-only, |find-alt|
|00000590| 65 72 6e 61 74 65 2d 66 | 69 6c 65 2c 20 73 61 76 |ernate-f|ile, sav|
|000005a0| 65 2d 62 75 66 66 65 72 | 2c 20 77 72 69 74 65 2d |e-buffer|, write-|
|000005b0| 66 69 6c 65 2c 0a 61 6e | 64 20 69 6e 73 65 72 74 |file,.an|d insert|
|000005c0| 2d 66 69 6c 65 20 61 72 | 65 20 63 68 61 6e 67 65 |-file ar|e change|
|000005d0| 64 20 74 6f 20 6f 70 65 | 72 61 74 65 20 6f 6e 20 |d to ope|rate on |
|000005e0| 61 20 72 65 6d 6f 74 65 | 20 73 79 73 74 65 6d 20 |a remote| system |
|000005f0| 62 79 20 64 65 66 61 75 | 6c 74 2e 0a 0a 57 68 65 |by defau|lt...Whe|
|00000600| 6e 20 72 65 6d 6f 74 65 | 20 65 64 69 74 69 6e 67 |n remote| editing|
|00000610| 2c 20 61 20 70 72 65 66 | 69 78 20 61 72 67 20 61 |, a pref|ix arg a|
|00000620| 6c 6c 6f 77 73 20 6c 6f | 63 61 6c 20 66 69 6c 65 |llows lo|cal file|
|00000630| 20 6f 70 65 72 61 74 69 | 6f 6e 73 2e 20 20 57 68 | operati|ons. Wh|
|00000640| 65 6e 20 6e 6f 74 0a 72 | 65 6d 6f 74 65 20 65 64 |en not.r|emote ed|
|00000650| 69 74 69 6e 67 2c 20 61 | 20 70 72 65 66 69 78 20 |iting, a| prefix |
|00000660| 61 72 67 20 61 6c 6c 6f | 77 73 20 72 65 6d 6f 74 |arg allo|ws remot|
|00000670| 65 20 66 69 6c 65 20 6f | 70 65 72 61 74 69 6f 6e |e file o|peration|
|00000680| 73 2e 0a 0a 49 74 20 69 | 73 20 61 73 73 75 6d 65 |s...It i|s assume|
|00000690| 64 20 74 68 61 74 20 2e | 72 68 6f 73 74 73 20 66 |d that .|rhosts f|
|000006a0| 69 6c 65 73 20 61 72 65 | 20 73 65 74 20 75 70 20 |iles are| set up |
|000006b0| 70 72 6f 70 65 72 6c 79 | 20 6f 6e 20 62 6f 74 68 |properly| on both|
|000006c0| 20 6d 61 63 68 69 6e 65 | 73 2e 22 20 22 50 22 5d | machine|s." "P"]|
|000006d0| 29 0a 28 62 79 74 65 2d | 63 6f 64 65 20 22 c0 c1 |).(byte-|code "..|
|000006e0| c2 5c 22 88 c3 c4 4d 88 | c0 c5 c6 5c 22 87 22 20 |.\"...M.|...\"." |
|000006f0| 5b 67 6c 6f 62 61 6c 2d | 73 65 74 2d 6b 65 79 20 |[global-|set-key |
|00000700| 22 18 72 22 20 72 65 6d | 6f 74 65 2d 65 64 69 74 |".r" rem|ote-edit|
|00000710| 69 6e 67 20 64 65 66 2d | 6c 6f 63 61 6c 2d 6f 72 |ing def-|local-or|
|00000720| 2d 72 65 6d 6f 74 65 20 | 28 6d 61 63 72 6f 20 2e |-remote |(macro .|
|00000730| 20 23 5b 28 62 69 6e 64 | 69 6e 67 20 6e 61 6d 65 | #[(bind|ing name|
|00000740| 20 72 65 6d 6f 74 65 20 | 6c 6f 63 61 6c 29 20 22 | remote |local) "|
|00000750| c0 c1 5c 6e 21 21 c0 c1 | 0b 21 21 1c 1d c6 c7 0e |..\n!!..|.!!.....|
|00000760| 08 c9 0e 5c 6e 44 45 cb | 0e 5c 6e cc cd 0d ce 0c |...\nDE.|.\n.....|
|00000770| cf 0d d0 0c d1 0d d2 0c | d3 b0 0d d4 d5 d6 d7 5c |........|.......\|
|00000780| 6e 0b 46 44 af 06 45 2a | 87 22 20 5b 73 79 6d 62 |n.FD..E*|." [symb|
|00000790| 6f 6c 2d 6e 61 6d 65 20 | 65 76 61 6c 20 72 65 6d |ol-name |eval rem|
|000007a0| 6f 74 65 20 6c 6f 63 61 | 6c 20 6c 20 72 20 70 72 |ote loca|l l r pr|
|000007b0| 6f 67 6e 20 67 6c 6f 62 | 61 6c 2d 73 65 74 2d 6b |ogn glob|al-set-k|
|000007c0| 65 79 20 62 69 6e 64 69 | 6e 67 20 71 75 6f 74 65 |ey bindi|ng quote|
|000007d0| 20 6e 61 6d 65 20 64 65 | 66 75 6e 20 28 61 72 67 | name de|fun (arg|
|000007e0| 29 20 22 43 61 6c 6c 20 | 65 69 74 68 65 72 20 22 |) "Call |either "|
|000007f0| 20 22 20 6f 72 20 22 20 | 22 2e 5c 6e 49 66 20 72 | " or " |".\nIf r|
|00000800| 65 6d 6f 74 65 2d 65 64 | 69 74 69 6e 67 20 28 77 |emote-ed|iting (w|
|00000810| 68 69 63 68 20 73 65 65 | 29 2c 20 63 61 6c 6c 20 |hich see|), call |
|00000820| 22 20 22 2c 20 65 6c 73 | 65 20 63 61 6c 6c 20 22 |" ", els|e call "|
|00000830| 20 22 2e 5c 6e 5c 6e 53 | 65 65 20 61 6c 73 6f 20 | ".\n\nS|ee also |
|00000840| 74 68 65 20 64 6f 63 75 | 6d 65 6e 74 61 74 69 6f |the docu|mentatio|
|00000850| 6e 20 66 6f 72 20 22 20 | 22 20 61 6e 64 20 22 20 |n for " |" and " |
|00000860| 22 2e 22 20 28 69 6e 74 | 65 72 61 63 74 69 76 65 |"." (int|eractive|
|00000870| 20 22 50 22 29 20 63 61 | 6c 6c 2d 69 6e 74 65 72 | "P") ca|ll-inter|
|00000880| 61 63 74 69 76 65 6c 79 | 20 69 66 20 28 78 6f 72 |actively| if (xor|
|00000890| 20 72 65 6d 6f 74 65 2d | 65 64 69 74 69 6e 67 20 | remote-|editing |
|000008a0| 61 72 67 29 5d 20 31 38 | 5d 29 20 22 18 06 22 20 |arg)] 18|]) ".." |
|000008b0| 66 69 6e 64 2d 6c 6f 63 | 61 6c 2d 6f 72 2d 72 65 |find-loc|al-or-re|
|000008c0| 6d 6f 74 65 2d 66 69 6c | 65 5d 20 33 29 0a 28 66 |mote-fil|e] 3).(f|
|000008d0| 73 65 74 20 27 66 69 6e | 64 2d 6c 6f 63 61 6c 2d |set 'fin|d-local-|
|000008e0| 6f 72 2d 72 65 6d 6f 74 | 65 2d 66 69 6c 65 20 23 |or-remot|e-file #|
|000008f0| 5b 28 61 72 67 29 20 22 | c0 c1 5c 6e 0b 5c 22 ab |[(arg) "|..\n.\".|
|00000900| 83 c4 aa 81 c5 21 87 22 | 20 5b 63 61 6c 6c 2d 69 |.....!."| [call-i|
|00000910| 6e 74 65 72 61 63 74 69 | 76 65 6c 79 20 78 6f 72 |nteracti|vely xor|
|00000920| 20 72 65 6d 6f 74 65 2d | 65 64 69 74 69 6e 67 20 | remote-|editing |
|00000930| 61 72 67 20 66 69 6e 64 | 2d 72 65 6d 6f 74 65 2d |arg find|-remote-|
|00000940| 66 69 6c 65 20 66 69 6e | 64 2d 66 69 6c 65 5d 20 |file fin|d-file] |
|00000950| 34 20 22 5c 0a 43 61 6c | 6c 20 65 69 74 68 65 72 |4 "\.Cal|l either|
|00000960| 20 66 69 6e 64 2d 72 65 | 6d 6f 74 65 2d 66 69 6c | find-re|mote-fil|
|00000970| 65 20 6f 72 20 66 69 6e | 64 2d 66 69 6c 65 2e 0a |e or fin|d-file..|
|00000980| 49 66 20 72 65 6d 6f 74 | 65 2d 65 64 69 74 69 6e |If remot|e-editin|
|00000990| 67 20 28 77 68 69 63 68 | 20 73 65 65 29 2c 20 63 |g (which| see), c|
|000009a0| 61 6c 6c 20 66 69 6e 64 | 2d 72 65 6d 6f 74 65 2d |all find|-remote-|
|000009b0| 66 69 6c 65 2c 20 65 6c | 73 65 20 63 61 6c 6c 20 |file, el|se call |
|000009c0| 66 69 6e 64 2d 66 69 6c | 65 2e 0a 0a 53 65 65 20 |find-fil|e...See |
|000009d0| 61 6c 73 6f 20 74 68 65 | 20 64 6f 63 75 6d 65 6e |also the| documen|
|000009e0| 74 61 74 69 6f 6e 20 66 | 6f 72 20 66 69 6e 64 2d |tation f|or find-|
|000009f0| 72 65 6d 6f 74 65 2d 66 | 69 6c 65 20 61 6e 64 20 |remote-f|ile and |
|00000a00| 66 69 6e 64 2d 66 69 6c | 65 2e 22 20 22 50 22 5d |find-fil|e." "P"]|
|00000a10| 29 0a 28 67 6c 6f 62 61 | 6c 2d 73 65 74 2d 6b 65 |).(globa|l-set-ke|
|00000a20| 79 20 22 18 12 22 20 27 | 66 69 6e 64 2d 6c 6f 63 |y ".." '|find-loc|
|00000a30| 61 6c 2d 6f 72 2d 72 65 | 6d 6f 74 65 2d 66 69 6c |al-or-re|mote-fil|
|00000a40| 65 2d 72 65 61 64 2d 6f | 6e 6c 79 29 0a 28 66 73 |e-read-o|nly).(fs|
|00000a50| 65 74 20 27 66 69 6e 64 | 2d 6c 6f 63 61 6c 2d 6f |et 'find|-local-o|
|00000a60| 72 2d 72 65 6d 6f 74 65 | 2d 66 69 6c 65 2d 72 65 |r-remote|-file-re|
|00000a70| 61 64 2d 6f 6e 6c 79 20 | 23 5b 28 61 72 67 29 20 |ad-only |#[(arg) |
|00000a80| 22 c0 c1 5c 6e 0b 5c 22 | ab 83 c4 aa 81 c5 21 87 |"..\n.\"|......!.|
|00000a90| 22 20 5b 63 61 6c 6c 2d | 69 6e 74 65 72 61 63 74 |" [call-|interact|
|00000aa0| 69 76 65 6c 79 20 78 6f | 72 20 72 65 6d 6f 74 65 |ively xo|r remote|
|00000ab0| 2d 65 64 69 74 69 6e 67 | 20 61 72 67 20 66 69 6e |-editing| arg fin|
|00000ac0| 64 2d 72 65 6d 6f 74 65 | 2d 66 69 6c 65 2d 72 65 |d-remote|-file-re|
|00000ad0| 61 64 2d 6f 6e 6c 79 20 | 66 69 6e 64 2d 66 69 6c |ad-only |find-fil|
|00000ae0| 65 2d 72 65 61 64 2d 6f | 6e 6c 79 5d 20 34 20 22 |e-read-o|nly] 4 "|
|00000af0| 5c 0a 43 61 6c 6c 20 65 | 69 74 68 65 72 20 66 69 |\.Call e|ither fi|
|00000b00| 6e 64 2d 72 65 6d 6f 74 | 65 2d 66 69 6c 65 2d 72 |nd-remot|e-file-r|
|00000b10| 65 61 64 2d 6f 6e 6c 79 | 20 6f 72 20 66 69 6e 64 |ead-only| or find|
|00000b20| 2d 66 69 6c 65 2d 72 65 | 61 64 2d 6f 6e 6c 79 2e |-file-re|ad-only.|
|00000b30| 0a 49 66 20 72 65 6d 6f | 74 65 2d 65 64 69 74 69 |.If remo|te-editi|
|00000b40| 6e 67 20 28 77 68 69 63 | 68 20 73 65 65 29 2c 20 |ng (whic|h see), |
|00000b50| 63 61 6c 6c 20 66 69 6e | 64 2d 72 65 6d 6f 74 65 |call fin|d-remote|
|00000b60| 2d 66 69 6c 65 2d 72 65 | 61 64 2d 6f 6e 6c 79 2c |-file-re|ad-only,|
|00000b70| 20 65 6c 73 65 20 63 61 | 6c 6c 20 66 69 6e 64 2d | else ca|ll find-|
|00000b80| 66 69 6c 65 2d 72 65 61 | 64 2d 6f 6e 6c 79 2e 0a |file-rea|d-only..|
|00000b90| 0a 53 65 65 20 61 6c 73 | 6f 20 74 68 65 20 64 6f |.See als|o the do|
|00000ba0| 63 75 6d 65 6e 74 61 74 | 69 6f 6e 20 66 6f 72 20 |cumentat|ion for |
|00000bb0| 66 69 6e 64 2d 72 65 6d | 6f 74 65 2d 66 69 6c 65 |find-rem|ote-file|
|00000bc0| 2d 72 65 61 64 2d 6f 6e | 6c 79 20 61 6e 64 20 66 |-read-on|ly and f|
|00000bd0| 69 6e 64 2d 66 69 6c 65 | 2d 72 65 61 64 2d 6f 6e |ind-file|-read-on|
|00000be0| 6c 79 2e 22 20 22 50 22 | 5d 29 0a 28 67 6c 6f 62 |ly." "P"|]).(glob|
|00000bf0| 61 6c 2d 73 65 74 2d 6b | 65 79 20 22 18 16 22 20 |al-set-k|ey ".." |
|00000c00| 27 66 69 6e 64 2d 61 6c | 74 65 72 6e 61 74 65 2d |'find-al|ternate-|
|00000c10| 6c 6f 63 61 6c 2d 6f 72 | 2d 72 65 6d 6f 74 65 2d |local-or|-remote-|
|00000c20| 66 69 6c 65 29 0a 28 66 | 73 65 74 20 27 66 69 6e |file).(f|set 'fin|
|00000c30| 64 2d 61 6c 74 65 72 6e | 61 74 65 2d 6c 6f 63 61 |d-altern|ate-loca|
|00000c40| 6c 2d 6f 72 2d 72 65 6d | 6f 74 65 2d 66 69 6c 65 |l-or-rem|ote-file|
|00000c50| 20 23 5b 28 61 72 67 29 | 20 22 c0 c1 5c 6e 0b 5c | #[(arg)| "..\n.\|
|00000c60| 22 ab 83 c4 aa 81 c5 21 | 87 22 20 5b 63 61 6c 6c |"......!|." [call|
|00000c70| 2d 69 6e 74 65 72 61 63 | 74 69 76 65 6c 79 20 78 |-interac|tively x|
|00000c80| 6f 72 20 72 65 6d 6f 74 | 65 2d 65 64 69 74 69 6e |or remot|e-editin|
|00000c90| 67 20 61 72 67 20 66 69 | 6e 64 2d 61 6c 74 65 72 |g arg fi|nd-alter|
|00000ca0| 6e 61 74 65 2d 72 65 6d | 6f 74 65 2d 66 69 6c 65 |nate-rem|ote-file|
|00000cb0| 20 66 69 6e 64 2d 61 6c | 74 65 72 6e 61 74 65 2d | find-al|ternate-|
|00000cc0| 66 69 6c 65 5d 20 34 20 | 22 5c 0a 43 61 6c 6c 20 |file] 4 |"\.Call |
|00000cd0| 65 69 74 68 65 72 20 66 | 69 6e 64 2d 61 6c 74 65 |either f|ind-alte|
|00000ce0| 72 6e 61 74 65 2d 72 65 | 6d 6f 74 65 2d 66 69 6c |rnate-re|mote-fil|
|00000cf0| 65 20 6f 72 20 66 69 6e | 64 2d 61 6c 74 65 72 6e |e or fin|d-altern|
|00000d00| 61 74 65 2d 66 69 6c 65 | 2e 0a 49 66 20 72 65 6d |ate-file|..If rem|
|00000d10| 6f 74 65 2d 65 64 69 74 | 69 6e 67 20 28 77 68 69 |ote-edit|ing (whi|
|00000d20| 63 68 20 73 65 65 29 2c | 20 63 61 6c 6c 20 66 69 |ch see),| call fi|
|00000d30| 6e 64 2d 61 6c 74 65 72 | 6e 61 74 65 2d 72 65 6d |nd-alter|nate-rem|
|00000d40| 6f 74 65 2d 66 69 6c 65 | 2c 20 65 6c 73 65 20 63 |ote-file|, else c|
|00000d50| 61 6c 6c 20 66 69 6e 64 | 2d 61 6c 74 65 72 6e 61 |all find|-alterna|
|00000d60| 74 65 2d 66 69 6c 65 2e | 0a 0a 53 65 65 20 61 6c |te-file.|..See al|
|00000d70| 73 6f 20 74 68 65 20 64 | 6f 63 75 6d 65 6e 74 61 |so the d|ocumenta|
|00000d80| 74 69 6f 6e 20 66 6f 72 | 20 66 69 6e 64 2d 61 6c |tion for| find-al|
|00000d90| 74 65 72 6e 61 74 65 2d | 72 65 6d 6f 74 65 2d 66 |ternate-|remote-f|
|00000da0| 69 6c 65 20 61 6e 64 20 | 66 69 6e 64 2d 61 6c 74 |ile and |find-alt|
|00000db0| 65 72 6e 61 74 65 2d 66 | 69 6c 65 2e 22 20 22 50 |ernate-f|ile." "P|
|00000dc0| 22 5d 29 0a 28 67 6c 6f | 62 61 6c 2d 73 65 74 2d |"]).(glo|bal-set-|
|00000dd0| 6b 65 79 20 22 18 13 22 | 20 27 73 61 76 65 2d 6c |key ".."| 'save-l|
|00000de0| 6f 63 61 6c 2d 6f 72 2d | 72 65 6d 6f 74 65 2d 62 |ocal-or-|remote-b|
|00000df0| 75 66 66 65 72 29 0a 28 | 66 73 65 74 20 27 73 61 |uffer).(|fset 'sa|
|00000e00| 76 65 2d 6c 6f 63 61 6c | 2d 6f 72 2d 72 65 6d 6f |ve-local|-or-remo|
|00000e10| 74 65 2d 62 75 66 66 65 | 72 20 23 5b 28 61 72 67 |te-buffe|r #[(arg|
|00000e20| 29 20 22 c0 c1 5c 6e 0b | 5c 22 ab 83 c4 aa 81 c5 |) "..\n.|\"......|
|00000e30| 21 87 22 20 5b 63 61 6c | 6c 2d 69 6e 74 65 72 61 |!." [cal|l-intera|
|00000e40| 63 74 69 76 65 6c 79 20 | 78 6f 72 20 72 65 6d 6f |ctively |xor remo|
|00000e50| 74 65 2d 65 64 69 74 69 | 6e 67 20 61 72 67 20 73 |te-editi|ng arg s|
|00000e60| 61 76 65 2d 72 65 6d 6f | 74 65 2d 62 75 66 66 65 |ave-remo|te-buffe|
|00000e70| 72 20 73 61 76 65 2d 62 | 75 66 66 65 72 5d 20 34 |r save-b|uffer] 4|
|00000e80| 20 22 5c 0a 43 61 6c 6c | 20 65 69 74 68 65 72 20 | "\.Call| either |
|00000e90| 73 61 76 65 2d 72 65 6d | 6f 74 65 2d 62 75 66 66 |save-rem|ote-buff|
|00000ea0| 65 72 20 6f 72 20 73 61 | 76 65 2d 62 75 66 66 65 |er or sa|ve-buffe|
|00000eb0| 72 2e 0a 49 66 20 72 65 | 6d 6f 74 65 2d 65 64 69 |r..If re|mote-edi|
|00000ec0| 74 69 6e 67 20 28 77 68 | 69 63 68 20 73 65 65 29 |ting (wh|ich see)|
|00000ed0| 2c 20 63 61 6c 6c 20 73 | 61 76 65 2d 72 65 6d 6f |, call s|ave-remo|
|00000ee0| 74 65 2d 62 75 66 66 65 | 72 2c 20 65 6c 73 65 20 |te-buffe|r, else |
|00000ef0| 63 61 6c 6c 20 73 61 76 | 65 2d 62 75 66 66 65 72 |call sav|e-buffer|
|00000f00| 2e 0a 0a 53 65 65 20 61 | 6c 73 6f 20 74 68 65 20 |...See a|lso the |
|00000f10| 64 6f 63 75 6d 65 6e 74 | 61 74 69 6f 6e 20 66 6f |document|ation fo|
|00000f20| 72 20 73 61 76 65 2d 72 | 65 6d 6f 74 65 2d 62 75 |r save-r|emote-bu|
|00000f30| 66 66 65 72 20 61 6e 64 | 20 73 61 76 65 2d 62 75 |ffer and| save-bu|
|00000f40| 66 66 65 72 2e 22 20 22 | 50 22 5d 29 0a 28 67 6c |ffer." "|P"]).(gl|
|00000f50| 6f 62 61 6c 2d 73 65 74 | 2d 6b 65 79 20 22 18 17 |obal-set|-key "..|
|00000f60| 22 20 27 77 72 69 74 65 | 2d 6c 6f 63 61 6c 2d 6f |" 'write|-local-o|
|00000f70| 72 2d 72 65 6d 6f 74 65 | 2d 66 69 6c 65 29 0a 28 |r-remote|-file).(|
|00000f80| 66 73 65 74 20 27 77 72 | 69 74 65 2d 6c 6f 63 61 |fset 'wr|ite-loca|
|00000f90| 6c 2d 6f 72 2d 72 65 6d | 6f 74 65 2d 66 69 6c 65 |l-or-rem|ote-file|
|00000fa0| 20 23 5b 28 61 72 67 29 | 20 22 c0 c1 5c 6e 0b 5c | #[(arg)| "..\n.\|
|00000fb0| 22 ab 83 c4 aa 81 c5 21 | 87 22 20 5b 63 61 6c 6c |"......!|." [call|
|00000fc0| 2d 69 6e 74 65 72 61 63 | 74 69 76 65 6c 79 20 78 |-interac|tively x|
|00000fd0| 6f 72 20 72 65 6d 6f 74 | 65 2d 65 64 69 74 69 6e |or remot|e-editin|
|00000fe0| 67 20 61 72 67 20 77 72 | 69 74 65 2d 72 65 6d 6f |g arg wr|ite-remo|
|00000ff0| 74 65 2d 66 69 6c 65 20 | 77 72 69 74 65 2d 66 69 |te-file |write-fi|
|00001000| 6c 65 5d 20 34 20 22 5c | 0a 43 61 6c 6c 20 65 69 |le] 4 "\|.Call ei|
|00001010| 74 68 65 72 20 77 72 69 | 74 65 2d 72 65 6d 6f 74 |ther wri|te-remot|
|00001020| 65 2d 66 69 6c 65 20 6f | 72 20 77 72 69 74 65 2d |e-file o|r write-|
|00001030| 66 69 6c 65 2e 0a 49 66 | 20 72 65 6d 6f 74 65 2d |file..If| remote-|
|00001040| 65 64 69 74 69 6e 67 20 | 28 77 68 69 63 68 20 73 |editing |(which s|
|00001050| 65 65 29 2c 20 63 61 6c | 6c 20 77 72 69 74 65 2d |ee), cal|l write-|
|00001060| 72 65 6d 6f 74 65 2d 66 | 69 6c 65 2c 20 65 6c 73 |remote-f|ile, els|
|00001070| 65 20 63 61 6c 6c 20 77 | 72 69 74 65 2d 66 69 6c |e call w|rite-fil|
|00001080| 65 2e 0a 0a 53 65 65 20 | 61 6c 73 6f 20 74 68 65 |e...See |also the|
|00001090| 20 64 6f 63 75 6d 65 6e | 74 61 74 69 6f 6e 20 66 | documen|tation f|
|000010a0| 6f 72 20 77 72 69 74 65 | 2d 72 65 6d 6f 74 65 2d |or write|-remote-|
|000010b0| 66 69 6c 65 20 61 6e 64 | 20 77 72 69 74 65 2d 66 |file and| write-f|
|000010c0| 69 6c 65 2e 22 20 22 50 | 22 5d 29 0a 28 67 6c 6f |ile." "P|"]).(glo|
|000010d0| 62 61 6c 2d 73 65 74 2d | 6b 65 79 20 22 18 69 22 |bal-set-|key ".i"|
|000010e0| 20 27 69 6e 73 65 72 74 | 2d 6c 6f 63 61 6c 2d 6f | 'insert|-local-o|
|000010f0| 72 2d 72 65 6d 6f 74 65 | 2d 66 69 6c 65 29 0a 28 |r-remote|-file).(|
|00001100| 66 73 65 74 20 27 69 6e | 73 65 72 74 2d 6c 6f 63 |fset 'in|sert-loc|
|00001110| 61 6c 2d 6f 72 2d 72 65 | 6d 6f 74 65 2d 66 69 6c |al-or-re|mote-fil|
|00001120| 65 20 23 5b 28 61 72 67 | 29 20 22 c0 c1 5c 6e 0b |e #[(arg|) "..\n.|
|00001130| 5c 22 ab 83 c4 aa 81 c5 | 21 87 22 20 5b 63 61 6c |\"......|!." [cal|
|00001140| 6c 2d 69 6e 74 65 72 61 | 63 74 69 76 65 6c 79 20 |l-intera|ctively |
|00001150| 78 6f 72 20 72 65 6d 6f | 74 65 2d 65 64 69 74 69 |xor remo|te-editi|
|00001160| 6e 67 20 61 72 67 20 69 | 6e 73 65 72 74 2d 72 65 |ng arg i|nsert-re|
|00001170| 6d 6f 74 65 2d 66 69 6c | 65 20 69 6e 73 65 72 74 |mote-fil|e insert|
|00001180| 2d 66 69 6c 65 5d 20 34 | 20 22 5c 0a 43 61 6c 6c |-file] 4| "\.Call|
|00001190| 20 65 69 74 68 65 72 20 | 69 6e 73 65 72 74 2d 72 | either |insert-r|
|000011a0| 65 6d 6f 74 65 2d 66 69 | 6c 65 20 6f 72 20 69 6e |emote-fi|le or in|
|000011b0| 73 65 72 74 2d 66 69 6c | 65 2e 0a 49 66 20 72 65 |sert-fil|e..If re|
|000011c0| 6d 6f 74 65 2d 65 64 69 | 74 69 6e 67 20 28 77 68 |mote-edi|ting (wh|
|000011d0| 69 63 68 20 73 65 65 29 | 2c 20 63 61 6c 6c 20 69 |ich see)|, call i|
|000011e0| 6e 73 65 72 74 2d 72 65 | 6d 6f 74 65 2d 66 69 6c |nsert-re|mote-fil|
|000011f0| 65 2c 20 65 6c 73 65 20 | 63 61 6c 6c 20 69 6e 73 |e, else |call ins|
|00001200| 65 72 74 2d 66 69 6c 65 | 2e 0a 0a 53 65 65 20 61 |ert-file|...See a|
|00001210| 6c 73 6f 20 74 68 65 20 | 64 6f 63 75 6d 65 6e 74 |lso the |document|
|00001220| 61 74 69 6f 6e 20 66 6f | 72 20 69 6e 73 65 72 74 |ation fo|r insert|
|00001230| 2d 72 65 6d 6f 74 65 2d | 66 69 6c 65 20 61 6e 64 |-remote-|file and|
|00001240| 20 69 6e 73 65 72 74 2d | 66 69 6c 65 2e 22 20 22 | insert-|file." "|
|00001250| 50 22 5d 29 0a 28 66 73 | 65 74 20 27 66 69 6e 64 |P"]).(fs|et 'find|
|00001260| 2d 72 65 6d 6f 74 65 2d | 66 69 6c 65 20 23 5b 28 |-remote-|file #[(|
|00001270| 68 6f 73 74 20 66 69 6c | 65 29 20 22 c0 09 5c 6e |host fil|e) "..\n|
|00001280| c3 23 c4 1d 89 1e 06 ad | c9 c7 0e 06 21 ab 86 c8 |.#......|....!...|
|00001290| 0e 06 21 aa bd 0e 06 15 | c9 09 ca 5c 6e 21 50 21 |..!.....|...\n!P!|
|000012a0| 1e 0b c8 0e 0b 21 88 cc | 0d 21 ac 86 cd ce 21 88 |.....!..|.!....!.|
|000012b0| aa 8c cf 0d 21 88 d0 c4 | 21 88 d1 0d 21 88 09 5c |....!...|!...!..\|
|000012c0| 6e 50 1e 12 d3 20 88 d4 | d5 21 88 0e 12 16 16 d7 |nP... ..|.!......|
|000012d0| 89 16 18 2a 2a 87 22 20 | 5b 67 65 74 2d 72 65 6d |...**." |[get-rem|
|000012e0| 6f 74 65 2d 66 69 6c 65 | 2d 6f 72 2d 62 75 66 66 |ote-file|-or-buff|
|000012f0| 65 72 20 68 6f 73 74 20 | 66 69 6c 65 20 22 72 65 |er host |file "re|
|00001300| 74 72 69 65 76 65 22 20 | 6e 69 6c 20 6c 6f 63 61 |trieve" |nil loca|
|00001310| 6c 2d 66 69 6c 65 20 62 | 75 66 66 65 72 2d 6f 72 |l-file b|uffer-or|
|00001320| 2d 66 69 6c 65 20 62 75 | 66 66 65 72 70 20 73 77 |-file bu|fferp sw|
|00001330| 69 74 63 68 2d 74 6f 2d | 62 75 66 66 65 72 20 67 |itch-to-|buffer g|
|00001340| 65 6e 65 72 61 74 65 2d | 6e 65 77 2d 62 75 66 66 |enerate-|new-buff|
|00001350| 65 72 20 66 69 6c 65 2d | 6e 61 6d 65 2d 6e 6f 6e |er file-|name-non|
|00001360| 64 69 72 65 63 74 6f 72 | 79 20 62 75 66 20 66 69 |director|y buf fi|
|00001370| 6c 65 2d 65 78 69 73 74 | 73 2d 70 20 6d 65 73 73 |le-exist|s-p mess|
|00001380| 61 67 65 20 22 28 4e 65 | 77 20 72 65 6d 6f 74 65 |age "(Ne|w remote|
|00001390| 20 66 69 6c 65 29 22 20 | 69 6e 73 65 72 74 2d 66 | file)" |insert-f|
|000013a0| 69 6c 65 2d 63 6f 6e 74 | 65 6e 74 73 20 73 65 74 |ile-cont|ents set|
|000013b0| 2d 62 75 66 66 65 72 2d | 6d 6f 64 69 66 69 65 64 |-buffer-|modified|
|000013c0| 2d 70 20 64 65 6c 65 74 | 65 2d 66 69 6c 65 20 62 |-p delet|e-file b|
|000013d0| 75 66 66 65 72 2d 66 69 | 6c 65 2d 6e 61 6d 65 20 |uffer-fi|le-name |
|000013e0| 6e 6f 72 6d 61 6c 2d 6d | 6f 64 65 20 72 65 6d 6f |normal-m|ode remo|
|000013f0| 74 65 2d 65 64 69 74 69 | 6e 67 20 31 20 62 75 66 |te-editi|ng 1 buf|
|00001400| 66 65 72 2d 72 65 6d 6f | 74 65 2d 66 69 6c 65 2d |fer-remo|te-file-|
|00001410| 6e 61 6d 65 20 74 20 62 | 75 66 66 65 72 2d 6f 66 |name t b|uffer-of|
|00001420| 66 65 72 2d 73 61 76 65 | 5d 20 35 20 22 5c 0a 45 |fer-save|] 5 "\.E|
|00001430| 64 69 74 20 72 65 6d 6f | 74 65 20 66 69 6c 65 20 |dit remo|te file |
|00001440| 48 4f 53 54 3a 46 49 4c | 45 20 28 75 73 69 6e 67 |HOST:FIL|E (using|
|00001450| 20 72 63 70 29 2e 0a 54 | 68 69 73 20 63 6f 6d 6d | rcp)..T|his comm|
|00001460| 61 6e 64 20 69 73 20 73 | 69 6d 69 6c 69 61 72 20 |and is s|imiliar |
|00001470| 74 6f 20 66 69 6e 64 2d | 66 69 6c 65 2c 20 62 75 |to find-|file, bu|
|00001480| 74 20 75 73 65 73 20 72 | 63 70 20 74 6f 20 72 65 |t uses r|cp to re|
|00001490| 61 64 20 74 68 65 20 66 | 69 6c 65 20 66 72 6f 6d |ad the f|ile from|
|000014a0| 0a 61 20 72 65 6d 6f 74 | 65 20 6d 61 63 68 69 6e |.a remot|e machin|
|000014b0| 65 2e 20 20 41 6c 73 6f | 20 73 65 65 20 72 65 6d |e. Also| see rem|
|000014c0| 6f 74 65 2d 65 64 69 74 | 69 6e 67 2e 22 20 28 72 |ote-edit|ing." (r|
|000014d0| 65 61 64 2d 72 65 6d 6f | 74 65 2d 66 69 6c 65 2d |ead-remo|te-file-|
|000014e0| 6e 61 6d 65 20 22 46 69 | 6e 64 20 72 65 6d 6f 74 |name "Fi|nd remot|
|000014f0| 65 20 66 69 6c 65 22 29 | 5d 29 0a 28 66 73 65 74 |e file")|]).(fset|
|00001500| 20 27 66 69 6e 64 2d 72 | 65 6d 6f 74 65 2d 66 69 | 'find-r|emote-fi|
|00001510| 6c 65 2d 72 65 61 64 2d | 6f 6e 6c 79 20 23 5b 6e |le-read-|only #[n|
|00001520| 69 6c 20 22 c0 c1 21 88 | c2 89 13 87 22 20 5b 63 |il "..!.|...." [c|
|00001530| 61 6c 6c 2d 69 6e 74 65 | 72 61 63 74 69 76 65 6c |all-inte|ractivel|
|00001540| 79 20 66 69 6e 64 2d 72 | 65 6d 6f 74 65 2d 66 69 |y find-r|emote-fi|
|00001550| 6c 65 20 74 20 62 75 66 | 66 65 72 2d 72 65 61 64 |le t buf|fer-read|
|00001560| 2d 6f 6e 6c 79 5d 20 32 | 20 22 5c 0a 45 64 69 74 |-only] 2| "\.Edit|
|00001570| 20 72 65 6d 6f 74 65 20 | 66 69 6c 65 20 46 49 4c | remote |file FIL|
|00001580| 45 4e 41 4d 45 2c 20 62 | 75 74 20 6d 61 72 6b 20 |ENAME, b|ut mark |
|00001590| 62 75 66 66 65 72 20 61 | 73 20 72 65 61 64 2d 6f |buffer a|s read-o|
|000015a0| 6e 6c 79 2e 0a 41 6c 73 | 6f 20 73 65 65 20 66 69 |nly..Als|o see fi|
|000015b0| 6e 64 2d 72 65 6d 6f 74 | 65 2d 66 69 6c 65 20 61 |nd-remot|e-file a|
|000015c0| 6e 64 20 72 65 6d 6f 74 | 65 2d 65 64 69 74 69 6e |nd remot|e-editin|
|000015d0| 67 2e 22 20 6e 69 6c 5d | 29 0a 28 66 73 65 74 20 |g." nil]|).(fset |
|000015e0| 27 66 69 6e 64 2d 61 6c | 74 65 72 6e 61 74 65 2d |'find-al|ternate-|
|000015f0| 72 65 6d 6f 74 65 2d 66 | 69 6c 65 20 23 5b 6e 69 |remote-f|ile #[ni|
|00001600| 6c 20 22 c0 20 ab 90 09 | ac 8d c2 c3 c4 c5 20 5c |l ". ...|...... \|
|00001610| 22 21 ac 84 c6 c7 21 88 | 70 c5 20 1e 08 1e 09 ca |"!....!.|p. .....|
|00001620| cb 21 88 cc 8e cd ce cf | d0 21 5c 22 2b 87 22 20 |.!......|.!\"+." |
|00001630| 5b 62 75 66 66 65 72 2d | 6d 6f 64 69 66 69 65 64 |[buffer-|modified|
|00001640| 2d 70 20 62 75 66 66 65 | 72 2d 72 65 61 64 2d 6f |-p buffe|r-read-o|
|00001650| 6e 6c 79 20 79 65 73 2d | 6f 72 2d 6e 6f 2d 70 20 |nly yes-|or-no-p |
|00001660| 66 6f 72 6d 61 74 20 22 | 42 75 66 66 65 72 20 25 |format "|Buffer %|
|00001670| 73 20 69 73 20 6d 6f 64 | 69 66 69 65 64 3b 20 6b |s is mod|ified; k|
|00001680| 69 6c 6c 20 61 6e 79 77 | 61 79 3f 20 22 20 62 75 |ill anyw|ay? " bu|
|00001690| 66 66 65 72 2d 6e 61 6d | 65 20 65 72 72 6f 72 20 |ffer-nam|e error |
|000016a0| 22 41 62 6f 72 74 65 64 | 22 20 6f 6e 61 6d 65 20 |"Aborted|" oname |
|000016b0| 6f 62 75 66 20 72 65 6e | 61 6d 65 2d 62 75 66 66 |obuf ren|ame-buff|
|000016c0| 65 72 20 22 20 2a 2a 6c | 6f 73 65 2a 2a 22 20 28 |er " **l|ose**" (|
|000016d0| 28 62 79 74 65 2d 63 6f | 64 65 20 22 08 70 3d ab |(byte-co|de ".p=.|
|000016e0| 86 c1 5c 6e 21 88 aa 84 | c3 08 21 88 c1 87 22 20 |..\n!...|..!..." |
|000016f0| 5b 6f 62 75 66 20 72 65 | 6e 61 6d 65 2d 62 75 66 |[obuf re|name-buf|
|00001700| 66 65 72 20 6f 6e 61 6d | 65 20 6b 69 6c 6c 2d 62 |fer onam|e kill-b|
|00001710| 75 66 66 65 72 5d 20 32 | 29 29 20 61 70 70 6c 79 |uffer] 2|)) apply|
|00001720| 20 66 69 6e 64 2d 72 65 | 6d 6f 74 65 2d 66 69 6c | find-re|mote-fil|
|00001730| 65 20 72 65 61 64 2d 72 | 65 6d 6f 74 65 2d 66 69 |e read-r|emote-fi|
|00001740| 6c 65 2d 6e 61 6d 65 20 | 22 46 69 6e 64 20 72 65 |le-name |"Find re|
|00001750| 6d 6f 74 65 20 61 6c 74 | 65 72 6e 61 74 65 20 66 |mote alt|ernate f|
|00001760| 69 6c 65 22 5d 20 34 20 | 22 5c 0a 46 69 6e 64 20 |ile"] 4 |"\.Find |
|00001770| 61 6c 74 65 72 6e 61 74 | 65 20 66 69 6c 65 20 75 |alternat|e file u|
|00001780| 73 69 6e 67 20 72 63 70 | 2e 0a 54 68 69 73 20 63 |sing rcp|..This c|
|00001790| 6f 6d 6d 61 6e 64 20 69 | 73 20 73 69 6d 69 6c 69 |ommand i|s simili|
|000017a0| 61 72 20 74 6f 20 66 69 | 6e 64 2d 61 6c 74 65 72 |ar to fi|nd-alter|
|000017b0| 6e 61 74 65 2d 66 69 6c | 65 2c 20 62 75 74 20 75 |nate-fil|e, but u|
|000017c0| 73 65 73 20 72 63 70 20 | 74 6f 20 72 65 61 64 20 |ses rcp |to read |
|000017d0| 74 68 65 20 66 69 6c 65 | 20 66 72 6f 6d 0a 61 20 |the file| from.a |
|000017e0| 72 65 6d 6f 74 65 20 6d | 61 63 68 69 6e 65 2e 20 |remote m|achine. |
|000017f0| 20 41 6c 73 6f 20 73 65 | 65 20 72 65 6d 6f 74 65 | Also se|e remote|
|00001800| 2d 65 64 69 74 69 6e 67 | 2e 22 20 6e 69 6c 5d 29 |-editing|." nil])|
|00001810| 0a 28 66 73 65 74 20 27 | 73 61 76 65 2d 72 65 6d |.(fset '|save-rem|
|00001820| 6f 74 65 2d 62 75 66 66 | 65 72 20 23 5b 6e 69 6c |ote-buff|er #[nil|
|00001830| 20 22 c0 20 ab 8e 09 47 | c2 55 ab 84 c3 c4 21 87 | ". ...G|.U....!.|
|00001840| c5 09 21 87 c6 c7 21 87 | 22 20 5b 62 75 66 66 65 |..!...!.|" [buffe|
|00001850| 72 2d 6d 6f 64 69 66 69 | 65 64 2d 70 20 62 75 66 |r-modifi|ed-p buf|
|00001860| 66 65 72 2d 72 65 6d 6f | 74 65 2d 66 69 6c 65 2d |fer-remo|te-file-|
|00001870| 6e 61 6d 65 20 30 20 63 | 61 6c 6c 2d 69 6e 74 65 |name 0 c|all-inte|
|00001880| 72 61 63 74 69 76 65 6c | 79 20 77 72 69 74 65 2d |ractivel|y write-|
|00001890| 72 65 6d 6f 74 65 2d 66 | 69 6c 65 20 64 6f 2d 77 |remote-f|ile do-w|
|000018a0| 72 69 74 65 2d 72 65 6d | 6f 74 65 2d 66 69 6c 65 |rite-rem|ote-file|
|000018b0| 20 6d 65 73 73 61 67 65 | 20 22 28 4e 6f 20 63 68 | message| "(No ch|
|000018c0| 61 6e 67 65 73 20 6e 65 | 65 64 20 74 6f 20 62 65 |anges ne|ed to be|
|000018d0| 20 73 61 76 65 64 29 22 | 5d 20 32 20 22 5c 0a 53 | saved)"|] 2 "\.S|
|000018e0| 61 76 65 20 61 20 66 69 | 6c 65 20 75 73 69 6e 67 |ave a fi|le using|
|000018f0| 20 72 63 70 2e 0a 54 68 | 69 73 20 63 6f 6d 6d 61 | rcp..Th|is comma|
|00001900| 6e 64 20 69 73 20 73 69 | 6d 69 6c 69 61 72 20 74 |nd is si|miliar t|
|00001910| 6f 20 73 61 76 65 2d 62 | 75 66 66 65 72 2c 20 62 |o save-b|uffer, b|
|00001920| 75 74 20 75 73 65 73 20 | 72 63 70 20 74 6f 20 77 |ut uses |rcp to w|
|00001930| 72 69 74 65 20 74 68 65 | 20 66 69 6c 65 20 62 61 |rite the| file ba|
|00001940| 63 6b 0a 74 6f 20 61 20 | 72 65 6d 6f 74 65 20 6d |ck.to a |remote m|
|00001950| 61 63 68 69 6e 65 2e 20 | 20 41 6c 73 6f 20 73 65 |achine. | Also se|
|00001960| 65 20 72 65 6d 6f 74 65 | 2d 65 64 69 74 69 6e 67 |e remote|-editing|
|00001970| 2e 22 20 6e 69 6c 5d 29 | 0a 28 66 73 65 74 20 27 |." nil])|.(fset '|
|00001980| 77 72 69 74 65 2d 72 65 | 6d 6f 74 65 2d 66 69 6c |write-re|mote-fil|
|00001990| 65 20 23 5b 28 68 6f 73 | 74 20 66 69 6c 65 29 20 |e #[(hos|t file) |
|000019a0| 22 c0 09 5c 6e 50 21 87 | 22 20 5b 64 6f 2d 77 72 |"..\nP!.|" [do-wr|
|000019b0| 69 74 65 2d 72 65 6d 6f | 74 65 2d 66 69 6c 65 20 |ite-remo|te-file |
|000019c0| 68 6f 73 74 20 66 69 6c | 65 5d 20 33 20 22 5c 0a |host fil|e] 3 "\.|
|000019d0| 57 72 69 74 65 20 61 20 | 66 69 6c 65 20 48 4f 53 |Write a |file HOS|
|000019e0| 54 3a 46 49 4c 45 20 75 | 73 69 6e 67 20 72 63 70 |T:FILE u|sing rcp|
|000019f0| 2e 0a 54 68 69 73 20 63 | 6f 6d 6d 61 6e 64 20 69 |..This c|ommand i|
|00001a00| 73 20 73 69 6d 69 6c 69 | 61 72 20 74 6f 20 77 72 |s simili|ar to wr|
|00001a10| 69 74 65 2d 66 69 6c 65 | 2c 20 62 75 74 20 75 73 |ite-file|, but us|
|00001a20| 65 73 20 72 63 70 20 74 | 6f 20 77 72 69 74 65 20 |es rcp t|o write |
|00001a30| 74 68 65 20 66 69 6c 65 | 20 62 61 63 6b 0a 74 6f |the file| back.to|
|00001a40| 20 61 20 72 65 6d 6f 74 | 65 20 6d 61 63 68 69 6e | a remot|e machin|
|00001a50| 65 2e 20 20 41 6c 73 6f | 20 73 65 65 20 72 65 6d |e. Also| see rem|
|00001a60| 6f 74 65 2d 65 64 69 74 | 69 6e 67 2e 22 20 28 62 |ote-edit|ing." (b|
|00001a70| 79 74 65 2d 63 6f 64 65 | 20 22 c0 c1 c2 5c 22 87 |yte-code| "...\".|
|00001a80| 22 20 5b 72 65 61 64 2d | 72 65 6d 6f 74 65 2d 66 |" [read-|remote-f|
|00001a90| 69 6c 65 2d 6e 61 6d 65 | 20 22 57 72 69 74 65 20 |ile-name| "Write |
|00001aa0| 72 65 6d 6f 74 65 20 66 | 69 6c 65 22 20 6e 6f 2d |remote f|ile" no-|
|00001ab0| 66 69 6c 65 2d 6f 6b 5d | 20 33 29 5d 29 0a 28 66 |file-ok]| 3)]).(f|
|00001ac0| 73 65 74 20 27 69 6e 73 | 65 72 74 2d 72 65 6d 6f |set 'ins|ert-remo|
|00001ad0| 74 65 2d 66 69 6c 65 20 | 23 5b 28 68 6f 73 74 20 |te-file |#[(host |
|00001ae0| 66 69 6c 65 29 20 22 c0 | 09 5c 6e c3 23 89 1c ad |file) ".|.\n.#...|
|00001af0| 91 c5 0c 21 ab 85 c6 0c | 21 aa 87 c7 0c 21 88 c8 |...!....|!....!..|
|00001b00| 0c 21 29 87 22 20 5b 67 | 65 74 2d 72 65 6d 6f 74 |.!)." [g|et-remot|
|00001b10| 65 2d 66 69 6c 65 2d 6f | 72 2d 62 75 66 66 65 72 |e-file-o|r-buffer|
|00001b20| 20 68 6f 73 74 20 66 69 | 6c 65 20 22 69 6e 73 65 | host fi|le "inse|
|00001b30| 72 74 22 20 66 2d 6f 72 | 2d 62 20 62 75 66 66 65 |rt" f-or|-b buffe|
|00001b40| 72 70 20 69 6e 73 65 72 | 74 2d 62 75 66 66 65 72 |rp inser|t-buffer|
|00001b50| 20 69 6e 73 65 72 74 2d | 66 69 6c 65 20 64 65 6c | insert-|file del|
|00001b60| 65 74 65 2d 66 69 6c 65 | 5d 20 35 20 22 5c 0a 49 |ete-file|] 5 "\.I|
|00001b70| 6e 73 65 72 74 20 61 20 | 72 65 6d 6f 74 65 20 66 |nsert a |remote f|
|00001b80| 69 6c 65 20 48 4f 53 54 | 3a 46 49 4c 45 20 75 73 |ile HOST|:FILE us|
|00001b90| 69 6e 67 20 72 63 70 2e | 0a 54 68 69 73 20 63 6f |ing rcp.|.This co|
|00001ba0| 6d 6d 61 6e 64 20 69 73 | 20 73 69 6d 69 6c 69 61 |mmand is| similia|
|00001bb0| 72 20 74 6f 20 69 6e 73 | 65 72 74 2d 66 69 6c 65 |r to ins|ert-file|
|00001bc0| 2c 20 62 75 74 20 75 73 | 65 73 20 72 63 70 20 74 |, but us|es rcp t|
|00001bd0| 6f 20 72 65 61 64 20 74 | 68 65 20 66 69 6c 65 20 |o read t|he file |
|00001be0| 66 72 6f 6d 0a 61 20 72 | 65 6d 6f 74 65 20 6d 61 |from.a r|emote ma|
|00001bf0| 63 68 69 6e 65 2e 20 20 | 41 6c 73 6f 20 73 65 65 |chine. |Also see|
|00001c00| 20 72 65 6d 6f 74 65 2d | 65 64 69 74 69 6e 67 2e | remote-|editing.|
|00001c10| 22 20 28 72 65 61 64 2d | 72 65 6d 6f 74 65 2d 66 |" (read-|remote-f|
|00001c20| 69 6c 65 2d 6e 61 6d 65 | 20 22 49 6e 73 65 72 74 |ile-name| "Insert|
|00001c30| 20 72 65 6d 6f 74 65 20 | 66 69 6c 65 22 29 5d 29 | remote |file")])|
|00001c40| 0a 28 66 73 65 74 20 27 | 64 6f 2d 77 72 69 74 65 |.(fset '|do-write|
|00001c50| 2d 72 65 6d 6f 74 65 2d | 66 69 6c 65 20 23 5b 28 |-remote-|file #[(|
|00001c60| 66 69 6c 65 29 20 22 c0 | c1 20 50 1a 8a c3 c4 21 |file) ".|. P....!|
|00001c70| 71 c5 20 88 29 1e 06 c7 | 1e 08 c9 1e 5c 6e 8c 7e |q. .)...|....\n.~|
|00001c80| 88 cb 65 64 5c 6e c9 cc | 25 88 29 cd ce 0e 0f 5c |..ed\n..|%.)....\|
|00001c90| 22 88 d0 d1 d2 0e 06 0e | 13 5c 6e 0e 0f 25 21 89 |".......|.\n..%!.|
|00001ca0| 16 5c 6e ab b2 0e 14 ab | 9d d5 0e 0f 21 d6 d7 0e |.\n.....|....!...|
|00001cb0| 0f 21 21 50 1e 18 d9 0e | 18 21 ac 85 da 0e 18 21 |.!!P....|.!.....!|
|00001cc0| 88 db c9 21 88 29 0e 0f | 16 1c cd dd de 20 0e 5c |...!.)..|..... .\|
|00001cd0| 6e 23 88 df 5c 6e 21 aa | 87 e0 0e 06 0e 1c e1 23 |n#..\n!.|.......#|
|00001ce0| 2c 87 22 20 5b 22 2f 74 | 6d 70 2f 22 20 62 75 66 |,." ["/t|mp/" buf|
|00001cf0| 66 65 72 2d 6e 61 6d 65 | 20 74 65 6d 70 20 67 65 |fer-name| temp ge|
|00001d00| 74 2d 62 75 66 66 65 72 | 2d 63 72 65 61 74 65 20 |t-buffer|-create |
|00001d10| 22 2a 52 63 70 20 4f 75 | 74 70 75 74 2a 22 20 65 |"*Rcp Ou|tput*" e|
|00001d20| 72 61 73 65 2d 62 75 66 | 66 65 72 20 6f 75 74 70 |rase-buf|fer outp|
|00001d30| 75 74 20 74 20 63 75 72 | 73 6f 72 2d 69 6e 2d 65 |ut t cur|sor-in-e|
|00001d40| 63 68 6f 2d 61 72 65 61 | 20 6e 69 6c 20 74 69 6d |cho-area| nil tim|
|00001d50| 65 20 77 72 69 74 65 2d | 72 65 67 69 6f 6e 20 6e |e write-|region n|
|00001d60| 6f 2d 6d 65 73 73 61 67 | 65 20 6d 65 73 73 61 67 |o-messag|e messag|
|00001d70| 65 20 22 53 65 6e 64 69 | 6e 67 20 25 73 2e 2e 2e |e "Sendi|ng %s...|
|00001d80| 22 20 66 69 6c 65 20 70 | 72 6f 63 65 73 73 2d 77 |" file p|rocess-w|
|00001d90| 61 69 74 20 73 74 61 72 | 74 2d 70 72 6f 63 65 73 |ait star|t-proces|
|00001da0| 73 20 22 72 63 70 22 20 | 72 63 70 20 72 65 6d 6f |s "rcp" |rcp remo|
|00001db0| 74 65 2d 65 64 69 74 69 | 6e 67 20 68 6f 73 74 2d |te-editi|ng host-|
|00001dc0| 70 61 72 74 2d 6f 6e 6c | 79 20 66 69 6c 65 2d 6e |part-onl|y file-n|
|00001dd0| 61 6d 65 2d 6e 6f 6e 64 | 69 72 65 63 74 6f 72 79 |ame-nond|irectory|
|00001de0| 20 66 69 6c 65 2d 70 61 | 72 74 2d 6f 6e 6c 79 20 | file-pa|rt-only |
|00001df0| 6e 65 77 2d 6e 61 6d 65 | 20 67 65 74 2d 62 75 66 |new-name| get-buf|
|00001e00| 66 65 72 20 72 65 6e 61 | 6d 65 2d 62 75 66 66 65 |fer rena|me-buffe|
|00001e10| 72 20 73 65 74 2d 62 75 | 66 66 65 72 2d 6d 6f 64 |r set-bu|ffer-mod|
|00001e20| 69 66 69 65 64 2d 70 20 | 62 75 66 66 65 72 2d 72 |ified-p |buffer-r|
|00001e30| 65 6d 6f 74 65 2d 66 69 | 6c 65 2d 6e 61 6d 65 20 |emote-fi|le-name |
|00001e40| 22 25 64 20 62 79 74 65 | 73 20 69 6e 20 25 64 20 |"%d byte|s in %d |
|00001e50| 73 65 63 6f 6e 64 73 22 | 20 62 75 66 66 65 72 2d |seconds"| buffer-|
|00001e60| 73 69 7a 65 20 64 65 6c | 65 74 65 2d 66 69 6c 65 |size del|ete-file|
|00001e70| 20 72 65 6d 6f 74 65 2d | 72 63 70 2d 65 72 72 6f | remote-|rcp-erro|
|00001e80| 72 20 22 75 70 64 61 74 | 65 22 5d 20 37 5d 29 0a |r "updat|e"] 7]).|
|00001e90| 28 66 73 65 74 20 27 67 | 65 74 2d 72 65 6d 6f 74 |(fset 'g|et-remot|
|00001ea0| 65 2d 66 69 6c 65 2d 6f | 72 2d 62 75 66 66 65 72 |e-file-o|r-buffer|
|00001eb0| 20 23 5b 28 68 6f 73 74 | 20 66 69 6c 65 20 6d 65 | #[(host| file me|
|00001ec0| 73 73 61 67 65 29 20 22 | 08 09 50 c2 c3 09 21 50 |ssage) "|..P...!P|
|00001ed0| c4 1d 1e 06 1e 07 09 c8 | 09 21 98 ab 87 c9 ca 21 |........|.!.....!|
|00001ee0| 88 c4 aa c3 cb 0e 07 21 | ae bd 8a cc cd 21 71 ce |.......!|.....!q.|
|00001ef0| 20 88 29 1e 0f d0 1e 11 | c9 d2 0e 07 5c 22 88 d3 | .).....|....\"..|
|00001f00| d4 d5 0e 0f 0e 16 0e 07 | 0e 06 25 21 89 15 ab 8f |........|..%!....|
|00001f10| c9 d7 d8 d9 0e 06 21 38 | 0d 23 88 0e 06 aa 88 da |......!8|.#......|
|00001f20| 0e 0f 0e 07 0e 09 23 2a | 2b 87 22 20 5b 68 6f 73 |......#*|+." [hos|
|00001f30| 74 20 66 69 6c 65 20 22 | 2f 74 6d 70 2f 22 20 66 |t file "|/tmp/" f|
|00001f40| 69 6c 65 2d 6e 61 6d 65 | 2d 6e 6f 6e 64 69 72 65 |ile-name|-nondire|
|00001f50| 63 74 6f 72 79 20 6e 69 | 6c 20 74 69 6d 65 20 74 |ctory ni|l time t|
|00001f60| 65 6d 70 20 72 65 6d 6f | 74 65 20 66 69 6c 65 2d |emp remo|te file-|
|00001f70| 6e 61 6d 65 2d 64 69 72 | 65 63 74 6f 72 79 20 6d |name-dir|ectory m|
|00001f80| 65 73 73 61 67 65 20 22 | 52 65 6d 6f 74 65 20 64 |essage "|Remote d|
|00001f90| 69 72 65 63 74 6f 72 79 | 20 6c 69 73 74 69 6e 67 |irectory| listing|
|00001fa0| 20 6e 6f 74 20 79 65 74 | 20 69 6d 70 6c 65 6d 65 | not yet| impleme|
|00001fb0| 6e 74 65 64 22 20 67 65 | 74 2d 72 65 6d 6f 74 65 |nted" ge|t-remote|
|00001fc0| 2d 62 75 66 66 65 72 20 | 67 65 74 2d 62 75 66 66 |-buffer |get-buff|
|00001fd0| 65 72 2d 63 72 65 61 74 | 65 20 22 2a 52 63 70 20 |er-creat|e "*Rcp |
|00001fe0| 4f 75 74 70 75 74 2a 22 | 20 65 72 61 73 65 2d 62 |Output*"| erase-b|
|00001ff0| 75 66 66 65 72 20 6f 75 | 74 70 75 74 20 74 20 63 |uffer ou|tput t c|
|00002000| 75 72 73 6f 72 2d 69 6e | 2d 65 63 68 6f 2d 61 72 |ursor-in|-echo-ar|
|00002010| 65 61 20 22 52 65 74 72 | 69 65 76 69 6e 67 20 25 |ea "Retr|ieving %|
|00002020| 73 2e 2e 2e 22 20 70 72 | 6f 63 65 73 73 2d 77 61 |s..." pr|ocess-wa|
|00002030| 69 74 20 73 74 61 72 74 | 2d 70 72 6f 63 65 73 73 |it start|-process|
|00002040| 20 22 72 63 70 22 20 72 | 63 70 20 22 25 64 20 62 | "rcp" r|cp "%d b|
|00002050| 79 74 65 73 20 69 6e 20 | 25 64 20 73 65 63 6f 6e |ytes in |%d secon|
|00002060| 64 73 22 20 37 20 66 69 | 6c 65 2d 61 74 74 72 69 |ds" 7 fi|le-attri|
|00002070| 62 75 74 65 73 20 72 65 | 6d 6f 74 65 2d 72 63 70 |butes re|mote-rcp|
|00002080| 2d 65 72 72 6f 72 5d 20 | 37 20 22 5c 0a 52 65 74 |-error] |7 "\.Ret|
|00002090| 75 72 6e 20 61 20 72 65 | 6d 6f 74 65 20 66 69 6c |urn a re|mote fil|
|000020a0| 65 20 61 73 20 65 69 74 | 68 65 72 20 61 20 62 75 |e as eit|her a bu|
|000020b0| 66 66 65 72 20 6f 72 20 | 61 20 66 69 6c 65 2e 0a |ffer or |a file..|
|000020c0| 49 66 20 74 68 65 20 66 | 69 6c 65 20 48 4f 53 54 |If the f|ile HOST|
|000020d0| 3a 46 49 4c 45 20 61 6c | 72 65 61 64 79 20 68 61 |:FILE al|ready ha|
|000020e0| 73 20 62 65 65 6e 20 72 | 65 61 64 20 69 6e 2c 20 |s been r|ead in, |
|000020f0| 72 65 74 75 72 6e 20 74 | 68 65 20 62 75 66 66 65 |return t|he buffe|
|00002100| 72 0a 74 68 61 74 20 63 | 6f 6e 74 61 69 6e 73 20 |r.that c|ontains |
|00002110| 69 74 3b 20 6f 74 68 65 | 72 77 69 73 65 20 74 72 |it; othe|rwise tr|
|00002120| 79 20 61 6e 64 20 72 63 | 70 20 74 68 65 20 66 69 |y and rc|p the fi|
|00002130| 6c 65 20 74 6f 20 74 68 | 65 20 6c 6f 63 61 6c 20 |le to th|e local |
|00002140| 6d 61 63 68 69 6e 65 2e | 0a 49 66 20 73 75 63 63 |machine.|.If succ|
|00002150| 65 73 73 66 75 6c 2c 20 | 72 65 74 75 72 6e 20 74 |essful, |return t|
|00002160| 68 65 20 6c 6f 63 61 6c | 20 66 69 6c 65 20 6e 61 |he local| file na|
|00002170| 6d 65 2e 22 5d 29 0a 28 | 66 73 65 74 20 27 67 65 |me."]).(|fset 'ge|
|00002180| 74 2d 72 65 6d 6f 74 65 | 2d 62 75 66 66 65 72 20 |t-remote|-buffer |
|00002190| 23 5b 28 6e 61 6d 65 29 | 20 22 c0 8b 87 22 20 5b |#[(name)| "..." [|
|000021a0| 28 28 62 79 74 65 2d 63 | 6f 64 65 20 22 c0 20 c1 |((byte-c|ode ". .|
|000021b0| 1a 1b 5c 6e ac 94 0b ab | 91 0b 40 71 88 0c 0d 98 |..\n....|..@q....|
|000021c0| ab 83 0b 40 12 0b 41 13 | aa 69 5c 6e 2a 87 22 20 |...@..A.|.i\n*." |
|000021d0| 5b 62 75 66 66 65 72 2d | 6c 69 73 74 20 6e 69 6c |[buffer-|list nil|
|000021e0| 20 66 6f 75 6e 64 20 62 | 75 66 66 65 72 73 20 6e | found b|uffers n|
|000021f0| 61 6d 65 20 62 75 66 66 | 65 72 2d 72 65 6d 6f 74 |ame buff|er-remot|
|00002200| 65 2d 66 69 6c 65 2d 6e | 61 6d 65 5d 20 32 29 29 |e-file-n|ame] 2))|
|00002210| 5d 20 31 5d 29 0a 28 66 | 73 65 74 20 27 72 65 61 |] 1]).(f|set 'rea|
|00002220| 64 2d 72 65 6d 6f 74 65 | 2d 66 69 6c 65 2d 6e 61 |d-remote|-file-na|
|00002230| 6d 65 20 23 5b 28 70 72 | 6f 6d 70 74 20 26 6f 70 |me #[(pr|ompt &op|
|00002240| 74 69 6f 6e 61 6c 20 6e | 6f 2d 66 69 6c 65 2d 6f |tional n|o-file-o|
|00002250| 6b 29 20 22 c0 09 21 ae | 81 5c 6e 89 1b c4 c5 09 |k) "..!.|.\n.....|
|00002260| 21 ae 81 c6 21 50 1e 07 | 0e 08 c9 50 1e 08 ca 1e |!...!P..|...P....|
|00002270| 0b cc 0e 08 0e 07 5c 22 | 16 07 cd 0e 0e ab 83 cf |......\"|........|
|00002280| aa 81 d0 0e 07 5c 22 ac | 8a cc 0e 08 0e 07 5c 22 |.....\".|......\"|
|00002290| 16 07 aa 68 c0 0e 07 21 | 13 c5 0e 07 21 16 0b 0e |...h...!|....!...|
|000022a0| 11 ab 82 0b 12 0b 0e 0b | ab 89 0e 0b c4 0e 0b 21 |........|.......!|
|000022b0| 98 ab 99 0e 0b 09 c6 98 | ac 87 d2 c5 09 21 21 ae |........|.....!!.|
|000022c0| 88 c5 d3 20 21 ae 82 d3 | 20 50 aa 82 0e 0b 2c 44 |... !...| P....,D|
|000022d0| 87 22 20 5b 68 6f 73 74 | 2d 70 61 72 74 2d 6f 6e |." [host|-part-on|
|000022e0| 6c 79 20 62 75 66 66 65 | 72 2d 72 65 6d 6f 74 65 |ly buffe|r-remote|
|000022f0| 2d 66 69 6c 65 2d 6e 61 | 6d 65 20 64 65 66 61 75 |-file-na|me defau|
|00002300| 6c 74 2d 72 65 6d 6f 74 | 65 2d 68 6f 73 74 20 68 |lt-remot|e-host h|
|00002310| 6f 73 74 20 66 69 6c 65 | 2d 6e 61 6d 65 2d 64 69 |ost file|-name-di|
|00002320| 72 65 63 74 6f 72 79 20 | 66 69 6c 65 2d 70 61 72 |rectory |file-par|
|00002330| 74 2d 6f 6e 6c 79 20 22 | 22 20 72 65 73 75 6c 74 |t-only "|" result|
|00002340| 20 70 72 6f 6d 70 74 20 | 22 20 28 68 6f 73 74 3a | prompt |" (host:|
|00002350| 66 69 6c 65 29 3a 20 22 | 20 6e 69 6c 20 66 69 6c |file): "| nil fil|
|00002360| 65 20 72 65 61 64 2d 6e | 6f 2d 62 6c 61 6e 6b 73 |e read-n|o-blanks|
|00002370| 2d 69 6e 70 75 74 20 73 | 74 72 69 6e 67 2d 6d 61 |-input s|tring-ma|
|00002380| 74 63 68 20 6e 6f 2d 66 | 69 6c 65 2d 6f 6b 20 22 |tch no-f|ile-ok "|
|00002390| 2e 2b 3a 22 20 22 2e 2b | 3a 2e 2b 22 20 74 72 61 |.+:" ".+|:.+" tra|
|000023a0| 63 6b 2d 64 65 66 61 75 | 6c 74 2d 72 65 6d 6f 74 |ck-defau|lt-remot|
|000023b0| 65 2d 68 6f 73 74 20 66 | 69 6c 65 2d 6e 61 6d 65 |e-host f|ile-name|
|000023c0| 2d 6e 6f 6e 64 69 72 65 | 63 74 6f 72 79 20 62 75 |-nondire|ctory bu|
|000023d0| 66 66 65 72 2d 6e 61 6d | 65 5d 20 36 20 22 5c 0a |ffer-nam|e] 6 "\.|
|000023e0| 52 65 61 64 20 61 20 72 | 65 6d 6f 74 65 20 66 69 |Read a r|emote fi|
|000023f0| 6c 65 20 73 70 65 63 69 | 66 69 63 61 74 69 6f 6e |le speci|fication|
|00002400| 2c 20 61 6e 64 20 72 65 | 74 75 72 6e 20 6c 69 73 |, and re|turn lis|
|00002410| 74 20 28 68 6f 73 74 20 | 66 69 6c 65 29 2e 0a 50 |t (host |file)..P|
|00002420| 72 6f 6d 70 74 69 6e 67 | 20 77 69 74 68 20 50 52 |rompting| with PR|
|00002430| 4f 4d 50 54 2c 20 72 65 | 61 64 20 61 20 73 74 72 |OMPT, re|ad a str|
|00002440| 69 6e 67 20 6f 66 20 74 | 68 65 20 66 6f 72 6d 20 |ing of t|he form |
|00002450| 68 6f 73 74 3a 66 69 6c | 65 2e 20 20 54 68 65 20 |host:fil|e. The |
|00002460| 64 65 66 61 75 6c 74 0a | 76 61 6c 75 65 20 69 73 |default.|value is|
|00002470| 20 64 65 72 69 76 65 64 | 20 66 72 6f 6d 20 74 68 | derived| from th|
|00002480| 65 20 72 65 6d 6f 74 65 | 20 66 69 6c 65 20 6e 61 |e remote| file na|
|00002490| 6d 65 2c 20 6f 72 20 69 | 66 20 74 68 65 72 65 20 |me, or i|f there |
|000024a0| 69 73 20 6e 6f 6e 65 2c | 20 74 68 65 6e 0a 66 72 |is none,| then.fr|
|000024b0| 6f 6d 20 74 68 65 20 67 | 6c 6f 62 61 6c 20 64 65 |om the g|lobal de|
|000024c0| 66 61 75 6c 74 20 28 64 | 65 66 61 75 6c 74 2d 72 |fault (d|efault-r|
|000024d0| 65 6d 6f 74 65 2d 68 6f | 73 74 29 2e 22 5d 29 0a |emote-ho|st)."]).|
|000024e0| 28 62 79 74 65 2d 63 6f | 64 65 20 22 c0 c1 4d 88 |(byte-co|de "..M.|
|000024f0| c2 c3 4d 88 c4 c5 4d 88 | c6 c7 4d 88 c8 c9 4d 87 |..M...M.|..M...M.|
|00002500| 22 20 5b 68 6f 73 74 2d | 70 61 72 74 2d 6f 6e 6c |" [host-|part-onl|
|00002510| 79 20 23 5b 28 6e 61 6d | 65 29 20 22 c0 c1 5c 6e |y #[(nam|e) "..\n|
|00002520| 5c 22 ad 85 5c 6e c3 89 | 95 4f 87 22 20 5b 73 74 |\"..\n..|.O." [st|
|00002530| 72 69 6e 67 2d 6d 61 74 | 63 68 20 22 2e 2b 3a 22 |ring-mat|ch ".+:"|
|00002540| 20 6e 61 6d 65 20 30 5d | 20 33 5d 20 66 69 6c 65 | name 0]| 3] file|
|00002550| 2d 70 61 72 74 2d 6f 6e | 6c 79 20 23 5b 28 6e 61 |-part-on|ly #[(na|
|00002560| 6d 65 29 20 22 c0 c1 5c | 6e 5c 22 ad 86 5c 6e c3 |me) "..\|n\"..\n.|
|00002570| 94 c3 95 4f 87 22 20 5b | 73 74 72 69 6e 67 2d 6d |...O." [|string-m|
|00002580| 61 74 63 68 20 22 2e 2b | 3a 5c 5c 28 2e 2b 5c 5c |atch ".+|:\\(.+\\|
|00002590| 29 22 20 6e 61 6d 65 20 | 31 5d 20 33 5d 20 78 6f |)" name |1] 3] xo|
|000025a0| 72 20 23 5b 28 61 20 62 | 29 20 22 08 3f 09 3f 3f |r #[(a b|) ".?.??|
|000025b0| 3d 87 22 20 5b 61 20 62 | 5d 20 32 5d 20 70 72 6f |=." [a b|] 2] pro|
|000025c0| 63 65 73 73 2d 77 61 69 | 74 20 23 5b 28 70 72 6f |cess-wai|t #[(pro|
|000025d0| 63 29 20 22 c0 19 c2 0b | 21 c4 3d ab 89 09 54 11 |c) "....|!.=...T.|
|000025e0| c5 c6 21 88 aa 70 c2 0b | 21 c7 3d ad 88 c8 0b 21 |..!..p..|!.=....!|
|000025f0| c0 3d ad 81 09 29 87 22 | 20 5b 30 20 74 69 6d 65 |.=...)."| [0 time|
|00002600| 20 70 72 6f 63 65 73 73 | 2d 73 74 61 74 75 73 20 | process|-status |
|00002610| 70 72 6f 63 20 72 75 6e | 20 73 6c 65 65 70 2d 66 |proc run| sleep-f|
|00002620| 6f 72 20 31 20 65 78 69 | 74 20 70 72 6f 63 65 73 |or 1 exi|t proces|
|00002630| 73 2d 65 78 69 74 2d 73 | 74 61 74 75 73 5d 20 32 |s-exit-s|tatus] 2|
|00002640| 5d 20 72 65 6d 6f 74 65 | 2d 72 63 70 2d 65 72 72 |] remote|-rcp-err|
|00002650| 6f 72 20 23 5b 28 62 75 | 66 66 65 72 20 66 69 6c |or #[(bu|ffer fil|
|00002660| 65 2d 6e 61 6d 65 20 6d | 65 73 73 61 67 65 29 20 |e-name m|essage) |
|00002670| 22 c0 8b 87 22 20 5b 28 | 28 62 79 74 65 2d 63 6f |"..." [(|(byte-co|
|00002680| 64 65 20 22 c0 09 21 88 | c2 20 88 c3 62 88 c4 c5 |de "..!.|. ..b...|
|00002690| 0e 06 0e 07 23 63 88 64 | 62 88 c6 c8 21 88 c9 20 |....#c.d|b...!.. |
|000026a0| 88 ca 09 21 87 22 20 5b | 73 77 69 74 63 68 2d 74 |...!." [|switch-t|
|000026b0| 6f 2d 62 75 66 66 65 72 | 20 62 75 66 66 65 72 20 |o-buffer| buffer |
|000026c0| 64 65 6c 65 74 65 2d 6f | 74 68 65 72 2d 77 69 6e |delete-o|ther-win|
|000026d0| 64 6f 77 73 20 31 20 66 | 6f 72 6d 61 74 20 22 55 |dows 1 f|ormat "U|
|000026e0| 6e 61 62 6c 65 20 74 6f | 20 25 73 20 25 73 5c 6e |nable to| %s %s\n|
|000026f0| 5c 6e 22 20 6d 65 73 73 | 61 67 65 20 66 69 6c 65 |\n" mess|age file|
|00002700| 2d 6e 61 6d 65 20 22 48 | 69 74 20 61 6e 79 20 63 |-name "H|it any c|
|00002710| 68 61 72 61 63 74 65 72 | 20 74 6f 20 63 6f 6e 74 |haracter| to cont|
|00002720| 69 6e 75 65 22 20 72 65 | 61 64 2d 63 68 61 72 20 |inue" re|ad-char |
|00002730| 62 75 72 79 2d 62 75 66 | 66 65 72 5d 20 34 29 29 |bury-buf|fer] 4))|
|00002740| 5d 20 31 5d 5d 20 32 29 | 0a |] 1]] 2)|. |
+--------+-------------------------+-------------------------+--------+--------+