home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / source / a2.0bemacs-src.lha / Emacs-19.25 / lisp / reposition.elc < prev    next >
Emacs Compiled Lisp  |  1994-05-04  |  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
100% file Emacs/XEmacs v19 byte-compiled Lisp data default
99% file data default
100% TrID Emacs/XEmacs byte-compiled Lisp (generic) default



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 6b 77 7a 68 40 68 61 |piled by| kwzh@ha|
|00000020| 6c 2e 67 6e 75 2e 61 69 | 2e 6d 69 74 2e 65 64 75 |l.gnu.ai|.mit.edu|
|00000030| 20 6f 6e 20 54 75 65 20 | 4d 61 79 20 20 33 20 32 | on Tue |May 3 2|
|00000040| 31 3a 35 32 3a 35 35 20 | 31 39 39 34 0a 3b 3b 3b |1:52:55 |1994.;;;|
|00000050| 20 66 72 6f 6d 20 66 69 | 6c 65 20 2f 67 64 2f 67 | from fi|le /gd/g|
|00000060| 6e 75 2f 65 6d 61 63 73 | 2f 31 39 2e 30 2f 6c 69 |nu/emacs|/19.0/li|
|00000070| 73 70 2f 72 65 70 6f 73 | 69 74 69 6f 6e 2e 65 6c |sp/repos|ition.el|
|00000080| 0a 3b 3b 3b 20 65 6d 61 | 63 73 20 76 65 72 73 69 |.;;; ema|cs versi|
|00000090| 6f 6e 20 31 39 2e 32 32 | 2e 39 32 2e 32 2e 0a 3b |on 19.22|.92.2..;|
|000000a0| 3b 3b 20 62 79 74 65 63 | 6f 6d 70 20 76 65 72 73 |;; bytec|omp vers|
|000000b0| 69 6f 6e 20 46 53 46 20 | 32 2e 31 30 0a 3b 3b 3b |ion FSF |2.10.;;;|
|000000c0| 20 6f 70 74 69 6d 69 7a | 61 74 69 6f 6e 20 69 73 | optimiz|ation is|
|000000d0| 20 6f 6e 2e 0a 3b 3b 3b | 20 74 68 69 73 20 66 69 | on..;;;| this fi|
|000000e0| 6c 65 20 75 73 65 73 20 | 6f 70 63 6f 64 65 73 20 |le uses |opcodes |
|000000f0| 77 68 69 63 68 20 64 6f | 20 6e 6f 74 20 65 78 69 |which do| not exi|
|00000100| 73 74 20 69 6e 20 45 6d | 61 63 73 20 31 38 2e 0a |st in Em|acs 18..|
|00000110| 0a 28 69 66 20 28 61 6e | 64 20 28 62 6f 75 6e 64 |.(if (an|d (bound|
|00000120| 70 20 27 65 6d 61 63 73 | 2d 76 65 72 73 69 6f 6e |p 'emacs|-version|
|00000130| 29 0a 09 20 28 6f 72 20 | 28 61 6e 64 20 28 62 6f |).. (or |(and (bo|
|00000140| 75 6e 64 70 20 27 65 70 | 6f 63 68 3a 3a 76 65 72 |undp 'ep|och::ver|
|00000150| 73 69 6f 6e 29 20 65 70 | 6f 63 68 3a 3a 76 65 72 |sion) ep|och::ver|
|00000160| 73 69 6f 6e 29 0a 09 20 | 20 20 20 20 28 73 74 72 |sion).. | (str|
|00000170| 69 6e 67 2d 6c 65 73 73 | 70 20 65 6d 61 63 73 2d |ing-less|p emacs-|
|00000180| 76 65 72 73 69 6f 6e 20 | 22 31 39 22 29 29 29 0a |version |"19"))).|
|00000190| 20 20 20 20 28 65 72 72 | 6f 72 20 22 60 2f 67 64 | (err|or "`/gd|
|000001a0| 2f 67 6e 75 2f 65 6d 61 | 63 73 2f 31 39 2e 30 2f |/gnu/ema|cs/19.0/|
|000001b0| 6c 69 73 70 2f 72 65 70 | 6f 73 69 74 69 6f 6e 2e |lisp/rep|osition.|
|000001c0| 65 6c 27 20 77 61 73 20 | 63 6f 6d 70 69 6c 65 64 |el' was |compiled|
|000001d0| 20 66 6f 72 20 45 6d 61 | 63 73 20 31 39 22 29 29 | for Ema|cs 19"))|
|000001e0| 0a 0a 28 64 65 66 61 6c | 69 61 73 20 27 72 65 70 |..(defal|ias 'rep|
|000001f0| 6f 73 69 74 69 6f 6e 2d | 77 69 6e 64 6f 77 20 23 |osition-|window #|
|00000200| 5b 28 26 6f 70 74 69 6f | 6e 61 6c 20 61 72 67 29 |[(&optio|nal arg)|
|00000210| 20 22 60 18 c1 c2 20 21 | c3 5a 1c c5 c6 20 60 5c | "`... !|.Z... `\|
|00000220| 22 1e 07 c8 c9 8a 6d 84 | 1a 00 ca 75 88 cb cc 21 |".....m.|...u...!|
|00000230| 88 cd ce cf d0 23 83 2a | 00 d1 ca 21 88 60 29 08 |.....#.*|...!.`).|
|00000240| 5c 22 5d 1e 12 c9 8a cb | ca 21 88 d3 ca 21 88 60 |\"].....|.!...!.`|
|00000250| 29 08 5c 22 1e 14 c5 08 | 8a cb ca 21 88 60 29 5c |).\"....|...!.`)\|
|00000260| 22 1e 15 0e 14 0e 07 58 | 85 5c 5c 00 0e 07 0e 14 |"......X|.\\.....|
|00000270| 5a 5c 66 58 1e 16 0e 12 | 0e 07 55 84 7a 00 0e 07 |Z\fX....|..U.z...|
|00000280| 5c 66 55 83 9c 00 0e 12 | 0e 07 56 83 9c 00 0e 16 |\fU.....|..V.....|
|00000290| 83 9c 00 0e 17 83 93 00 | 0e 15 5c 66 54 56 83 93 |........|..\fTV..|
|000002a0| 00 cb 20 88 d3 20 88 d8 | c8 21 82 34 01 d8 0e 14 |.. .. ..|.!.4....|
|000002b0| c8 5d 21 82 34 01 0e 14 | 0e 07 55 84 ba 00 0e 07 |.]!.4...|..U.....|
|000002c0| c8 55 84 ba 00 0e 07 0e | 12 57 83 f5 00 0e 14 c8 |.U......|.W......|
|000002d0| 57 83 f5 00 0e 07 5c 66 | 55 83 d2 00 0e 17 83 cc |W.....\f|U.......|
|000002e0| 00 cb 20 88 d3 20 88 d8 | c8 21 82 34 01 0e 17 83 |.. .. ..|.!.4....|
|000002f0| ec 00 5c 66 0e 12 57 83 | ec 00 0e 12 5b 79 88 c8 |..\f..W.|....[y..|
|00000300| 79 88 d8 c8 21 82 34 01 | d8 5c 66 0e 12 5e 21 82 |y...!.4.|.\f..^!.|
|00000310| 34 01 0e 07 0e 15 cc 5c | 5c 5c 5c 5c 66 56 83 15 |4......\|\\\\fV..|
|00000320| 01 0e 16 83 15 01 d8 c8 | 5c 66 0e 15 5a 54 0e 14 |........|\f..ZT..|
|00000330| 5d 5d 21 82 34 01 0e 17 | 83 2e 01 5c 66 0e 12 57 |]]!.4...|...\f..W|
|00000340| 83 2e 01 0e 14 5b 79 88 | c8 79 88 d9 20 82 34 01 |.....[y.|.y.. .4.|
|00000350| d8 5c 66 0e 12 5e 21 2e | 07 87 22 20 5b 68 65 72 |.\f..^!.|.." [her|
|00000360| 65 20 77 69 6e 64 6f 77 | 2d 68 65 69 67 68 74 20 |e window|-height |
|00000370| 73 65 6c 65 63 74 65 64 | 2d 77 69 6e 64 6f 77 20 |selected|-window |
|00000380| 32 20 68 74 20 72 65 70 | 6f 73 2d 63 6f 75 6e 74 |2 ht rep|os-count|
|00000390| 2d 73 63 72 65 65 6e 2d | 6c 69 6e 65 73 20 77 69 |-screen-|lines wi|
|000003a0| 6e 64 6f 77 2d 73 74 61 | 72 74 20 6c 69 6e 65 20 |ndow-sta|rt line |
|000003b0| 30 20 72 65 70 6f 73 2d | 63 6f 75 6e 74 2d 73 63 |0 repos-|count-sc|
|000003c0| 72 65 65 6e 2d 6c 69 6e | 65 73 2d 73 69 67 6e 65 |reen-lin|es-signe|
|000003d0| 64 20 31 20 65 6e 64 2d | 6f 66 2d 64 65 66 75 6e |d 1 end-|of-defun|
|000003e0| 20 2d 31 20 72 65 2d 73 | 65 61 72 63 68 2d 66 6f | -1 re-s|earch-fo|
|000003f0| 72 77 61 72 64 20 22 5b | 5e 20 09 5c 6e 5c 66 5d |rward "[|^ .\n\f]|
|00000400| 22 20 6e 69 6c 20 74 20 | 62 61 63 6b 77 61 72 64 |" nil t |backward|
|00000410| 2d 63 68 61 72 20 63 6f | 6d 6d 65 6e 74 2d 68 65 |-char co|mment-he|
|00000420| 69 67 68 74 20 62 65 67 | 69 6e 6e 69 6e 67 2d 6f |ight beg|inning-o|
|00000430| 66 2d 64 65 66 75 6e 20 | 64 65 66 75 6e 2d 68 65 |f-defun |defun-he|
|00000440| 69 67 68 74 20 64 65 66 | 75 6e 2d 64 65 70 74 68 |ight def|un-depth|
|00000450| 20 64 65 66 75 6e 2d 6c | 69 6e 65 2d 6f 6e 73 63 | defun-l|ine-onsc|
|00000460| 72 65 65 6e 2d 70 20 61 | 72 67 20 72 65 63 65 6e |reen-p a|rg recen|
|00000470| 74 65 72 20 72 65 70 6f | 73 69 74 69 6f 6e 2d 77 |ter repo|sition-w|
|00000480| 69 6e 64 6f 77 5d 20 36 | 20 22 5c 0a 4d 61 6b 65 |indow] 6| "\.Make|
|00000490| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 64 65 66 | the cur|rent def|
|000004a0| 69 6e 69 74 69 6f 6e 20 | 61 6e 64 2f 6f 72 20 63 |inition |and/or c|
|000004b0| 6f 6d 6d 65 6e 74 20 76 | 69 73 69 62 6c 65 2e 0a |omment v|isible..|
|000004c0| 46 75 72 74 68 65 72 20 | 69 6e 76 6f 63 61 74 69 |Further |invocati|
|000004d0| 6f 6e 73 20 6d 6f 76 65 | 20 69 74 20 74 6f 20 74 |ons move| it to t|
|000004e0| 68 65 20 74 6f 70 20 6f | 66 20 74 68 65 20 77 69 |he top o|f the wi|
|000004f0| 6e 64 6f 77 20 6f 72 20 | 74 6f 67 67 6c 65 20 74 |ndow or |toggle t|
|00000500| 68 65 0a 76 69 73 69 62 | 69 6c 69 74 79 20 6f 66 |he.visib|ility of|
|00000510| 20 63 6f 6d 6d 65 6e 74 | 73 20 74 68 61 74 20 70 | comment|s that p|
|00000520| 72 65 63 65 64 65 20 69 | 74 2e 0a 20 20 50 6f 69 |recede i|t.. Poi|
|00000530| 6e 74 20 69 73 20 6c 65 | 66 74 20 75 6e 63 68 61 |nt is le|ft uncha|
|00000540| 6e 67 65 64 20 75 6e 6c | 65 73 73 20 70 72 65 66 |nged unl|ess pref|
|00000550| 69 78 20 41 52 47 20 69 | 73 20 73 75 70 70 6c 69 |ix ARG i|s suppli|
|00000560| 65 64 2e 0a 20 20 49 66 | 20 74 68 65 20 64 65 66 |ed.. If| the def|
|00000570| 69 6e 69 74 69 6f 6e 20 | 69 73 20 66 75 6c 6c 79 |inition |is fully|
|00000580| 20 6f 6e 73 63 72 65 65 | 6e 2c 20 69 74 20 69 73 | onscree|n, it is|
|00000590| 20 6d 6f 76 65 64 20 74 | 6f 20 74 68 65 20 74 6f | moved t|o the to|
|000005a0| 70 20 6f 66 20 74 68 65 | 0a 77 69 6e 64 6f 77 2e |p of the|.window.|
|000005b0| 20 20 49 66 20 69 74 20 | 69 73 20 70 61 72 74 6c | If it |is partl|
|000005c0| 79 20 6f 66 66 73 63 72 | 65 65 6e 2c 20 74 68 65 |y offscr|een, the|
|000005d0| 20 77 69 6e 64 6f 77 20 | 69 73 20 73 63 72 6f 6c | window |is scrol|
|000005e0| 6c 65 64 20 74 6f 20 67 | 65 74 20 74 68 65 0a 64 |led to g|et the.d|
|000005f0| 65 66 69 6e 69 74 69 6f | 6e 20 28 6f 72 20 61 73 |efinitio|n (or as|
|00000600| 20 6d 75 63 68 20 61 73 | 20 77 69 6c 6c 20 66 69 | much as| will fi|
|00000610| 74 29 20 6f 6e 73 63 72 | 65 65 6e 2c 20 75 6e 6c |t) onscr|een, unl|
|00000620| 65 73 73 20 70 6f 69 6e | 74 20 69 73 20 69 6e 20 |ess poin|t is in |
|00000630| 61 20 63 6f 6d 6d 65 6e | 74 0a 77 68 69 63 68 20 |a commen|t.which |
|00000640| 69 73 20 61 6c 73 6f 20 | 70 61 72 74 6c 79 20 6f |is also |partly o|
|00000650| 66 66 73 63 72 65 65 6e | 2c 20 69 6e 20 77 68 69 |ffscreen|, in whi|
|00000660| 63 68 20 63 61 73 65 20 | 74 68 65 20 73 63 72 6f |ch case |the scro|
|00000670| 6c 6c 69 6e 67 20 61 74 | 74 65 6d 70 74 73 20 74 |lling at|tempts t|
|00000680| 6f 20 67 65 74 0a 61 73 | 20 6d 75 63 68 20 6f 66 |o get.as| much of|
|00000690| 20 74 68 65 20 63 6f 6d | 6d 65 6e 74 20 6f 6e 73 | the com|ment ons|
|000006a0| 63 72 65 65 6e 20 61 73 | 20 70 6f 73 73 69 62 6c |creen as| possibl|
|000006b0| 65 2e 0a 20 20 49 6e 69 | 74 69 61 6c 6c 79 20 60 |e.. Ini|tially `|
|000006c0| 72 65 70 6f 73 69 74 69 | 6f 6e 2d 77 69 6e 64 6f |repositi|on-windo|
|000006d0| 77 27 20 61 74 74 65 6d | 70 74 73 20 74 6f 20 6d |w' attem|pts to m|
|000006e0| 61 6b 65 20 62 6f 74 68 | 20 74 68 65 20 64 65 66 |ake both| the def|
|000006f0| 69 6e 69 74 69 6f 6e 20 | 61 6e 64 0a 70 72 65 63 |inition |and.prec|
|00000700| 65 64 69 6e 67 20 63 6f | 6d 6d 65 6e 74 73 20 76 |eding co|mments v|
|00000710| 69 73 69 62 6c 65 2e 20 | 20 46 75 72 74 68 65 72 |isible. | Further|
|00000720| 20 69 6e 76 6f 63 61 74 | 69 6f 6e 73 20 74 6f 67 | invocat|ions tog|
|00000730| 67 6c 65 20 74 68 65 20 | 76 69 73 69 62 69 6c 69 |gle the |visibili|
|00000740| 74 79 20 6f 66 0a 74 68 | 65 20 63 6f 6d 6d 65 6e |ty of.th|e commen|
|00000750| 74 20 6c 69 6e 65 73 2e | 0a 20 20 49 66 20 41 52 |t lines.|. If AR|
|00000760| 47 20 69 73 20 6e 6f 6e | 2d 6e 69 6c 2c 20 70 6f |G is non|-nil, po|
|00000770| 69 6e 74 20 6d 61 79 20 | 6d 6f 76 65 20 69 6e 20 |int may |move in |
|00000780| 6f 72 64 65 72 20 74 6f | 20 6d 61 6b 65 20 74 68 |order to| make th|
|00000790| 65 20 77 68 6f 6c 65 20 | 64 65 66 75 6e 0a 76 69 |e whole |defun.vi|
|000007a0| 73 69 62 6c 65 20 28 69 | 66 20 6f 6e 6c 79 20 70 |sible (i|f only p|
|000007b0| 61 72 74 20 63 6f 75 6c | 64 20 6f 74 68 65 72 77 |art coul|d otherw|
|000007c0| 69 73 65 20 62 65 20 6d | 61 64 65 20 73 6f 29 2c |ise be m|ade so),|
|000007d0| 20 74 6f 20 6d 61 6b 65 | 20 74 68 65 20 64 65 66 | to make| the def|
|000007e0| 75 6e 20 6c 69 6e 65 0a | 76 69 73 69 62 6c 65 20 |un line.|visible |
|000007f0| 28 69 66 20 70 6f 69 6e | 74 20 69 73 20 69 6e 20 |(if poin|t is in |
|00000800| 63 6f 64 65 20 61 6e 64 | 20 69 74 20 63 6f 75 6c |code and| it coul|
|00000810| 64 20 6e 6f 74 20 62 65 | 20 6d 61 64 65 20 73 6f |d not be| made so|
|00000820| 2c 20 6f 72 20 69 66 20 | 6f 6e 6c 79 0a 63 6f 6d |, or if |only.com|
|00000830| 6d 65 6e 74 73 2c 20 69 | 6e 63 6c 75 64 69 6e 67 |ments, i|ncluding|
|00000840| 20 74 68 65 20 66 69 72 | 73 74 20 63 6f 6d 6d 65 | the fir|st comme|
|00000850| 6e 74 20 6c 69 6e 65 2c | 20 61 72 65 20 76 69 73 |nt line,| are vis|
|00000860| 69 62 6c 65 29 2c 20 6f | 72 20 74 6f 20 6d 61 6b |ible), o|r to mak|
|00000870| 65 20 74 68 65 0a 66 69 | 72 73 74 20 63 6f 6d 6d |e the.fi|rst comm|
|00000880| 65 6e 74 20 6c 69 6e 65 | 20 76 69 73 69 62 6c 65 |ent line| visible|
|00000890| 20 28 69 66 20 70 6f 69 | 6e 74 20 69 73 20 69 6e | (if poi|nt is in|
|000008a0| 20 61 20 63 6f 6d 6d 65 | 6e 74 29 2e 22 20 22 50 | a comme|nt)." "P|
|000008b0| 22 5d 29 0a 28 62 79 74 | 65 2d 63 6f 64 65 20 22 |"]).(byt|e-code "|
|000008c0| c0 c1 c2 5c 22 88 c0 c3 | c4 5c 22 87 22 20 5b 64 |...\"...|.\"." [d|
|000008d0| 65 66 61 6c 69 61 73 20 | 72 65 70 6f 73 2d 63 6f |efalias |repos-co|
|000008e0| 75 6e 74 2d 73 63 72 65 | 65 6e 2d 6c 69 6e 65 73 |unt-scre|en-lines|
|000008f0| 20 23 5b 28 73 74 61 72 | 74 20 65 6e 64 29 20 22 | #[(star|t end) "|
|00000900| 8a 8c 08 09 7d 88 65 62 | 88 c2 64 65 5a 21 2a 87 |....}.eb|..deZ!*.|
|00000910| 22 20 5b 73 74 61 72 74 | 20 65 6e 64 20 76 65 72 |" [start| end ver|
|00000920| 74 69 63 61 6c 2d 6d 6f | 74 69 6f 6e 5d 20 33 5d |tical-mo|tion] 3]|
|00000930| 20 72 65 70 6f 73 2d 63 | 6f 75 6e 74 2d 73 63 72 | repos-c|ount-scr|
|00000940| 65 65 6e 2d 6c 69 6e 65 | 73 2d 73 69 67 6e 65 64 |een-line|s-signed|
|00000950| 20 23 5b 28 73 74 61 72 | 74 20 65 6e 64 29 20 22 | #[(star|t end) "|
|00000960| c0 09 5c 6e 5c 22 1b 09 | 5c 6e 57 83 0f 00 0b 82 |..\n\"..|\nW.....|
|00000970| 11 00 0b 5b 29 87 22 20 | 5b 72 65 70 6f 73 2d 63 |...[)." |[repos-c|
|00000980| 6f 75 6e 74 2d 73 63 72 | 65 65 6e 2d 6c 69 6e 65 |ount-scr|een-line|
|00000990| 73 20 73 74 61 72 74 20 | 65 6e 64 20 6c 69 6e 65 |s start |end line|
|000009a0| 73 5d 20 33 5d 5d 20 33 | 29 0a |s] 3]] 3|). |
+--------+-------------------------+-------------------------+--------+--------+