home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / gnu / emacs-19.16 / lisp / reposition.elc < prev    next >
Emacs Compiled Lisp  |  1993-07-05  |  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 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 4d 6f | 6e 20 4a 75 6c 20 20 35 |du on Mo|n Jul 5|
|00000040| 20 32 33 3a 34 38 3a 33 | 30 20 31 39 39 33 0a 3b | 23:48:3|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 72 65 70 | 6f 73 69 74 69 6f 6e 2e |lisp/rep|osition.|
|00000080| 65 6c 0a 3b 3b 3b 20 65 | 6d 61 63 73 20 76 65 72 |el.;;; e|macs ver|
|00000090| 73 69 6f 6e 20 31 39 2e | 31 35 2e 31 36 2e 0a 3b |sion 19.|15.16..;|
|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 54 68 69 73 | (err|or "This|
|000001a0| 20 66 69 6c 65 20 77 61 | 73 20 63 6f 6d 70 69 6c | file wa|s compil|
|000001b0| 65 64 20 66 6f 72 20 45 | 6d 61 63 73 20 31 39 22 |ed for E|macs 19"|
|000001c0| 29 29 0a 0a 28 64 65 66 | 61 6c 69 61 73 20 27 72 |))..(def|alias 'r|
|000001d0| 65 70 6f 73 69 74 69 6f | 6e 2d 77 69 6e 64 6f 77 |epositio|n-window|
|000001e0| 20 23 5b 28 26 6f 70 74 | 69 6f 6e 61 6c 20 61 72 | #[(&opt|ional ar|
|000001f0| 67 29 20 22 60 18 c1 c2 | 20 21 c3 5a 1c c5 c6 20 |g) "`...| !.Z... |
|00000200| 60 5c 22 1e 07 c8 c9 8a | ca 75 88 cb cc 21 88 cd |`\".....|.u...!..|
|00000210| ce 21 88 cf ca 21 88 60 | 29 08 5c 22 5d 1e 10 c9 |.!...!.`|).\"]...|
|00000220| 8a cb ca 21 88 d1 ca 21 | 88 60 29 08 5c 22 1e 12 |...!...!|.`).\"..|
|00000230| c5 08 8a cb ca 21 88 60 | 29 5c 22 1e 13 0e 12 0e |.....!.`|)\".....|
|00000240| 07 58 85 54 00 0e 07 0e | 12 5a 0c 58 1e 14 0e 10 |.X.T....|.Z.X....|
|00000250| 0e 07 55 84 72 00 0e 07 | 0c 55 83 94 00 0e 10 0e |..U.r...|.U......|
|00000260| 07 56 83 94 00 0e 14 83 | 94 00 0e 15 83 8b 00 0e |.V......|........|
|00000270| 13 0c 54 56 83 8b 00 cb | 20 88 d1 20 88 d6 c8 21 |..TV....| .. ...!|
|00000280| 82 2c 01 d6 0e 12 c8 5d | 21 82 2c 01 0e 12 0e 07 |.,.....]|!.,.....|
|00000290| 55 84 b2 00 0e 07 c8 55 | 84 b2 00 0e 07 0e 10 57 |U......U|.......W|
|000002a0| 83 ed 00 0e 12 c8 57 83 | ed 00 0e 07 0c 55 83 ca |......W.|.....U..|
|000002b0| 00 0e 15 83 c4 00 cb 20 | 88 d1 20 88 d6 c8 21 82 |....... |.. ...!.|
|000002c0| 2c 01 0e 15 83 e4 00 0c | 0e 10 57 83 e4 00 0e 10 |,.......|..W.....|
|000002d0| 5b 79 88 c8 79 88 d6 c8 | 21 82 2c 01 d6 0c 0e 10 |[y..y...|!.,.....|
|000002e0| 5e 21 82 2c 01 0e 07 0e | 13 cc 5c 5c 5c 5c 0c 56 |^!.,....|..\\\\.V|
|000002f0| 83 0d 01 0e 14 83 0d 01 | d6 c8 0c 0e 13 5a 54 0e |........|.....ZT.|
|00000300| 12 5d 5d 21 82 2c 01 0e | 15 83 26 01 0c 0e 10 57 |.]]!.,..|..&....W|
|00000310| 83 26 01 0e 12 5b 79 88 | c8 79 88 d7 20 82 2c 01 |.&...[y.|.y.. .,.|
|00000320| d6 0c 0e 10 5e 21 2e 07 | 87 22 20 5b 68 65 72 65 |....^!..|." [here|
|00000330| 20 77 69 6e 64 6f 77 2d | 68 65 69 67 68 74 20 73 | window-|height s|
|00000340| 65 6c 65 63 74 65 64 2d | 77 69 6e 64 6f 77 20 32 |elected-|window 2|
|00000350| 20 68 74 20 72 65 70 6f | 73 2d 63 6f 75 6e 74 2d | ht repo|s-count-|
|00000360| 73 63 72 65 65 6e 2d 6c | 69 6e 65 73 20 77 69 6e |screen-l|ines win|
|00000370| 64 6f 77 2d 73 74 61 72 | 74 20 6c 69 6e 65 20 30 |dow-star|t line 0|
|00000380| 20 72 65 70 6f 73 2d 63 | 6f 75 6e 74 2d 73 63 72 | repos-c|ount-scr|
|00000390| 65 65 6e 2d 6c 69 6e 65 | 73 2d 73 69 67 6e 65 64 |een-line|s-signed|
|000003a0| 20 31 20 65 6e 64 2d 6f | 66 2d 64 65 66 75 6e 20 | 1 end-o|f-defun |
|000003b0| 2d 31 20 72 65 2d 73 65 | 61 72 63 68 2d 66 6f 72 |-1 re-se|arch-for|
|000003c0| 77 61 72 64 20 22 5b 5e | 5c 5c 73 20 5c 6e 0c 5d |ward "[^|\\s \n.]|
|000003d0| 22 20 62 61 63 6b 77 61 | 72 64 2d 63 68 61 72 20 |" backwa|rd-char |
|000003e0| 63 6f 6d 6d 65 6e 74 2d | 68 65 69 67 68 74 20 62 |comment-|height b|
|000003f0| 65 67 69 6e 6e 69 6e 67 | 2d 6f 66 2d 64 65 66 75 |eginning|-of-defu|
|00000400| 6e 20 64 65 66 75 6e 2d | 68 65 69 67 68 74 20 64 |n defun-|height d|
|00000410| 65 66 75 6e 2d 64 65 70 | 74 68 20 64 65 66 75 6e |efun-dep|th defun|
|00000420| 2d 6c 69 6e 65 2d 6f 6e | 73 63 72 65 65 6e 2d 70 |-line-on|screen-p|
|00000430| 20 61 72 67 20 72 65 63 | 65 6e 74 65 72 20 72 65 | arg rec|enter re|
|00000440| 70 6f 73 69 74 69 6f 6e | 2d 77 69 6e 64 6f 77 5d |position|-window]|
|00000450| 20 34 20 22 5c 0a 4d 61 | 6b 65 20 74 68 65 20 63 | 4 "\.Ma|ke the c|
|00000460| 75 72 72 65 6e 74 20 64 | 65 66 69 6e 69 74 69 6f |urrent d|efinitio|
|00000470| 6e 20 61 6e 64 2f 6f 72 | 20 63 6f 6d 6d 65 6e 74 |n and/or| comment|
|00000480| 20 76 69 73 69 62 6c 65 | 2e 0a 46 75 72 74 68 65 | visible|..Furthe|
|00000490| 72 20 69 6e 76 6f 63 61 | 74 69 6f 6e 73 20 6d 6f |r invoca|tions mo|
|000004a0| 76 65 20 69 74 20 74 6f | 20 74 68 65 20 74 6f 70 |ve it to| the top|
|000004b0| 20 6f 66 20 74 68 65 20 | 77 69 6e 64 6f 77 20 6f | of the |window o|
|000004c0| 72 20 74 6f 67 67 6c 65 | 20 74 68 65 0a 76 69 73 |r toggle| the.vis|
|000004d0| 69 62 69 6c 69 74 79 20 | 6f 66 20 63 6f 6d 6d 65 |ibility |of comme|
|000004e0| 6e 74 73 20 74 68 61 74 | 20 70 72 65 63 65 64 65 |nts that| precede|
|000004f0| 20 69 74 2e 0a 20 20 50 | 6f 69 6e 74 20 69 73 20 | it.. P|oint is |
|00000500| 6c 65 66 74 20 75 6e 63 | 68 61 6e 67 65 64 20 75 |left unc|hanged u|
|00000510| 6e 6c 65 73 73 20 70 72 | 65 66 69 78 20 41 52 47 |nless pr|efix ARG|
|00000520| 20 69 73 20 73 75 70 70 | 6c 69 65 64 2e 0a 20 20 | is supp|lied.. |
|00000530| 49 66 20 74 68 65 20 64 | 65 66 69 6e 69 74 69 6f |If the d|efinitio|
|00000540| 6e 20 69 73 20 66 75 6c | 6c 79 20 6f 6e 73 63 72 |n is ful|ly onscr|
|00000550| 65 65 6e 2c 20 69 74 20 | 69 73 20 6d 6f 76 65 64 |een, it |is moved|
|00000560| 20 74 6f 20 74 68 65 20 | 74 6f 70 20 6f 66 20 74 | to the |top of t|
|00000570| 68 65 0a 77 69 6e 64 6f | 77 2e 20 20 49 66 20 69 |he.windo|w. If i|
|00000580| 74 20 69 73 20 70 61 72 | 74 6c 79 20 6f 66 66 73 |t is par|tly offs|
|00000590| 63 72 65 65 6e 2c 20 74 | 68 65 20 77 69 6e 64 6f |creen, t|he windo|
|000005a0| 77 20 69 73 20 73 63 72 | 6f 6c 6c 65 64 20 74 6f |w is scr|olled to|
|000005b0| 20 67 65 74 20 74 68 65 | 0a 64 65 66 69 6e 69 74 | get the|.definit|
|000005c0| 69 6f 6e 20 28 6f 72 20 | 61 73 20 6d 75 63 68 20 |ion (or |as much |
|000005d0| 61 73 20 77 69 6c 6c 20 | 66 69 74 29 20 6f 6e 73 |as will |fit) ons|
|000005e0| 63 72 65 65 6e 2c 20 75 | 6e 6c 65 73 73 20 70 6f |creen, u|nless po|
|000005f0| 69 6e 74 20 69 73 20 69 | 6e 20 61 20 63 6f 6d 6d |int is i|n a comm|
|00000600| 65 6e 74 0a 77 68 69 63 | 68 20 69 73 20 61 6c 73 |ent.whic|h is als|
|00000610| 6f 20 70 61 72 74 6c 79 | 20 6f 66 66 73 63 72 65 |o partly| offscre|
|00000620| 65 6e 2c 20 69 6e 20 77 | 68 69 63 68 20 63 61 73 |en, in w|hich cas|
|00000630| 65 20 74 68 65 20 73 63 | 72 6f 6c 6c 69 6e 67 20 |e the sc|rolling |
|00000640| 61 74 74 65 6d 70 74 73 | 20 74 6f 20 67 65 74 0a |attempts| to get.|
|00000650| 61 73 20 6d 75 63 68 20 | 6f 66 20 74 68 65 20 63 |as much |of the c|
|00000660| 6f 6d 6d 65 6e 74 20 6f | 6e 73 63 72 65 65 6e 20 |omment o|nscreen |
|00000670| 61 73 20 70 6f 73 73 69 | 62 6c 65 2e 0a 20 20 49 |as possi|ble.. I|
|00000680| 6e 69 74 69 61 6c 6c 79 | 20 60 72 65 70 6f 73 69 |nitially| `reposi|
|00000690| 74 69 6f 6e 2d 77 69 6e | 64 6f 77 27 20 61 74 74 |tion-win|dow' att|
|000006a0| 65 6d 70 74 73 20 74 6f | 20 6d 61 6b 65 20 62 6f |empts to| make bo|
|000006b0| 74 68 20 74 68 65 20 64 | 65 66 69 6e 69 74 69 6f |th the d|efinitio|
|000006c0| 6e 20 61 6e 64 0a 70 72 | 65 63 65 64 69 6e 67 20 |n and.pr|eceding |
|000006d0| 63 6f 6d 6d 65 6e 74 73 | 20 76 69 73 69 62 6c 65 |comments| visible|
|000006e0| 2e 20 20 46 75 72 74 68 | 65 72 20 69 6e 76 6f 63 |. Furth|er invoc|
|000006f0| 61 74 69 6f 6e 73 20 74 | 6f 67 67 6c 65 20 74 68 |ations t|oggle th|
|00000700| 65 20 76 69 73 69 62 69 | 6c 69 74 79 20 6f 66 0a |e visibi|lity of.|
|00000710| 74 68 65 20 63 6f 6d 6d | 65 6e 74 20 6c 69 6e 65 |the comm|ent line|
|00000720| 73 2e 0a 20 20 49 66 20 | 41 52 47 20 69 73 20 6e |s.. If |ARG is n|
|00000730| 6f 6e 2d 6e 69 6c 2c 20 | 70 6f 69 6e 74 20 6d 61 |on-nil, |point ma|
|00000740| 79 20 6d 6f 76 65 20 69 | 6e 20 6f 72 64 65 72 20 |y move i|n order |
|00000750| 74 6f 20 6d 61 6b 65 20 | 74 68 65 20 77 68 6f 6c |to make |the whol|
|00000760| 65 20 64 65 66 75 6e 0a | 76 69 73 69 62 6c 65 20 |e defun.|visible |
|00000770| 28 69 66 20 6f 6e 6c 79 | 20 70 61 72 74 20 63 6f |(if only| part co|
|00000780| 75 6c 64 20 6f 74 68 65 | 72 77 69 73 65 20 62 65 |uld othe|rwise be|
|00000790| 20 6d 61 64 65 20 73 6f | 29 2c 20 74 6f 20 6d 61 | made so|), to ma|
|000007a0| 6b 65 20 74 68 65 20 64 | 65 66 75 6e 20 6c 69 6e |ke the d|efun lin|
|000007b0| 65 0a 76 69 73 69 62 6c | 65 20 28 69 66 20 70 6f |e.visibl|e (if po|
|000007c0| 69 6e 74 20 69 73 20 69 | 6e 20 63 6f 64 65 20 61 |int is i|n code a|
|000007d0| 6e 64 20 69 74 20 63 6f | 75 6c 64 20 6e 6f 74 20 |nd it co|uld not |
|000007e0| 62 65 20 6d 61 64 65 20 | 73 6f 2c 20 6f 72 20 69 |be made |so, or i|
|000007f0| 66 20 6f 6e 6c 79 0a 63 | 6f 6d 6d 65 6e 74 73 2c |f only.c|omments,|
|00000800| 20 69 6e 63 6c 75 64 69 | 6e 67 20 74 68 65 20 66 | includi|ng the f|
|00000810| 69 72 73 74 20 63 6f 6d | 6d 65 6e 74 20 6c 69 6e |irst com|ment lin|
|00000820| 65 2c 20 61 72 65 20 76 | 69 73 69 62 6c 65 29 2c |e, are v|isible),|
|00000830| 20 6f 72 20 74 6f 20 6d | 61 6b 65 20 74 68 65 0a | or to m|ake the.|
|00000840| 66 69 72 73 74 20 63 6f | 6d 6d 65 6e 74 20 6c 69 |first co|mment li|
|00000850| 6e 65 20 76 69 73 69 62 | 6c 65 20 28 69 66 20 70 |ne visib|le (if p|
|00000860| 6f 69 6e 74 20 69 73 20 | 69 6e 20 61 20 63 6f 6d |oint is |in a com|
|00000870| 6d 65 6e 74 29 2e 22 20 | 22 50 22 5d 29 0a 28 62 |ment)." |"P"]).(b|
|00000880| 79 74 65 2d 63 6f 64 65 | 20 22 c0 09 c2 c3 23 88 |yte-code| "....#.|
|00000890| c4 c5 c6 5c 22 88 c4 c7 | c8 5c 22 87 22 20 5b 64 |...\"...|.\"." [d|
|000008a0| 65 66 69 6e 65 2d 6b 65 | 79 20 65 73 63 2d 6d 61 |efine-ke|y esc-ma|
|000008b0| 70 20 22 0c 22 20 72 65 | 70 6f 73 69 74 69 6f 6e |p "." re|position|
|000008c0| 2d 77 69 6e 64 6f 77 20 | 64 65 66 61 6c 69 61 73 |-window |defalias|
|000008d0| 20 72 65 70 6f 73 2d 63 | 6f 75 6e 74 2d 73 63 72 | repos-c|ount-scr|
|000008e0| 65 65 6e 2d 6c 69 6e 65 | 73 20 23 5b 28 73 74 61 |een-line|s #[(sta|
|000008f0| 72 74 20 65 6e 64 29 20 | 22 8a 8c 08 09 7d 88 65 |rt end) |"....}.e|
|00000900| 62 88 c2 64 65 5a 21 2a | 87 22 20 5b 73 74 61 72 |b..deZ!*|." [star|
|00000910| 74 20 65 6e 64 20 76 65 | 72 74 69 63 61 6c 2d 6d |t end ve|rtical-m|
|00000920| 6f 74 69 6f 6e 5d 20 33 | 5d 20 72 65 70 6f 73 2d |otion] 3|] repos-|
|00000930| 63 6f 75 6e 74 2d 73 63 | 72 65 65 6e 2d 6c 69 6e |count-sc|reen-lin|
|00000940| 65 73 2d 73 69 67 6e 65 | 64 20 23 5b 28 73 74 61 |es-signe|d #[(sta|
|00000950| 72 74 20 65 6e 64 29 20 | 22 c0 09 5c 6e 5c 22 1b |rt end) |"..\n\".|
|00000960| 09 5c 6e 57 83 0f 00 0b | 82 11 00 0b 5b 29 87 22 |.\nW....|....[)."|
|00000970| 20 5b 72 65 70 6f 73 2d | 63 6f 75 6e 74 2d 73 63 | [repos-|count-sc|
|00000980| 72 65 65 6e 2d 6c 69 6e | 65 73 20 73 74 61 72 74 |reen-lin|es start|
|00000990| 20 65 6e 64 20 6c 69 6e | 65 73 5d 20 33 5d 5d 20 | end lin|es] 3]] |
|000009a0| 34 29 0a | |4). | |
+--------+-------------------------+-------------------------+--------+--------+