home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / gnu / emacs-19.16 / lisp / window.elc < prev    next >
Emacs Compiled Lisp  |  1993-07-05  |  4.1 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 69 6d 62 40 67 65 |piled by| jimb@ge|
|00000020| 65 63 68 2e 67 6e 75 2e | 61 69 2e 6d 69 74 2e 65 |ech.gnu.|ai.mit.e|
|00000030| 64 75 20 6f 6e 20 54 75 | 65 20 4a 75 6c 20 20 36 |du on Tu|e Jul 6|
|00000040| 20 30 30 3a 32 33 3a 30 | 30 20 31 39 39 33 0a 3b | 00:23:0|0 1993.;|
|00000050| 3b 3b 20 66 72 6f 6d 20 | 66 69 6c 65 20 2f 67 64 |;; from |file /gd|
|00000060| 2f 67 6e 75 2f 65 6d 61 | 63 73 2f 31 39 2e 30 2f |/gnu/ema|cs/19.0/|
|00000070| 6c 69 73 70 2f 77 69 6e | 64 6f 77 2e 65 6c 0a 3b |lisp/win|dow.el.;|
|00000080| 3b 3b 20 65 6d 61 63 73 | 20 76 65 72 73 69 6f 6e |;; emacs| version|
|00000090| 20 31 39 2e 31 35 2e 31 | 36 2e 0a 3b 3b 3b 20 62 | 19.15.1|6..;;; b|
|000000a0| 79 74 65 63 6f 6d 70 20 | 76 65 72 73 69 6f 6e 20 |ytecomp |version |
|000000b0| 46 53 46 20 32 2e 31 30 | 0a 3b 3b 3b 20 6f 70 74 |FSF 2.10|.;;; opt|
|000000c0| 69 6d 69 7a 61 74 69 6f | 6e 20 69 73 20 6f 6e 2e |imizatio|n is on.|
|000000d0| 0a 3b 3b 3b 20 74 68 69 | 73 20 66 69 6c 65 20 75 |.;;; thi|s file u|
|000000e0| 73 65 73 20 6f 70 63 6f | 64 65 73 20 77 68 69 63 |ses opco|des whic|
|000000f0| 68 20 64 6f 20 6e 6f 74 | 20 65 78 69 73 74 20 69 |h do not| exist i|
|00000100| 6e 20 45 6d 61 63 73 20 | 31 38 2e 0a 0a 28 69 66 |n Emacs |18...(if|
|00000110| 20 28 61 6e 64 20 28 62 | 6f 75 6e 64 70 20 27 65 | (and (b|oundp 'e|
|00000120| 6d 61 63 73 2d 76 65 72 | 73 69 6f 6e 29 0a 09 20 |macs-ver|sion).. |
|00000130| 28 6f 72 20 28 61 6e 64 | 20 28 62 6f 75 6e 64 70 |(or (and| (boundp|
|00000140| 20 27 65 70 6f 63 68 3a | 3a 76 65 72 73 69 6f 6e | 'epoch:|:version|
|00000150| 29 20 65 70 6f 63 68 3a | 3a 76 65 72 73 69 6f 6e |) epoch:|:version|
|00000160| 29 0a 09 20 20 20 20 20 | 28 73 74 72 69 6e 67 2d |).. |(string-|
|00000170| 6c 65 73 73 70 20 65 6d | 61 63 73 2d 76 65 72 73 |lessp em|acs-vers|
|00000180| 69 6f 6e 20 22 31 39 22 | 29 29 29 0a 20 20 20 20 |ion "19"|))). |
|00000190| 28 65 72 72 6f 72 20 22 | 54 68 69 73 20 66 69 6c |(error "|This fil|
|000001a0| 65 20 77 61 73 20 63 6f | 6d 70 69 6c 65 64 20 66 |e was co|mpiled f|
|000001b0| 6f 72 20 45 6d 61 63 73 | 20 31 39 22 29 29 0a 0a |or Emacs| 19"))..|
|000001c0| 28 64 65 66 61 6c 69 61 | 73 20 27 63 6f 75 6e 74 |(defalia|s 'count|
|000001d0| 2d 77 69 6e 64 6f 77 73 | 20 23 5b 28 26 6f 70 74 |-windows| #[(&opt|
|000001e0| 69 6f 6e 61 6c 20 6d 69 | 6e 69 62 75 66 29 20 22 |ional mi|nibuf) "|
|000001f0| c0 19 c2 c3 0c 5c 22 88 | 09 29 87 22 20 5b 30 20 |.....\".|.)." [0 |
|00000200| 63 6f 75 6e 74 20 77 61 | 6c 6b 2d 77 69 6e 64 6f |count wa|lk-windo|
|00000210| 77 73 20 23 5b 28 77 29 | 20 22 08 c1 5c 5c 89 10 |ws #[(w)| "..\\..|
|00000220| 87 22 20 5b 63 6f 75 6e | 74 20 31 5d 20 32 5d 20 |." [coun|t 1] 2] |
|00000230| 6d 69 6e 69 62 75 66 5d | 20 33 20 22 5c 0a 52 65 |minibuf]| 3 "\.Re|
|00000240| 74 75 72 6e 73 20 74 68 | 65 20 6e 75 6d 62 65 72 |turns th|e number|
|00000250| 20 6f 66 20 76 69 73 69 | 62 6c 65 20 77 69 6e 64 | of visi|ble wind|
|00000260| 6f 77 73 2e 0a 4f 70 74 | 69 6f 6e 61 6c 20 61 72 |ows..Opt|ional ar|
|00000270| 67 20 4e 4f 2d 4d 49 4e | 49 20 6e 6f 6e 2d 6e 69 |g NO-MIN|I non-ni|
|00000280| 6c 20 6d 65 61 6e 73 20 | 64 6f 6e 27 74 20 63 6f |l means |don't co|
|00000290| 75 6e 74 20 74 68 65 20 | 6d 69 6e 69 62 75 66 66 |unt the |minibuff|
|000002a0| 65 72 0a 65 76 65 6e 20 | 69 66 20 69 74 20 69 73 |er.even |if it is|
|000002b0| 20 61 63 74 69 76 65 2e | 22 5d 29 0a 28 64 65 66 | active.|"]).(def|
|000002c0| 61 6c 69 61 73 20 27 62 | 61 6c 61 6e 63 65 2d 77 |alias 'b|alance-w|
|000002d0| 69 6e 64 6f 77 73 20 23 | 5b 6e 69 6c 20 22 c0 c1 |indows #|[nil "..|
|000002e0| 89 89 1a 1b 1c 1d c6 8b | 88 c7 20 0d a5 12 c8 c9 |........|.. .....|
|000002f0| 21 88 c8 ca cb 5c 22 2c | 87 22 20 5b 2d 31 20 6e |!....\",|." [-1 n|
|00000300| 69 6c 20 73 69 7a 65 20 | 6e 65 77 73 69 7a 65 73 |il size |newsizes|
|00000310| 20 6c 65 76 65 6c 73 20 | 63 6f 75 6e 74 20 28 28 | levels |count ((|
|00000320| 62 79 74 65 2d 63 6f 64 | 65 20 22 c0 c1 1a 1b c4 |byte-cod|e ".....|
|00000330| c5 c6 5c 22 88 c7 0b c8 | 5c 22 89 13 83 33 00 0b |..\"....|\"...3..|
|00000340| 40 5c 6e 54 56 83 5c 22 | 00 0b 40 12 0e 09 54 16 |@\nTV.\"|..@...T.|
|00000350| 09 0b 40 0e 09 42 0e 5c | 6e 42 16 5c 6e 0b 41 89 |..@..B.\|nB.\n.A.|
|00000360| 13 84 12 00 0e 09 54 16 | 09 2a c0 87 22 20 5b 6e |......T.|.*.." [n|
|00000370| 69 6c 20 2d 32 20 70 72 | 65 76 2d 74 6f 70 20 74 |il -2 pr|ev-top t|
|00000380| 6f 70 73 20 77 61 6c 6b | 2d 77 69 6e 64 6f 77 73 |ops walk|-windows|
|00000390| 20 23 5b 28 77 29 20 22 | c0 09 21 41 40 5c 6e 42 | #[(w) "|..!A@\nB|
|000003a0| 89 12 87 22 20 5b 77 69 | 6e 64 6f 77 2d 65 64 67 |..." [wi|ndow-edg|
|000003b0| 65 73 20 77 20 74 6f 70 | 73 5d 20 32 5d 20 6e 6f |es w top|s] 2] no|
|000003c0| 6d 69 6e 69 20 73 6f 72 | 74 20 3c 20 63 6f 75 6e |mini sor|t < coun|
|000003d0| 74 20 6c 65 76 65 6c 73 | 5d 20 34 29 29 20 66 72 |t levels|] 4)) fr|
|000003e0| 61 6d 65 2d 68 65 69 67 | 68 74 20 77 61 6c 6b 2d |ame-heig|ht walk-|
|000003f0| 77 69 6e 64 6f 77 73 20 | 23 5b 28 77 29 20 22 c0 |windows |#[(w) ".|
|00000400| 09 21 88 c2 20 41 40 0b | 9e 41 c4 20 c2 20 41 40 |.!.. A@.|.A. . A@|
|00000410| 5c 5c 0b 9e 41 86 19 00 | 0d 1e 06 1e 07 09 0e 08 |\\..A...|........|
|00000420| 0e 06 0e 07 5a 5f 42 0e | 09 42 89 16 09 2a 87 22 |....Z_B.|.B...*."|
|00000430| 20 5b 73 65 6c 65 63 74 | 2d 77 69 6e 64 6f 77 20 | [select|-window |
|00000440| 77 20 77 69 6e 64 6f 77 | 2d 65 64 67 65 73 20 6c |w window|-edges l|
|00000450| 65 76 65 6c 73 20 77 69 | 6e 64 6f 77 2d 68 65 69 |evels wi|ndow-hei|
|00000460| 67 68 74 20 63 6f 75 6e | 74 20 6e 65 77 62 6f 74 |ght coun|t newbot|
|00000470| 20 6e 65 77 74 6f 70 20 | 73 69 7a 65 20 6e 65 77 | newtop |size new|
|00000480| 73 69 7a 65 73 5d 20 34 | 5d 20 23 5b 28 77 29 20 |sizes] 4|] #[(w) |
|00000490| 22 c0 09 21 88 09 5c 6e | 9e 41 1b c4 0b c5 20 5a |"..!..\n|.A.... Z|
|000004a0| 21 29 87 22 20 5b 73 65 | 6c 65 63 74 2d 77 69 6e |!)." [se|lect-win|
|000004b0| 64 6f 77 20 77 20 6e 65 | 77 73 69 7a 65 73 20 6e |dow w ne|wsizes n|
|000004c0| 65 77 73 69 7a 65 20 65 | 6e 6c 61 72 67 65 2d 77 |ewsize e|nlarge-w|
|000004d0| 69 6e 64 6f 77 20 77 69 | 6e 64 6f 77 2d 68 65 69 |indow wi|ndow-hei|
|000004e0| 67 68 74 5d 20 33 5d 20 | 6e 6f 6d 69 6e 69 5d 20 |ght] 3] |nomini] |
|000004f0| 34 20 22 5c 0a 4d 61 6b | 65 73 20 61 6c 6c 20 76 |4 "\.Mak|es all v|
|00000500| 69 73 69 62 6c 65 20 77 | 69 6e 64 6f 77 73 20 74 |isible w|indows t|
|00000510| 68 65 20 73 61 6d 65 20 | 68 65 69 67 68 74 20 28 |he same |height (|
|00000520| 61 70 70 72 6f 78 69 6d | 61 74 65 6c 79 29 2e 22 |approxim|ately)."|
|00000530| 20 6e 69 6c 5d 29 0a 28 | 64 65 66 76 61 72 20 73 | nil]).(|defvar s|
|00000540| 70 6c 69 74 2d 77 69 6e | 64 6f 77 2d 6b 65 65 70 |plit-win|dow-keep|
|00000550| 2d 70 6f 69 6e 74 20 74 | 20 22 5c 0a 2a 49 66 20 |-point t| "\.*If |
|00000560| 6e 6f 6e 2d 6e 69 6c 2c | 20 73 70 6c 69 74 20 77 |non-nil,| split w|
|00000570| 69 6e 64 6f 77 73 20 6b | 65 65 70 73 20 74 68 65 |indows k|eeps the|
|00000580| 20 6f 72 69 67 69 6e 61 | 6c 20 70 6f 69 6e 74 20 | origina|l point |
|00000590| 69 6e 20 62 6f 74 68 20 | 63 68 69 6c 64 72 65 6e |in both |children|
|000005a0| 2e 0a 54 68 69 73 20 69 | 73 20 6f 66 74 65 6e 20 |..This i|s often |
|000005b0| 6d 6f 72 65 20 63 6f 6e | 76 65 6e 69 65 6e 74 20 |more con|venient |
|000005c0| 66 6f 72 20 65 64 69 74 | 69 6e 67 2e 0a 49 66 20 |for edit|ing..If |
|000005d0| 6e 69 6c 2c 20 61 64 6a | 75 73 74 20 70 6f 69 6e |nil, adj|ust poin|
|000005e0| 74 20 69 6e 20 65 61 63 | 68 20 6f 66 20 74 68 65 |t in eac|h of the|
|000005f0| 20 74 77 6f 20 77 69 6e | 64 6f 77 73 20 74 6f 20 | two win|dows to |
|00000600| 6d 69 6e 69 6d 69 7a 65 | 20 72 65 64 69 73 70 6c |minimize| redispl|
|00000610| 61 79 2e 0a 54 68 69 73 | 20 69 73 20 63 6f 6e 76 |ay..This| is conv|
|00000620| 65 6e 69 65 6e 74 20 6f | 6e 20 73 6c 6f 77 20 74 |enient o|n slow t|
|00000630| 65 72 6d 69 6e 61 6c 73 | 2c 20 62 75 74 20 70 6f |erminals|, but po|
|00000640| 69 6e 74 20 63 61 6e 20 | 6d 6f 76 65 20 73 74 72 |int can |move str|
|00000650| 61 6e 67 65 6c 79 2e 22 | 29 0a 28 64 65 66 61 6c |angely."|).(defal|
|00000660| 69 61 73 20 27 73 70 6c | 69 74 2d 77 69 6e 64 6f |ias 'spl|it-windo|
|00000670| 77 2d 76 65 72 74 69 63 | 61 6c 6c 79 20 23 5b 28 |w-vertic|ally #[(|
|00000680| 26 6f 70 74 69 6f 6e 61 | 6c 20 61 72 67 29 20 22 |&optiona|l arg) "|
|00000690| c0 20 60 c1 89 89 1a 1b | 1c 1d 1e 06 c7 c1 0e 08 |. `.....|........|
|000006a0| 85 17 00 c9 0e 08 21 5c | 22 14 0e 5c 6e 84 63 00 |......!\|"..\n.c.|
|000006b0| 8a cb 20 71 88 cc 20 62 | 88 cd ce 20 21 88 cf 0c |.. q.. b|... !...|
|000006c0| 60 5c 22 88 60 d0 0c 21 | 56 83 3e 00 d1 0c 60 5c |`\".`..!|V.>...`\|
|000006d0| 22 88 cd d2 21 88 60 13 | 29 0b 60 58 83 52 00 d1 |"...!.`.|).`X.R..|
|000006e0| 0e 06 0b 53 5c 22 88 cc | 0c 21 0d 57 83 63 00 d1 |...S\"..|.!.W.c..|
|000006f0| 0c 0d 5c 22 88 d3 0c 21 | 88 0c 2d 87 22 20 5b 73 |..\"...!|..-." [s|
|00000700| 65 6c 65 63 74 65 64 2d | 77 69 6e 64 6f 77 20 6e |elected-|window n|
|00000710| 69 6c 20 73 77 69 74 63 | 68 20 62 6f 74 74 6f 6d |il switc|h bottom|
|00000720| 20 6e 65 77 2d 77 20 6f | 6c 64 2d 70 6f 69 6e 74 | new-w o|ld-point|
|00000730| 20 6f 6c 64 2d 77 20 73 | 70 6c 69 74 2d 77 69 6e | old-w s|plit-win|
|00000740| 64 6f 77 20 61 72 67 20 | 70 72 65 66 69 78 2d 6e |dow arg |prefix-n|
|00000750| 75 6d 65 72 69 63 2d 76 | 61 6c 75 65 20 73 70 6c |umeric-v|alue spl|
|00000760| 69 74 2d 77 69 6e 64 6f | 77 2d 6b 65 65 70 2d 70 |it-windo|w-keep-p|
|00000770| 6f 69 6e 74 20 77 69 6e | 64 6f 77 2d 62 75 66 66 |oint win|dow-buff|
|00000780| 65 72 20 77 69 6e 64 6f | 77 2d 73 74 61 72 74 20 |er windo|w-start |
|00000790| 76 65 72 74 69 63 61 6c | 2d 6d 6f 74 69 6f 6e 20 |vertical|-motion |
|000007a0| 77 69 6e 64 6f 77 2d 68 | 65 69 67 68 74 20 73 65 |window-h|eight se|
|000007b0| 74 2d 77 69 6e 64 6f 77 | 2d 73 74 61 72 74 20 77 |t-window|-start w|
|000007c0| 69 6e 64 6f 77 2d 70 6f | 69 6e 74 20 73 65 74 2d |indow-po|int set-|
|000007d0| 77 69 6e 64 6f 77 2d 70 | 6f 69 6e 74 20 2d 31 20 |window-p|oint -1 |
|000007e0| 73 65 6c 65 63 74 2d 77 | 69 6e 64 6f 77 5d 20 35 |select-w|indow] 5|
|000007f0| 20 22 5c 0a 53 70 6c 69 | 74 20 63 75 72 72 65 6e | "\.Spli|t curren|
|00000800| 74 20 77 69 6e 64 6f 77 | 20 69 6e 74 6f 20 74 77 |t window| into tw|
|00000810| 6f 20 77 69 6e 64 6f 77 | 73 2c 20 6f 6e 65 20 61 |o window|s, one a|
|00000820| 62 6f 76 65 20 74 68 65 | 20 6f 74 68 65 72 2e 0a |bove the| other..|
|00000830| 54 68 65 20 75 70 70 65 | 72 6d 6f 73 74 20 77 69 |The uppe|rmost wi|
|00000840| 6e 64 6f 77 20 67 65 74 | 73 20 41 52 47 20 6c 69 |ndow get|s ARG li|
|00000850| 6e 65 73 20 61 6e 64 20 | 74 68 65 20 6f 74 68 65 |nes and |the othe|
|00000860| 72 20 67 65 74 73 20 74 | 68 65 20 72 65 73 74 2e |r gets t|he rest.|
|00000870| 0a 57 69 74 68 20 6e 6f | 20 61 72 67 75 6d 65 6e |.With no| argumen|
|00000880| 74 2c 20 73 70 6c 69 74 | 20 65 71 75 61 6c 6c 79 |t, split| equally|
|00000890| 20 6f 72 20 63 6c 6f 73 | 65 20 74 6f 20 69 74 2e | or clos|e to it.|
|000008a0| 0a 42 6f 74 68 20 77 69 | 6e 64 6f 77 73 20 64 69 |.Both wi|ndows di|
|000008b0| 73 70 6c 61 79 20 74 68 | 65 20 73 61 6d 65 20 62 |splay th|e same b|
|000008c0| 75 66 66 65 72 20 6e 6f | 77 20 63 75 72 72 65 6e |uffer no|w curren|
|000008d0| 74 2e 0a 0a 49 66 20 74 | 68 65 20 76 61 72 69 61 |t...If t|he varia|
|000008e0| 62 6c 65 20 73 70 6c 69 | 74 2d 77 69 6e 64 6f 77 |ble spli|t-window|
|000008f0| 2d 6b 65 65 70 2d 70 6f | 69 6e 74 20 69 73 20 6e |-keep-po|int is n|
|00000900| 6f 6e 2d 6e 69 6c 2c 20 | 62 6f 74 68 20 6e 65 77 |on-nil, |both new|
|00000910| 20 77 69 6e 64 6f 77 73 | 0a 77 69 6c 6c 20 67 65 | windows|.will ge|
|00000920| 74 20 74 68 65 20 73 61 | 6d 65 20 76 61 6c 75 65 |t the sa|me value|
|00000930| 20 6f 66 20 70 6f 69 6e | 74 20 61 73 20 74 68 65 | of poin|t as the|
|00000940| 20 63 75 72 72 65 6e 74 | 20 77 69 6e 64 6f 77 2e | current| window.|
|00000950| 20 20 54 68 69 73 20 69 | 73 20 6f 66 74 65 6e 0a | This i|s often.|
|00000960| 6d 6f 72 65 20 63 6f 6e | 76 65 6e 69 65 6e 74 20 |more con|venient |
|00000970| 66 6f 72 20 65 64 69 74 | 69 6e 67 2e 0a 0a 4f 74 |for edit|ing...Ot|
|00000980| 68 65 72 77 69 73 65 2c | 20 77 65 20 63 68 6f 73 |herwise,| we chos|
|00000990| 65 20 77 69 6e 64 6f 77 | 20 73 74 61 72 74 73 20 |e window| starts |
|000009a0| 73 6f 20 61 73 20 74 6f | 20 6d 69 6e 69 6d 69 7a |so as to| minimiz|
|000009b0| 65 20 74 68 65 20 61 6d | 6f 75 6e 74 20 6f 66 0a |e the am|ount of.|
|000009c0| 72 65 64 69 73 70 6c 61 | 79 3b 20 74 68 69 73 20 |redispla|y; this |
|000009d0| 69 73 20 63 6f 6e 76 65 | 6e 69 65 6e 74 20 6f 6e |is conve|nient on|
|000009e0| 20 73 6c 6f 77 20 74 65 | 72 6d 69 6e 61 6c 73 2e | slow te|rminals.|
|000009f0| 20 20 54 68 65 20 6e 65 | 77 20 73 65 6c 65 63 74 | The ne|w select|
|00000a00| 65 64 0a 77 69 6e 64 6f | 77 20 69 73 20 74 68 65 |ed.windo|w is the|
|00000a10| 20 6f 6e 65 20 74 68 61 | 74 20 74 68 65 20 63 75 | one tha|t the cu|
|00000a20| 72 72 65 6e 74 20 76 61 | 6c 75 65 20 6f 66 20 70 |rrent va|lue of p|
|00000a30| 6f 69 6e 74 20 61 70 70 | 65 61 72 73 20 69 6e 2e |oint app|ears in.|
|00000a40| 20 20 54 68 65 0a 76 61 | 6c 75 65 20 6f 66 20 70 | The.va|lue of p|
|00000a50| 6f 69 6e 74 20 63 61 6e | 20 63 68 61 6e 67 65 20 |oint can| change |
|00000a60| 69 66 20 74 68 65 20 74 | 65 78 74 20 61 72 6f 75 |if the t|ext arou|
|00000a70| 6e 64 20 70 6f 69 6e 74 | 20 69 73 20 68 69 64 64 |nd point| is hidd|
|00000a80| 65 6e 20 62 79 20 74 68 | 65 0a 6e 65 77 20 6d 6f |en by th|e.new mo|
|00000a90| 64 65 20 6c 69 6e 65 2e | 22 20 22 50 22 5d 29 0a |de line.|" "P"]).|
|00000aa0| 28 64 65 66 61 6c 69 61 | 73 20 27 73 70 6c 69 74 |(defalia|s 'split|
|00000ab0| 2d 77 69 6e 64 6f 77 2d | 68 6f 72 69 7a 6f 6e 74 |-window-|horizont|
|00000ac0| 61 6c 6c 79 20 23 5b 28 | 26 6f 70 74 69 6f 6e 61 |ally #[(|&optiona|
|00000ad0| 6c 20 61 72 67 29 20 22 | c0 c1 5c 6e 85 09 00 c3 |l arg) "|..\n....|
|00000ae0| 5c 6e 21 c4 23 87 22 20 | 5b 73 70 6c 69 74 2d 77 |\n!.#." |[split-w|
|00000af0| 69 6e 64 6f 77 20 6e 69 | 6c 20 61 72 67 20 70 72 |indow ni|l arg pr|
|00000b00| 65 66 69 78 2d 6e 75 6d | 65 72 69 63 2d 76 61 6c |efix-num|eric-val|
|00000b10| 75 65 20 74 5d 20 34 20 | 22 5c 0a 53 70 6c 69 74 |ue t] 4 |"\.Split|
|00000b20| 20 63 75 72 72 65 6e 74 | 20 77 69 6e 64 6f 77 20 | current| window |
|00000b30| 69 6e 74 6f 20 74 77 6f | 20 77 69 6e 64 6f 77 73 |into two| windows|
|00000b40| 20 73 69 64 65 20 62 79 | 20 73 69 64 65 2e 0a 54 | side by| side..T|
|00000b50| 68 69 73 20 77 69 6e 64 | 6f 77 20 62 65 63 6f 6d |his wind|ow becom|
|00000b60| 65 73 20 74 68 65 20 6c | 65 66 74 6d 6f 73 74 20 |es the l|eftmost |
|00000b70| 6f 66 20 74 68 65 20 74 | 77 6f 2c 20 61 6e 64 20 |of the t|wo, and |
|00000b80| 67 65 74 73 0a 41 52 47 | 20 63 6f 6c 75 6d 6e 73 |gets.ARG| columns|
|00000b90| 2e 20 20 4e 6f 20 61 72 | 67 20 6d 65 61 6e 73 20 |. No ar|g means |
|00000ba0| 73 70 6c 69 74 20 65 71 | 75 61 6c 6c 79 2e 22 20 |split eq|ually." |
|00000bb0| 22 50 22 5d 29 0a 28 64 | 65 66 61 6c 69 61 73 20 |"P"]).(d|efalias |
|00000bc0| 27 65 6e 6c 61 72 67 65 | 2d 77 69 6e 64 6f 77 2d |'enlarge|-window-|
|00000bd0| 68 6f 72 69 7a 6f 6e 74 | 61 6c 6c 79 20 23 5b 28 |horizont|ally #[(|
|00000be0| 61 72 67 29 20 22 c0 09 | c2 5c 22 87 22 20 5b 65 |arg) "..|.\"." [e|
|00000bf0| 6e 6c 61 72 67 65 2d 77 | 69 6e 64 6f 77 20 61 72 |nlarge-w|indow ar|
|00000c00| 67 20 74 5d 20 33 20 22 | 5c 0a 4d 61 6b 65 20 63 |g t] 3 "|\.Make c|
|00000c10| 75 72 72 65 6e 74 20 77 | 69 6e 64 6f 77 20 41 52 |urrent w|indow AR|
|00000c20| 47 20 63 6f 6c 75 6d 6e | 73 20 77 69 64 65 72 2e |G column|s wider.|
|00000c30| 22 20 22 70 22 5d 29 0a | 28 64 65 66 61 6c 69 61 |" "p"]).|(defalia|
|00000c40| 73 20 27 73 68 72 69 6e | 6b 2d 77 69 6e 64 6f 77 |s 'shrin|k-window|
|00000c50| 2d 68 6f 72 69 7a 6f 6e | 74 61 6c 6c 79 20 23 5b |-horizon|tally #[|
|00000c60| 28 61 72 67 29 20 22 c0 | 09 c2 5c 22 87 22 20 5b |(arg) ".|..\"." [|
|00000c70| 73 68 72 69 6e 6b 2d 77 | 69 6e 64 6f 77 20 61 72 |shrink-w|indow ar|
|00000c80| 67 20 74 5d 20 33 20 22 | 5c 0a 4d 61 6b 65 20 63 |g t] 3 "|\.Make c|
|00000c90| 75 72 72 65 6e 74 20 77 | 69 6e 64 6f 77 20 41 52 |urrent w|indow AR|
|00000ca0| 47 20 63 6f 6c 75 6d 6e | 73 20 6e 61 72 72 6f 77 |G column|s narrow|
|00000cb0| 65 72 2e 22 20 22 70 22 | 5d 29 0a 28 64 65 66 61 |er." "p"|]).(defa|
|00000cc0| 6c 69 61 73 20 27 73 68 | 72 69 6e 6b 2d 77 69 6e |lias 'sh|rink-win|
|00000cd0| 64 6f 77 2d 69 66 2d 6c | 61 72 67 65 72 2d 74 68 |dow-if-l|arger-th|
|00000ce0| 61 6e 2d 62 75 66 66 65 | 72 20 23 5b 28 26 6f 70 |an-buffe|r #[(&op|
|00000cf0| 74 69 6f 6e 61 6c 20 77 | 69 6e 64 6f 77 29 20 22 |tional w|indow) "|
|00000d00| 8a c0 09 21 71 88 c2 20 | 0b 60 c4 89 c5 c6 20 70 |...!q.. |.`.... p|
|00000d10| 1e 07 1e 08 1e 09 1e 5c | 6e 1e 0b 1e 0c 1b 1e 0d |.......\|n.......|
|00000d20| ce 65 21 85 53 00 cf 8e | d0 09 86 2e 00 0e 0d 21 |.e!.S...|.......!|
|00000d30| 88 65 62 88 ce 64 21 83 | 46 00 c5 13 d1 63 88 0e |.eb..d!.|F....c..|
|00000d40| 0b 54 16 0b 82 33 00 0e | 0b c4 56 85 52 00 d2 0e |.T...3..|..V.R...|
|00000d50| 0b 53 21 29 2e 09 87 22 | 20 5b 77 69 6e 64 6f 77 |.S!)..."| [window|
|00000d60| 2d 62 75 66 66 65 72 20 | 77 69 6e 64 6f 77 20 73 |-buffer |window s|
|00000d70| 65 6c 65 63 74 65 64 2d | 77 69 6e 64 6f 77 20 62 |elected-|window b|
|00000d80| 75 66 66 65 72 2d 66 69 | 6c 65 2d 6e 61 6d 65 20 |uffer-fi|le-name |
|00000d90| 30 20 6e 69 6c 20 62 75 | 66 66 65 72 2d 6d 6f 64 |0 nil bu|ffer-mod|
|00000da0| 69 66 69 65 64 2d 70 20 | 62 75 66 66 65 72 20 6d |ified-p |buffer m|
|00000db0| 6f 64 69 66 69 65 64 20 | 62 75 66 66 65 72 2d 72 |odified |buffer-r|
|00000dc0| 65 61 64 2d 6f 6e 6c 79 | 20 77 69 6e 64 6f 77 2d |ead-only| window-|
|00000dd0| 6d 69 6e 2d 68 65 69 67 | 68 74 20 6e 20 70 20 77 |min-heig|ht n p w|
|00000de0| 20 70 6f 73 2d 76 69 73 | 69 62 6c 65 2d 69 6e 2d | pos-vis|ible-in-|
|00000df0| 77 69 6e 64 6f 77 2d 70 | 20 28 28 62 79 74 65 2d |window-p| ((byte-|
|00000e00| 63 6f 64 65 20 22 65 60 | 7c 88 c0 09 21 88 5c 6e |code "e`||...!.\n|
|00000e10| 62 88 c3 0c 21 88 0d 71 | 87 22 20 5b 73 65 74 2d |b...!..q|." [set-|
|00000e20| 62 75 66 66 65 72 2d 6d | 6f 64 69 66 69 65 64 2d |buffer-m|odified-|
|00000e30| 70 20 6d 6f 64 69 66 69 | 65 64 20 70 20 73 65 6c |p modifi|ed p sel|
|00000e40| 65 63 74 2d 77 69 6e 64 | 6f 77 20 77 20 62 75 66 |ect-wind|ow w buf|
|00000e50| 66 65 72 5d 20 32 29 29 | 20 73 65 6c 65 63 74 2d |fer] 2))| select-|
|00000e60| 77 69 6e 64 6f 77 20 31 | 30 20 73 68 72 69 6e 6b |window 1|0 shrink|
|00000e70| 2d 77 69 6e 64 6f 77 5d | 20 38 20 22 5c 0a 53 68 |-window]| 8 "\.Sh|
|00000e80| 72 69 6e 6b 20 74 68 65 | 20 57 49 4e 44 4f 57 20 |rink the| WINDOW |
|00000e90| 74 6f 20 62 65 20 61 73 | 20 73 6d 61 6c 6c 20 61 |to be as| small a|
|00000ea0| 73 20 70 6f 73 73 69 62 | 6c 65 20 74 6f 20 64 69 |s possib|le to di|
|00000eb0| 73 70 6c 61 79 20 69 74 | 73 20 63 6f 6e 74 65 6e |splay it|s conten|
|00000ec0| 74 73 2e 0a 44 6f 20 6e | 6f 74 68 69 6e 67 20 69 |ts..Do n|othing i|
|00000ed0| 66 20 74 68 65 20 62 75 | 66 66 65 72 20 63 6f 6e |f the bu|ffer con|
|00000ee0| 74 61 69 6e 73 20 6d 6f | 72 65 20 6c 69 6e 65 73 |tains mo|re lines|
|00000ef0| 20 74 68 61 6e 20 74 68 | 65 20 70 72 65 73 65 6e | than th|e presen|
|00000f00| 74 20 77 69 6e 64 6f 77 | 20 68 65 69 67 68 74 2c |t window| height,|
|00000f10| 0a 6f 72 20 69 66 20 73 | 6f 6d 65 20 6f 66 20 74 |.or if s|ome of t|
|00000f20| 68 65 20 77 69 6e 64 6f | 77 27 73 20 63 6f 6e 74 |he windo|w's cont|
|00000f30| 65 6e 74 73 20 61 72 65 | 20 73 63 72 6f 6c 6c 65 |ents are| scrolle|
|00000f40| 64 20 6f 75 74 20 6f 66 | 20 76 69 65 77 2e 22 20 |d out of| view." |
|00000f50| 6e 69 6c 5d 29 0a 28 62 | 79 74 65 2d 63 6f 64 65 |nil]).(b|yte-code|
|00000f60| 20 22 c0 09 c2 c3 23 88 | c0 09 c4 c5 23 88 c0 09 | "....#.|....#...|
|00000f70| c6 c7 23 88 c0 09 c8 c9 | 23 88 c0 09 ca cb 23 88 |..#.....|#.....#.|
|00000f80| c0 09 cc cd 23 87 22 20 | 5b 64 65 66 69 6e 65 2d |....#." |[define-|
|00000f90| 6b 65 79 20 63 74 6c 2d | 78 2d 6d 61 70 20 22 32 |key ctl-|x-map "2|
|00000fa0| 22 20 73 70 6c 69 74 2d | 77 69 6e 64 6f 77 2d 76 |" split-|window-v|
|00000fb0| 65 72 74 69 63 61 6c 6c | 79 20 22 33 22 20 73 70 |erticall|y "3" sp|
|00000fc0| 6c 69 74 2d 77 69 6e 64 | 6f 77 2d 68 6f 72 69 7a |lit-wind|ow-horiz|
|00000fd0| 6f 6e 74 61 6c 6c 79 20 | 22 7d 22 20 65 6e 6c 61 |ontally |"}" enla|
|00000fe0| 72 67 65 2d 77 69 6e 64 | 6f 77 2d 68 6f 72 69 7a |rge-wind|ow-horiz|
|00000ff0| 6f 6e 74 61 6c 6c 79 20 | 22 7b 22 20 73 68 72 69 |ontally |"{" shri|
|00001000| 6e 6b 2d 77 69 6e 64 6f | 77 2d 68 6f 72 69 7a 6f |nk-windo|w-horizo|
|00001010| 6e 74 61 6c 6c 79 20 22 | 2d 22 20 73 68 72 69 6e |ntally "|-" shrin|
|00001020| 6b 2d 77 69 6e 64 6f 77 | 2d 69 66 2d 6c 61 72 67 |k-window|-if-larg|
|00001030| 65 72 2d 74 68 61 6e 2d | 62 75 66 66 65 72 20 22 |er-than-|buffer "|
|00001040| 2b 22 20 62 61 6c 61 6e | 63 65 2d 77 69 6e 64 6f |+" balan|ce-windo|
|00001050| 77 73 5d 20 34 29 0a | |ws] 4). | |
+--------+-------------------------+-------------------------+--------+--------+