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 / mode-motion.elc < prev    next >
Emacs Compiled Lisp  |  1993-04-01  |  5.2 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 34 3a 33 34 20 |Feb 1 1|9:24:34 |
|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 6d 6f 64 65 2d 6d |lisp/pri|m/mode-m|
|00000080| 6f 74 69 6f 6e 2e 65 6c | 0a 3b 3b 3b 20 65 6d 61 |otion.el|.;;; ema|
|00000090| 63 73 20 76 65 72 73 69 | 6f 6e 20 31 39 2e 34 2e |cs versi|on 19.4.|
|000000a0| 31 33 20 4c 75 63 69 64 | 2e 0a 3b 3b 3b 20 62 79 |13 Lucid|..;;; by|
|000000b0| 74 65 63 6f 6d 70 20 76 | 65 72 73 69 6f 6e 20 32 |tecomp v|ersion 2|
|000000c0| 2e 31 30 3b 20 20 31 2d | 66 65 62 2d 39 33 2e 0a |.10; 1-|feb-93..|
|000000d0| 3b 3b 3b 20 6f 70 74 69 | 6d 69 7a 61 74 69 6f 6e |;;; opti|mization|
|000000e0| 20 69 73 20 6f 6e 2e 0a | 3b 3b 3b 20 74 68 69 73 | is on..|;;; this|
|000000f0| 20 66 69 6c 65 20 75 73 | 65 73 20 6f 70 63 6f 64 | file us|es opcod|
|00000100| 65 73 20 77 68 69 63 68 | 20 64 6f 20 6e 6f 74 20 |es which| do not |
|00000110| 65 78 69 73 74 20 69 6e | 20 45 6d 61 63 73 31 38 |exist in| Emacs18|
|00000120| 2e 0a 0a 28 69 66 20 28 | 61 6e 64 20 28 62 6f 75 |...(if (|and (bou|
|00000130| 6e 64 70 20 27 65 6d 61 | 63 73 2d 76 65 72 73 69 |ndp 'ema|cs-versi|
|00000140| 6f 6e 29 0a 09 20 28 6f | 72 20 28 61 6e 64 20 28 |on).. (o|r (and (|
|00000150| 62 6f 75 6e 64 70 20 27 | 65 70 6f 63 68 3a 3a 76 |boundp '|epoch::v|
|00000160| 65 72 73 69 6f 6e 29 20 | 65 70 6f 63 68 3a 3a 76 |ersion) |epoch::v|
|00000170| 65 72 73 69 6f 6e 29 0a | 09 20 20 20 20 20 28 73 |ersion).|. (s|
|00000180| 74 72 69 6e 67 2d 6c 65 | 73 73 70 20 65 6d 61 63 |tring-le|ssp emac|
|00000190| 73 2d 76 65 72 73 69 6f | 6e 20 22 31 39 22 29 29 |s-versio|n "19"))|
|000001a0| 29 0a 20 20 20 20 28 65 | 72 72 6f 72 20 22 54 68 |). (e|rror "Th|
|000001b0| 69 73 20 66 69 6c 65 20 | 77 61 73 20 63 6f 6d 70 |is file |was comp|
|000001c0| 69 6c 65 64 20 66 6f 72 | 20 45 6d 61 63 73 31 39 |iled for| Emacs19|
|000001d0| 2e 22 29 29 0a 0a 28 64 | 65 66 76 61 72 20 6d 6f |."))..(d|efvar mo|
|000001e0| 64 65 2d 6d 6f 74 69 6f | 6e 2d 68 6f 6f 6b 20 6e |de-motio|n-hook n|
|000001f0| 69 6c 20 22 5c 0a 46 75 | 6e 63 74 69 6f 6e 20 6f |il "\.Fu|nction o|
|00000200| 72 20 66 75 6e 63 74 69 | 6f 6e 73 20 77 68 69 63 |r functi|ons whic|
|00000210| 68 20 61 72 65 20 63 61 | 6c 6c 65 64 20 77 68 65 |h are ca|lled whe|
|00000220| 6e 65 76 65 72 20 74 68 | 65 20 6d 6f 75 73 65 20 |never th|e mouse |
|00000230| 6d 6f 76 65 73 2e 0a 59 | 6f 75 20 73 68 6f 75 6c |moves..Y|ou shoul|
|00000240| 64 20 6e 6f 72 6d 61 6c | 6c 79 20 75 73 65 20 74 |d normal|ly use t|
|00000250| 68 69 73 20 72 61 74 68 | 65 72 20 74 68 61 6e 20 |his rath|er than |
|00000260| 60 6d 6f 75 73 65 2d 6d | 6f 74 69 6f 6e 2d 68 61 |`mouse-m|otion-ha|
|00000270| 6e 64 6c 65 72 27 2c 20 | 77 68 69 63 68 20 0a 64 |ndler', |which .d|
|00000280| 6f 65 73 20 73 6f 6d 65 | 20 61 64 64 69 74 69 6f |oes some| additio|
|00000290| 6e 61 6c 20 77 69 6e 64 | 6f 77 2d 73 79 73 74 65 |nal wind|ow-syste|
|000002a0| 6d 2d 64 65 70 65 6e 64 | 65 6e 74 20 74 68 69 6e |m-depend|ent thin|
|000002b0| 67 73 2e 20 20 54 68 69 | 73 20 68 6f 6f 6b 20 69 |gs. Thi|s hook i|
|000002c0| 73 20 6c 6f 63 61 6c 0a | 74 6f 20 65 76 65 72 79 |s local.|to every|
|000002d0| 20 62 75 66 66 65 72 2c | 20 61 6e 64 20 73 68 6f | buffer,| and sho|
|000002e0| 75 6c 64 20 6e 6f 72 6d | 61 6c 6c 79 20 62 65 20 |uld norm|ally be |
|000002f0| 73 65 74 20 75 70 20 62 | 79 20 6d 61 6a 6f 72 2d |set up b|y major-|
|00000300| 6d 6f 64 65 73 20 77 68 | 69 63 68 20 77 61 6e 74 |modes wh|ich want|
|00000310| 0a 74 6f 20 75 73 65 20 | 73 70 65 63 69 61 6c 20 |.to use |special |
|00000320| 68 69 67 68 6c 69 67 68 | 74 69 6e 67 2e 20 20 45 |highligh|ting. E|
|00000330| 76 65 72 79 20 74 69 6d | 65 20 74 68 65 20 6d 6f |very tim|e the mo|
|00000340| 75 73 65 20 6d 6f 76 65 | 73 20 6f 76 65 72 20 61 |use move|s over a|
|00000350| 20 77 69 6e 64 6f 77 2c | 0a 74 68 65 20 6d 6f 64 | window,|.the mod|
|00000360| 65 2d 6d 6f 74 69 6f 6e | 2d 68 6f 6f 6b 20 6f 66 |e-motion|-hook of|
|00000370| 20 74 68 65 20 62 75 66 | 66 65 72 20 6f 66 20 74 | the buf|fer of t|
|00000380| 68 61 74 20 77 69 6e 64 | 6f 77 20 69 73 20 72 75 |hat wind|ow is ru|
|00000390| 6e 2e 22 29 0a 28 62 79 | 74 65 2d 63 6f 64 65 20 |n.").(by|te-code |
|000003a0| 22 c0 c1 21 88 c2 c3 21 | ac 82 c4 13 c0 c3 21 88 |"..!...!|......!.|
|000003b0| c5 c6 4d 87 22 20 5b 6d | 61 6b 65 2d 76 61 72 69 |..M." [m|ake-vari|
|000003c0| 61 62 6c 65 2d 62 75 66 | 66 65 72 2d 6c 6f 63 61 |able-buf|fer-loca|
|000003d0| 6c 20 6d 6f 64 65 2d 6d | 6f 74 69 6f 6e 2d 68 6f |l mode-m|otion-ho|
|000003e0| 6f 6b 20 62 6f 75 6e 64 | 70 20 6d 6f 64 65 2d 6d |ok bound|p mode-m|
|000003f0| 6f 74 69 6f 6e 2d 65 78 | 74 65 6e 74 20 6e 69 6c |otion-ex|tent nil|
|00000400| 20 6d 6f 64 65 2d 6d 6f | 74 69 6f 6e 2d 68 69 67 | mode-mo|tion-hig|
|00000410| 68 6c 69 67 68 74 2d 69 | 6e 74 65 72 6e 61 6c 20 |hlight-i|nternal |
|00000420| 23 5b 28 65 76 65 6e 74 | 20 62 61 63 6b 77 61 72 |#[(event| backwar|
|00000430| 64 20 66 6f 72 77 61 72 | 64 29 20 22 c0 09 21 89 |d forwar|d) "..!.|
|00000440| 1a ab 85 c3 5c 6e 21 aa | 82 c4 20 1d 5c 6e ad 83 |....\n!.|.. .\n..|
|00000450| c6 5c 6e 21 89 1e 07 ad | 83 c8 09 21 1e 09 0e 07 |.\n!....|...!....|
|00000460| ad d8 8a 0e 07 71 88 0e | 09 ab b2 0e 09 62 88 ca |.....q..|.....b..|
|00000470| cb cc 8f 88 60 16 09 ca | cd ce 8f 88 0e 0f ab 8f |....`...|........|
|00000480| d0 0e 0f 21 ab 89 d1 0e | 0f 0e 09 60 23 aa aa d2 |...!....|...`#...|
|00000490| 0e 09 60 5c 22 16 0f d3 | 0e 0f d4 5c 22 aa 9c 0e |..`\"...|...\"...|
|000004a0| 0f ad 98 d0 0e 0f 21 ad | 92 d5 0e 0f 21 d6 0e 0f |......!.|....!...|
|000004b0| 21 3d 3f ad 86 d1 0e 0f | d7 89 23 29 2c 87 22 20 |!=?.....|..#),." |
|000004c0| 5b 65 76 65 6e 74 2d 77 | 69 6e 64 6f 77 20 65 76 |[event-w|indow ev|
|000004d0| 65 6e 74 20 77 69 6e 64 | 6f 77 20 77 69 6e 64 6f |ent wind|ow windo|
|000004e0| 77 2d 73 63 72 65 65 6e | 20 73 65 6c 65 63 74 65 |w-screen| selecte|
|000004f0| 64 2d 73 63 72 65 65 6e | 20 73 63 72 65 65 6e 20 |d-screen| screen |
|00000500| 77 69 6e 64 6f 77 2d 62 | 75 66 66 65 72 20 62 75 |window-b|uffer bu|
|00000510| 66 66 65 72 20 65 76 65 | 6e 74 2d 70 6f 69 6e 74 |ffer eve|nt-point|
|00000520| 20 70 6f 69 6e 74 20 6e | 69 6c 20 28 66 75 6e 63 | point n|il (func|
|00000530| 61 6c 6c 20 62 61 63 6b | 77 61 72 64 29 20 28 28 |all back|ward) ((|
|00000540| 65 72 72 6f 72 29 29 20 | 28 66 75 6e 63 61 6c 6c |error)) |(funcall|
|00000550| 20 66 6f 72 77 61 72 64 | 29 20 28 28 65 72 72 6f | forward|) ((erro|
|00000560| 72 29 29 20 6d 6f 64 65 | 2d 6d 6f 74 69 6f 6e 2d |r)) mode|-motion-|
|00000570| 65 78 74 65 6e 74 20 65 | 78 74 65 6e 74 2d 62 75 |extent e|xtent-bu|
|00000580| 66 66 65 72 20 73 65 74 | 2d 65 78 74 65 6e 74 2d |ffer set|-extent-|
|00000590| 65 6e 64 70 6f 69 6e 74 | 73 20 6d 61 6b 65 2d 65 |endpoint|s make-e|
|000005a0| 78 74 65 6e 74 20 73 65 | 74 2d 65 78 74 65 6e 74 |xtent se|t-extent|
|000005b0| 2d 61 74 74 72 69 62 75 | 74 65 20 68 69 67 68 6c |-attribu|te highl|
|000005c0| 69 67 68 74 20 65 78 74 | 65 6e 74 2d 73 74 61 72 |ight ext|ent-star|
|000005d0| 74 2d 70 6f 73 69 74 69 | 6f 6e 20 65 78 74 65 6e |t-positi|on exten|
|000005e0| 74 2d 65 6e 64 2d 70 6f | 73 69 74 69 6f 6e 20 31 |t-end-po|sition 1|
|000005f0| 5d 20 35 5d 5d 20 32 29 | 0a 28 66 73 65 74 20 27 |] 5]] 2)|.(fset '|
|00000600| 6d 6f 64 65 2d 6d 6f 74 | 69 6f 6e 2d 68 69 67 68 |mode-mot|ion-high|
|00000610| 6c 69 67 68 74 2d 6c 69 | 6e 65 20 23 5b 28 65 76 |light-li|ne #[(ev|
|00000620| 65 6e 74 29 20 22 c0 09 | c2 c3 23 87 22 20 5b 6d |ent) "..|..#." [m|
|00000630| 6f 64 65 2d 6d 6f 74 69 | 6f 6e 2d 68 69 67 68 6c |ode-moti|on-highl|
|00000640| 69 67 68 74 2d 69 6e 74 | 65 72 6e 61 6c 20 65 76 |ight-int|ernal ev|
|00000650| 65 6e 74 20 62 65 67 69 | 6e 6e 69 6e 67 2d 6f 66 |ent begi|nning-of|
|00000660| 2d 6c 69 6e 65 20 65 6e | 64 2d 6f 66 2d 6c 69 6e |-line en|d-of-lin|
|00000670| 65 5d 20 34 20 22 5c 0a | 46 6f 72 20 75 73 65 20 |e] 4 "\.|For use |
|00000680| 61 73 20 74 68 65 20 76 | 61 6c 75 65 20 6f 66 20 |as the v|alue of |
|00000690| 60 6d 6f 64 65 2d 6d 6f | 74 69 6f 6e 2d 68 6f 6f |`mode-mo|tion-hoo|
|000006a0| 6b 27 20 2d 2d 20 68 69 | 67 68 6c 69 67 68 74 20 |k' -- hi|ghlight |
|000006b0| 6c 69 6e 65 20 75 6e 64 | 65 72 20 6d 6f 75 73 65 |line und|er mouse|
|000006c0| 2e 22 5d 29 0a 28 66 73 | 65 74 20 27 6d 6f 64 65 |."]).(fs|et 'mode|
|000006d0| 2d 6d 6f 74 69 6f 6e 2d | 68 69 67 68 6c 69 67 68 |-motion-|highligh|
|000006e0| 74 2d 77 6f 72 64 20 23 | 5b 28 65 76 65 6e 74 29 |t-word #|[(event)|
|000006f0| 20 22 c0 09 c2 c3 23 87 | 22 20 5b 6d 6f 64 65 2d | "....#.|" [mode-|
|00000700| 6d 6f 74 69 6f 6e 2d 68 | 69 67 68 6c 69 67 68 74 |motion-h|ighlight|
|00000710| 2d 69 6e 74 65 72 6e 61 | 6c 20 65 76 65 6e 74 20 |-interna|l event |
|00000720| 23 5b 6e 69 6c 20 22 c0 | 19 c0 c2 3d ab 83 c3 aa |#[nil ".|...=....|
|00000730| 87 09 ac 83 c4 aa 81 c5 | c6 1e 07 1e 08 6f ab 83 |........|.....o..|
|00000740| c0 aa bb c9 0e 08 21 ab | 9f ca 20 88 6f ac 8b c9 |......!.|.. .o...|
|00000750| 0e 08 21 ab 85 ca 20 88 | aa 72 6f ab 87 c9 0e 08 |..!... .|.ro.....|
|00000760| 21 3f ad 9a c0 75 aa 96 | c9 0e 07 21 ad 90 ca 20 |!?...u..|...!... |
|00000770| 88 c9 0e 07 21 ab 85 ca | 20 88 aa 75 c0 75 2b 87 |....!...| ..u.u+.|
|00000780| 22 20 5b 6e 69 6c 20 73 | 79 6d 62 6f 6c 70 20 74 |" [nil s|ymbolp t|
|00000790| 20 22 5c 5c 77 5c 5c 7c | 5c 5c 73 5f 5c 5c 7c 5c | "\\w\\||\\s_\\|\|
|000007a0| 5c 73 27 22 20 22 5c 5c | 77 22 20 22 5b 5e 20 09 |\s'" "\\|w" "[^ .|
|000007b0| 5c 6e 5d 22 20 22 5b 20 | 09 5d 22 20 77 68 69 74 |\n]" "[ |.]" whit|
|000007c0| 65 2d 73 70 61 63 65 20 | 77 6f 72 64 2d 63 6f 6e |e-space |word-con|
|000007d0| 73 74 69 74 75 65 6e 74 | 20 6c 6f 6f 6b 69 6e 67 |stituent| looking|
|000007e0| 2d 61 74 20 62 61 63 6b | 77 61 72 64 2d 63 68 61 |-at back|ward-cha|
|000007f0| 72 5d 20 32 5d 20 23 5b | 6e 69 6c 20 22 c0 c1 21 |r] 2] #[|nil "..!|
|00000800| 87 22 20 5b 6d 6f 75 73 | 65 2d 74 72 61 63 6b 2d |." [mous|e-track-|
|00000810| 65 6e 64 2d 6f 66 2d 77 | 6f 72 64 20 6e 69 6c 5d |end-of-w|ord nil]|
|00000820| 20 32 5d 5d 20 34 20 22 | 5c 0a 46 6f 72 20 75 73 | 2]] 4 "|\.For us|
|00000830| 65 20 61 73 20 74 68 65 | 20 76 61 6c 75 65 20 6f |e as the| value o|
|00000840| 66 20 60 6d 6f 64 65 2d | 6d 6f 74 69 6f 6e 2d 68 |f `mode-|motion-h|
|00000850| 6f 6f 6b 27 20 2d 2d 20 | 68 69 67 68 6c 69 67 68 |ook' -- |highligh|
|00000860| 74 20 77 6f 72 64 20 75 | 6e 64 65 72 20 6d 6f 75 |t word u|nder mou|
|00000870| 73 65 2e 22 5d 29 0a 28 | 66 73 65 74 20 27 6d 6f |se."]).(|fset 'mo|
|00000880| 64 65 2d 6d 6f 74 69 6f | 6e 2d 68 69 67 68 6c 69 |de-motio|n-highli|
|00000890| 67 68 74 2d 73 79 6d 62 | 6f 6c 20 23 5b 28 65 76 |ght-symb|ol #[(ev|
|000008a0| 65 6e 74 29 20 22 c0 09 | c2 c3 23 87 22 20 5b 6d |ent) "..|..#." [m|
|000008b0| 6f 64 65 2d 6d 6f 74 69 | 6f 6e 2d 68 69 67 68 6c |ode-moti|on-highl|
|000008c0| 69 67 68 74 2d 69 6e 74 | 65 72 6e 61 6c 20 65 76 |ight-int|ernal ev|
|000008d0| 65 6e 74 20 23 5b 6e 69 | 6c 20 22 c0 19 c0 89 3d |ent #[ni|l "....=|
|000008e0| ab 83 c2 aa 87 09 ac 83 | c3 aa 81 c4 c5 1e 06 1e |........|........|
|000008f0| 07 6f ab 83 c8 aa bb c9 | 0e 07 21 ab 9f ca 20 88 |.o......|..!... .|
|00000900| 6f ac 8b c9 0e 07 21 ab | 85 ca 20 88 aa 72 6f ab |o.....!.|.. ..ro.|
|00000910| 87 c9 0e 07 21 3f ad 9a | c8 75 aa 96 c9 0e 06 21 |....!?..|.u.....!|
|00000920| ad 90 ca 20 88 c9 0e 06 | 21 ab 85 ca 20 88 aa 75 |... ....|!... ..u|
|00000930| c8 75 2b 87 22 20 5b 74 | 20 73 79 6d 62 6f 6c 70 |.u+." [t| symbolp|
|00000940| 20 22 5c 5c 77 5c 5c 7c | 5c 5c 73 5f 5c 5c 7c 5c | "\\w\\||\\s_\\|\|
|00000950| 5c 73 27 22 20 22 5c 5c | 77 22 20 22 5b 5e 20 09 |\s'" "\\|w" "[^ .|
|00000960| 5c 6e 5d 22 20 22 5b 20 | 09 5d 22 20 77 68 69 74 |\n]" "[ |.]" whit|
|00000970| 65 2d 73 70 61 63 65 20 | 77 6f 72 64 2d 63 6f 6e |e-space |word-con|
|00000980| 73 74 69 74 75 65 6e 74 | 20 6e 69 6c 20 6c 6f 6f |stituent| nil loo|
|00000990| 6b 69 6e 67 2d 61 74 20 | 62 61 63 6b 77 61 72 64 |king-at |backward|
|000009a0| 2d 63 68 61 72 5d 20 32 | 5d 20 23 5b 6e 69 6c 20 |-char] 2|] #[nil |
|000009b0| 22 c0 c1 21 87 22 20 5b | 6d 6f 75 73 65 2d 74 72 |"..!." [|mouse-tr|
|000009c0| 61 63 6b 2d 65 6e 64 2d | 6f 66 2d 77 6f 72 64 20 |ack-end-|of-word |
|000009d0| 74 5d 20 32 5d 5d 20 34 | 20 22 5c 0a 46 6f 72 20 |t] 2]] 4| "\.For |
|000009e0| 75 73 65 20 61 73 20 74 | 68 65 20 76 61 6c 75 65 |use as t|he value|
|000009f0| 20 6f 66 20 60 6d 6f 64 | 65 2d 6d 6f 74 69 6f 6e | of `mod|e-motion|
|00000a00| 2d 68 6f 6f 6b 27 20 2d | 2d 20 68 69 67 68 6c 69 |-hook' -|- highli|
|00000a10| 67 68 74 20 73 79 6d 62 | 6f 6c 20 75 6e 64 65 72 |ght symb|ol under|
|00000a20| 20 6d 6f 75 73 65 2e 22 | 5d 29 0a 28 66 73 65 74 | mouse."|]).(fset|
|00000a30| 20 27 6d 6f 64 65 2d 6d | 6f 74 69 6f 6e 2d 68 69 | 'mode-m|otion-hi|
|00000a40| 67 68 6c 69 67 68 74 2d | 73 65 78 70 20 23 5b 28 |ghlight-|sexp #[(|
|00000a50| 65 76 65 6e 74 29 20 22 | c0 09 c2 c3 23 87 22 20 |event) "|....#." |
|00000a60| 5b 6d 6f 64 65 2d 6d 6f | 74 69 6f 6e 2d 68 69 67 |[mode-mo|tion-hig|
|00000a70| 68 6c 69 67 68 74 2d 69 | 6e 74 65 72 6e 61 6c 20 |hlight-i|nternal |
|00000a80| 65 76 65 6e 74 20 23 5b | 6e 69 6c 20 22 67 7a c0 |event #[|nil "gz.|
|00000a90| 55 3f ad 85 c1 60 c2 5c | 22 62 87 22 20 5b 34 30 |U?...`.\|"b." [40|
|00000aa0| 20 73 63 61 6e 2d 73 65 | 78 70 73 20 2d 31 5d 20 | scan-se|xps -1] |
|00000ab0| 33 5d 20 23 5b 6e 69 6c | 20 22 67 7a c0 55 ab 83 |3] #[nil| "gz.U..|
|00000ac0| c1 75 88 c2 60 c1 5c 22 | 62 87 22 20 5b 34 31 20 |.u..`.\"|b." [41 |
|00000ad0| 31 20 73 63 61 6e 2d 73 | 65 78 70 73 5d 20 33 5d |1 scan-s|exps] 3]|
|00000ae0| 5d 20 34 20 22 5c 0a 46 | 6f 72 20 75 73 65 20 61 |] 4 "\.F|or use a|
|00000af0| 73 20 74 68 65 20 76 61 | 6c 75 65 20 6f 66 20 60 |s the va|lue of `|
|00000b00| 6d 6f 64 65 2d 6d 6f 74 | 69 6f 6e 2d 68 6f 6f 6b |mode-mot|ion-hook|
|00000b10| 27 20 2d 2d 20 68 69 67 | 68 6c 69 67 68 74 20 66 |' -- hig|hlight f|
|00000b20| 6f 72 6d 20 75 6e 64 65 | 72 20 6d 6f 75 73 65 2e |orm unde|r mouse.|
|00000b30| 22 5d 29 0a 28 62 79 74 | 65 2d 63 6f 64 65 20 22 |"]).(byt|e-code "|
|00000b40| c0 c1 4d 88 c2 c3 4d 87 | 22 20 5b 6d 69 6e 69 62 |..M...M.|" [minib|
|00000b50| 75 66 2d 6d 6f 75 73 65 | 2d 74 72 61 63 6b 65 72 |uf-mouse|-tracker|
|00000b60| 20 23 5b 28 65 76 65 6e | 74 29 20 22 08 c1 3d 1a | #[(even|t) "..=.|
|00000b70| c3 0c c5 c6 23 29 87 22 | 20 5b 6d 69 6e 69 62 75 |....#)."| [minibu|
|00000b80| 66 66 65 72 2d 63 6f 6d | 70 6c 65 74 69 6f 6e 2d |ffer-com|pletion-|
|00000b90| 74 61 62 6c 65 20 72 65 | 61 64 2d 66 69 6c 65 2d |table re|ad-file-|
|00000ba0| 6e 61 6d 65 2d 69 6e 74 | 65 72 6e 61 6c 20 66 69 |name-int|ernal fi|
|00000bb0| 6c 65 6e 61 6d 65 2d 6b | 6c 75 64 67 65 2d 70 20 |lename-k|ludge-p |
|00000bc0| 6d 6f 64 65 2d 6d 6f 74 | 69 6f 6e 2d 68 69 67 68 |mode-mot|ion-high|
|00000bd0| 6c 69 67 68 74 2d 69 6e | 74 65 72 6e 61 6c 20 65 |light-in|ternal e|
|00000be0| 76 65 6e 74 20 23 5b 6e | 69 6c 20 22 08 ab 83 c1 |vent #[n|il "....|
|00000bf0| aa 81 c2 89 1b c2 3d ab | 83 c4 aa 87 0b ac 83 c5 |......=.|........|
|00000c00| aa 81 c6 c7 1e 08 1e 09 | 6f ab 83 ca aa bb cb 0e |........|o.......|
|00000c10| 09 21 ab 9f cc 20 88 6f | ac 8b cb 0e 09 21 ab 85 |.!... .o|.....!..|
|00000c20| cc 20 88 aa 72 6f ab 87 | cb 0e 09 21 3f ad 9a ca |. ..ro..|...!?...|
|00000c30| 75 aa 96 cb 0e 08 21 ad | 90 cc 20 88 cb 0e 08 21 |u.....!.|.. ....!|
|00000c40| ab 85 cc 20 88 aa 75 ca | 75 2b 87 22 20 5b 66 69 |... ..u.|u+." [fi|
|00000c50| 6c 65 6e 61 6d 65 2d 6b | 6c 75 64 67 65 2d 70 20 |lename-k|ludge-p |
|00000c60| 6e 6f 6e 77 68 69 74 65 | 20 74 20 73 79 6d 62 6f |nonwhite| t symbo|
|00000c70| 6c 70 20 22 5c 5c 77 5c | 5c 7c 5c 5c 73 5f 5c 5c |lp "\\w\|\|\\s_\\|
|00000c80| 7c 5c 5c 73 27 22 20 22 | 5c 5c 77 22 20 22 5b 5e ||\\s'" "|\\w" "[^|
|00000c90| 20 09 5c 6e 5d 22 20 22 | 5b 20 09 5d 22 20 77 68 | .\n]" "|[ .]" wh|
|00000ca0| 69 74 65 2d 73 70 61 63 | 65 20 77 6f 72 64 2d 63 |ite-spac|e word-c|
|00000cb0| 6f 6e 73 74 69 74 75 65 | 6e 74 20 6e 69 6c 20 6c |onstitue|nt nil l|
|00000cc0| 6f 6f 6b 69 6e 67 2d 61 | 74 20 62 61 63 6b 77 61 |ooking-a|t backwa|
|00000cd0| 72 64 2d 63 68 61 72 5d | 20 33 5d 20 23 5b 6e 69 |rd-char]| 3] #[ni|
|00000ce0| 6c 20 22 60 c0 19 1a c3 | 0c ab 83 c5 aa 81 c6 21 |l "`....|.......!|
|00000cf0| 88 5c 6e 60 55 ac 84 0e | 07 ac 84 5c 6e 62 aa bf |.\n`U...|...\nb..|
|00000d00| 5c 6e 60 7b 11 0c ab 84 | c8 09 21 11 c9 09 0e 07 |\n`{....|..!.....|
|00000d10| 0e 5c 6e 23 89 1e 0b c6 | 3d ae a5 0e 0b 09 9a ab |.\n#....|=.......|
|00000d20| 9d 0e 5c 6e 3f ae 9a 0e | 5c 6e 3b ae 95 0e 5c 6e |..\n?...|\n;...\n|
|00000d30| cc 0e 07 21 ab 87 cd 09 | 0e 07 5c 22 aa 81 09 21 |...!....|..\"...!|
|00000d40| ae 82 5c 6e 62 29 2a 87 | 22 20 5b 6e 69 6c 20 73 |..\nb)*.|" [nil s|
|00000d50| 74 72 69 6e 67 20 70 20 | 6d 6f 75 73 65 2d 74 72 |tring p |mouse-tr|
|00000d60| 61 63 6b 2d 65 6e 64 2d | 6f 66 2d 77 6f 72 64 20 |ack-end-|of-word |
|00000d70| 66 69 6c 65 6e 61 6d 65 | 2d 6b 6c 75 64 67 65 2d |filename|-kludge-|
|00000d80| 70 20 6e 6f 6e 77 68 69 | 74 65 20 74 20 6d 69 6e |p nonwhi|te t min|
|00000d90| 69 62 75 66 66 65 72 2d | 63 6f 6d 70 6c 65 74 69 |ibuffer-|completi|
|00000da0| 6f 6e 2d 74 61 62 6c 65 | 20 6d 69 6e 69 62 75 66 |on-table| minibuf|
|00000db0| 2d 73 65 6c 65 63 74 2d | 6b 6c 75 64 67 65 2d 66 |-select-|kludge-f|
|00000dc0| 69 6c 65 6e 61 6d 65 20 | 74 72 79 2d 63 6f 6d 70 |ilename |try-comp|
|00000dd0| 6c 65 74 69 6f 6e 20 6d | 69 6e 69 62 75 66 66 65 |letion m|inibuffe|
|00000de0| 72 2d 63 6f 6d 70 6c 65 | 74 69 6f 6e 2d 70 72 65 |r-comple|tion-pre|
|00000df0| 64 69 63 61 74 65 20 63 | 6f 6d 70 20 76 65 63 74 |dicate c|omp vect|
|00000e00| 6f 72 70 20 69 6e 74 65 | 72 6e 2d 73 6f 66 74 5d |orp inte|rn-soft]|
|00000e10| 20 35 5d 5d 20 34 5d 20 | 6d 69 6e 69 62 75 66 2d | 5]] 4] |minibuf-|
|00000e20| 73 65 6c 65 63 74 2d 6b | 6c 75 64 67 65 2d 66 69 |select-k|ludge-fi|
|00000e30| 6c 65 6e 61 6d 65 20 23 | 5b 28 73 74 72 69 6e 67 |lename #|[(string|
|00000e40| 29 20 22 8a 08 71 88 c1 | c2 c3 20 21 0c 50 21 29 |) "..q..|.. !.P!)|
|00000e50| 87 22 20 5b 6d 6f 75 73 | 65 2d 67 72 61 62 62 65 |." [mous|e-grabbe|
|00000e60| 64 2d 62 75 66 66 65 72 | 20 65 78 70 61 6e 64 2d |d-buffer| expand-|
|00000e70| 66 69 6c 65 2d 6e 61 6d | 65 20 66 69 6c 65 2d 6e |file-nam|e file-n|
|00000e80| 61 6d 65 2d 64 69 72 65 | 63 74 6f 72 79 20 62 75 |ame-dire|ctory bu|
|00000e90| 66 66 65 72 2d 73 74 72 | 69 6e 67 20 73 74 72 69 |ffer-str|ing stri|
|00000ea0| 6e 67 5d 20 33 5d 5d 20 | 32 29 0a 28 66 73 65 74 |ng] 3]] |2).(fset|
|00000eb0| 20 27 6d 69 6e 69 62 75 | 66 2d 73 65 6c 65 63 74 | 'minibu|f-select|
|00000ec0| 2d 68 69 67 68 6c 69 67 | 68 74 65 64 2d 63 6f 6d |-highlig|hted-com|
|00000ed0| 70 6c 65 74 69 6f 6e 20 | 23 5b 28 65 76 65 6e 74 |pletion |#[(event|
|00000ee0| 29 20 22 08 c1 3d c2 89 | 1b 1c 1d 8a c6 0e 07 21 |) "..=..|.......!|
|00000ef0| 88 c8 c9 0e 07 21 21 71 | 88 0e 5c 6e ab 8b cb 0e |.....!!q|..\n....|
|00000f00| 5c 6e 21 cc 0e 5c 6e 21 | 55 ab 84 cd 13 aa a2 cb |\n!..\n!|U.......|
|00000f10| 0e 5c 6e 21 cc 0e 5c 6e | 21 7b 14 0d ab 84 ce 0c |.\n!..\n|!{......|
|00000f20| 21 14 cf 0e 5c 6e d0 89 | 23 88 0e 11 71 88 d2 20 |!...\n..|#...q.. |
|00000f30| 88 0c 63 88 29 0b ab a1 | d3 0e 14 d5 0e 16 21 5c |..c.)...|......!\|
|00000f40| 22 89 1e 17 ab 86 d8 0e | 17 21 aa 8b 08 ab 85 d9 |".......|.!......|
|00000f50| da 21 aa 83 d9 db 21 29 | aa 98 dc dd 20 21 88 0d |.!....!)|.... !..|
|00000f60| ab 8c de 0c 21 ab 87 64 | 62 88 df 20 aa 84 e0 e1 |....!..d|b.. ....|
|00000f70| c2 5c 22 2b 87 22 20 5b | 6d 69 6e 69 62 75 66 66 |.\"+." [|minibuff|
|00000f80| 65 72 2d 63 6f 6d 70 6c | 65 74 69 6f 6e 2d 74 61 |er-compl|etion-ta|
|00000f90| 62 6c 65 20 72 65 61 64 | 2d 66 69 6c 65 2d 6e 61 |ble read|-file-na|
|00000fa0| 6d 65 2d 69 6e 74 65 72 | 6e 61 6c 20 6e 69 6c 20 |me-inter|nal nil |
|00000fb0| 63 6f 6d 6d 61 6e 64 2d | 70 20 63 6f 6d 70 6c 65 |command-|p comple|
|00000fc0| 74 69 6f 6e 20 66 69 6c | 65 6e 61 6d 65 2d 6b 6c |tion fil|ename-kl|
|00000fd0| 75 64 67 65 2d 70 20 6d | 69 6e 69 62 75 66 2d 6d |udge-p m|inibuf-m|
|00000fe0| 6f 75 73 65 2d 74 72 61 | 63 6b 65 72 20 65 76 65 |ouse-tra|cker eve|
|00000ff0| 6e 74 20 77 69 6e 64 6f | 77 2d 62 75 66 66 65 72 |nt windo|w-buffer|
|00001000| 20 65 76 65 6e 74 2d 77 | 69 6e 64 6f 77 20 6d 6f | event-w|indow mo|
|00001010| 64 65 2d 6d 6f 74 69 6f | 6e 2d 65 78 74 65 6e 74 |de-motio|n-extent|
|00001020| 20 65 78 74 65 6e 74 2d | 73 74 61 72 74 2d 70 6f | extent-|start-po|
|00001030| 73 69 74 69 6f 6e 20 65 | 78 74 65 6e 74 2d 65 6e |sition e|xtent-en|
|00001040| 64 2d 70 6f 73 69 74 69 | 6f 6e 20 74 20 6d 69 6e |d-positi|on t min|
|00001050| 69 62 75 66 2d 73 65 6c | 65 63 74 2d 6b 6c 75 64 |ibuf-sel|ect-klud|
|00001060| 67 65 2d 66 69 6c 65 6e | 61 6d 65 20 73 65 74 2d |ge-filen|ame set-|
|00001070| 65 78 74 65 6e 74 2d 65 | 6e 64 70 6f 69 6e 74 73 |extent-e|ndpoints|
|00001080| 20 31 20 6d 6f 75 73 65 | 2d 67 72 61 62 62 65 64 | 1 mouse|-grabbed|
|00001090| 2d 62 75 66 66 65 72 20 | 65 72 61 73 65 2d 62 75 |-buffer |erase-bu|
|000010a0| 66 66 65 72 20 6c 6f 6f | 6b 75 70 2d 6b 65 79 20 |ffer loo|kup-key |
|000010b0| 67 6c 6f 62 61 6c 2d 6d | 61 70 20 76 65 63 74 6f |global-m|ap vecto|
|000010c0| 72 20 63 75 72 72 65 6e | 74 2d 6d 6f 75 73 65 2d |r curren|t-mouse-|
|000010d0| 65 76 65 6e 74 20 63 6f | 6d 6d 61 6e 64 20 63 61 |event co|mmand ca|
|000010e0| 6c 6c 2d 69 6e 74 65 72 | 61 63 74 69 76 65 6c 79 |ll-inter|actively|
|000010f0| 20 65 72 72 6f 72 20 22 | 48 69 67 68 6c 69 67 68 | error "|Highligh|
|00001100| 74 65 64 20 77 6f 72 64 | 73 20 61 72 65 20 76 61 |ted word|s are va|
|00001110| 6c 69 64 20 63 6f 6d 70 | 6c 65 74 69 6f 6e 73 2e |lid comp|letions.|
|00001120| 20 20 59 6f 75 20 6d 61 | 79 20 73 65 6c 65 63 74 | You ma|y select|
|00001130| 20 6f 6e 65 2e 22 20 22 | 6e 6f 20 63 6f 6d 70 6c | one." "|no compl|
|00001140| 65 74 69 6f 6e 73 22 20 | 73 65 6c 65 63 74 2d 77 |etions" |select-w|
|00001150| 69 6e 64 6f 77 20 6d 69 | 6e 69 62 75 66 66 65 72 |indow mi|nibuffer|
|00001160| 2d 77 69 6e 64 6f 77 20 | 66 69 6c 65 2d 64 69 72 |-window |file-dir|
|00001170| 65 63 74 6f 72 79 2d 70 | 20 6d 69 6e 69 62 75 66 |ectory-p| minibuf|
|00001180| 66 65 72 2d 63 6f 6d 70 | 6c 65 74 69 6f 6e 2d 68 |fer-comp|letion-h|
|00001190| 65 6c 70 20 74 68 72 6f | 77 20 65 78 69 74 5d 20 |elp thro|w exit] |
|000011a0| 35 20 22 5c 0a 53 65 6c | 65 63 74 20 74 68 65 20 |5 "\.Sel|ect the |
|000011b0| 68 69 67 68 6c 69 67 68 | 74 65 64 20 74 65 78 74 |highligh|ted text|
|000011c0| 20 75 6e 64 65 72 20 74 | 68 65 20 6d 6f 75 73 65 | under t|he mouse|
|000011d0| 20 61 73 20 61 20 6d 69 | 6e 69 62 75 66 66 65 72 | as a mi|nibuffer|
|000011e0| 20 72 65 73 70 6f 6e 73 | 65 2e 0a 57 68 65 6e 20 | respons|e..When |
|000011f0| 74 68 65 20 6d 69 6e 69 | 62 75 66 66 65 72 20 69 |the mini|buffer i|
|00001200| 73 20 62 65 69 6e 67 20 | 75 73 65 64 20 74 6f 20 |s being |used to |
|00001210| 70 72 6f 6d 70 74 20 74 | 68 65 20 75 73 65 72 20 |prompt t|he user |
|00001220| 66 6f 72 20 61 20 63 6f | 6d 70 6c 65 74 69 6f 6e |for a co|mpletion|
|00001230| 2c 0a 61 6e 79 20 76 61 | 6c 69 64 20 63 6f 6d 70 |,.any va|lid comp|
|00001240| 6c 65 74 69 6f 6e 73 20 | 77 68 69 63 68 20 61 72 |letions |which ar|
|00001250| 65 20 76 69 73 69 62 6c | 65 20 6f 6e 20 74 68 65 |e visibl|e on the|
|00001260| 20 73 63 72 65 65 6e 20 | 77 69 6c 6c 20 68 69 67 | screen |will hig|
|00001270| 68 6c 69 67 68 74 0a 77 | 68 65 6e 20 74 68 65 20 |hlight.w|hen the |
|00001280| 6d 6f 75 73 65 20 6d 6f | 76 65 73 20 6f 76 65 72 |mouse mo|ves over|
|00001290| 20 74 68 65 6d 2e 20 20 | 43 6c 69 63 6b 69 6e 67 | them. |Clicking|
|000012a0| 20 5c 5c 3c 6d 69 6e 69 | 62 75 66 66 65 72 2d 6c | \\<mini|buffer-l|
|000012b0| 6f 63 61 6c 2d 6d 61 70 | 3e 5c 5c 5b 6d 69 6e 69 |ocal-map|>\\[mini|
|000012c0| 62 75 66 2d 73 65 6c 65 | 63 74 2d 68 69 67 68 6c |buf-sele|ct-highl|
|000012d0| 69 67 68 74 65 64 2d 63 | 6f 6d 70 6c 65 74 69 6f |ighted-c|ompletio|
|000012e0| 6e 5d 20 77 69 6c 6c 20 | 73 65 6c 65 63 74 20 74 |n] will |select t|
|000012f0| 68 65 0a 68 69 67 68 6c | 69 67 68 74 65 64 20 63 |he.highl|ighted c|
|00001300| 6f 6d 70 6c 65 74 69 6f | 6e 20 75 6e 64 65 72 20 |ompletio|n under |
|00001310| 74 68 65 20 6d 6f 75 73 | 65 2e 0a 0a 49 66 20 74 |the mous|e...If t|
|00001320| 68 65 20 6d 6f 75 73 65 | 20 69 73 20 63 6c 69 63 |he mouse| is clic|
|00001330| 6b 65 64 20 77 68 69 6c | 65 20 77 68 69 6c 65 20 |ked whil|e while |
|00001340| 6e 6f 74 20 6f 76 65 72 | 20 61 20 68 69 67 68 6c |not over| a highl|
|00001350| 69 67 68 74 65 64 20 63 | 6f 6d 70 6c 65 74 69 6f |ighted c|ompletio|
|00001360| 6e 2c 0a 74 68 65 6e 20 | 74 68 65 20 67 6c 6f 62 |n,.then |the glob|
|00001370| 61 6c 20 62 69 6e 64 69 | 6e 67 20 6f 66 20 5c 5c |al bindi|ng of \\|
|00001380| 5b 6d 69 6e 69 62 75 66 | 2d 73 65 6c 65 63 74 2d |[minibuf|-select-|
|00001390| 68 69 67 68 6c 69 67 68 | 74 65 64 2d 63 6f 6d 70 |highligh|ted-comp|
|000013a0| 6c 65 74 69 6f 6e 5d 20 | 77 69 6c 6c 20 62 65 20 |letion] |will be |
|000013b0| 65 78 65 63 75 74 65 64 | 20 69 6e 73 74 65 61 64 |executed| instead|
|000013c0| 2e 20 20 49 6e 20 74 68 | 69 73 0a 77 61 79 20 79 |. In th|is.way y|
|000013d0| 6f 75 20 63 61 6e 20 67 | 65 74 20 61 74 20 74 68 |ou can g|et at th|
|000013e0| 65 20 6e 6f 72 6d 61 6c | 20 67 6c 6f 62 61 6c 20 |e normal| global |
|000013f0| 62 65 68 61 76 69 6f 72 | 20 6f 66 20 5c 5c 5b 6d |behavior| of \\[m|
|00001400| 69 6e 69 62 75 66 2d 73 | 65 6c 65 63 74 2d 68 69 |inibuf-s|elect-hi|
|00001410| 67 68 6c 69 67 68 74 65 | 64 2d 63 6f 6d 70 6c 65 |ghlighte|d-comple|
|00001420| 74 69 6f 6e 5d 20 61 73 | 20 77 65 6c 6c 20 61 73 |tion] as| well as|
|00001430| 0a 74 68 65 20 73 70 65 | 63 69 61 6c 20 6d 69 6e |.the spe|cial min|
|00001440| 69 62 75 66 66 65 72 20 | 62 65 68 61 76 69 6f 72 |ibuffer |behavior|
|00001450| 2e 22 20 22 65 22 5d 29 | 0a 28 62 79 74 65 2d 63 |." "e"])|.(byte-c|
|00001460| 6f 64 65 20 22 c0 09 c2 | c3 23 88 c4 c5 21 87 22 |ode "...|.#...!."|
|00001470| 20 5b 64 65 66 69 6e 65 | 2d 6b 65 79 20 6d 69 6e | [define|-key min|
|00001480| 69 62 75 66 66 65 72 2d | 6c 6f 63 61 6c 2d 6d 61 |ibuffer-|local-ma|
|00001490| 70 20 62 75 74 74 6f 6e | 32 20 6d 69 6e 69 62 75 |p button|2 minibu|
|000014a0| 66 2d 73 65 6c 65 63 74 | 2d 68 69 67 68 6c 69 67 |f-select|-highlig|
|000014b0| 68 74 65 64 2d 63 6f 6d | 70 6c 65 74 69 6f 6e 20 |hted-com|pletion |
|000014c0| 70 72 6f 76 69 64 65 20 | 6d 6f 64 65 2d 6d 6f 74 |provide |mode-mot|
|000014d0| 69 6f 6e 5d 20 34 29 0a | |ion] 4).| |
+--------+-------------------------+-------------------------+--------+--------+