home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / gnu / emacs-19.16 / lisp / paragraphs.elc < prev    next >
Emacs Compiled Lisp  |  1993-07-05  |  5.5 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 34 3a 33 | 30 20 31 39 39 33 0a 3b | 23:44: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 70 61 72 | 61 67 72 61 70 68 73 2e |lisp/par|agraphs.|
|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 | 63 6f 6e 73 74 20 70 61 |))..(def|const pa|
|000001d0| 72 61 67 72 61 70 68 2d | 73 74 61 72 74 20 22 5e |ragraph-|start "^|
|000001e0| 5b 20 09 5c 6e 0c 5d 22 | 20 22 5c 0a 2a 52 65 67 |[ .\n.]"| "\.*Reg|
|000001f0| 65 78 70 20 66 6f 72 20 | 62 65 67 69 6e 6e 69 6e |exp for |beginnin|
|00000200| 67 20 6f 66 20 61 20 6c | 69 6e 65 20 74 68 61 74 |g of a l|ine that|
|00000210| 20 73 74 61 72 74 73 20 | 4f 52 20 73 65 70 61 72 | starts |OR separ|
|00000220| 61 74 65 73 20 70 61 72 | 61 67 72 61 70 68 73 2e |ates par|agraphs.|
|00000230| 22 29 0a 28 64 65 66 63 | 6f 6e 73 74 20 70 61 72 |").(defc|onst par|
|00000240| 61 67 72 61 70 68 2d 73 | 65 70 61 72 61 74 65 20 |agraph-s|eparate |
|00000250| 22 5e 5b 20 09 0c 5d 2a | 24 22 20 22 5c 0a 2a 52 |"^[ ..]*|$" "\.*R|
|00000260| 65 67 65 78 70 20 66 6f | 72 20 62 65 67 69 6e 6e |egexp fo|r beginn|
|00000270| 69 6e 67 20 6f 66 20 61 | 20 6c 69 6e 65 20 74 68 |ing of a| line th|
|00000280| 61 74 20 73 65 70 61 72 | 61 74 65 73 20 70 61 72 |at separ|ates par|
|00000290| 61 67 72 61 70 68 73 2e | 0a 49 66 20 79 6f 75 20 |agraphs.|.If you |
|000002a0| 63 68 61 6e 67 65 20 74 | 68 69 73 2c 20 79 6f 75 |change t|his, you|
|000002b0| 20 6d 61 79 20 68 61 76 | 65 20 74 6f 20 63 68 61 | may hav|e to cha|
|000002c0| 6e 67 65 20 70 61 72 61 | 67 72 61 70 68 2d 73 74 |nge para|graph-st|
|000002d0| 61 72 74 20 61 6c 73 6f | 2e 22 29 0a 28 64 65 66 |art also|.").(def|
|000002e0| 63 6f 6e 73 74 20 73 65 | 6e 74 65 6e 63 65 2d 65 |const se|ntence-e|
|000002f0| 6e 64 20 28 70 75 72 65 | 63 6f 70 79 20 22 5b 2e |nd (pure|copy "[.|
|00000300| 3f 21 5d 5b 5d 5c 22 27 | 29 7d 5d 2a 5c 5c 28 24 |?!][]\"'|)}]*\\($|
|00000310| 5c 5c 7c 20 24 5c 5c 7c | 09 5c 5c 7c 20 20 5c 5c |\\| $\\||.\\| \\|
|00000320| 29 5b 20 09 5c 6e 5d 2a | 22 29 20 22 5c 0a 2a 52 |)[ .\n]*|") "\.*R|
|00000330| 65 67 65 78 70 20 64 65 | 73 63 72 69 62 69 6e 67 |egexp de|scribing|
|00000340| 20 74 68 65 20 65 6e 64 | 20 6f 66 20 61 20 73 65 | the end| of a se|
|00000350| 6e 74 65 6e 63 65 2e 0a | 41 6c 6c 20 70 61 72 61 |ntence..|All para|
|00000360| 67 72 61 70 68 20 62 6f | 75 6e 64 61 72 69 65 73 |graph bo|undaries|
|00000370| 20 61 6c 73 6f 20 65 6e | 64 20 73 65 6e 74 65 6e | also en|d senten|
|00000380| 63 65 73 2c 20 72 65 67 | 61 72 64 6c 65 73 73 2e |ces, reg|ardless.|
|00000390| 0a 0a 49 6e 20 6f 72 64 | 65 72 20 74 6f 20 62 65 |..In ord|er to be|
|000003a0| 20 72 65 63 6f 67 6e 69 | 7a 65 64 20 61 73 20 74 | recogni|zed as t|
|000003b0| 68 65 20 65 6e 64 20 6f | 66 20 61 20 73 65 6e 74 |he end o|f a sent|
|000003c0| 65 6e 63 65 2c 20 74 68 | 65 20 65 6e 64 69 6e 67 |ence, th|e ending|
|000003d0| 20 70 65 72 69 6f 64 2c | 0a 71 75 65 73 74 69 6f | period,|.questio|
|000003e0| 6e 20 6d 61 72 6b 2c 20 | 6f 72 20 65 78 63 6c 61 |n mark, |or excla|
|000003f0| 6d 61 74 69 6f 6e 20 70 | 6f 69 6e 74 20 6d 75 73 |mation p|oint mus|
|00000400| 74 20 62 65 20 66 6f 6c | 6c 6f 77 65 64 20 62 79 |t be fol|lowed by|
|00000410| 20 74 77 6f 20 73 70 61 | 63 65 73 2c 0a 75 6e 6c | two spa|ces,.unl|
|00000420| 65 73 73 20 69 74 27 73 | 20 69 6e 73 69 64 65 20 |ess it's| inside |
|00000430| 73 6f 6d 65 20 73 6f 72 | 74 20 6f 66 20 71 75 6f |some sor|t of quo|
|00000440| 74 65 73 20 6f 72 20 70 | 61 72 65 6e 74 68 65 73 |tes or p|arenthes|
|00000450| 69 73 2e 22 29 0a 28 64 | 65 66 63 6f 6e 73 74 20 |is.").(d|efconst |
|00000460| 70 61 67 65 2d 64 65 6c | 69 6d 69 74 65 72 20 22 |page-del|imiter "|
|00000470| 5e 0c 22 20 22 5c 0a 2a | 52 65 67 65 78 70 20 64 |^." "\.*|Regexp d|
|00000480| 65 73 63 72 69 62 69 6e | 67 20 6c 69 6e 65 2d 62 |escribin|g line-b|
|00000490| 65 67 69 6e 6e 69 6e 67 | 73 20 74 68 61 74 20 73 |eginning|s that s|
|000004a0| 65 70 61 72 61 74 65 20 | 70 61 67 65 73 2e 22 29 |eparate |pages.")|
|000004b0| 0a 28 64 65 66 76 61 72 | 20 70 61 72 61 67 72 61 |.(defvar| paragra|
|000004c0| 70 68 2d 69 67 6e 6f 72 | 65 2d 66 69 6c 6c 2d 70 |ph-ignor|e-fill-p|
|000004d0| 72 65 66 69 78 20 6e 69 | 6c 20 22 5c 0a 4e 6f 6e |refix ni|l "\.Non|
|000004e0| 2d 6e 69 6c 20 6d 65 61 | 6e 73 20 74 68 65 20 70 |-nil mea|ns the p|
|000004f0| 61 72 61 67 72 61 70 68 | 20 63 6f 6d 6d 61 6e 64 |aragraph| command|
|00000500| 73 20 61 72 65 20 6e 6f | 74 20 61 66 66 65 63 74 |s are no|t affect|
|00000510| 65 64 20 62 79 20 60 66 | 69 6c 6c 2d 70 72 65 66 |ed by `f|ill-pref|
|00000520| 69 78 27 2e 0a 54 68 69 | 73 20 69 73 20 64 65 73 |ix'..Thi|s is des|
|00000530| 69 72 61 62 6c 65 20 69 | 6e 20 6d 6f 64 65 73 20 |irable i|n modes |
|00000540| 77 68 65 72 65 20 62 6c | 61 6e 6b 20 6c 69 6e 65 |where bl|ank line|
|00000550| 73 20 61 72 65 20 74 68 | 65 20 70 61 72 61 67 72 |s are th|e paragr|
|00000560| 61 70 68 20 64 65 6c 69 | 6d 69 74 65 72 73 2e 22 |aph deli|miters."|
|00000570| 29 0a 28 64 65 66 61 6c | 69 61 73 20 27 66 6f 72 |).(defal|ias 'for|
|00000580| 77 61 72 64 2d 70 61 72 | 61 67 72 61 70 68 20 23 |ward-par|agraph #|
|00000590| 5b 28 26 6f 70 74 69 6f | 6e 61 6c 20 61 72 67 29 |[(&optio|nal arg)|
|000005a0| 20 22 08 84 06 00 c1 10 | 5c 6e 85 19 00 5c 6e c3 | "......|\n...\n.|
|000005b0| 9a 3f 85 19 00 0c 3f 85 | 19 00 c5 5c 6e 21 89 1e |.?....?.|...\n!..|
|000005c0| 06 83 29 00 0e 07 c8 0e | 06 c9 52 82 2b 00 0e 07 |..).....|..R.+...|
|000005d0| 1e 07 08 ca 57 83 b7 00 | cb 0e 07 21 84 45 00 cc |....W...|...!.E..|
|000005e0| cd 60 53 65 5d ce 23 84 | b0 00 cf 75 88 ca 79 88 |.`Se].#.|...u..y.|
|000005f0| 6f 84 5c 5c 00 cb 0e 07 | 21 83 5c 5c 00 cf 79 88 |o.\\....|!.\\..y.|
|00000600| 82 4b 00 d0 7f 88 0e 06 | 83 84 00 ca 79 88 6f 84 |.K......|....y.o.|
|00000610| 7f 00 cb 0e 07 21 84 7f | 00 cb 0e 06 21 83 7f 00 |.....!..|....!...|
|00000620| cf 79 88 82 64 00 6f 3f | 82 8a 00 cc 0e 11 d0 ce |.y..d.o?|........|
|00000630| 23 83 ad 00 6d 84 9e 00 | cb 0e 07 21 83 9e 00 c1 |#...m...|...!....|
|00000640| 79 88 82 8d 00 60 d2 5a | 66 d3 3d 83 b0 00 cf 79 |y....`.Z|f.=....y|
|00000650| 88 82 b0 00 65 62 88 08 | 54 89 10 82 2e 00 08 ca |....eb..|T.......|
|00000660| 56 85 06 01 ca 79 88 6d | 3f 85 c9 00 cb 0e 07 21 |V....y.m|?......!|
|00000670| c1 79 88 84 c0 00 0e 06 | 83 ec 00 6d 84 ff 00 cb |.y......|...m....|
|00000680| 0e 07 21 84 ff 00 cb 0e | 06 21 83 ff 00 c1 79 88 |..!.....|.!....y.|
|00000690| 82 d4 00 d4 0e 11 d0 ce | 23 83 fc 00 ca 94 62 88 |........|#.....b.|
|000006a0| 82 ff 00 64 62 88 08 53 | 89 10 82 b8 00 2a 87 22 |...db..S|.....*."|
|000006b0| 20 5b 61 72 67 20 31 20 | 66 69 6c 6c 2d 70 72 65 | [arg 1 |fill-pre|
|000006c0| 66 69 78 20 22 22 20 70 | 61 72 61 67 72 61 70 68 |fix "" p|aragraph|
|000006d0| 2d 69 67 6e 6f 72 65 2d | 66 69 6c 6c 2d 70 72 65 |-ignore-|fill-pre|
|000006e0| 66 69 78 20 72 65 67 65 | 78 70 2d 71 75 6f 74 65 |fix rege|xp-quote|
|000006f0| 20 66 69 6c 6c 2d 70 72 | 65 66 69 78 2d 72 65 67 | fill-pr|efix-reg|
|00000700| 65 78 70 20 70 61 72 61 | 67 72 61 70 68 2d 73 65 |exp para|graph-se|
|00000710| 70 61 72 61 74 65 20 22 | 5c 5c 7c 5e 22 20 22 5b |parate "|\\|^" "[|
|00000720| 20 09 5d 2a 24 22 20 30 | 20 6c 6f 6f 6b 69 6e 67 | .]*$" 0| looking|
|00000730| 2d 61 74 20 72 65 2d 73 | 65 61 72 63 68 2d 62 61 |-at re-s|earch-ba|
|00000740| 63 6b 77 61 72 64 20 22 | 5e 5c 6e 22 20 74 20 2d |ckward "|^\n" t -|
|00000750| 31 20 6e 69 6c 20 70 61 | 72 61 67 72 61 70 68 2d |1 nil pa|ragraph-|
|00000760| 73 74 61 72 74 20 32 20 | 31 30 20 72 65 2d 73 65 |start 2 |10 re-se|
|00000770| 61 72 63 68 2d 66 6f 72 | 77 61 72 64 5d 20 35 20 |arch-for|ward] 5 |
|00000780| 22 5c 0a 4d 6f 76 65 20 | 66 6f 72 77 61 72 64 20 |"\.Move |forward |
|00000790| 74 6f 20 65 6e 64 20 6f | 66 20 70 61 72 61 67 72 |to end o|f paragr|
|000007a0| 61 70 68 2e 0a 57 69 74 | 68 20 61 72 67 20 4e 2c |aph..Wit|h arg N,|
|000007b0| 20 64 6f 20 69 74 20 4e | 20 74 69 6d 65 73 3b 20 | do it N| times; |
|000007c0| 6e 65 67 61 74 69 76 65 | 20 61 72 67 20 2d 4e 20 |negative| arg -N |
|000007d0| 6d 65 61 6e 73 20 6d 6f | 76 65 20 66 6f 72 77 61 |means mo|ve forwa|
|000007e0| 72 64 20 4e 20 70 61 72 | 61 67 72 61 70 68 73 2e |rd N par|agraphs.|
|000007f0| 0a 0a 41 20 6c 69 6e 65 | 20 77 68 69 63 68 20 60 |..A line| which `|
|00000800| 70 61 72 61 67 72 61 70 | 68 2d 73 74 61 72 74 27 |paragrap|h-start'|
|00000810| 20 6d 61 74 63 68 65 73 | 20 65 69 74 68 65 72 20 | matches| either |
|00000820| 73 65 70 61 72 61 74 65 | 73 20 70 61 72 61 67 72 |separate|s paragr|
|00000830| 61 70 68 73 0a 28 69 66 | 20 60 70 61 72 61 67 72 |aphs.(if| `paragr|
|00000840| 61 70 68 2d 73 65 70 61 | 72 61 74 65 27 20 6d 61 |aph-sepa|rate' ma|
|00000850| 74 63 68 65 73 20 69 74 | 20 61 6c 73 6f 29 20 6f |tches it| also) o|
|00000860| 72 20 69 73 20 74 68 65 | 20 66 69 72 73 74 20 6c |r is the| first l|
|00000870| 69 6e 65 20 6f 66 20 61 | 20 70 61 72 61 67 72 61 |ine of a| paragra|
|00000880| 70 68 2e 0a 41 20 70 61 | 72 61 67 72 61 70 68 20 |ph..A pa|ragraph |
|00000890| 65 6e 64 20 69 73 20 74 | 68 65 20 62 65 67 69 6e |end is t|he begin|
|000008a0| 6e 69 6e 67 20 6f 66 20 | 61 20 6c 69 6e 65 20 77 |ning of |a line w|
|000008b0| 68 69 63 68 20 69 73 20 | 6e 6f 74 20 70 61 72 74 |hich is |not part|
|000008c0| 20 6f 66 20 74 68 65 20 | 70 61 72 61 67 72 61 70 | of the |paragrap|
|000008d0| 68 0a 74 6f 20 77 68 69 | 63 68 20 74 68 65 20 65 |h.to whi|ch the e|
|000008e0| 6e 64 20 6f 66 20 74 68 | 65 20 70 72 65 76 69 6f |nd of th|e previo|
|000008f0| 75 73 20 6c 69 6e 65 20 | 62 65 6c 6f 6e 67 73 2c |us line |belongs,|
|00000900| 20 6f 72 20 74 68 65 20 | 65 6e 64 20 6f 66 20 74 | or the |end of t|
|00000910| 68 65 20 62 75 66 66 65 | 72 2e 22 20 22 70 22 5d |he buffe|r." "p"]|
|00000920| 29 0a 28 64 65 66 61 6c | 69 61 73 20 27 62 61 63 |).(defal|ias 'bac|
|00000930| 6b 77 61 72 64 2d 70 61 | 72 61 67 72 61 70 68 20 |kward-pa|ragraph |
|00000940| 23 5b 28 26 6f 70 74 69 | 6f 6e 61 6c 20 61 72 67 |#[(&opti|onal arg|
|00000950| 29 20 22 08 84 06 00 c1 | 10 c2 08 5b 21 87 22 20 |) ".....|...[!." |
|00000960| 5b 61 72 67 20 31 20 66 | 6f 72 77 61 72 64 2d 70 |[arg 1 f|orward-p|
|00000970| 61 72 61 67 72 61 70 68 | 5d 20 32 20 22 5c 0a 4d |aragraph|] 2 "\.M|
|00000980| 6f 76 65 20 62 61 63 6b | 77 61 72 64 20 74 6f 20 |ove back|ward to |
|00000990| 73 74 61 72 74 20 6f 66 | 20 70 61 72 61 67 72 61 |start of| paragra|
|000009a0| 70 68 2e 0a 57 69 74 68 | 20 61 72 67 20 4e 2c 20 |ph..With| arg N, |
|000009b0| 64 6f 20 69 74 20 4e 20 | 74 69 6d 65 73 3b 20 6e |do it N |times; n|
|000009c0| 65 67 61 74 69 76 65 20 | 61 72 67 20 2d 4e 20 6d |egative |arg -N m|
|000009d0| 65 61 6e 73 20 6d 6f 76 | 65 20 66 6f 72 77 61 72 |eans mov|e forwar|
|000009e0| 64 20 4e 20 70 61 72 61 | 67 72 61 70 68 73 2e 0a |d N para|graphs..|
|000009f0| 0a 41 20 70 61 72 61 67 | 72 61 70 68 20 73 74 61 |.A parag|raph sta|
|00000a00| 72 74 20 69 73 20 74 68 | 65 20 62 65 67 69 6e 6e |rt is th|e beginn|
|00000a10| 69 6e 67 20 6f 66 20 61 | 20 6c 69 6e 65 20 77 68 |ing of a| line wh|
|00000a20| 69 63 68 20 69 73 20 61 | 0a 60 66 69 72 73 74 2d |ich is a|.`first-|
|00000a30| 6c 69 6e 65 2d 6f 66 2d | 70 61 72 61 67 72 61 70 |line-of-|paragrap|
|00000a40| 68 27 20 6f 72 20 77 68 | 69 63 68 20 69 73 20 6f |h' or wh|ich is o|
|00000a50| 72 64 69 6e 61 72 79 20 | 74 65 78 74 20 61 6e 64 |rdinary |text and|
|00000a60| 20 66 6f 6c 6c 6f 77 73 | 20 61 0a 70 61 72 61 67 | follows| a.parag|
|00000a70| 72 61 70 68 2d 73 65 70 | 61 72 61 74 69 6e 67 20 |raph-sep|arating |
|00000a80| 6c 69 6e 65 3b 20 65 78 | 63 65 70 74 3a 20 69 66 |line; ex|cept: if|
|00000a90| 20 74 68 65 20 66 69 72 | 73 74 20 72 65 61 6c 20 | the fir|st real |
|00000aa0| 6c 69 6e 65 20 6f 66 20 | 61 0a 70 61 72 61 67 72 |line of |a.paragr|
|00000ab0| 61 70 68 20 69 73 20 70 | 72 65 63 65 64 65 64 20 |aph is p|receded |
|00000ac0| 62 79 20 61 20 62 6c 61 | 6e 6b 20 6c 69 6e 65 2c |by a bla|nk line,|
|00000ad0| 20 74 68 65 20 70 61 72 | 61 67 72 61 70 68 20 73 | the par|agraph s|
|00000ae0| 74 61 72 74 73 20 61 74 | 20 74 68 61 74 0a 62 6c |tarts at| that.bl|
|00000af0| 61 6e 6b 20 6c 69 6e 65 | 2e 0a 0a 53 65 65 20 60 |ank line|...See `|
|00000b00| 66 6f 72 77 61 72 64 2d | 70 61 72 61 67 72 61 70 |forward-|paragrap|
|00000b10| 68 27 20 66 6f 72 20 6d | 6f 72 65 20 69 6e 66 6f |h' for m|ore info|
|00000b20| 72 6d 61 74 69 6f 6e 2e | 22 20 22 70 22 5d 29 0a |rmation.|" "p"]).|
|00000b30| 28 64 65 66 61 6c 69 61 | 73 20 27 6d 61 72 6b 2d |(defalia|s 'mark-|
|00000b40| 70 61 72 61 67 72 61 70 | 68 20 23 5b 6e 69 6c 20 |paragrap|h #[nil |
|00000b50| 22 c0 c1 21 88 c2 c3 c4 | 89 23 88 c5 c1 21 87 22 |"..!....|.#...!."|
|00000b60| 20 5b 66 6f 72 77 61 72 | 64 2d 70 61 72 61 67 72 | [forwar|d-paragr|
|00000b70| 61 70 68 20 31 20 70 75 | 73 68 2d 6d 61 72 6b 20 |aph 1 pu|sh-mark |
|00000b80| 6e 69 6c 20 74 20 62 61 | 63 6b 77 61 72 64 2d 70 |nil t ba|ckward-p|
|00000b90| 61 72 61 67 72 61 70 68 | 5d 20 34 20 22 5c 0a 50 |aragraph|] 4 "\.P|
|00000ba0| 75 74 20 70 6f 69 6e 74 | 20 61 74 20 62 65 67 69 |ut point| at begi|
|00000bb0| 6e 6e 69 6e 67 20 6f 66 | 20 74 68 69 73 20 70 61 |nning of| this pa|
|00000bc0| 72 61 67 72 61 70 68 2c | 20 6d 61 72 6b 20 61 74 |ragraph,| mark at|
|00000bd0| 20 65 6e 64 2e 0a 54 68 | 65 20 70 61 72 61 67 72 | end..Th|e paragr|
|00000be0| 61 70 68 20 6d 61 72 6b | 65 64 20 69 73 20 74 68 |aph mark|ed is th|
|00000bf0| 65 20 6f 6e 65 20 74 68 | 61 74 20 63 6f 6e 74 61 |e one th|at conta|
|00000c00| 69 6e 73 20 70 6f 69 6e | 74 20 6f 72 20 66 6f 6c |ins poin|t or fol|
|00000c10| 6c 6f 77 73 20 70 6f 69 | 6e 74 2e 22 20 6e 69 6c |lows poi|nt." nil|
|00000c20| 5d 29 0a 28 64 65 66 61 | 6c 69 61 73 20 27 6b 69 |]).(defa|lias 'ki|
|00000c30| 6c 6c 2d 70 61 72 61 67 | 72 61 70 68 20 23 5b 28 |ll-parag|raph #[(|
|00000c40| 61 72 67 29 20 22 c0 60 | 8a c1 5c 6e 21 88 60 29 |arg) ".`|..\n!.`)|
|00000c50| 5c 22 87 22 20 5b 6b 69 | 6c 6c 2d 72 65 67 69 6f |\"." [ki|ll-regio|
|00000c60| 6e 20 66 6f 72 77 61 72 | 64 2d 70 61 72 61 67 72 |n forwar|d-paragr|
|00000c70| 61 70 68 20 61 72 67 5d | 20 34 20 22 5c 0a 4b 69 |aph arg]| 4 "\.Ki|
|00000c80| 6c 6c 20 66 6f 72 77 61 | 72 64 20 74 6f 20 65 6e |ll forwa|rd to en|
|00000c90| 64 20 6f 66 20 70 61 72 | 61 67 72 61 70 68 2e 0a |d of par|agraph..|
|00000ca0| 57 69 74 68 20 61 72 67 | 20 4e 2c 20 6b 69 6c 6c |With arg| N, kill|
|00000cb0| 20 66 6f 72 77 61 72 64 | 20 74 6f 20 4e 74 68 20 | forward| to Nth |
|00000cc0| 65 6e 64 20 6f 66 20 70 | 61 72 61 67 72 61 70 68 |end of p|aragraph|
|00000cd0| 3b 0a 6e 65 67 61 74 69 | 76 65 20 61 72 67 20 2d |;.negati|ve arg -|
|00000ce0| 4e 20 6d 65 61 6e 73 20 | 6b 69 6c 6c 20 62 61 63 |N means |kill bac|
|00000cf0| 6b 77 61 72 64 20 74 6f | 20 4e 74 68 20 73 74 61 |kward to| Nth sta|
|00000d00| 72 74 20 6f 66 20 70 61 | 72 61 67 72 61 70 68 2e |rt of pa|ragraph.|
|00000d10| 22 20 22 70 22 5d 29 0a | 28 64 65 66 61 6c 69 61 |" "p"]).|(defalia|
|00000d20| 73 20 27 62 61 63 6b 77 | 61 72 64 2d 6b 69 6c 6c |s 'backw|ard-kill|
|00000d30| 2d 70 61 72 61 67 72 61 | 70 68 20 23 5b 28 61 72 |-paragra|ph #[(ar|
|00000d40| 67 29 20 22 c0 60 8a c1 | 5c 6e 21 88 60 29 5c 22 |g) ".`..|\n!.`)\"|
|00000d50| 87 22 20 5b 6b 69 6c 6c | 2d 72 65 67 69 6f 6e 20 |." [kill|-region |
|00000d60| 62 61 63 6b 77 61 72 64 | 2d 70 61 72 61 67 72 61 |backward|-paragra|
|00000d70| 70 68 20 61 72 67 5d 20 | 34 20 22 5c 0a 4b 69 6c |ph arg] |4 "\.Kil|
|00000d80| 6c 20 62 61 63 6b 20 74 | 6f 20 73 74 61 72 74 20 |l back t|o start |
|00000d90| 6f 66 20 70 61 72 61 67 | 72 61 70 68 2e 0a 57 69 |of parag|raph..Wi|
|00000da0| 74 68 20 61 72 67 20 4e | 2c 20 6b 69 6c 6c 20 62 |th arg N|, kill b|
|00000db0| 61 63 6b 20 74 6f 20 4e | 74 68 20 73 74 61 72 74 |ack to N|th start|
|00000dc0| 20 6f 66 20 70 61 72 61 | 67 72 61 70 68 3b 0a 6e | of para|graph;.n|
|00000dd0| 65 67 61 74 69 76 65 20 | 61 72 67 20 2d 4e 20 6d |egative |arg -N m|
|00000de0| 65 61 6e 73 20 6b 69 6c | 6c 20 66 6f 72 77 61 72 |eans kil|l forwar|
|00000df0| 64 20 74 6f 20 4e 74 68 | 20 65 6e 64 20 6f 66 20 |d to Nth| end of |
|00000e00| 70 61 72 61 67 72 61 70 | 68 2e 22 20 22 70 22 5d |paragrap|h." "p"]|
|00000e10| 29 0a 28 64 65 66 61 6c | 69 61 73 20 27 74 72 61 |).(defal|ias 'tra|
|00000e20| 6e 73 70 6f 73 65 2d 70 | 61 72 61 67 72 61 70 68 |nspose-p|aragraph|
|00000e30| 73 20 23 5b 28 61 72 67 | 29 20 22 c0 c1 5c 6e 5c |s #[(arg|) "..\n\|
|00000e40| 22 87 22 20 5b 74 72 61 | 6e 73 70 6f 73 65 2d 73 |"." [tra|nspose-s|
|00000e50| 75 62 72 20 66 6f 72 77 | 61 72 64 2d 70 61 72 61 |ubr forw|ard-para|
|00000e60| 67 72 61 70 68 20 61 72 | 67 5d 20 33 20 22 5c 0a |graph ar|g] 3 "\.|
|00000e70| 49 6e 74 65 72 63 68 61 | 6e 67 65 20 74 68 69 73 |Intercha|nge this|
|00000e80| 20 28 6f 72 20 6e 65 78 | 74 29 20 70 61 72 61 67 | (or nex|t) parag|
|00000e90| 72 61 70 68 20 77 69 74 | 68 20 70 72 65 76 69 6f |raph wit|h previo|
|00000ea0| 75 73 20 6f 6e 65 2e 22 | 20 22 2a 70 22 5d 29 0a |us one."| "*p"]).|
|00000eb0| 28 62 79 74 65 2d 63 6f | 64 65 20 22 c0 c1 c2 5c |(byte-co|de "...\|
|00000ec0| 22 88 c0 c3 c4 5c 22 87 | 22 20 5b 64 65 66 61 6c |"....\".|" [defal|
|00000ed0| 69 61 73 20 73 74 61 72 | 74 2d 6f 66 2d 70 61 72 |ias star|t-of-par|
|00000ee0| 61 67 72 61 70 68 2d 74 | 65 78 74 20 23 5b 6e 69 |agraph-t|ext #[ni|
|00000ef0| 6c 20 22 60 c0 19 1a c3 | c4 21 88 60 11 c5 c0 77 |l "`....|.!.`...w|
|00000f00| 88 60 5c 6e 59 85 25 00 | 09 5c 6e 57 85 25 00 09 |.`\nY.%.|.\nW.%..|
|00000f10| 62 88 09 65 56 85 25 00 | c6 20 2a 87 22 20 5b 6e |b..eV.%.|. *." [n|
|00000f20| 69 6c 20 6e 70 6f 69 6e | 74 20 6f 70 6f 69 6e 74 |il npoin|t opoint|
|00000f30| 20 66 6f 72 77 61 72 64 | 2d 70 61 72 61 67 72 61 | forward|-paragra|
|00000f40| 70 68 20 2d 31 20 22 20 | 09 5c 6e 22 20 73 74 61 |ph -1 " |.\n" sta|
|00000f50| 72 74 2d 6f 66 2d 70 61 | 72 61 67 72 61 70 68 2d |rt-of-pa|ragraph-|
|00000f60| 74 65 78 74 5d 20 32 5d | 20 65 6e 64 2d 6f 66 2d |text] 2]| end-of-|
|00000f70| 70 61 72 61 67 72 61 70 | 68 2d 74 65 78 74 20 23 |paragrap|h-text #|
|00000f80| 5b 6e 69 6c 20 22 60 18 | c1 c2 21 88 68 c3 3d 83 |[nil "`.|..!.h.=.|
|00000f90| 0f 00 c4 75 88 60 08 58 | 85 20 00 c2 75 88 60 64 |...u.`.X|. ..u.`d|
|00000fa0| 57 85 20 00 c5 20 29 87 | 22 20 5b 6f 70 6f 69 6e |W. .. ).|" [opoin|
|00000fb0| 74 20 66 6f 72 77 61 72 | 64 2d 70 61 72 61 67 72 |t forwar|d-paragr|
|00000fc0| 61 70 68 20 31 20 31 30 | 20 2d 31 20 65 6e 64 2d |aph 1 10| -1 end-|
|00000fd0| 6f 66 2d 70 61 72 61 67 | 72 61 70 68 2d 74 65 78 |of-parag|raph-tex|
|00000fe0| 74 5d 20 32 5d 5d 20 33 | 29 0a 28 64 65 66 61 6c |t] 2]] 3|).(defal|
|00000ff0| 69 61 73 20 27 66 6f 72 | 77 61 72 64 2d 73 65 6e |ias 'for|ward-sen|
|00001000| 74 65 6e 63 65 20 23 5b | 28 26 6f 70 74 69 6f 6e |tence #[|(&option|
|00001010| 61 6c 20 61 72 67 29 20 | 22 08 84 06 00 c1 10 08 |al arg) |".......|
|00001020| c2 57 83 31 00 8a c3 20 | 88 60 29 1c c5 0e 06 c7 |.W.1... |.`).....|
|00001030| 50 0c c8 23 83 26 00 c2 | 95 53 62 88 82 29 00 0c |P..#.&..|.Sb..)..|
|00001040| 62 88 29 08 54 89 10 82 | 07 00 08 c2 56 85 5c 5c |b.).T...|....V.\\|
|00001050| 00 8a c9 20 88 60 29 1e | 5c 6e cb 0e 06 0e 5c 6e |... .`).|\n....\n|
|00001060| c8 23 83 50 00 cc cd 78 | 88 82 54 00 0e 5c 6e 62 |.#.P...x|..T..\nb|
|00001070| 88 29 08 53 89 10 82 32 | 00 87 22 20 5b 61 72 67 |.).S...2|.." [arg|
|00001080| 20 31 20 30 20 73 74 61 | 72 74 2d 6f 66 2d 70 61 | 1 0 sta|rt-of-pa|
|00001090| 72 61 67 72 61 70 68 2d | 74 65 78 74 20 70 61 72 |ragraph-|text par|
|000010a0| 2d 62 65 67 20 72 65 2d | 73 65 61 72 63 68 2d 62 |-beg re-|search-b|
|000010b0| 61 63 6b 77 61 72 64 20 | 73 65 6e 74 65 6e 63 65 |ackward |sentence|
|000010c0| 2d 65 6e 64 20 22 5b 5e | 20 09 5c 6e 5d 22 20 74 |-end "[^| .\n]" t|
|000010d0| 20 65 6e 64 2d 6f 66 2d | 70 61 72 61 67 72 61 70 | end-of-|paragrap|
|000010e0| 68 2d 74 65 78 74 20 70 | 61 72 2d 65 6e 64 20 72 |h-text p|ar-end r|
|000010f0| 65 2d 73 65 61 72 63 68 | 2d 66 6f 72 77 61 72 64 |e-search|-forward|
|00001100| 20 22 20 09 5c 6e 22 20 | 6e 69 6c 5d 20 35 20 22 | " .\n" |nil] 5 "|
|00001110| 5c 0a 4d 6f 76 65 20 66 | 6f 72 77 61 72 64 20 74 |\.Move f|orward t|
|00001120| 6f 20 6e 65 78 74 20 60 | 73 65 6e 74 65 6e 63 65 |o next `|sentence|
|00001130| 2d 65 6e 64 27 2e 20 20 | 57 69 74 68 20 61 72 67 |-end'. |With arg|
|00001140| 75 6d 65 6e 74 2c 20 72 | 65 70 65 61 74 2e 0a 57 |ument, r|epeat..W|
|00001150| 69 74 68 20 6e 65 67 61 | 74 69 76 65 20 61 72 67 |ith nega|tive arg|
|00001160| 75 6d 65 6e 74 2c 20 6d | 6f 76 65 20 62 61 63 6b |ument, m|ove back|
|00001170| 77 61 72 64 20 72 65 70 | 65 61 74 65 64 6c 79 20 |ward rep|eatedly |
|00001180| 74 6f 20 60 73 65 6e 74 | 65 6e 63 65 2d 62 65 67 |to `sent|ence-beg|
|00001190| 69 6e 6e 69 6e 67 27 2e | 0a 0a 54 68 65 20 76 61 |inning'.|..The va|
|000011a0| 72 69 61 62 6c 65 20 60 | 73 65 6e 74 65 6e 63 65 |riable `|sentence|
|000011b0| 2d 65 6e 64 27 20 69 73 | 20 61 20 72 65 67 75 6c |-end' is| a regul|
|000011c0| 61 72 20 65 78 70 72 65 | 73 73 69 6f 6e 20 74 68 |ar expre|ssion th|
|000011d0| 61 74 20 6d 61 74 63 68 | 65 73 20 65 6e 64 73 20 |at match|es ends |
|000011e0| 6f 66 0a 73 65 6e 74 65 | 6e 63 65 73 2e 20 20 41 |of.sente|nces. A|
|000011f0| 6c 73 6f 2c 20 65 76 65 | 72 79 20 70 61 72 61 67 |lso, eve|ry parag|
|00001200| 72 61 70 68 20 62 6f 75 | 6e 64 61 72 79 20 74 65 |raph bou|ndary te|
|00001210| 72 6d 69 6e 61 74 65 73 | 20 73 65 6e 74 65 6e 63 |rminates| sentenc|
|00001220| 65 73 20 61 73 20 77 65 | 6c 6c 2e 22 20 22 70 22 |es as we|ll." "p"|
|00001230| 5d 29 0a 28 64 65 66 61 | 6c 69 61 73 20 27 62 61 |]).(defa|lias 'ba|
|00001240| 63 6b 77 61 72 64 2d 73 | 65 6e 74 65 6e 63 65 20 |ckward-s|entence |
|00001250| 23 5b 28 26 6f 70 74 69 | 6f 6e 61 6c 20 61 72 67 |#[(&opti|onal arg|
|00001260| 29 20 22 08 84 06 00 c1 | 10 c2 08 5b 21 87 22 20 |) ".....|...[!." |
|00001270| 5b 61 72 67 20 31 20 66 | 6f 72 77 61 72 64 2d 73 |[arg 1 f|orward-s|
|00001280| 65 6e 74 65 6e 63 65 5d | 20 32 20 22 5c 0a 4d 6f |entence]| 2 "\.Mo|
|00001290| 76 65 20 62 61 63 6b 77 | 61 72 64 20 74 6f 20 73 |ve backw|ard to s|
|000012a0| 74 61 72 74 20 6f 66 20 | 73 65 6e 74 65 6e 63 65 |tart of |sentence|
|000012b0| 2e 20 20 57 69 74 68 20 | 61 72 67 2c 20 64 6f 20 |. With |arg, do |
|000012c0| 69 74 20 61 72 67 20 74 | 69 6d 65 73 2e 0a 53 65 |it arg t|imes..Se|
|000012d0| 65 20 60 66 6f 72 77 61 | 72 64 2d 73 65 6e 74 65 |e `forwa|rd-sente|
|000012e0| 6e 63 65 27 20 66 6f 72 | 20 6d 6f 72 65 20 69 6e |nce' for| more in|
|000012f0| 66 6f 72 6d 61 74 69 6f | 6e 2e 22 20 22 70 22 5d |formatio|n." "p"]|
|00001300| 29 0a 28 64 65 66 61 6c | 69 61 73 20 27 6b 69 6c |).(defal|ias 'kil|
|00001310| 6c 2d 73 65 6e 74 65 6e | 63 65 20 23 5b 28 26 6f |l-senten|ce #[(&o|
|00001320| 70 74 69 6f 6e 61 6c 20 | 61 72 67 29 20 22 c0 60 |ptional |arg) ".`|
|00001330| 8a c1 5c 6e 21 88 60 29 | 5c 22 87 22 20 5b 6b 69 |..\n!.`)|\"." [ki|
|00001340| 6c 6c 2d 72 65 67 69 6f | 6e 20 66 6f 72 77 61 72 |ll-regio|n forwar|
|00001350| 64 2d 73 65 6e 74 65 6e | 63 65 20 61 72 67 5d 20 |d-senten|ce arg] |
|00001360| 34 20 22 5c 0a 4b 69 6c | 6c 20 66 72 6f 6d 20 70 |4 "\.Kil|l from p|
|00001370| 6f 69 6e 74 20 74 6f 20 | 65 6e 64 20 6f 66 20 73 |oint to |end of s|
|00001380| 65 6e 74 65 6e 63 65 2e | 0a 57 69 74 68 20 61 72 |entence.|.With ar|
|00001390| 67 2c 20 72 65 70 65 61 | 74 3b 20 6e 65 67 61 74 |g, repea|t; negat|
|000013a0| 69 76 65 20 61 72 67 20 | 2d 4e 20 6d 65 61 6e 73 |ive arg |-N means|
|000013b0| 20 6b 69 6c 6c 20 62 61 | 63 6b 20 74 6f 20 4e 74 | kill ba|ck to Nt|
|000013c0| 68 20 73 74 61 72 74 20 | 6f 66 20 73 65 6e 74 65 |h start |of sente|
|000013d0| 6e 63 65 2e 22 20 22 2a | 70 22 5d 29 0a 28 64 65 |nce." "*|p"]).(de|
|000013e0| 66 61 6c 69 61 73 20 27 | 62 61 63 6b 77 61 72 64 |falias '|backward|
|000013f0| 2d 6b 69 6c 6c 2d 73 65 | 6e 74 65 6e 63 65 20 23 |-kill-se|ntence #|
|00001400| 5b 28 26 6f 70 74 69 6f | 6e 61 6c 20 61 72 67 29 |[(&optio|nal arg)|
|00001410| 20 22 c0 60 8a c1 5c 6e | 21 88 60 29 5c 22 87 22 | ".`..\n|!.`)\"."|
|00001420| 20 5b 6b 69 6c 6c 2d 72 | 65 67 69 6f 6e 20 62 61 | [kill-r|egion ba|
|00001430| 63 6b 77 61 72 64 2d 73 | 65 6e 74 65 6e 63 65 20 |ckward-s|entence |
|00001440| 61 72 67 5d 20 34 20 22 | 5c 0a 4b 69 6c 6c 20 62 |arg] 4 "|\.Kill b|
|00001450| 61 63 6b 20 66 72 6f 6d | 20 70 6f 69 6e 74 20 74 |ack from| point t|
|00001460| 6f 20 73 74 61 72 74 20 | 6f 66 20 73 65 6e 74 65 |o start |of sente|
|00001470| 6e 63 65 2e 0a 57 69 74 | 68 20 61 72 67 2c 20 72 |nce..Wit|h arg, r|
|00001480| 65 70 65 61 74 2c 20 6f | 72 20 6b 69 6c 6c 20 66 |epeat, o|r kill f|
|00001490| 6f 72 77 61 72 64 20 74 | 6f 20 4e 74 68 20 65 6e |orward t|o Nth en|
|000014a0| 64 20 6f 66 20 73 65 6e | 74 65 6e 63 65 20 69 66 |d of sen|tence if|
|000014b0| 20 6e 65 67 61 74 69 76 | 65 20 61 72 67 20 2d 4e | negativ|e arg -N|
|000014c0| 2e 22 20 22 2a 70 22 5d | 29 0a 28 64 65 66 61 6c |." "*p"]|).(defal|
|000014d0| 69 61 73 20 27 6d 61 72 | 6b 2d 65 6e 64 2d 6f 66 |ias 'mar|k-end-of|
|000014e0| 2d 73 65 6e 74 65 6e 63 | 65 20 23 5b 28 61 72 67 |-sentenc|e #[(arg|
|000014f0| 29 20 22 c0 8a c1 5c 6e | 21 88 60 29 c3 c4 23 87 |) "...\n|!.`)..#.|
|00001500| 22 20 5b 70 75 73 68 2d | 6d 61 72 6b 20 66 6f 72 |" [push-|mark for|
|00001510| 77 61 72 64 2d 73 65 6e | 74 65 6e 63 65 20 61 72 |ward-sen|tence ar|
|00001520| 67 20 6e 69 6c 20 74 5d | 20 34 20 22 5c 0a 50 75 |g nil t]| 4 "\.Pu|
|00001530| 74 20 6d 61 72 6b 20 61 | 74 20 65 6e 64 20 6f 66 |t mark a|t end of|
|00001540| 20 73 65 6e 74 65 6e 63 | 65 2e 20 20 41 72 67 20 | sentenc|e. Arg |
|00001550| 77 6f 72 6b 73 20 61 73 | 20 69 6e 20 60 66 6f 72 |works as| in `for|
|00001560| 77 61 72 64 2d 73 65 6e | 74 65 6e 63 65 27 2e 22 |ward-sen|tence'."|
|00001570| 20 22 70 22 5d 29 0a 28 | 64 65 66 61 6c 69 61 73 | "p"]).(|defalias|
|00001580| 20 27 74 72 61 6e 73 70 | 6f 73 65 2d 73 65 6e 74 | 'transp|ose-sent|
|00001590| 65 6e 63 65 73 20 23 5b | 28 61 72 67 29 20 22 c0 |ences #[|(arg) ".|
|000015a0| c1 5c 6e 5c 22 87 22 20 | 5b 74 72 61 6e 73 70 6f |.\n\"." |[transpo|
|000015b0| 73 65 2d 73 75 62 72 20 | 66 6f 72 77 61 72 64 2d |se-subr |forward-|
|000015c0| 73 65 6e 74 65 6e 63 65 | 20 61 72 67 5d 20 33 20 |sentence| arg] 3 |
|000015d0| 22 5c 0a 49 6e 74 65 72 | 63 68 61 6e 67 65 20 74 |"\.Inter|change t|
|000015e0| 68 69 73 20 28 6e 65 78 | 74 29 20 61 6e 64 20 70 |his (nex|t) and p|
|000015f0| 72 65 76 69 6f 75 73 20 | 73 65 6e 74 65 6e 63 65 |revious |sentence|
|00001600| 2e 22 20 22 2a 70 22 5d | 29 0a |." "*p"]|). |
+--------+-------------------------+-------------------------+--------+--------+