home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / gnu / lucid / lemacs-19.6 / lisp / prim / page.elc < prev    next >
Emacs Compiled Lisp  |  1993-04-01  |  2.3 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 32 35 3a 32 30 20 |Feb 1 1|9:25:20 |
|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 70 72 69 | 6d 2f 70 61 67 65 2e 65 |lisp/pri|m/page.e|
|00000080| 6c 0a 3b 3b 3b 20 65 6d | 61 63 73 20 76 65 72 73 |l.;;; em|acs vers|
|00000090| 69 6f 6e 20 31 39 2e 34 | 2e 31 33 20 4c 75 63 69 |ion 19.4|.13 Luci|
|000000a0| 64 2e 0a 3b 3b 3b 20 62 | 79 74 65 63 6f 6d 70 20 |d..;;; b|ytecomp |
|000000b0| 76 65 72 73 69 6f 6e 20 | 32 2e 31 30 3b 20 20 31 |version |2.10; 1|
|000000c0| 2d 66 65 62 2d 39 33 2e | 0a 3b 3b 3b 20 6f 70 74 |-feb-93.|.;;; opt|
|000000d0| 69 6d 69 7a 61 74 69 6f | 6e 20 69 73 20 6f 6e 2e |imizatio|n is on.|
|000000e0| 0a 3b 3b 3b 20 74 68 69 | 73 20 66 69 6c 65 20 75 |.;;; thi|s file u|
|000000f0| 73 65 73 20 6f 70 63 6f | 64 65 73 20 77 68 69 63 |ses opco|des whic|
|00000100| 68 20 64 6f 20 6e 6f 74 | 20 65 78 69 73 74 20 69 |h do not| exist i|
|00000110| 6e 20 45 6d 61 63 73 31 | 38 2e 0a 0a 28 69 66 20 |n Emacs1|8...(if |
|00000120| 28 61 6e 64 20 28 62 6f | 75 6e 64 70 20 27 65 6d |(and (bo|undp 'em|
|00000130| 61 63 73 2d 76 65 72 73 | 69 6f 6e 29 0a 09 20 28 |acs-vers|ion).. (|
|00000140| 6f 72 20 28 61 6e 64 20 | 28 62 6f 75 6e 64 70 20 |or (and |(boundp |
|00000150| 27 65 70 6f 63 68 3a 3a | 76 65 72 73 69 6f 6e 29 |'epoch::|version)|
|00000160| 20 65 70 6f 63 68 3a 3a | 76 65 72 73 69 6f 6e 29 | epoch::|version)|
|00000170| 0a 09 20 20 20 20 20 28 | 73 74 72 69 6e 67 2d 6c |.. (|string-l|
|00000180| 65 73 73 70 20 65 6d 61 | 63 73 2d 76 65 72 73 69 |essp ema|cs-versi|
|00000190| 6f 6e 20 22 31 39 22 29 | 29 29 0a 20 20 20 20 28 |on "19")|)). (|
|000001a0| 65 72 72 6f 72 20 22 54 | 68 69 73 20 66 69 6c 65 |error "T|his file|
|000001b0| 20 77 61 73 20 63 6f 6d | 70 69 6c 65 64 20 66 6f | was com|piled fo|
|000001c0| 72 20 45 6d 61 63 73 31 | 39 2e 22 29 29 0a 0a 28 |r Emacs1|9."))..(|
|000001d0| 66 73 65 74 20 27 66 6f | 72 77 61 72 64 2d 70 61 |fset 'fo|rward-pa|
|000001e0| 67 65 20 23 5b 28 26 6f | 70 74 69 6f 6e 61 6c 20 |ge #[(&o|ptional |
|000001f0| 63 6f 75 6e 74 29 20 22 | 08 ac 82 c1 10 08 c2 56 |count) "|.......V|
|00000200| ab 93 6d ac 90 c3 0c c5 | c6 23 ac 83 64 62 88 08 |..m.....|.#..db..|
|00000210| 53 89 10 aa 69 08 c2 57 | ab 9c 6f ac 99 c7 75 88 |S...i..W|..o...u.|
|00000220| c8 0c c5 c6 23 ab 86 c2 | 95 62 88 aa 83 65 62 88 |....#...|.b...eb.|
|00000230| 08 54 89 10 aa 60 c6 89 | 16 09 87 22 20 5b 63 6f |.T...`..|..." [co|
|00000240| 75 6e 74 20 31 20 30 20 | 72 65 2d 73 65 61 72 63 |unt 1 0 |re-searc|
|00000250| 68 2d 66 6f 72 77 61 72 | 64 20 70 61 67 65 2d 64 |h-forwar|d page-d|
|00000260| 65 6c 69 6d 69 74 65 72 | 20 6e 69 6c 20 74 20 2d |elimiter| nil t -|
|00000270| 31 20 72 65 2d 73 65 61 | 72 63 68 2d 62 61 63 6b |1 re-sea|rch-back|
|00000280| 77 61 72 64 20 7a 6d 61 | 63 73 2d 72 65 67 69 6f |ward zma|cs-regio|
|00000290| 6e 2d 73 74 61 79 73 5d | 20 35 20 22 5c 0a 4d 6f |n-stays]| 5 "\.Mo|
|000002a0| 76 65 20 66 6f 72 77 61 | 72 64 20 74 6f 20 70 61 |ve forwa|rd to pa|
|000002b0| 67 65 20 62 6f 75 6e 64 | 61 72 79 2e 20 20 57 69 |ge bound|ary. Wi|
|000002c0| 74 68 20 61 72 67 2c 20 | 72 65 70 65 61 74 2c 20 |th arg, |repeat, |
|000002d0| 6f 72 20 67 6f 20 62 61 | 63 6b 20 69 66 20 6e 65 |or go ba|ck if ne|
|000002e0| 67 61 74 69 76 65 2e 0a | 41 20 70 61 67 65 20 62 |gative..|A page b|
|000002f0| 6f 75 6e 64 61 72 79 20 | 69 73 20 61 6e 79 20 6c |oundary |is any l|
|00000300| 69 6e 65 20 77 68 6f 73 | 65 20 62 65 67 69 6e 6e |ine whos|e beginn|
|00000310| 69 6e 67 20 6d 61 74 63 | 68 65 73 20 74 68 65 20 |ing matc|hes the |
|00000320| 72 65 67 65 78 70 20 20 | 70 61 67 65 2d 64 65 6c |regexp |page-del|
|00000330| 69 6d 69 74 65 72 2e 22 | 20 22 70 22 5d 29 0a 28 |imiter."| "p"]).(|
|00000340| 66 73 65 74 20 27 62 61 | 63 6b 77 61 72 64 2d 70 |fset 'ba|ckward-p|
|00000350| 61 67 65 20 23 5b 28 26 | 6f 70 74 69 6f 6e 61 6c |age #[(&|optional|
|00000360| 20 63 6f 75 6e 74 29 20 | 22 08 ac 82 c1 10 c2 08 | count) |".......|
|00000370| 5b 21 87 22 20 5b 63 6f | 75 6e 74 20 31 20 66 6f |[!." [co|unt 1 fo|
|00000380| 72 77 61 72 64 2d 70 61 | 67 65 5d 20 32 20 22 5c |rward-pa|ge] 2 "\|
|00000390| 0a 4d 6f 76 65 20 62 61 | 63 6b 77 61 72 64 20 74 |.Move ba|ckward t|
|000003a0| 6f 20 70 61 67 65 20 62 | 6f 75 6e 64 61 72 79 2e |o page b|oundary.|
|000003b0| 20 20 57 69 74 68 20 61 | 72 67 2c 20 72 65 70 65 | With a|rg, repe|
|000003c0| 61 74 2c 20 6f 72 20 67 | 6f 20 66 77 64 20 69 66 |at, or g|o fwd if|
|000003d0| 20 6e 65 67 61 74 69 76 | 65 2e 0a 41 20 70 61 67 | negativ|e..A pag|
|000003e0| 65 20 62 6f 75 6e 64 61 | 72 79 20 69 73 20 61 6e |e bounda|ry is an|
|000003f0| 79 20 6c 69 6e 65 20 77 | 68 6f 73 65 20 62 65 67 |y line w|hose beg|
|00000400| 69 6e 6e 69 6e 67 20 6d | 61 74 63 68 65 73 20 74 |inning m|atches t|
|00000410| 68 65 20 72 65 67 65 78 | 70 20 20 70 61 67 65 2d |he regex|p page-|
|00000420| 64 65 6c 69 6d 69 74 65 | 72 2e 22 20 22 70 22 5d |delimite|r." "p"]|
|00000430| 29 0a 28 66 73 65 74 20 | 27 6d 61 72 6b 2d 70 61 |).(fset |'mark-pa|
|00000440| 67 65 20 23 5b 28 26 6f | 70 74 69 6f 6e 61 6c 20 |ge #[(&o|ptional |
|00000450| 61 72 67 29 20 22 08 ab | 85 c1 08 21 aa 81 c2 89 |arg) "..|...!....|
|00000460| 10 c2 56 ab 86 c3 08 21 | 88 aa 8a 08 c2 57 ab 85 |..V....!|.....W..|
|00000470| c3 08 53 21 88 c3 20 88 | c4 c5 c6 5c 22 88 c3 c7 |..S!.. .|...\"...|
|00000480| 21 88 c8 20 87 22 20 5b | 61 72 67 20 70 72 65 66 |!.. ." [|arg pref|
|00000490| 69 78 2d 6e 75 6d 65 72 | 69 63 2d 76 61 6c 75 65 |ix-numer|ic-value|
|000004a0| 20 30 20 66 6f 72 77 61 | 72 64 2d 70 61 67 65 20 | 0 forwa|rd-page |
|000004b0| 70 75 73 68 2d 6d 61 72 | 6b 20 6e 69 6c 20 74 20 |push-mar|k nil t |
|000004c0| 2d 31 20 7a 6d 61 63 73 | 2d 61 63 74 69 76 61 74 |-1 zmacs|-activat|
|000004d0| 65 2d 72 65 67 69 6f 6e | 5d 20 34 20 22 5c 0a 50 |e-region|] 4 "\.P|
|000004e0| 75 74 20 6d 61 72 6b 20 | 61 74 20 65 6e 64 20 6f |ut mark |at end o|
|000004f0| 66 20 70 61 67 65 2c 20 | 70 6f 69 6e 74 20 61 74 |f page, |point at|
|00000500| 20 62 65 67 69 6e 6e 69 | 6e 67 2e 0a 41 20 6e 75 | beginni|ng..A nu|
|00000510| 6d 65 72 69 63 20 61 72 | 67 20 73 70 65 63 69 66 |meric ar|g specif|
|00000520| 69 65 73 20 74 6f 20 6d | 6f 76 65 20 66 6f 72 77 |ies to m|ove forw|
|00000530| 61 72 64 20 6f 72 20 62 | 61 63 6b 77 61 72 64 20 |ard or b|ackward |
|00000540| 62 79 20 74 68 61 74 20 | 6d 61 6e 79 20 70 61 67 |by that |many pag|
|00000550| 65 73 2c 0a 74 68 75 73 | 20 6d 61 72 6b 69 6e 67 |es,.thus| marking|
|00000560| 20 61 20 70 61 67 65 20 | 6f 74 68 65 72 20 74 68 | a page |other th|
|00000570| 61 6e 20 74 68 65 20 6f | 6e 65 20 70 6f 69 6e 74 |an the o|ne point|
|00000580| 20 77 61 73 20 6f 72 69 | 67 69 6e 61 6c 6c 79 20 | was ori|ginally |
|00000590| 69 6e 2e 22 20 22 50 22 | 5d 29 0a 28 66 73 65 74 |in." "P"|]).(fset|
|000005a0| 20 27 6e 61 72 72 6f 77 | 2d 74 6f 2d 70 61 67 65 | 'narrow|-to-page|
|000005b0| 20 23 5b 28 26 6f 70 74 | 69 6f 6e 61 6c 20 61 72 | #[(&opt|ional ar|
|000005c0| 67 29 20 22 08 ab 85 c1 | 08 21 aa 81 c2 10 8a 7e |g) "....|.!.....~|
|000005d0| 88 08 c2 56 ab 86 c3 08 | 21 88 aa 8a 08 c2 57 ab |...V....|!.....W.|
|000005e0| 85 c3 08 53 21 88 c3 20 | 88 8a c2 79 88 c4 0d 21 |...S!.. |...y...!|
|000005f0| 29 ab 83 c2 79 88 60 c3 | c6 21 88 6c ab 86 6f ac |)...y.`.|.!.l..o.|
|00000600| 83 c7 79 88 60 7d 29 87 | 22 20 5b 61 72 67 20 70 |..y.`}).|" [arg p|
|00000610| 72 65 66 69 78 2d 6e 75 | 6d 65 72 69 63 2d 76 61 |refix-nu|meric-va|
|00000620| 6c 75 65 20 30 20 66 6f | 72 77 61 72 64 2d 70 61 |lue 0 fo|rward-pa|
|00000630| 67 65 20 6c 6f 6f 6b 69 | 6e 67 2d 61 74 20 70 61 |ge looki|ng-at pa|
|00000640| 67 65 2d 64 65 6c 69 6d | 69 74 65 72 20 2d 31 20 |ge-delim|iter -1 |
|00000650| 31 5d 20 33 20 22 5c 0a | 4d 61 6b 65 20 74 65 78 |1] 3 "\.|Make tex|
|00000660| 74 20 6f 75 74 73 69 64 | 65 20 63 75 72 72 65 6e |t outsid|e curren|
|00000670| 74 20 70 61 67 65 20 69 | 6e 76 69 73 69 62 6c 65 |t page i|nvisible|
|00000680| 2e 0a 41 20 6e 75 6d 65 | 72 69 63 20 61 72 67 20 |..A nume|ric arg |
|00000690| 73 70 65 63 69 66 69 65 | 73 20 74 6f 20 6d 6f 76 |specifie|s to mov|
|000006a0| 65 20 66 6f 72 77 61 72 | 64 20 6f 72 20 62 61 63 |e forwar|d or bac|
|000006b0| 6b 77 61 72 64 20 62 79 | 20 74 68 61 74 20 6d 61 |kward by| that ma|
|000006c0| 6e 79 20 70 61 67 65 73 | 2c 0a 74 68 75 73 20 73 |ny pages|,.thus s|
|000006d0| 68 6f 77 69 6e 67 20 61 | 20 70 61 67 65 20 6f 74 |howing a| page ot|
|000006e0| 68 65 72 20 74 68 61 6e | 20 74 68 65 20 6f 6e 65 |her than| the one|
|000006f0| 20 70 6f 69 6e 74 20 77 | 61 73 20 6f 72 69 67 69 | point w|as origi|
|00000700| 6e 61 6c 6c 79 20 69 6e | 2e 22 20 22 50 22 5d 29 |nally in|." "P"])|
|00000710| 0a 28 66 73 65 74 20 27 | 63 6f 75 6e 74 2d 6c 69 |.(fset '|count-li|
|00000720| 6e 65 73 2d 70 61 67 65 | 20 23 5b 6e 69 6c 20 22 |nes-page| #[nil "|
|00000730| 8a 60 c0 89 89 89 89 19 | 1a 1b 1c 1d 1e 06 c7 20 |.`......|....... |
|00000740| 88 c8 79 88 c9 0e 5c 6e | 21 ac 83 c0 7f 88 60 14 |..y...\n|!.....`.|
|00000750| cb 20 88 60 15 cc 0d 0c | 5c 22 13 cc 0d 0e 06 5c |. .`....|\".....\|
|00000760| 22 12 cc 0e 06 0c 5c 22 | 11 cd ce 0b 5c 6e 09 24 |".....\"|....\n.$|
|00000770| 88 2e 07 cf 89 16 10 87 | 22 20 5b 6e 69 6c 20 61 |........|" [nil a|
|00000780| 66 74 65 72 20 62 65 66 | 6f 72 65 20 74 6f 74 61 |fter bef|ore tota|
|00000790| 6c 20 65 6e 64 20 62 65 | 67 20 6f 70 6f 69 6e 74 |l end be|g opoint|
|000007a0| 20 66 6f 72 77 61 72 64 | 2d 70 61 67 65 20 30 20 | forward|-page 0 |
|000007b0| 6c 6f 6f 6b 69 6e 67 2d | 61 74 20 70 61 67 65 2d |looking-|at page-|
|000007c0| 64 65 6c 69 6d 69 74 65 | 72 20 62 61 63 6b 77 61 |delimite|r backwa|
|000007d0| 72 64 2d 70 61 67 65 20 | 63 6f 75 6e 74 2d 6c 69 |rd-page |count-li|
|000007e0| 6e 65 73 20 6d 65 73 73 | 61 67 65 20 22 50 61 67 |nes mess|age "Pag|
|000007f0| 65 20 68 61 73 20 25 64 | 20 6c 69 6e 65 73 20 28 |e has %d| lines (|
|00000800| 25 64 20 2b 20 25 64 29 | 22 20 74 20 7a 6d 61 63 |%d + %d)|" t zmac|
|00000810| 73 2d 72 65 67 69 6f 6e | 2d 73 74 61 79 73 5d 20 |s-region|-stays] |
|00000820| 36 20 22 5c 0a 52 65 70 | 6f 72 74 20 6e 75 6d 62 |6 "\.Rep|ort numb|
|00000830| 65 72 20 6f 66 20 6c 69 | 6e 65 73 20 6f 6e 20 63 |er of li|nes on c|
|00000840| 75 72 72 65 6e 74 20 70 | 61 67 65 2c 20 61 6e 64 |urrent p|age, and|
|00000850| 20 68 6f 77 20 6d 61 6e | 79 20 61 72 65 20 62 65 | how man|y are be|
|00000860| 66 6f 72 65 20 6f 72 20 | 61 66 74 65 72 20 70 6f |fore or |after po|
|00000870| 69 6e 74 2e 22 20 6e 69 | 6c 5d 29 0a 28 66 73 65 |int." ni|l]).(fse|
|00000880| 74 20 27 77 68 61 74 2d | 70 61 67 65 20 23 5b 6e |t 'what-|page #[n|
|00000890| 69 6c 20 22 8c 7e 88 8a | c0 79 88 c1 60 1a 1b c1 |il ".~..|.y..`...|
|000008a0| 62 88 c4 0d 5c 6e c6 23 | ab 85 0b 54 13 aa 74 c7 |b...\n.#|...T..t.|
|000008b0| c8 0b c9 60 5c 6e 5c 22 | 54 23 88 2c c6 89 16 5c |...`\n\"|T#.,...\|
|000008c0| 6e 87 22 20 5b 30 20 31 | 20 6f 70 6f 69 6e 74 20 |n." [0 1| opoint |
|000008d0| 63 6f 75 6e 74 20 72 65 | 2d 73 65 61 72 63 68 2d |count re|-search-|
|000008e0| 66 6f 72 77 61 72 64 20 | 70 61 67 65 2d 64 65 6c |forward |page-del|
|000008f0| 69 6d 69 74 65 72 20 74 | 20 6d 65 73 73 61 67 65 |imiter t| message|
|00000900| 20 22 50 61 67 65 20 25 | 64 2c 20 6c 69 6e 65 20 | "Page %|d, line |
|00000910| 25 64 22 20 63 6f 75 6e | 74 2d 6c 69 6e 65 73 20 |%d" coun|t-lines |
|00000920| 7a 6d 61 63 73 2d 72 65 | 67 69 6f 6e 2d 73 74 61 |zmacs-re|gion-sta|
|00000930| 79 73 5d 20 36 20 22 5c | 0a 50 72 69 6e 74 20 70 |ys] 6 "\|.Print p|
|00000940| 61 67 65 20 61 6e 64 20 | 6c 69 6e 65 20 6e 75 6d |age and |line num|
|00000950| 62 65 72 20 6f 66 20 70 | 6f 69 6e 74 2e 22 20 6e |ber of p|oint." n|
|00000960| 69 6c 5d 29 0a | |il]). | |
+--------+-------------------------+-------------------------+--------+--------+