home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / gnu / emacs-19.16 / lisp / macros.elc < prev    next >
Emacs Compiled Lisp  |  1993-07-05  |  5.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
55% TrID Emacs/XEmacs byte-compiled Lisp (generic) default
44% TrID Summation Document Image Information Load File default (weak)
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 33 30 3a 31 | 33 20 31 39 39 33 0a 3b | 23:30:1|3 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 6d 61 63 | 72 6f 73 2e 65 6c 0a 3b |lisp/mac|ros.el.;|
|00000080| 3b 3b 20 65 6d 61 63 73 | 20 76 65 72 73 69 6f 6e |;; emacs| version|
|00000090| 20 31 39 2e 31 35 2e 31 | 36 2e 0a 3b 3b 3b 20 62 | 19.15.1|6..;;; b|
|000000a0| 79 74 65 63 6f 6d 70 20 | 76 65 72 73 69 6f 6e 20 |ytecomp |version |
|000000b0| 46 53 46 20 32 2e 31 30 | 0a 3b 3b 3b 20 6f 70 74 |FSF 2.10|.;;; opt|
|000000c0| 69 6d 69 7a 61 74 69 6f | 6e 20 69 73 20 6f 6e 2e |imizatio|n is on.|
|000000d0| 0a 3b 3b 3b 20 74 68 69 | 73 20 66 69 6c 65 20 75 |.;;; thi|s file u|
|000000e0| 73 65 73 20 6f 70 63 6f | 64 65 73 20 77 68 69 63 |ses opco|des whic|
|000000f0| 68 20 64 6f 20 6e 6f 74 | 20 65 78 69 73 74 20 69 |h do not| exist i|
|00000100| 6e 20 45 6d 61 63 73 20 | 31 38 2e 0a 0a 28 69 66 |n Emacs |18...(if|
|00000110| 20 28 61 6e 64 20 28 62 | 6f 75 6e 64 70 20 27 65 | (and (b|oundp 'e|
|00000120| 6d 61 63 73 2d 76 65 72 | 73 69 6f 6e 29 0a 09 20 |macs-ver|sion).. |
|00000130| 28 6f 72 20 28 61 6e 64 | 20 28 62 6f 75 6e 64 70 |(or (and| (boundp|
|00000140| 20 27 65 70 6f 63 68 3a | 3a 76 65 72 73 69 6f 6e | 'epoch:|:version|
|00000150| 29 20 65 70 6f 63 68 3a | 3a 76 65 72 73 69 6f 6e |) epoch:|:version|
|00000160| 29 0a 09 20 20 20 20 20 | 28 73 74 72 69 6e 67 2d |).. |(string-|
|00000170| 6c 65 73 73 70 20 65 6d | 61 63 73 2d 76 65 72 73 |lessp em|acs-vers|
|00000180| 69 6f 6e 20 22 31 39 22 | 29 29 29 0a 20 20 20 20 |ion "19"|))). |
|00000190| 28 65 72 72 6f 72 20 22 | 54 68 69 73 20 66 69 6c |(error "|This fil|
|000001a0| 65 20 77 61 73 20 63 6f | 6d 70 69 6c 65 64 20 66 |e was co|mpiled f|
|000001b0| 6f 72 20 45 6d 61 63 73 | 20 31 39 22 29 29 0a 0a |or Emacs| 19"))..|
|000001c0| 28 64 65 66 61 6c 69 61 | 73 20 27 6e 61 6d 65 2d |(defalia|s 'name-|
|000001d0| 6c 61 73 74 2d 6b 62 64 | 2d 6d 61 63 72 6f 20 23 |last-kbd|-macro #|
|000001e0| 5b 28 73 79 6d 62 6f 6c | 29 20 22 08 84 08 00 c1 |[(symbol|) ".....|
|000001f0| c2 21 88 c3 0c 21 83 19 | 00 0c 4b 3b 84 19 00 c1 |.!...!..|..K;....|
|00000200| c5 0c 5c 22 88 0c 08 4d | 87 22 20 5b 6c 61 73 74 |..\"...M|." [last|
|00000210| 2d 6b 62 64 2d 6d 61 63 | 72 6f 20 65 72 72 6f 72 |-kbd-mac|ro error|
|00000220| 20 22 4e 6f 20 6b 65 79 | 62 6f 61 72 64 20 6d 61 | "No key|board ma|
|00000230| 63 72 6f 20 64 65 66 69 | 6e 65 64 22 20 66 62 6f |cro defi|ned" fbo|
|00000240| 75 6e 64 70 20 73 79 6d | 62 6f 6c 20 22 46 75 6e |undp sym|bol "Fun|
|00000250| 63 74 69 6f 6e 20 25 73 | 20 69 73 20 61 6c 72 65 |ction %s| is alre|
|00000260| 61 64 79 20 64 65 66 69 | 6e 65 64 20 61 6e 64 20 |ady defi|ned and |
|00000270| 6e 6f 74 20 61 20 6b 65 | 79 62 6f 61 72 64 20 6d |not a ke|yboard m|
|00000280| 61 63 72 6f 2e 22 5d 20 | 33 20 22 5c 0a 41 73 73 |acro."] |3 "\.Ass|
|00000290| 69 67 6e 20 61 20 6e 61 | 6d 65 20 74 6f 20 74 68 |ign a na|me to th|
|000002a0| 65 20 6c 61 73 74 20 6b | 65 79 62 6f 61 72 64 20 |e last k|eyboard |
|000002b0| 6d 61 63 72 6f 20 64 65 | 66 69 6e 65 64 2e 0a 41 |macro de|fined..A|
|000002c0| 72 67 75 6d 65 6e 74 20 | 53 59 4d 42 4f 4c 20 69 |rgument |SYMBOL i|
|000002d0| 73 20 74 68 65 20 6e 61 | 6d 65 20 74 6f 20 64 65 |s the na|me to de|
|000002e0| 66 69 6e 65 2e 0a 54 68 | 65 20 73 79 6d 62 6f 6c |fine..Th|e symbol|
|000002f0| 27 73 20 66 75 6e 63 74 | 69 6f 6e 20 64 65 66 69 |'s funct|ion defi|
|00000300| 6e 69 74 69 6f 6e 20 62 | 65 63 6f 6d 65 73 20 74 |nition b|ecomes t|
|00000310| 68 65 20 6b 65 79 62 6f | 61 72 64 20 6d 61 63 72 |he keybo|ard macr|
|00000320| 6f 20 73 74 72 69 6e 67 | 2e 0a 53 75 63 68 20 61 |o string|..Such a|
|00000330| 20 5c 22 66 75 6e 63 74 | 69 6f 6e 5c 22 20 63 61 | \"funct|ion\" ca|
|00000340| 6e 6e 6f 74 20 62 65 20 | 63 61 6c 6c 65 64 20 66 |nnot be |called f|
|00000350| 72 6f 6d 20 4c 69 73 70 | 2c 20 62 75 74 20 69 74 |rom Lisp|, but it|
|00000360| 20 69 73 20 61 20 76 61 | 6c 69 64 20 65 64 69 74 | is a va|lid edit|
|00000370| 6f 72 20 63 6f 6d 6d 61 | 6e 64 2e 22 20 22 53 4e |or comma|nd." "SN|
|00000380| 61 6d 65 20 66 6f 72 20 | 6c 61 73 74 20 6b 62 64 |ame for |last kbd|
|00000390| 20 6d 61 63 72 6f 3a 20 | 22 5d 29 0a 28 64 65 66 | macro: |"]).(def|
|000003a0| 61 6c 69 61 73 20 27 69 | 6e 73 65 72 74 2d 6b 62 |alias 'i|nsert-kb|
|000003b0| 64 2d 6d 61 63 72 6f 20 | 23 5b 28 6d 61 63 72 6f |d-macro |#[(macro|
|000003c0| 6e 61 6d 65 20 26 6f 70 | 74 69 6f 6e 61 6c 20 6b |name &op|tional k|
|000003d0| 65 79 73 29 20 22 c0 19 | c2 0b 21 c4 98 83 14 00 |eys) "..|..!.....|
|000003e0| c5 13 0d 11 c6 63 88 82 | 1a 00 0b 4b 11 c7 63 88 |.....c..|...K..c.|
|000003f0| c8 0b 70 5c 22 88 c9 63 | 88 60 c0 1e 5c 6e 1e 0b |..p\"..c|.`..\n..|
|00000400| c8 09 70 5c 22 88 cc 20 | 16 5c 6e 0e 0b 62 88 60 |..p\".. |.\n..b.`|
|00000410| 0e 5c 6e 57 83 b5 00 67 | 89 1e 0d ce 57 83 55 00 |.\nW...g|....W.U.|
|00000420| 60 60 54 7c 88 cf 0e 0d | d0 5c 5c b1 02 88 82 b1 |``T|....|.\\.....|
|00000430| 00 0e 0d d1 57 83 62 00 | d2 75 88 82 b1 00 0e 0d |....W.b.|.u......|
|00000440| d1 55 83 74 00 60 60 54 | 7c 88 d3 63 88 82 b1 00 |.U.t.``T||..c....|
|00000450| 0e 0d d4 57 83 8b 00 60 | 60 54 7c 88 d5 0e 0d ce |...W...`|`T|.....|
|00000460| 5a b1 02 88 82 b1 00 0e | 0d d6 57 83 a2 00 60 60 |Z.......|..W...``|
|00000470| 54 7c 88 d7 0e 0d d8 5a | b1 02 88 82 b1 00 0e 0d |T|.....Z|........|
|00000480| d6 55 83 b1 00 60 60 54 | 7c 88 d9 63 88 29 82 35 |.U...``T||..c.).5|
|00000490| 00 2a da 63 88 0e 1b 85 | e8 00 dc 0b c0 5c 22 89 |.*.c....|.....\".|
|000004a0| 1e 1b 85 e7 00 dd 63 88 | c8 0e 1b 40 70 5c 22 88 |......c.|...@p\".|
|000004b0| de 63 88 c8 0b 70 5c 22 | 88 da 63 88 0e 1b 41 89 |.c...p\"|..c...A.|
|000004c0| 16 1b 84 c8 00 c0 29 29 | 87 22 20 5b 6e 69 6c 20 |......))|." [nil |
|000004d0| 64 65 66 69 6e 69 74 69 | 6f 6e 20 73 79 6d 62 6f |definiti|on symbo|
|000004e0| 6c 2d 6e 61 6d 65 20 6d | 61 63 72 6f 6e 61 6d 65 |l-name m|acroname|
|000004f0| 20 22 22 20 6c 61 73 74 | 2d 6b 62 64 2d 6d 61 63 | "" last|-kbd-mac|
|00000500| 72 6f 20 22 28 73 65 74 | 71 20 22 20 22 28 66 73 |ro "(set|q " "(fs|
|00000510| 65 74 20 27 22 20 70 72 | 69 6e 31 20 22 5c 6e 20 |et '" pr|in1 "\n |
|00000520| 20 20 22 20 65 6e 64 20 | 62 65 67 20 70 6f 69 6e | " end |beg poin|
|00000530| 74 2d 6d 61 72 6b 65 72 | 20 63 68 61 72 20 33 32 |t-marker| char 32|
|00000540| 20 22 5c 5c 43 2d 22 20 | 39 36 20 31 32 37 20 31 | "\\C-" |96 127 1|
|00000550| 20 22 5c 5c 43 2d 3f 22 | 20 31 36 30 20 22 5c 5c | "\\C-?"| 160 "\\|
|00000560| 4d 2d 43 2d 22 20 32 35 | 35 20 22 5c 5c 4d 2d 22 |M-C-" 25|5 "\\M-"|
|00000570| 20 31 32 38 20 22 5c 5c | 4d 2d 43 2d 3f 22 20 22 | 128 "\\|M-C-?" "|
|00000580| 29 5c 6e 22 20 6b 65 79 | 73 20 77 68 65 72 65 2d |)\n" key|s where-|
|00000590| 69 73 2d 69 6e 74 65 72 | 6e 61 6c 20 22 28 67 6c |is-inter|nal "(gl|
|000005a0| 6f 62 61 6c 2d 73 65 74 | 2d 6b 65 79 20 22 20 22 |obal-set|-key " "|
|000005b0| 20 27 22 5d 20 34 20 22 | 5c 0a 49 6e 73 65 72 74 | '"] 4 "|\.Insert|
|000005c0| 20 69 6e 20 62 75 66 66 | 65 72 20 74 68 65 20 64 | in buff|er the d|
|000005d0| 65 66 69 6e 69 74 69 6f | 6e 20 6f 66 20 6b 62 64 |efinitio|n of kbd|
|000005e0| 20 6d 61 63 72 6f 20 4e | 41 4d 45 2c 20 61 73 20 | macro N|AME, as |
|000005f0| 4c 69 73 70 20 63 6f 64 | 65 2e 0a 4f 70 74 69 6f |Lisp cod|e..Optio|
|00000600| 6e 61 6c 20 73 65 63 6f | 6e 64 20 61 72 67 20 4b |nal seco|nd arg K|
|00000610| 45 59 53 20 6d 65 61 6e | 73 20 61 6c 73 6f 20 72 |EYS mean|s also r|
|00000620| 65 63 6f 72 64 20 74 68 | 65 20 6b 65 79 73 20 69 |ecord th|e keys i|
|00000630| 74 20 69 73 20 6f 6e 0a | 28 74 68 69 73 20 69 73 |t is on.|(this is|
|00000640| 20 74 68 65 20 70 72 65 | 66 69 78 20 61 72 67 75 | the pre|fix argu|
|00000650| 6d 65 6e 74 2c 20 77 68 | 65 6e 20 63 61 6c 6c 69 |ment, wh|en calli|
|00000660| 6e 67 20 69 6e 74 65 72 | 61 63 74 69 76 65 6c 79 |ng inter|actively|
|00000670| 29 2e 0a 0a 54 68 69 73 | 20 4c 69 73 70 20 63 6f |)...This| Lisp co|
|00000680| 64 65 20 77 69 6c 6c 2c | 20 77 68 65 6e 20 65 78 |de will,| when ex|
|00000690| 65 63 75 74 65 64 2c 20 | 64 65 66 69 6e 65 20 74 |ecuted, |define t|
|000006a0| 68 65 20 6b 62 64 20 6d | 61 63 72 6f 20 77 69 74 |he kbd m|acro wit|
|000006b0| 68 20 74 68 65 20 73 61 | 6d 65 0a 64 65 66 69 6e |h the sa|me.defin|
|000006c0| 69 74 69 6f 6e 20 69 74 | 20 68 61 73 20 6e 6f 77 |ition it| has now|
|000006d0| 2e 20 20 49 66 20 79 6f | 75 20 73 61 79 20 74 6f |. If yo|u say to|
|000006e0| 20 72 65 63 6f 72 64 20 | 74 68 65 20 6b 65 79 73 | record |the keys|
|000006f0| 2c 20 74 68 65 20 4c 69 | 73 70 20 63 6f 64 65 0a |, the Li|sp code.|
|00000700| 77 69 6c 6c 20 61 6c 73 | 6f 20 72 65 62 69 6e 64 |will als|o rebind|
|00000710| 20 74 68 6f 73 65 20 6b | 65 79 73 20 74 6f 20 74 | those k|eys to t|
|00000720| 68 65 20 6d 61 63 72 6f | 2e 20 20 4f 6e 6c 79 20 |he macro|. Only |
|00000730| 67 6c 6f 62 61 6c 20 6b | 65 79 20 62 69 6e 64 69 |global k|ey bindi|
|00000740| 6e 67 73 0a 61 72 65 20 | 72 65 63 6f 72 64 65 64 |ngs.are |recorded|
|00000750| 20 73 69 6e 63 65 20 65 | 78 65 63 75 74 69 6e 67 | since e|xecuting|
|00000760| 20 74 68 69 73 20 4c 69 | 73 70 20 63 6f 64 65 20 | this Li|sp code |
|00000770| 61 6c 77 61 79 73 20 6d | 61 6b 65 73 20 67 6c 6f |always m|akes glo|
|00000780| 62 61 6c 0a 62 69 6e 64 | 69 6e 67 73 2e 0a 0a 54 |bal.bind|ings...T|
|00000790| 6f 20 73 61 76 65 20 61 | 20 6b 62 64 20 6d 61 63 |o save a| kbd mac|
|000007a0| 72 6f 2c 20 76 69 73 69 | 74 20 61 20 66 69 6c 65 |ro, visi|t a file|
|000007b0| 20 6f 66 20 4c 69 73 70 | 20 63 6f 64 65 20 73 75 | of Lisp| code su|
|000007c0| 63 68 20 61 73 20 79 6f | 75 72 20 60 7e 2f 2e 65 |ch as yo|ur `~/.e|
|000007d0| 6d 61 63 73 27 2c 0a 75 | 73 65 20 74 68 69 73 20 |macs',.u|se this |
|000007e0| 63 6f 6d 6d 61 6e 64 2c | 20 61 6e 64 20 74 68 65 |command,| and the|
|000007f0| 6e 20 73 61 76 65 20 74 | 68 65 20 66 69 6c 65 2e |n save t|he file.|
|00000800| 22 20 22 43 49 6e 73 65 | 72 74 20 6b 62 64 20 6d |" "CInse|rt kbd m|
|00000810| 61 63 72 6f 20 28 6e 61 | 6d 65 29 3a 20 5c 6e 50 |acro (na|me): \nP|
|00000820| 22 5d 29 0a 28 64 65 66 | 61 6c 69 61 73 20 27 6b |"]).(def|alias 'k|
|00000830| 62 64 2d 6d 61 63 72 6f | 2d 71 75 65 72 79 20 23 |bd-macro|-query #|
|00000840| 5b 28 66 6c 61 67 29 20 | 22 08 84 0c 00 09 84 0c |[(flag) |".......|
|00000850| 00 c2 c3 21 88 0c 83 18 | 00 c5 89 19 18 c6 20 2a |...!....|...... *|
|00000860| 87 08 3f 3f 85 b9 00 c7 | c8 c9 21 1e 5c 6e 1e 0b |..??....|..!.\n..|
|00000870| 0e 0b 85 b8 00 c5 89 19 | 18 cc 0e 5c 6e 21 88 cd |........|...\n!..|
|00000880| 20 2a c5 1e 0e 1e 0f d0 | 0e 0f 21 16 0f d1 0e 12 | *......|..!.....|
|00000890| 0e 0f 5c 22 89 16 0e d3 | 3d 83 56 00 c5 16 0b 82 |..\"....|=.V.....|
|000008a0| b4 00 0e 0e d4 3d 83 65 | 00 c5 16 0b d5 10 82 b4 |.....=.e|........|
|000008b0| 00 0e 0e d6 3d 83 74 00 | c5 16 0b c7 10 82 b4 00 |....=.t.|........|
|000008c0| 0e 0e d7 3d 83 82 00 d7 | c5 21 88 82 b4 00 0e 0e |...=....|.!......|
|000008d0| d8 3d 83 94 00 c5 89 19 | 18 c6 20 88 2a 82 b4 00 |.=......|.. .*...|
|000008e0| 0e 0e d9 3d 83 a1 00 c7 | 16 1a 82 b4 00 0e 0e db |...=....|........|
|000008f0| 3d 84 ab 00 dc 20 88 dd | 90 de c8 df 21 21 91 88 |=.... ..|....!!..|
|00000900| 2a 82 26 00 2a 87 22 20 | 5b 65 78 65 63 75 74 69 |*.&.*." |[executi|
|00000910| 6e 67 2d 6d 61 63 72 6f | 20 64 65 66 69 6e 69 6e |ng-macro| definin|
|00000920| 67 2d 6b 62 64 2d 6d 61 | 63 72 6f 20 65 72 72 6f |g-kbd-ma|cro erro|
|00000930| 72 20 22 4e 6f 74 20 64 | 65 66 69 6e 69 6e 67 20 |r "Not d|efining |
|00000940| 6f 72 20 65 78 65 63 75 | 74 69 6e 67 20 6b 62 64 |or execu|ting kbd|
|00000950| 20 6d 61 63 72 6f 22 20 | 66 6c 61 67 20 6e 69 6c | macro" |flag nil|
|00000960| 20 72 65 63 75 72 73 69 | 76 65 2d 65 64 69 74 20 | recursi|ve-edit |
|00000970| 74 20 73 75 62 73 74 69 | 74 75 74 65 2d 63 6f 6d |t substi|tute-com|
|00000980| 6d 61 6e 64 2d 6b 65 79 | 73 20 22 50 72 6f 63 65 |mand-key|s "Proce|
|00000990| 65 64 20 77 69 74 68 20 | 6d 61 63 72 6f 3f 5c 5c |ed with |macro?\\|
|000009a0| 3c 71 75 65 72 79 2d 72 | 65 70 6c 61 63 65 2d 6d |<query-r|eplace-m|
|000009b0| 61 70 3e 20 28 5c 5c 5b | 61 63 74 5d 2c 20 5c 5c |ap> (\\[|act], \\|
|000009c0| 5b 73 6b 69 70 5d 2c 20 | 5c 5c 5b 65 78 69 74 5d |[skip], |\\[exit]|
|000009d0| 2c 20 5c 5c 5b 72 65 63 | 65 6e 74 65 72 5d 2c 20 |, \\[rec|enter], |
|000009e0| 5c 5c 5b 65 64 69 74 5d | 29 20 22 20 6d 73 67 20 |\\[edit]|) " msg |
|000009f0| 6c 6f 6f 70 20 6d 65 73 | 73 61 67 65 20 72 65 61 |loop mes|sage rea|
|00000a00| 64 2d 65 76 65 6e 74 20 | 64 65 66 20 6b 65 79 20 |d-event |def key |
|00000a10| 76 65 63 74 6f 72 20 6c | 6f 6f 6b 75 70 2d 6b 65 |vector l|ookup-ke|
|00000a20| 79 20 71 75 65 72 79 2d | 72 65 70 6c 61 63 65 2d |y query-|replace-|
|00000a30| 6d 61 70 20 61 63 74 20 | 73 6b 69 70 20 22 22 20 |map act |skip "" |
|00000a40| 65 78 69 74 20 72 65 63 | 65 6e 74 65 72 20 65 64 |exit rec|enter ed|
|00000a50| 69 74 20 71 75 69 74 20 | 71 75 69 74 2d 66 6c 61 |it quit |quit-fla|
|00000a60| 67 20 68 65 6c 70 20 64 | 69 6e 67 20 22 2a 48 65 |g help d|ing "*He|
|00000a70| 6c 70 2a 22 20 70 72 69 | 6e 63 20 22 53 70 65 63 |lp*" pri|nc "Spec|
|00000a80| 69 66 79 20 68 6f 77 20 | 74 6f 20 70 72 6f 63 65 |ify how |to proce|
|00000a90| 65 64 20 77 69 74 68 20 | 6b 65 79 62 6f 61 72 64 |ed with |keyboard|
|00000aa0| 20 6d 61 63 72 6f 20 65 | 78 65 63 75 74 69 6f 6e | macro e|xecution|
|00000ab0| 2e 5c 6e 50 6f 73 73 69 | 62 69 6c 69 74 69 65 73 |.\nPossi|bilities|
|00000ac0| 3a 20 5c 5c 3c 71 75 65 | 72 79 2d 72 65 70 6c 61 |: \\<que|ry-repla|
|00000ad0| 63 65 2d 6d 61 70 3e 5c | 6e 5c 5c 5b 61 63 74 5d |ce-map>\|n\\[act]|
|00000ae0| 09 46 69 6e 69 73 68 20 | 74 68 69 73 20 69 74 65 |.Finish |this ite|
|00000af0| 72 61 74 69 6f 6e 20 6e | 6f 72 6d 61 6c 6c 79 20 |ration n|ormally |
|00000b00| 61 6e 64 20 63 6f 6e 74 | 69 6e 75 65 20 77 69 74 |and cont|inue wit|
|00000b10| 68 20 74 68 65 20 6e 65 | 78 74 2e 5c 6e 5c 5c 5b |h the ne|xt.\n\\[|
|00000b20| 73 6b 69 70 5d 09 53 6b | 69 70 20 74 68 65 20 72 |skip].Sk|ip the r|
|00000b30| 65 73 74 20 6f 66 20 74 | 68 69 73 20 69 74 65 72 |est of t|his iter|
|00000b40| 61 74 69 6f 6e 2c 20 61 | 6e 64 20 73 74 61 72 74 |ation, a|nd start|
|00000b50| 20 74 68 65 20 6e 65 78 | 74 2e 5c 6e 5c 5c 5b 65 | the nex|t.\n\\[e|
|00000b60| 78 69 74 5d 09 53 74 6f | 70 20 74 68 65 20 6d 61 |xit].Sto|p the ma|
|00000b70| 63 72 6f 20 65 6e 74 69 | 72 65 6c 79 20 72 69 67 |cro enti|rely rig|
|00000b80| 68 74 20 6e 6f 77 2e 5c | 6e 5c 5c 5b 72 65 63 65 |ht now.\|n\\[rece|
|00000b90| 6e 74 65 72 5d 09 52 65 | 64 69 73 70 6c 61 79 20 |nter].Re|display |
|00000ba0| 74 68 65 20 73 63 72 65 | 65 6e 2c 20 74 68 65 6e |the scre|en, then|
|00000bb0| 20 61 73 6b 20 61 67 61 | 69 6e 2e 5c 6e 5c 5c 5b | ask aga|in.\n\\[|
|00000bc0| 65 64 69 74 5d 09 45 6e | 74 65 72 20 72 65 63 75 |edit].En|ter recu|
|00000bd0| 72 73 69 76 65 20 65 64 | 69 74 3b 20 61 73 6b 20 |rsive ed|it; ask |
|00000be0| 61 67 61 69 6e 20 77 68 | 65 6e 20 79 6f 75 20 65 |again wh|en you e|
|00000bf0| 78 69 74 20 66 72 6f 6d | 20 74 68 61 74 2e 22 5d |xit from| that."]|
|00000c00| 20 35 20 22 5c 0a 51 75 | 65 72 79 20 75 73 65 72 | 5 "\.Qu|ery user|
|00000c10| 20 64 75 72 69 6e 67 20 | 6b 62 64 20 6d 61 63 72 | during |kbd macr|
|00000c20| 6f 20 65 78 65 63 75 74 | 69 6f 6e 2e 0a 20 20 57 |o execut|ion.. W|
|00000c30| 69 74 68 20 70 72 65 66 | 69 78 20 61 72 67 75 6d |ith pref|ix argum|
|00000c40| 65 6e 74 2c 20 65 6e 74 | 65 72 73 20 72 65 63 75 |ent, ent|ers recu|
|00000c50| 72 73 69 76 65 20 65 64 | 69 74 2c 20 72 65 61 64 |rsive ed|it, read|
|00000c60| 69 6e 67 20 6b 65 79 62 | 6f 61 72 64 0a 63 6f 6d |ing keyb|oard.com|
|00000c70| 6d 61 6e 64 73 20 65 76 | 65 6e 20 77 69 74 68 69 |mands ev|en withi|
|00000c80| 6e 20 61 20 6b 62 64 20 | 6d 61 63 72 6f 2e 20 20 |n a kbd |macro. |
|00000c90| 59 6f 75 20 63 61 6e 20 | 67 69 76 65 20 64 69 66 |You can |give dif|
|00000ca0| 66 65 72 65 6e 74 20 63 | 6f 6d 6d 61 6e 64 73 0a |ferent c|ommands.|
|00000cb0| 65 61 63 68 20 74 69 6d | 65 20 74 68 65 20 6d 61 |each tim|e the ma|
|00000cc0| 63 72 6f 20 65 78 65 63 | 75 74 65 73 2e 0a 20 20 |cro exec|utes.. |
|00000cd0| 57 69 74 68 6f 75 74 20 | 70 72 65 66 69 78 20 61 |Without |prefix a|
|00000ce0| 72 67 75 6d 65 6e 74 2c | 20 61 73 6b 73 20 77 68 |rgument,| asks wh|
|00000cf0| 65 74 68 65 72 20 74 6f | 20 63 6f 6e 74 69 6e 75 |ether to| continu|
|00000d00| 65 20 72 75 6e 6e 69 6e | 67 20 74 68 65 20 6d 61 |e runnin|g the ma|
|00000d10| 63 72 6f 2e 0a 59 6f 75 | 72 20 6f 70 74 69 6f 6e |cro..You|r option|
|00000d20| 73 20 61 72 65 3a 20 5c | 5c 3c 71 75 65 72 79 2d |s are: \|\<query-|
|00000d30| 72 65 70 6c 61 63 65 2d | 6d 61 70 3e 0a 5c 5c 5b |replace-|map>.\\[|
|00000d40| 61 63 74 5d 09 46 69 6e | 69 73 68 20 74 68 69 73 |act].Fin|ish this|
|00000d50| 20 69 74 65 72 61 74 69 | 6f 6e 20 6e 6f 72 6d 61 | iterati|on norma|
|00000d60| 6c 6c 79 20 61 6e 64 20 | 63 6f 6e 74 69 6e 75 65 |lly and |continue|
|00000d70| 20 77 69 74 68 20 74 68 | 65 20 6e 65 78 74 2e 0a | with th|e next..|
|00000d80| 5c 5c 5b 73 6b 69 70 5d | 09 53 6b 69 70 20 74 68 |\\[skip]|.Skip th|
|00000d90| 65 20 72 65 73 74 20 6f | 66 20 74 68 69 73 20 69 |e rest o|f this i|
|00000da0| 74 65 72 61 74 69 6f 6e | 2c 20 61 6e 64 20 73 74 |teration|, and st|
|00000db0| 61 72 74 20 74 68 65 20 | 6e 65 78 74 2e 0a 5c 5c |art the |next..\\|
|00000dc0| 5b 65 78 69 74 5d 09 53 | 74 6f 70 20 74 68 65 20 |[exit].S|top the |
|00000dd0| 6d 61 63 72 6f 20 65 6e | 74 69 72 65 6c 79 20 72 |macro en|tirely r|
|00000de0| 69 67 68 74 20 6e 6f 77 | 2e 0a 5c 5c 5b 72 65 63 |ight now|..\\[rec|
|00000df0| 65 6e 74 65 72 5d 09 52 | 65 64 69 73 70 6c 61 79 |enter].R|edisplay|
|00000e00| 20 74 68 65 20 73 63 72 | 65 65 6e 2c 20 74 68 65 | the scr|een, the|
|00000e10| 6e 20 61 73 6b 20 61 67 | 61 69 6e 2e 0a 5c 5c 5b |n ask ag|ain..\\[|
|00000e20| 65 64 69 74 5d 09 45 6e | 74 65 72 20 72 65 63 75 |edit].En|ter recu|
|00000e30| 72 73 69 76 65 20 65 64 | 69 74 3b 20 61 73 6b 20 |rsive ed|it; ask |
|00000e40| 61 67 61 69 6e 20 77 68 | 65 6e 20 79 6f 75 20 65 |again wh|en you e|
|00000e50| 78 69 74 20 66 72 6f 6d | 20 74 68 61 74 2e 22 20 |xit from| that." |
|00000e60| 22 50 22 5d 29 0a 28 64 | 65 66 61 6c 69 61 73 20 |"P"]).(d|efalias |
|00000e70| 27 61 70 70 6c 79 2d 6d | 61 63 72 6f 2d 74 6f 2d |'apply-m|acro-to-|
|00000e80| 72 65 67 69 6f 6e 2d 6c | 69 6e 65 73 20 23 5b 28 |region-l|ines #[(|
|00000e90| 74 6f 70 20 62 6f 74 74 | 6f 6d 20 26 6f 70 74 69 |top bott|om &opti|
|00000ea0| 6f 6e 61 6c 20 6d 61 63 | 72 6f 29 20 22 08 84 0e |onal mac|ro) "...|
|00000eb0| 00 09 84 0c 00 c2 c3 21 | 88 09 10 8a 0c 62 88 c5 |.......!|.....b..|
|00000ec0| 79 88 c6 20 c7 1e 08 1e | 09 0e 5c 6e 62 88 6e 84 |y.. ....|..\nb.n.|
|00000ed0| 27 00 cb 79 88 c6 20 16 | 08 0e 08 0e 09 57 83 4f |'..y.. .|.....W.O|
|00000ee0| 00 0e 08 62 88 8a cb 79 | 88 0e 08 60 c7 93 88 29 |...b...y|...`...)|
|00000ef0| 8a cc 08 86 49 00 09 21 | 88 29 82 2b 00 0e 09 c7 |....I..!|.).+....|
|00000f00| 89 93 88 0e 08 c7 89 93 | 2b 87 22 20 5b 6d 61 63 |........|+." [mac|
|00000f10| 72 6f 20 6c 61 73 74 2d | 6b 62 64 2d 6d 61 63 72 |ro last-|kbd-macr|
|00000f20| 6f 20 65 72 72 6f 72 20 | 22 4e 6f 20 6b 65 79 62 |o error |"No keyb|
|00000f30| 6f 61 72 64 20 6d 61 63 | 72 6f 20 68 61 73 20 62 |oard mac|ro has b|
|00000f40| 65 65 6e 20 64 65 66 69 | 6e 65 64 2e 22 20 62 6f |een defi|ned." bo|
|00000f50| 74 74 6f 6d 20 30 20 70 | 6f 69 6e 74 2d 6d 61 72 |ttom 0 p|oint-mar|
|00000f60| 6b 65 72 20 6e 69 6c 20 | 6e 65 78 74 2d 6c 69 6e |ker nil |next-lin|
|00000f70| 65 2d 6d 61 72 6b 65 72 | 20 65 6e 64 2d 6d 61 72 |e-marker| end-mar|
|00000f80| 6b 65 72 20 74 6f 70 20 | 31 20 65 78 65 63 75 74 |ker top |1 execut|
|00000f90| 65 2d 6b 62 64 2d 6d 61 | 63 72 6f 5d 20 33 20 22 |e-kbd-ma|cro] 3 "|
|00000fa0| 5c 0a 46 6f 72 20 65 61 | 63 68 20 63 6f 6d 70 6c |\.For ea|ch compl|
|00000fb0| 65 74 65 20 6c 69 6e 65 | 20 62 65 74 77 65 65 6e |ete line| between|
|00000fc0| 20 70 6f 69 6e 74 20 61 | 6e 64 20 6d 61 72 6b 2c | point a|nd mark,|
|00000fd0| 20 6d 6f 76 65 20 74 6f | 20 74 68 65 20 62 65 67 | move to| the beg|
|00000fe0| 69 6e 6e 69 6e 67 0a 6f | 66 20 74 68 65 20 6c 69 |inning.o|f the li|
|00000ff0| 6e 65 2c 20 61 6e 64 20 | 72 75 6e 20 74 68 65 20 |ne, and |run the |
|00001000| 6c 61 73 74 20 6b 65 79 | 62 6f 61 72 64 20 6d 61 |last key|board ma|
|00001010| 63 72 6f 2e 0a 0a 57 68 | 65 6e 20 63 61 6c 6c 65 |cro...Wh|en calle|
|00001020| 64 20 66 72 6f 6d 20 6c | 69 73 70 2c 20 74 68 69 |d from l|isp, thi|
|00001030| 73 20 66 75 6e 63 74 69 | 6f 6e 20 74 61 6b 65 73 |s functi|on takes|
|00001040| 20 74 77 6f 20 61 72 67 | 75 6d 65 6e 74 73 20 54 | two arg|uments T|
|00001050| 4f 50 20 61 6e 64 0a 42 | 4f 54 54 4f 4d 2c 20 64 |OP and.B|OTTOM, d|
|00001060| 65 73 63 72 69 62 69 6e | 67 20 74 68 65 20 63 75 |escribin|g the cu|
|00001070| 72 72 65 6e 74 20 72 65 | 67 69 6f 6e 2e 20 20 54 |rrent re|gion. T|
|00001080| 4f 50 20 6d 75 73 74 20 | 62 65 20 62 65 66 6f 72 |OP must |be befor|
|00001090| 65 20 42 4f 54 54 4f 4d | 2e 0a 54 68 65 20 6f 70 |e BOTTOM|..The op|
|000010a0| 74 69 6f 6e 61 6c 20 74 | 68 69 72 64 20 61 72 67 |tional t|hird arg|
|000010b0| 75 6d 65 6e 74 20 4d 41 | 43 52 4f 20 73 70 65 63 |ument MA|CRO spec|
|000010c0| 69 66 69 65 73 20 61 20 | 6b 65 79 62 6f 61 72 64 |ifies a |keyboard|
|000010d0| 20 6d 61 63 72 6f 20 74 | 6f 0a 65 78 65 63 75 74 | macro t|o.execut|
|000010e0| 65 2e 0a 0a 54 68 69 73 | 20 69 73 20 75 73 65 66 |e...This| is usef|
|000010f0| 75 6c 20 66 6f 72 20 71 | 75 6f 74 69 6e 67 20 6f |ul for q|uoting o|
|00001100| 72 20 75 6e 71 75 6f 74 | 69 6e 67 20 69 6e 63 6c |r unquot|ing incl|
|00001110| 75 64 65 64 20 74 65 78 | 74 2c 20 61 64 64 69 6e |uded tex|t, addin|
|00001120| 67 20 61 6e 64 0a 72 65 | 6d 6f 76 69 6e 67 20 63 |g and.re|moving c|
|00001130| 6f 6d 6d 65 6e 74 73 2c | 20 6f 72 20 70 72 6f 64 |omments,| or prod|
|00001140| 75 63 69 6e 67 20 74 61 | 62 6c 65 73 20 77 68 65 |ucing ta|bles whe|
|00001150| 72 65 20 74 68 65 20 65 | 6e 74 72 69 65 73 20 61 |re the e|ntries a|
|00001160| 72 65 20 72 65 67 75 6c | 61 72 2e 0a 0a 46 6f 72 |re regul|ar...For|
|00001170| 20 65 78 61 6d 70 6c 65 | 2c 20 69 6e 20 55 73 65 | example|, in Use|
|00001180| 6e 65 74 20 61 72 74 69 | 63 6c 65 73 2c 20 73 65 |net arti|cles, se|
|00001190| 63 74 69 6f 6e 73 20 6f | 66 20 74 65 78 74 20 71 |ctions o|f text q|
|000011a0| 75 6f 74 65 64 20 66 72 | 6f 6d 20 61 6e 6f 74 68 |uoted fr|om anoth|
|000011b0| 65 72 0a 61 75 74 68 6f | 72 20 61 72 65 20 69 6e |er.autho|r are in|
|000011c0| 64 65 6e 74 65 64 2c 20 | 6f 72 20 68 61 76 65 20 |dented, |or have |
|000011d0| 65 61 63 68 20 6c 69 6e | 65 20 73 74 61 72 74 20 |each lin|e start |
|000011e0| 77 69 74 68 20 60 3e 27 | 2e 20 20 54 6f 20 71 75 |with `>'|. To qu|
|000011f0| 6f 74 65 20 61 0a 73 65 | 63 74 69 6f 6e 20 6f 66 |ote a.se|ction of|
|00001200| 20 74 65 78 74 2c 20 64 | 65 66 69 6e 65 20 61 20 | text, d|efine a |
|00001210| 6b 65 79 62 6f 61 72 64 | 20 6d 61 63 72 6f 20 77 |keyboard| macro w|
|00001220| 68 69 63 68 20 69 6e 73 | 65 72 74 73 20 60 3e 27 |hich ins|erts `>'|
|00001230| 2c 20 70 75 74 20 70 6f | 69 6e 74 0a 61 6e 64 20 |, put po|int.and |
|00001240| 6d 61 72 6b 20 61 74 20 | 6f 70 70 6f 73 69 74 65 |mark at |opposite|
|00001250| 20 65 6e 64 73 20 6f 66 | 20 74 68 65 20 71 75 6f | ends of| the quo|
|00001260| 74 65 64 20 73 65 63 74 | 69 6f 6e 2c 20 61 6e 64 |ted sect|ion, and|
|00001270| 20 75 73 65 0a 60 5c 5c | 5b 61 70 70 6c 79 2d 6d | use.`\\|[apply-m|
|00001280| 61 63 72 6f 2d 74 6f 2d | 72 65 67 69 6f 6e 2d 6c |acro-to-|region-l|
|00001290| 69 6e 65 73 5d 27 20 74 | 6f 20 6d 61 72 6b 20 74 |ines]' t|o mark t|
|000012a0| 68 65 20 65 6e 74 69 72 | 65 20 73 65 63 74 69 6f |he entir|e sectio|
|000012b0| 6e 2e 0a 0a 53 75 70 70 | 6f 73 65 20 79 6f 75 20 |n...Supp|ose you |
|000012c0| 77 61 6e 74 65 64 20 74 | 6f 20 62 75 69 6c 64 20 |wanted t|o build |
|000012d0| 61 20 6b 65 79 77 6f 72 | 64 20 74 61 62 6c 65 20 |a keywor|d table |
|000012e0| 69 6e 20 43 20 77 68 65 | 72 65 20 65 61 63 68 20 |in C whe|re each |
|000012f0| 65 6e 74 72 79 0a 6c 6f | 6f 6b 65 64 20 6c 69 6b |entry.lo|oked lik|
|00001300| 65 20 74 68 69 73 3a 0a | 0a 20 20 20 20 7b 20 5c |e this:.|. { \|
|00001310| 22 66 6f 6f 5c 22 2c 20 | 66 6f 6f 5f 64 61 74 61 |"foo\", |foo_data|
|00001320| 2c 20 66 6f 6f 5f 66 75 | 6e 63 74 69 6f 6e 20 7d |, foo_fu|nction }|
|00001330| 2c 20 0a 20 20 20 20 7b | 20 5c 22 62 61 72 5c 22 |, . {| \"bar\"|
|00001340| 2c 20 62 61 72 5f 64 61 | 74 61 2c 20 62 61 72 5f |, bar_da|ta, bar_|
|00001350| 66 75 6e 63 74 69 6f 6e | 20 7d 2c 0a 20 20 20 20 |function| },. |
|00001360| 7b 20 5c 22 62 61 7a 5c | 22 2c 20 62 61 7a 5f 64 |{ \"baz\|", baz_d|
|00001370| 61 74 61 2c 20 62 61 7a | 5f 66 75 6e 63 74 69 6f |ata, baz|_functio|
|00001380| 6e 20 7d 2c 0a 0a 59 6f | 75 20 63 6f 75 6c 64 20 |n },..Yo|u could |
|00001390| 65 6e 74 65 72 20 74 68 | 65 20 6e 61 6d 65 73 20 |enter th|e names |
|000013a0| 69 6e 20 74 68 69 73 20 | 66 6f 72 6d 61 74 3a 0a |in this |format:.|
|000013b0| 0a 20 20 20 20 66 6f 6f | 0a 20 20 20 20 62 61 72 |. foo|. bar|
|000013c0| 0a 20 20 20 20 62 61 7a | 0a 0a 61 6e 64 20 77 72 |. baz|..and wr|
|000013d0| 69 74 65 20 61 20 6d 61 | 63 72 6f 20 74 6f 20 6d |ite a ma|cro to m|
|000013e0| 61 73 73 61 67 65 20 61 | 20 77 6f 72 64 20 69 6e |assage a| word in|
|000013f0| 74 6f 20 61 20 74 61 62 | 6c 65 20 65 6e 74 72 79 |to a tab|le entry|
|00001400| 3a 0a 0a 20 20 20 20 5c | 5c 43 2d 78 20 28 0a 20 |:.. \|\C-x (. |
|00001410| 20 20 20 20 20 20 5c 5c | 4d 2d 64 20 7b 20 5c 22 | \\|M-d { \"|
|00001420| 5c 5c 43 2d 79 5c 22 2c | 20 5c 5c 43 2d 79 5f 64 |\\C-y\",| \\C-y_d|
|00001430| 61 74 61 2c 20 5c 5c 43 | 2d 79 5f 66 75 6e 63 74 |ata, \\C|-y_funct|
|00001440| 69 6f 6e 20 7d 2c 0a 20 | 20 20 20 5c 5c 43 2d 78 |ion },. | \\C-x|
|00001450| 20 29 0a 0a 61 6e 64 20 | 74 68 65 6e 20 73 65 6c | )..and |then sel|
|00001460| 65 63 74 20 74 68 65 20 | 72 65 67 69 6f 6e 20 6f |ect the |region o|
|00001470| 66 20 75 6e 2d 74 61 62 | 6c 69 66 69 65 64 20 6e |f un-tab|lified n|
|00001480| 61 6d 65 73 20 61 6e 64 | 20 75 73 65 0a 60 5c 5c |ames and| use.`\\|
|00001490| 5b 61 70 70 6c 79 2d 6d | 61 63 72 6f 2d 74 6f 2d |[apply-m|acro-to-|
|000014a0| 72 65 67 69 6f 6e 2d 6c | 69 6e 65 73 5d 27 20 74 |region-l|ines]' t|
|000014b0| 6f 20 62 75 69 6c 64 20 | 74 68 65 20 74 61 62 6c |o build |the tabl|
|000014c0| 65 20 66 72 6f 6d 20 74 | 68 65 20 6e 61 6d 65 73 |e from t|he names|
|000014d0| 2e 0a 22 20 22 72 22 5d | 29 0a 28 64 65 66 69 6e |.." "r"]|).(defin|
|000014e0| 65 2d 6b 65 79 20 63 74 | 6c 2d 78 2d 6d 61 70 20 |e-key ct|l-x-map |
|000014f0| 22 71 22 20 28 71 75 6f | 74 65 20 6b 62 64 2d 6d |"q" (quo|te kbd-m|
|00001500| 61 63 72 6f 2d 71 75 65 | 72 79 29 29 0a |acro-que|ry)). |
+--------+-------------------------+-------------------------+--------+--------+