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 / reposition.elc < prev    next >
Emacs Compiled Lisp  |  1993-04-01  |  2.4 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 35 37 20 |Feb 1 1|9:25:57 |
|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 72 65 70 6f 73 69 |lisp/pri|m/reposi|
|00000080| 74 69 6f 6e 2e 65 6c 0a | 3b 3b 3b 20 65 6d 61 63 |tion.el.|;;; emac|
|00000090| 73 20 76 65 72 73 69 6f | 6e 20 31 39 2e 34 2e 31 |s versio|n 19.4.1|
|000000a0| 33 20 4c 75 63 69 64 2e | 0a 3b 3b 3b 20 62 79 74 |3 Lucid.|.;;; byt|
|000000b0| 65 63 6f 6d 70 20 76 65 | 72 73 69 6f 6e 20 32 2e |ecomp ve|rsion 2.|
|000000c0| 31 30 3b 20 20 31 2d 66 | 65 62 2d 39 33 2e 0a 3b |10; 1-f|eb-93..;|
|000000d0| 3b 3b 20 6f 70 74 69 6d | 69 7a 61 74 69 6f 6e 20 |;; optim|ization |
|000000e0| 69 73 20 6f 6e 2e 0a 3b | 3b 3b 20 74 68 69 73 20 |is on..;|;; this |
|000000f0| 66 69 6c 65 20 75 73 65 | 73 20 6f 70 63 6f 64 65 |file use|s opcode|
|00000100| 73 20 77 68 69 63 68 20 | 64 6f 20 6e 6f 74 20 65 |s which |do not e|
|00000110| 78 69 73 74 20 69 6e 20 | 45 6d 61 63 73 31 38 2e |xist in |Emacs18.|
|00000120| 0a 0a 28 69 66 20 28 61 | 6e 64 20 28 62 6f 75 6e |..(if (a|nd (boun|
|00000130| 64 70 20 27 65 6d 61 63 | 73 2d 76 65 72 73 69 6f |dp 'emac|s-versio|
|00000140| 6e 29 0a 09 20 28 6f 72 | 20 28 61 6e 64 20 28 62 |n).. (or| (and (b|
|00000150| 6f 75 6e 64 70 20 27 65 | 70 6f 63 68 3a 3a 76 65 |oundp 'e|poch::ve|
|00000160| 72 73 69 6f 6e 29 20 65 | 70 6f 63 68 3a 3a 76 65 |rsion) e|poch::ve|
|00000170| 72 73 69 6f 6e 29 0a 09 | 20 20 20 20 20 28 73 74 |rsion)..| (st|
|00000180| 72 69 6e 67 2d 6c 65 73 | 73 70 20 65 6d 61 63 73 |ring-les|sp emacs|
|00000190| 2d 76 65 72 73 69 6f 6e | 20 22 31 39 22 29 29 29 |-version| "19")))|
|000001a0| 0a 20 20 20 20 28 65 72 | 72 6f 72 20 22 54 68 69 |. (er|ror "Thi|
|000001b0| 73 20 66 69 6c 65 20 77 | 61 73 20 63 6f 6d 70 69 |s file w|as compi|
|000001c0| 6c 65 64 20 66 6f 72 20 | 45 6d 61 63 73 31 39 2e |led for |Emacs19.|
|000001d0| 22 29 29 0a 0a 28 66 73 | 65 74 20 27 72 65 70 6f |"))..(fs|et 'repo|
|000001e0| 73 69 74 69 6f 6e 2d 77 | 69 6e 64 6f 77 20 23 5b |sition-w|indow #[|
|000001f0| 28 26 6f 70 74 69 6f 6e | 61 6c 20 61 72 67 29 20 |(&option|al arg) |
|00000200| 22 60 18 c1 c2 20 21 c3 | 5a 1c c5 c6 20 60 5c 22 |"`... !.|Z... `\"|
|00000210| 1e 07 c8 c9 8a ca 75 88 | cb cc 21 88 cd ce 21 88 |......u.|..!...!.|
|00000220| cf ca 21 88 60 29 08 5c | 22 5d 1e 10 c9 8a cb ca |..!.`).\|"]......|
|00000230| 21 88 d1 ca 21 88 60 29 | 08 5c 22 1e 12 c5 08 8a |!...!.`)|.\".....|
|00000240| cb ca 21 88 60 29 5c 22 | 1e 13 0e 12 0e 07 58 ad |..!.`)\"|......X.|
|00000250| 87 0e 07 0e 12 5a 0c 58 | 1e 14 0e 10 0e 07 55 ac |.....Z.X|......U.|
|00000260| 91 0e 07 0c 55 ab ab 0e | 10 0e 07 56 ab a4 0e 14 |....U...|...V....|
|00000270| ab a0 0e 15 ab 93 0e 13 | 0c 54 56 ab 8c cb 20 88 |........|.TV... .|
|00000280| d1 20 88 d6 c8 21 82 14 | 01 d6 0e 12 c8 5d 21 82 |. ...!..|.....]!.|
|00000290| 14 01 0e 12 0e 07 55 ac | 93 0e 07 c8 55 ac 8d 0e |......U.|....U...|
|000002a0| 07 0e 10 57 ab ba 0e 12 | c8 57 ab b4 0e 07 0c 55 |...W....|.W.....U|
|000002b0| ab 8f 0e 15 ab 86 cb 20 | 88 d1 20 88 d6 c8 21 aa |....... |.. ...!.|
|000002c0| d8 0e 15 ab 93 0c 0e 10 | 57 ab 8d 0e 10 5b 79 88 |........|W....[y.|
|000002d0| c8 79 88 d6 c8 21 aa c1 | d6 0c 0e 10 5e 21 aa b9 |.y...!..|....^!..|
|000002e0| 0e 07 0e 13 cc 5c 5c 5c | 5c 0c 56 ab 92 0e 14 ab |.....\\\|\.V.....|
|000002f0| 8e d6 c8 0c 0e 13 5a 54 | 0e 12 5d 5d 21 aa 9c 0e |......ZT|..]]!...|
|00000300| 15 ab 92 0c 0e 10 57 ab | 8c 0e 12 5b 79 88 c8 79 |......W.|...[y..y|
|00000310| 88 d7 20 aa 86 d6 0c 0e | 10 5e 21 2e 07 87 22 20 |.. .....|.^!..." |
|00000320| 5b 68 65 72 65 20 77 69 | 6e 64 6f 77 2d 68 65 69 |[here wi|ndow-hei|
|00000330| 67 68 74 20 73 65 6c 65 | 63 74 65 64 2d 77 69 6e |ght sele|cted-win|
|00000340| 64 6f 77 20 32 20 68 74 | 20 72 65 70 6f 73 2d 63 |dow 2 ht| repos-c|
|00000350| 6f 75 6e 74 2d 73 63 72 | 65 65 6e 2d 6c 69 6e 65 |ount-scr|een-line|
|00000360| 73 20 77 69 6e 64 6f 77 | 2d 73 74 61 72 74 20 6c |s window|-start l|
|00000370| 69 6e 65 20 30 20 72 65 | 70 6f 73 2d 63 6f 75 6e |ine 0 re|pos-coun|
|00000380| 74 2d 73 63 72 65 65 6e | 2d 6c 69 6e 65 73 2d 73 |t-screen|-lines-s|
|00000390| 69 67 6e 65 64 20 31 20 | 65 6e 64 2d 6f 66 2d 64 |igned 1 |end-of-d|
|000003a0| 65 66 75 6e 20 2d 31 20 | 72 65 2d 73 65 61 72 63 |efun -1 |re-searc|
|000003b0| 68 2d 66 6f 72 77 61 72 | 64 20 22 5b 5e 5c 5c 73 |h-forwar|d "[^\\s|
|000003c0| 20 5c 6e 0c 5d 22 20 62 | 61 63 6b 77 61 72 64 2d | \n.]" b|ackward-|
|000003d0| 63 68 61 72 20 63 6f 6d | 6d 65 6e 74 2d 68 65 69 |char com|ment-hei|
|000003e0| 67 68 74 20 62 65 67 69 | 6e 6e 69 6e 67 2d 6f 66 |ght begi|nning-of|
|000003f0| 2d 64 65 66 75 6e 20 64 | 65 66 75 6e 2d 68 65 69 |-defun d|efun-hei|
|00000400| 67 68 74 20 64 65 66 75 | 6e 2d 64 65 70 74 68 20 |ght defu|n-depth |
|00000410| 64 65 66 75 6e 2d 6c 69 | 6e 65 2d 6f 6e 73 63 72 |defun-li|ne-onscr|
|00000420| 65 65 6e 2d 70 20 61 72 | 67 20 72 65 63 65 6e 74 |een-p ar|g recent|
|00000430| 65 72 20 72 65 70 6f 73 | 69 74 69 6f 6e 2d 77 69 |er repos|ition-wi|
|00000440| 6e 64 6f 77 5d 20 34 20 | 22 5c 0a 4d 61 6b 65 20 |ndow] 4 |"\.Make |
|00000450| 74 68 65 20 63 75 72 72 | 65 6e 74 20 64 65 66 69 |the curr|ent defi|
|00000460| 6e 69 74 69 6f 6e 20 61 | 6e 64 2f 6f 72 20 63 6f |nition a|nd/or co|
|00000470| 6d 6d 65 6e 74 20 76 69 | 73 69 62 6c 65 2e 0a 46 |mment vi|sible..F|
|00000480| 75 72 74 68 65 72 20 69 | 6e 76 6f 63 61 74 69 6f |urther i|nvocatio|
|00000490| 6e 73 20 6d 6f 76 65 20 | 69 74 20 74 6f 20 74 68 |ns move |it to th|
|000004a0| 65 20 74 6f 70 20 6f 66 | 20 74 68 65 20 77 69 6e |e top of| the win|
|000004b0| 64 6f 77 20 6f 72 20 74 | 6f 67 67 6c 65 20 74 68 |dow or t|oggle th|
|000004c0| 65 0a 76 69 73 69 62 69 | 6c 69 74 79 20 6f 66 20 |e.visibi|lity of |
|000004d0| 63 6f 6d 6d 65 6e 74 73 | 20 74 68 61 74 20 70 72 |comments| that pr|
|000004e0| 65 63 65 64 65 20 69 74 | 2e 0a 20 20 50 6f 69 6e |ecede it|.. Poin|
|000004f0| 74 20 69 73 20 6c 65 66 | 74 20 75 6e 63 68 61 6e |t is lef|t unchan|
|00000500| 67 65 64 20 75 6e 6c 65 | 73 73 20 70 72 65 66 69 |ged unle|ss prefi|
|00000510| 78 20 41 52 47 20 69 73 | 20 73 75 70 70 6c 69 65 |x ARG is| supplie|
|00000520| 64 2e 0a 20 20 49 66 20 | 74 68 65 20 64 65 66 69 |d.. If |the defi|
|00000530| 6e 69 74 69 6f 6e 20 69 | 73 20 66 75 6c 6c 79 20 |nition i|s fully |
|00000540| 6f 6e 73 63 72 65 65 6e | 2c 20 69 74 20 69 73 20 |onscreen|, it is |
|00000550| 6d 6f 76 65 64 20 74 6f | 20 74 68 65 20 74 6f 70 |moved to| the top|
|00000560| 20 6f 66 20 74 68 65 0a | 77 69 6e 64 6f 77 2e 20 | of the.|window. |
|00000570| 20 49 66 20 69 74 20 69 | 73 20 70 61 72 74 6c 79 | If it i|s partly|
|00000580| 20 6f 66 66 73 63 72 65 | 65 6e 2c 20 74 68 65 20 | offscre|en, the |
|00000590| 77 69 6e 64 6f 77 20 69 | 73 20 73 63 72 6f 6c 6c |window i|s scroll|
|000005a0| 65 64 20 74 6f 20 67 65 | 74 20 74 68 65 0a 64 65 |ed to ge|t the.de|
|000005b0| 66 69 6e 69 74 69 6f 6e | 20 28 6f 72 20 61 73 20 |finition| (or as |
|000005c0| 6d 75 63 68 20 61 73 20 | 77 69 6c 6c 20 66 69 74 |much as |will fit|
|000005d0| 29 20 6f 6e 73 63 72 65 | 65 6e 2c 20 75 6e 6c 65 |) onscre|en, unle|
|000005e0| 73 73 20 70 6f 69 6e 74 | 20 69 73 20 69 6e 20 61 |ss point| is in a|
|000005f0| 20 63 6f 6d 6d 65 6e 74 | 0a 77 68 69 63 68 20 69 | comment|.which i|
|00000600| 73 20 61 6c 73 6f 20 70 | 61 72 74 6c 79 20 6f 66 |s also p|artly of|
|00000610| 66 73 63 72 65 65 6e 2c | 20 69 6e 20 77 68 69 63 |fscreen,| in whic|
|00000620| 68 20 63 61 73 65 20 74 | 68 65 20 73 63 72 6f 6c |h case t|he scrol|
|00000630| 6c 69 6e 67 20 61 74 74 | 65 6d 70 74 73 20 74 6f |ling att|empts to|
|00000640| 20 67 65 74 0a 61 73 20 | 6d 75 63 68 20 6f 66 20 | get.as |much of |
|00000650| 74 68 65 20 63 6f 6d 6d | 65 6e 74 20 6f 6e 73 63 |the comm|ent onsc|
|00000660| 72 65 65 6e 20 61 73 20 | 70 6f 73 73 69 62 6c 65 |reen as |possible|
|00000670| 2e 0a 20 20 49 6e 69 74 | 69 61 6c 6c 79 20 60 72 |.. Init|ially `r|
|00000680| 65 70 6f 73 69 74 69 6f | 6e 2d 77 69 6e 64 6f 77 |epositio|n-window|
|00000690| 27 20 61 74 74 65 6d 70 | 74 73 20 74 6f 20 6d 61 |' attemp|ts to ma|
|000006a0| 6b 65 20 62 6f 74 68 20 | 74 68 65 20 64 65 66 69 |ke both |the defi|
|000006b0| 6e 69 74 69 6f 6e 20 61 | 6e 64 0a 70 72 65 63 65 |nition a|nd.prece|
|000006c0| 64 69 6e 67 20 63 6f 6d | 6d 65 6e 74 73 20 76 69 |ding com|ments vi|
|000006d0| 73 69 62 6c 65 2e 20 20 | 46 75 72 74 68 65 72 20 |sible. |Further |
|000006e0| 69 6e 76 6f 63 61 74 69 | 6f 6e 73 20 74 6f 67 67 |invocati|ons togg|
|000006f0| 6c 65 20 74 68 65 20 76 | 69 73 69 62 69 6c 69 74 |le the v|isibilit|
|00000700| 79 20 6f 66 0a 74 68 65 | 20 63 6f 6d 6d 65 6e 74 |y of.the| comment|
|00000710| 20 6c 69 6e 65 73 2e 0a | 20 20 49 66 20 41 52 47 | lines..| If ARG|
|00000720| 20 69 73 20 6e 6f 6e 2d | 6e 69 6c 2c 20 70 6f 69 | is non-|nil, poi|
|00000730| 6e 74 20 6d 61 79 20 6d | 6f 76 65 20 69 6e 20 6f |nt may m|ove in o|
|00000740| 72 64 65 72 20 74 6f 20 | 6d 61 6b 65 20 74 68 65 |rder to |make the|
|00000750| 20 77 68 6f 6c 65 20 64 | 65 66 75 6e 0a 76 69 73 | whole d|efun.vis|
|00000760| 69 62 6c 65 20 28 69 66 | 20 6f 6e 6c 79 20 70 61 |ible (if| only pa|
|00000770| 72 74 20 63 6f 75 6c 64 | 20 6f 74 68 65 72 77 69 |rt could| otherwi|
|00000780| 73 65 20 62 65 20 6d 61 | 64 65 20 73 6f 29 2c 20 |se be ma|de so), |
|00000790| 74 6f 20 6d 61 6b 65 20 | 74 68 65 20 64 65 66 75 |to make |the defu|
|000007a0| 6e 20 6c 69 6e 65 0a 76 | 69 73 69 62 6c 65 20 28 |n line.v|isible (|
|000007b0| 69 66 20 70 6f 69 6e 74 | 20 69 73 20 69 6e 20 63 |if point| is in c|
|000007c0| 6f 64 65 20 61 6e 64 20 | 69 74 20 63 6f 75 6c 64 |ode and |it could|
|000007d0| 20 6e 6f 74 20 62 65 20 | 6d 61 64 65 20 73 6f 2c | not be |made so,|
|000007e0| 20 6f 72 20 69 66 20 6f | 6e 6c 79 0a 63 6f 6d 6d | or if o|nly.comm|
|000007f0| 65 6e 74 73 2c 20 69 6e | 63 6c 75 64 69 6e 67 20 |ents, in|cluding |
|00000800| 74 68 65 20 66 69 72 73 | 74 20 63 6f 6d 6d 65 6e |the firs|t commen|
|00000810| 74 20 6c 69 6e 65 2c 20 | 61 72 65 20 76 69 73 69 |t line, |are visi|
|00000820| 62 6c 65 29 2c 20 6f 72 | 20 74 6f 20 6d 61 6b 65 |ble), or| to make|
|00000830| 20 74 68 65 0a 66 69 72 | 73 74 20 63 6f 6d 6d 65 | the.fir|st comme|
|00000840| 6e 74 20 6c 69 6e 65 20 | 76 69 73 69 62 6c 65 20 |nt line |visible |
|00000850| 28 69 66 20 70 6f 69 6e | 74 20 69 73 20 69 6e 20 |(if poin|t is in |
|00000860| 61 20 63 6f 6d 6d 65 6e | 74 29 2e 22 20 22 50 22 |a commen|t)." "P"|
|00000870| 5d 29 0a 28 62 79 74 65 | 2d 63 6f 64 65 20 22 c0 |]).(byte|-code ".|
|00000880| 09 c2 c3 23 88 c4 c5 4d | 88 c6 c7 4d 87 22 20 5b |...#...M|...M." [|
|00000890| 64 65 66 69 6e 65 2d 6b | 65 79 20 65 73 63 2d 6d |define-k|ey esc-m|
|000008a0| 61 70 20 22 0c 22 20 72 | 65 70 6f 73 69 74 69 6f |ap "." r|epositio|
|000008b0| 6e 2d 77 69 6e 64 6f 77 | 20 72 65 70 6f 73 2d 63 |n-window| repos-c|
|000008c0| 6f 75 6e 74 2d 73 63 72 | 65 65 6e 2d 6c 69 6e 65 |ount-scr|een-line|
|000008d0| 73 20 23 5b 28 73 74 61 | 72 74 20 65 6e 64 29 20 |s #[(sta|rt end) |
|000008e0| 22 8a 8c 08 09 7d 88 65 | 62 88 c2 64 65 5a 21 2a |"....}.e|b..deZ!*|
|000008f0| 87 22 20 5b 73 74 61 72 | 74 20 65 6e 64 20 76 65 |." [star|t end ve|
|00000900| 72 74 69 63 61 6c 2d 6d | 6f 74 69 6f 6e 5d 20 33 |rtical-m|otion] 3|
|00000910| 5d 20 72 65 70 6f 73 2d | 63 6f 75 6e 74 2d 73 63 |] repos-|count-sc|
|00000920| 72 65 65 6e 2d 6c 69 6e | 65 73 2d 73 69 67 6e 65 |reen-lin|es-signe|
|00000930| 64 20 23 5b 28 73 74 61 | 72 74 20 65 6e 64 29 20 |d #[(sta|rt end) |
|00000940| 22 c0 09 5c 6e 5c 22 1b | 09 5c 6e 57 ab 83 0b aa |"..\n\".|.\nW....|
|00000950| 82 0b 5b 29 87 22 20 5b | 72 65 70 6f 73 2d 63 6f |..[)." [|repos-co|
|00000960| 75 6e 74 2d 73 63 72 65 | 65 6e 2d 6c 69 6e 65 73 |unt-scre|en-lines|
|00000970| 20 73 74 61 72 74 20 65 | 6e 64 20 6c 69 6e 65 73 | start e|nd lines|
|00000980| 5d 20 33 5d 5d 20 34 29 | 0a |] 3]] 4)|. |
+--------+-------------------------+-------------------------+--------+--------+