home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / editors / emacs / xemacs / xemacs-1.006 / xemacs-1 / lib / xemacs-19.13 / lisp / utils / annotations.elc < prev    next >
Emacs Compiled Lisp  |  1995-08-29  |  10.7 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 63 74 68 6f 6d 70 40 |piled by| cthomp@|
|00000020| 77 69 6c 6c 6f 77 2e 63 | 73 2e 75 69 75 63 2e 65 |willow.c|s.uiuc.e|
|00000030| 64 75 20 6f 6e 20 54 75 | 65 20 41 75 67 20 32 39 |du on Tu|e Aug 29|
|00000040| 20 31 34 3a 32 34 3a 32 | 37 20 31 39 39 35 0a 3b | 14:24:2|7 1995.;|
|00000050| 3b 3b 20 66 72 6f 6d 20 | 66 69 6c 65 20 2f 78 65 |;; from |file /xe|
|00000060| 6d 61 63 73 2f 78 65 6d | 61 63 73 2d 31 39 2e 31 |macs/xem|acs-19.1|
|00000070| 33 2d 72 65 6c 65 61 73 | 65 2f 65 64 69 74 6f 72 |3-releas|e/editor|
|00000080| 2f 6c 69 73 70 2f 75 74 | 69 6c 73 2f 61 6e 6e 6f |/lisp/ut|ils/anno|
|00000090| 74 61 74 69 6f 6e 73 2e | 65 6c 0a 3b 3b 3b 20 65 |tations.|el.;;; e|
|000000a0| 6d 61 63 73 20 76 65 72 | 73 69 6f 6e 20 31 39 2e |macs ver|sion 19.|
|000000b0| 31 33 20 58 45 6d 61 63 | 73 20 4c 75 63 69 64 2e |13 XEmac|s Lucid.|
|000000c0| 0a 3b 3b 3b 20 62 79 74 | 65 63 6f 6d 70 20 76 65 |.;;; byt|ecomp ve|
|000000d0| 72 73 69 6f 6e 20 32 2e | 32 35 3b 20 31 2d 53 65 |rsion 2.|25; 1-Se|
|000000e0| 70 2d 39 34 2e 0a 3b 3b | 3b 20 6f 70 74 69 6d 69 |p-94..;;|; optimi|
|000000f0| 7a 61 74 69 6f 6e 20 69 | 73 20 6f 6e 2e 0a 3b 3b |zation i|s on..;;|
|00000100| 3b 20 74 68 69 73 20 66 | 69 6c 65 20 75 73 65 73 |; this f|ile uses|
|00000110| 20 6f 70 63 6f 64 65 73 | 20 77 68 69 63 68 20 64 | opcodes| which d|
|00000120| 6f 20 6e 6f 74 20 65 78 | 69 73 74 20 69 6e 20 45 |o not ex|ist in E|
|00000130| 6d 61 63 73 20 31 38 2e | 0a 0a 28 69 66 20 28 61 |macs 18.|..(if (a|
|00000140| 6e 64 20 28 62 6f 75 6e | 64 70 20 27 65 6d 61 63 |nd (boun|dp 'emac|
|00000150| 73 2d 76 65 72 73 69 6f | 6e 29 0a 09 20 28 6f 72 |s-versio|n).. (or|
|00000160| 20 28 61 6e 64 20 28 62 | 6f 75 6e 64 70 20 27 65 | (and (b|oundp 'e|
|00000170| 70 6f 63 68 3a 3a 76 65 | 72 73 69 6f 6e 29 20 65 |poch::ve|rsion) e|
|00000180| 70 6f 63 68 3a 3a 76 65 | 72 73 69 6f 6e 29 0a 09 |poch::ve|rsion)..|
|00000190| 20 20 20 20 20 28 73 74 | 72 69 6e 67 2d 6c 65 73 | (st|ring-les|
|000001a0| 73 70 20 65 6d 61 63 73 | 2d 76 65 72 73 69 6f 6e |sp emacs|-version|
|000001b0| 20 22 31 39 22 29 29 29 | 0a 20 20 20 20 28 65 72 | "19")))|. (er|
|000001c0| 72 6f 72 20 22 54 68 69 | 73 20 66 69 6c 65 20 77 |ror "Thi|s file w|
|000001d0| 61 73 20 63 6f 6d 70 69 | 6c 65 64 20 66 6f 72 20 |as compi|led for |
|000001e0| 45 6d 61 63 73 20 31 39 | 2e 22 29 29 0a 0a 28 64 |Emacs 19|."))..(d|
|000001f0| 65 66 76 61 72 20 6d 61 | 6b 65 2d 61 6e 6e 6f 74 |efvar ma|ke-annot|
|00000200| 61 74 69 6f 6e 2d 68 6f | 6f 6b 20 6e 69 6c 20 22 |ation-ho|ok nil "|
|00000210| 5c 0a 2a 46 75 6e 63 74 | 69 6f 6e 20 6f 72 20 66 |\.*Funct|ion or f|
|00000220| 75 6e 63 74 69 6f 6e 73 | 20 74 6f 20 72 75 6e 20 |unctions| to run |
|00000230| 69 6d 6d 65 64 69 61 74 | 65 6c 79 20 61 66 74 65 |immediat|ely afte|
|00000240| 72 20 63 72 65 61 74 69 | 6e 67 20 61 6e 20 61 6e |r creati|ng an an|
|00000250| 6e 6f 74 61 74 69 6f 6e | 2e 22 29 0a 28 64 65 66 |notation|.").(def|
|00000260| 76 61 72 20 62 65 66 6f | 72 65 2d 64 65 6c 65 74 |var befo|re-delet|
|00000270| 65 2d 61 6e 6e 6f 74 61 | 74 69 6f 6e 2d 68 6f 6f |e-annota|tion-hoo|
|00000280| 6b 20 6e 69 6c 20 22 5c | 0a 2a 46 75 6e 63 74 69 |k nil "\|.*Functi|
|00000290| 6f 6e 20 6f 72 20 66 75 | 6e 63 74 69 6f 6e 73 20 |on or fu|nctions |
|000002a0| 74 6f 20 72 75 6e 20 69 | 6d 6d 65 64 69 61 74 65 |to run i|mmediate|
|000002b0| 6c 79 20 62 65 66 6f 72 | 65 20 64 65 6c 65 74 69 |ly befor|e deleti|
|000002c0| 6e 67 20 61 6e 20 61 6e | 6e 6f 74 61 74 69 6f 6e |ng an an|notation|
|000002d0| 2e 22 29 0a 28 64 65 66 | 76 61 72 20 61 66 74 65 |.").(def|var afte|
|000002e0| 72 2d 64 65 6c 65 74 65 | 2d 61 6e 6e 6f 74 61 74 |r-delete|-annotat|
|000002f0| 69 6f 6e 2d 68 6f 6f 6b | 20 6e 69 6c 20 22 5c 0a |ion-hook| nil "\.|
|00000300| 2a 46 75 6e 63 74 69 6f | 6e 20 6f 72 20 66 75 6e |*Functio|n or fun|
|00000310| 63 74 69 6f 6e 73 20 74 | 6f 20 72 75 6e 20 69 6d |ctions t|o run im|
|00000320| 6d 65 64 69 61 74 65 6c | 79 20 61 66 74 65 72 20 |mediatel|y after |
|00000330| 64 65 6c 65 74 69 6e 67 | 20 61 6e 20 61 6e 6e 6f |deleting| an anno|
|00000340| 74 61 74 69 6f 6e 2e 22 | 29 0a 28 64 65 66 76 61 |tation."|).(defva|
|00000350| 72 20 61 6e 6e 6f 74 61 | 74 69 6f 6e 2d 6c 6f 63 |r annota|tion-loc|
|00000360| 61 6c 2d 6d 61 70 2d 64 | 65 66 61 75 6c 74 20 28 |al-map-d|efault (|
|00000370| 62 79 74 65 2d 63 6f 64 | 65 20 22 c0 20 19 c2 09 |byte-cod|e ". ...|
|00000380| c3 5c 22 88 c4 09 c5 c6 | 23 88 c4 09 c7 c8 23 88 |.\".....|#.....#.|
|00000390| 09 29 87 22 20 5b 6d 61 | 6b 65 2d 73 70 61 72 73 |.)." [ma|ke-spars|
|000003a0| 65 2d 6b 65 79 6d 61 70 | 20 6d 61 70 20 73 65 74 |e-keymap| map set|
|000003b0| 2d 6b 65 79 6d 61 70 2d | 6e 61 6d 65 20 61 6e 6e |-keymap-|name ann|
|000003c0| 6f 74 61 74 69 6f 6e 2d | 6c 6f 63 61 6c 2d 6d 61 |otation-|local-ma|
|000003d0| 70 20 64 65 66 69 6e 65 | 2d 6b 65 79 20 62 75 74 |p define|-key but|
|000003e0| 74 6f 6e 31 20 61 6e 6e | 6f 74 61 74 69 6f 6e 2d |ton1 ann|otation-|
|000003f0| 61 63 74 69 76 61 74 65 | 2d 66 75 6e 63 74 69 6f |activate|-functio|
|00000400| 6e 2d 64 65 66 61 75 6c | 74 20 62 75 74 74 6f 6e |n-defaul|t button|
|00000410| 33 20 61 6e 6e 6f 74 61 | 74 69 6f 6e 2d 70 6f 70 |3 annota|tion-pop|
|00000420| 75 70 2d 6d 65 6e 75 5d | 20 34 29 20 22 5c 0a 4b |up-menu]| 4) "\.K|
|00000430| 65 79 6d 61 70 20 75 73 | 65 64 20 74 6f 20 61 63 |eymap us|ed to ac|
|00000440| 74 69 76 61 74 65 20 61 | 6e 6e 6f 74 61 74 69 6f |tivate a|nnotatio|
|00000450| 6e 73 20 77 69 74 68 20 | 6f 6e 6c 79 20 61 6e 6e |ns with |only ann|
|00000460| 6f 74 61 74 69 6f 6e 20 | 64 61 74 61 20 70 61 73 |otation |data pas|
|00000470| 73 65 64 2e 22 29 0a 28 | 64 65 66 76 61 72 20 61 |sed.").(|defvar a|
|00000480| 6e 6e 6f 74 61 74 69 6f | 6e 2d 6c 6f 63 61 6c 2d |nnotatio|n-local-|
|00000490| 6d 61 70 2d 77 69 74 68 | 2d 65 76 65 6e 74 20 28 |map-with|-event (|
|000004a0| 62 79 74 65 2d 63 6f 64 | 65 20 22 c0 20 19 c2 09 |byte-cod|e ". ...|
|000004b0| c3 5c 22 88 c4 09 c5 c6 | 23 88 c4 09 c7 c8 23 88 |.\".....|#.....#.|
|000004c0| 09 29 87 22 20 5b 6d 61 | 6b 65 2d 73 70 61 72 73 |.)." [ma|ke-spars|
|000004d0| 65 2d 6b 65 79 6d 61 70 | 20 6d 61 70 20 73 65 74 |e-keymap| map set|
|000004e0| 2d 6b 65 79 6d 61 70 2d | 6e 61 6d 65 20 61 6e 6e |-keymap-|name ann|
|000004f0| 6f 74 61 74 69 6f 6e 2d | 6c 6f 63 61 6c 2d 6d 61 |otation-|local-ma|
|00000500| 70 20 64 65 66 69 6e 65 | 2d 6b 65 79 20 62 75 74 |p define|-key but|
|00000510| 74 6f 6e 31 20 61 6e 6e | 6f 74 61 74 69 6f 6e 2d |ton1 ann|otation-|
|00000520| 61 63 74 69 76 61 74 65 | 2d 66 75 6e 63 74 69 6f |activate|-functio|
|00000530| 6e 2d 77 69 74 68 2d 65 | 76 65 6e 74 20 62 75 74 |n-with-e|vent but|
|00000540| 74 6f 6e 33 20 61 6e 6e | 6f 74 61 74 69 6f 6e 2d |ton3 ann|otation-|
|00000550| 70 6f 70 75 70 2d 6d 65 | 6e 75 5d 20 34 29 20 22 |popup-me|nu] 4) "|
|00000560| 5c 0a 4b 65 79 6d 61 70 | 20 75 73 65 64 20 74 6f |\.Keymap| used to|
|00000570| 20 61 63 74 69 76 61 74 | 65 20 61 6e 6e 6f 74 61 | activat|e annota|
|00000580| 74 69 6f 6e 73 20 77 69 | 74 68 20 61 6e 6e 6f 74 |tions wi|th annot|
|00000590| 61 74 69 6f 6e 20 64 61 | 74 61 20 61 6e 64 20 65 |ation da|ta and e|
|000005a0| 76 65 6e 74 20 70 61 73 | 73 65 64 2e 22 29 0a 28 |vent pas|sed.").(|
|000005b0| 62 79 74 65 2d 63 6f 64 | 65 20 22 c0 c1 4d 88 c2 |byte-cod|e "..M..|
|000005c0| c3 4d 87 22 20 5b 61 6e | 6e 6f 74 61 74 69 6f 6e |.M." [an|notation|
|000005d0| 2d 61 63 74 69 76 61 74 | 65 2d 66 75 6e 63 74 69 |-activat|e-functi|
|000005e0| 6f 6e 2d 64 65 66 61 75 | 6c 74 20 23 5b 28 65 76 |on-defau|lt #[(ev|
|000005f0| 65 6e 74 29 20 22 c0 09 | 21 c2 c3 1c 1d 1e 06 c7 |ent) "..|!.......|
|00000600| 0e 06 21 ab 8e c8 0e 06 | 21 14 c9 0e 06 c7 0e 06 |..!.....|!.......|
|00000610| 21 5c 22 88 0d ab 8e ca | 09 21 11 cb 09 21 ab 74 |!\".....|.!...!.t|
|00000620| c3 89 15 ac 72 c7 0e 06 | 21 ab 86 c9 0e 06 0c 5c |....r...|!......\|
|00000630| 22 88 0e 06 c0 09 21 3d | ad 8f cc 0e 06 21 ad 89 |".....!=|.....!..|
|00000640| cc 0e 06 21 cd 0e 06 21 | 21 2b 87 22 20 5b 65 76 |...!...!|!+." [ev|
|00000650| 65 6e 74 2d 67 6c 79 70 | 68 2d 65 78 74 65 6e 74 |ent-glyp|h-extent|
|00000660| 20 65 76 65 6e 74 20 74 | 20 6e 69 6c 20 75 70 2d | event t| nil up-|
|00000670| 67 6c 79 70 68 20 6d 6f | 75 73 65 2d 64 6f 77 6e |glyph mo|use-down|
|00000680| 20 65 78 74 65 6e 74 20 | 61 6e 6e 6f 74 61 74 69 | extent |annotati|
|00000690| 6f 6e 2d 64 6f 77 6e 2d | 67 6c 79 70 68 20 61 6e |on-down-|glyph an|
|000006a0| 6e 6f 74 61 74 69 6f 6e | 2d 67 6c 79 70 68 20 73 |notation|-glyph s|
|000006b0| 65 74 2d 61 6e 6e 6f 74 | 61 74 69 6f 6e 2d 67 6c |et-annot|ation-gl|
|000006c0| 79 70 68 20 6e 65 78 74 | 2d 65 76 65 6e 74 20 62 |yph next|-event b|
|000006d0| 75 74 74 6f 6e 2d 72 65 | 6c 65 61 73 65 2d 65 76 |utton-re|lease-ev|
|000006e0| 65 6e 74 2d 70 20 61 6e | 6e 6f 74 61 74 69 6f 6e |ent-p an|notation|
|000006f0| 2d 61 63 74 69 6f 6e 20 | 61 6e 6e 6f 74 61 74 69 |-action |annotati|
|00000700| 6f 6e 2d 64 61 74 61 5d | 20 35 20 6e 69 6c 20 22 |on-data]| 5 nil "|
|00000710| 65 22 5d 20 61 6e 6e 6f | 74 61 74 69 6f 6e 2d 61 |e"] anno|tation-a|
|00000720| 63 74 69 76 61 74 65 2d | 66 75 6e 63 74 69 6f 6e |ctivate-|function|
|00000730| 2d 77 69 74 68 2d 65 76 | 65 6e 74 20 23 5b 28 65 |-with-ev|ent #[(e|
|00000740| 76 65 6e 74 29 20 22 c0 | 09 21 c2 c3 1c 1d 1e 06 |vent) ".|.!......|
|00000750| c7 0e 06 21 ab 8e c8 0e | 06 21 14 c9 0e 06 c7 0e |...!....|.!......|
|00000760| 06 21 5c 22 88 0d ab 8e | ca 09 21 11 cb 09 21 ab |.!\"....|..!...!.|
|00000770| 74 c3 89 15 ac 72 c7 0e | 06 21 ab 86 c9 0e 06 0c |t....r..|.!......|
|00000780| 5c 22 88 0e 06 c0 09 21 | 3d ad 90 cc 0e 06 21 ad |\".....!|=.....!.|
|00000790| 8a cc 0e 06 21 cd 0e 06 | 21 09 5c 22 2b 87 22 20 |....!...|!.\"+." |
|000007a0| 5b 65 76 65 6e 74 2d 67 | 6c 79 70 68 2d 65 78 74 |[event-g|lyph-ext|
|000007b0| 65 6e 74 20 65 76 65 6e | 74 20 74 20 6e 69 6c 20 |ent even|t t nil |
|000007c0| 75 70 2d 67 6c 79 70 68 | 20 6d 6f 75 73 65 2d 64 |up-glyph| mouse-d|
|000007d0| 6f 77 6e 20 65 78 74 65 | 6e 74 20 61 6e 6e 6f 74 |own exte|nt annot|
|000007e0| 61 74 69 6f 6e 2d 64 6f | 77 6e 2d 67 6c 79 70 68 |ation-do|wn-glyph|
|000007f0| 20 61 6e 6e 6f 74 61 74 | 69 6f 6e 2d 67 6c 79 70 | annotat|ion-glyp|
|00000800| 68 20 73 65 74 2d 61 6e | 6e 6f 74 61 74 69 6f 6e |h set-an|notation|
|00000810| 2d 67 6c 79 70 68 20 6e | 65 78 74 2d 65 76 65 6e |-glyph n|ext-even|
|00000820| 74 20 62 75 74 74 6f 6e | 2d 72 65 6c 65 61 73 65 |t button|-release|
|00000830| 2d 65 76 65 6e 74 2d 70 | 20 61 6e 6e 6f 74 61 74 |-event-p| annotat|
|00000840| 69 6f 6e 2d 61 63 74 69 | 6f 6e 20 61 6e 6e 6f 74 |ion-acti|on annot|
|00000850| 61 74 69 6f 6e 2d 64 61 | 74 61 5d 20 35 20 6e 69 |ation-da|ta] 5 ni|
|00000860| 6c 20 22 65 22 5d 5d 20 | 32 29 0a 28 66 73 65 74 |l "e"]] |2).(fset|
|00000870| 20 27 6d 61 6b 65 2d 61 | 6e 6e 6f 74 61 74 69 6f | 'make-a|nnotatio|
|00000880| 6e 20 23 5b 28 67 6c 79 | 70 68 20 26 6f 70 74 69 |n #[(gly|ph &opti|
|00000890| 6f 6e 61 6c 20 70 6f 73 | 20 6c 61 79 6f 75 74 20 |onal pos| layout |
|000008a0| 62 75 66 66 65 72 20 77 | 69 74 68 2d 65 76 65 6e |buffer w|ith-even|
|000008b0| 74 20 64 2d 67 6c 79 70 | 68 20 72 69 67 68 74 70 |t d-glyp|h rightp|
|000008c0| 29 20 22 c0 19 5c 6e ac | 84 70 12 aa 84 c3 5c 6e |) "..\n.|.p....\n|
|000008d0| 21 12 0c ac 87 8a 5c 6e | 71 88 60 14 29 0d ac 82 |!.....\n|q.`.)...|
|000008e0| c6 15 0e 07 ab 8c c8 0e | 07 21 ac 86 c9 0e 07 21 |........|.!.....!|
|000008f0| 16 07 0e 5c 6e ab 8c c8 | 0e 5c 6e 21 ac 86 c9 0e |...\n...|.\n!....|
|00000900| 5c 6e 21 16 5c 6e cb 0c | 89 5c 6e 23 11 cc 09 21 |\n!.\n..|.\n#...!|
|00000910| 88 cd 09 0c 89 23 88 0e | 0e ab 89 cf 09 0e 07 0d |.....#..|........|
|00000920| 23 88 aa 87 d0 09 0e 07 | 0d 23 88 d1 09 d2 d3 c0 |#.......|.#......|
|00000930| 89 89 0e 07 0e 5c 6e 0e | 0e 26 06 23 88 d1 09 d4 |.....\n.|.&.#....|
|00000940| d5 23 88 d1 09 d6 d5 23 | 88 d1 09 d7 d5 23 88 0e |.#.....#|.....#..|
|00000950| 18 ab 89 d1 09 d9 0e 1a | 23 88 aa 87 d1 09 d9 0e |........|#.......|
|00000960| 1b 23 88 dc dd 09 5c 22 | 88 09 29 87 22 20 5b 6e |.#....\"|..)." [n|
|00000970| 69 6c 20 6e 65 77 2d 61 | 6e 6e 6f 74 61 74 69 6f |il new-a|nnotatio|
|00000980| 6e 20 62 75 66 66 65 72 | 20 67 65 74 2d 62 75 66 |n buffer| get-buf|
|00000990| 66 65 72 20 70 6f 73 20 | 6c 61 79 6f 75 74 20 77 |fer pos |layout w|
|000009a0| 68 69 74 65 73 70 61 63 | 65 20 67 6c 79 70 68 20 |hitespac|e glyph |
|000009b0| 67 6c 79 70 68 70 20 6d | 61 6b 65 2d 67 6c 79 70 |glyphp m|ake-glyp|
|000009c0| 68 20 64 2d 67 6c 79 70 | 68 20 6d 61 6b 65 2d 65 |h d-glyp|h make-e|
|000009d0| 78 74 65 6e 74 20 64 65 | 74 61 63 68 2d 65 78 74 |xtent de|tach-ext|
|000009e0| 65 6e 74 20 73 65 74 2d | 65 78 74 65 6e 74 2d 65 |ent set-|extent-e|
|000009f0| 6e 64 70 6f 69 6e 74 73 | 20 72 69 67 68 74 70 20 |ndpoints| rightp |
|00000a00| 73 65 74 2d 65 78 74 65 | 6e 74 2d 65 6e 64 2d 67 |set-exte|nt-end-g|
|00000a10| 6c 79 70 68 20 73 65 74 | 2d 65 78 74 65 6e 74 2d |lyph set|-extent-|
|00000a20| 62 65 67 69 6e 2d 67 6c | 79 70 68 20 73 65 74 2d |begin-gl|yph set-|
|00000a30| 65 78 74 65 6e 74 2d 70 | 72 6f 70 65 72 74 79 20 |extent-p|roperty |
|00000a40| 61 6e 6e 6f 74 61 74 69 | 6f 6e 20 76 65 63 74 6f |annotati|on vecto|
|00000a50| 72 20 65 6e 64 2d 63 6c | 6f 73 65 64 20 74 20 73 |r end-cl|osed t s|
|00000a60| 74 61 72 74 2d 6f 70 65 | 6e 20 64 75 70 6c 69 63 |tart-ope|n duplic|
|00000a70| 61 62 6c 65 20 77 69 74 | 68 2d 65 76 65 6e 74 20 |able wit|h-event |
|00000a80| 6b 65 79 6d 61 70 20 61 | 6e 6e 6f 74 61 74 69 6f |keymap a|nnotatio|
|00000a90| 6e 2d 6c 6f 63 61 6c 2d | 6d 61 70 2d 77 69 74 68 |n-local-|map-with|
|00000aa0| 2d 65 76 65 6e 74 20 61 | 6e 6e 6f 74 61 74 69 6f |-event a|nnotatio|
|00000ab0| 6e 2d 6c 6f 63 61 6c 2d | 6d 61 70 2d 64 65 66 61 |n-local-|map-defa|
|00000ac0| 75 6c 74 20 72 75 6e 2d | 68 6f 6f 6b 2d 77 69 74 |ult run-|hook-wit|
|00000ad0| 68 2d 61 72 67 73 20 6d | 61 6b 65 2d 61 6e 6e 6f |h-args m|ake-anno|
|00000ae0| 74 61 74 69 6f 6e 2d 68 | 6f 6f 6b 5d 20 31 30 20 |tation-h|ook] 10 |
|00000af0| 22 5c 0a 43 72 65 61 74 | 65 20 61 20 6d 61 72 67 |"\.Creat|e a marg|
|00000b00| 69 6e 61 6c 20 61 6e 6e | 6f 74 61 74 69 6f 6e 20 |inal ann|otation |
|00000b10| 77 69 74 68 20 73 79 6d | 62 6f 6c 20 47 4c 59 50 |with sym|bol GLYP|
|00000b20| 48 20 61 74 20 70 6f 73 | 69 74 69 6f 6e 20 50 4f |H at pos|ition PO|
|00000b30| 53 2e 0a 47 4c 59 50 48 | 20 6d 61 79 20 62 65 20 |S..GLYPH| may be |
|00000b40| 65 69 74 68 65 72 20 61 | 20 70 69 78 6d 61 70 20 |either a| pixmap |
|00000b50| 6f 62 6a 65 63 74 20 6f | 72 20 61 20 73 74 72 69 |object o|r a stri|
|00000b60| 6e 67 2e 20 20 55 73 65 | 20 6c 61 79 6f 75 74 20 |ng. Use| layout |
|00000b70| 70 6f 6c 69 63 79 0a 4c | 41 59 4f 55 54 20 61 6e |policy.L|AYOUT an|
|00000b80| 64 20 70 6c 61 63 65 20 | 74 68 65 20 61 6e 6e 6f |d place |the anno|
|00000b90| 74 61 74 69 6f 6e 20 69 | 6e 20 62 75 66 66 65 72 |tation i|n buffer|
|00000ba0| 20 42 55 46 46 45 52 2e | 20 20 49 66 20 50 4f 53 | BUFFER.| If POS|
|00000bb0| 20 69 73 20 6e 69 6c 2c | 20 70 6f 69 6e 74 20 69 | is nil,| point i|
|00000bc0| 73 0a 75 73 65 64 2e 20 | 20 49 66 20 4c 41 59 4f |s.used. | If LAYO|
|00000bd0| 55 54 20 69 73 20 6e 69 | 6c 2c 20 60 77 68 69 74 |UT is ni|l, `whit|
|00000be0| 65 73 70 61 63 65 27 20 | 69 73 20 75 73 65 64 2e |espace' |is used.|
|00000bf0| 20 20 49 66 20 42 55 46 | 46 45 52 20 69 73 20 6e | If BUF|FER is n|
|00000c00| 69 6c 2c 20 74 68 65 0a | 63 75 72 72 65 6e 74 20 |il, the.|current |
|00000c10| 62 75 66 66 65 72 20 69 | 73 20 75 73 65 64 2e 20 |buffer i|s used. |
|00000c20| 20 49 66 20 57 49 54 48 | 2d 45 56 45 4e 54 20 69 | If WITH|-EVENT i|
|00000c30| 73 20 6e 6f 6e 2d 6e 69 | 6c 2c 20 74 68 65 6e 20 |s non-ni|l, then |
|00000c40| 77 68 65 6e 20 61 6e 20 | 61 6e 6e 6f 74 61 74 69 |when an |annotati|
|00000c50| 6f 6e 0a 69 73 20 61 63 | 74 69 76 61 74 65 64 2c |on.is ac|tivated,|
|00000c60| 20 74 68 65 20 74 72 69 | 67 67 65 72 69 6e 67 20 | the tri|ggering |
|00000c70| 65 76 65 6e 74 20 69 73 | 20 70 61 73 73 65 64 20 |event is| passed |
|00000c80| 61 73 20 74 68 65 20 73 | 65 63 6f 6e 64 20 61 72 |as the s|econd ar|
|00000c90| 67 20 74 6f 20 74 68 65 | 0a 61 6e 6e 6f 74 61 74 |g to the|.annotat|
|00000ca0| 69 6f 6e 20 66 75 6e 63 | 74 69 6f 6e 2e 20 20 49 |ion func|tion. I|
|00000cb0| 66 20 44 2d 47 4c 59 50 | 48 20 69 73 20 6e 6f 6e |f D-GLYP|H is non|
|00000cc0| 2d 6e 69 6c 20 74 68 65 | 6e 20 69 74 20 69 73 20 |-nil the|n it is |
|00000cd0| 75 73 65 64 20 61 73 20 | 74 68 65 20 67 6c 79 70 |used as |the glyp|
|00000ce0| 68 20 0a 74 68 61 74 20 | 77 69 6c 6c 20 62 65 20 |h .that |will be |
|00000cf0| 64 69 73 70 6c 61 79 65 | 64 20 77 68 65 6e 20 62 |displaye|d when b|
|00000d00| 75 74 74 6f 6e 31 20 69 | 73 20 64 6f 77 6e 2e 20 |utton1 i|s down. |
|00000d10| 20 49 66 20 52 49 47 48 | 54 50 20 69 73 20 6e 6f | If RIGH|TP is no|
|00000d20| 6e 2d 6e 69 6c 20 74 68 | 65 6e 0a 74 68 65 20 67 |n-nil th|en.the g|
|00000d30| 6c 79 70 68 20 77 69 6c | 6c 20 62 65 20 64 69 73 |lyph wil|l be dis|
|00000d40| 70 6c 61 79 65 64 20 6f | 6e 20 74 68 65 20 72 69 |played o|n the ri|
|00000d50| 67 68 74 20 73 69 64 65 | 20 6f 66 20 74 68 65 20 |ght side| of the |
|00000d60| 62 75 66 66 65 72 22 5d | 29 0a 28 62 79 74 65 2d |buffer"]|).(byte-|
|00000d70| 63 6f 64 65 20 22 c0 c1 | 4d 88 c2 c0 c1 5c 22 87 |code "..|M....\".|
|00000d80| 22 20 5b 6d 61 6b 65 2d | 67 72 61 70 68 69 63 2d |" [make-|graphic-|
|00000d90| 61 6e 6e 6f 74 61 74 69 | 6f 6e 20 6d 61 6b 65 2d |annotati|on make-|
|00000da0| 61 6e 6e 6f 74 61 74 69 | 6f 6e 20 6d 61 6b 65 2d |annotati|on make-|
|00000db0| 6f 62 73 6f 6c 65 74 65 | 5d 20 33 29 0a 28 66 73 |obsolete|] 3).(fs|
|00000dc0| 65 74 20 27 64 65 6c 65 | 74 65 2d 61 6e 6e 6f 74 |et 'dele|te-annot|
|00000dd0| 61 74 69 6f 6e 20 23 5b | 28 61 6e 6e 6f 74 61 74 |ation #[|(annotat|
|00000de0| 69 6f 6e 29 20 22 c0 09 | 21 ac 85 c2 c3 09 5c 22 |ion) "..|!.....\"|
|00000df0| 87 c4 c5 09 5c 22 88 c6 | 09 21 88 c7 c8 21 87 22 |....\"..|.!...!."|
|00000e00| 20 5b 61 6e 6e 6f 74 61 | 74 69 6f 6e 70 20 61 6e | [annota|tionp an|
|00000e10| 6e 6f 74 61 74 69 6f 6e | 20 65 72 72 6f 72 20 22 |notation| error "|
|00000e20| 25 73 20 69 73 20 6e 6f | 74 20 61 6e 20 61 6e 6e |%s is no|t an ann|
|00000e30| 6f 74 61 74 69 6f 6e 22 | 20 72 75 6e 2d 68 6f 6f |otation"| run-hoo|
|00000e40| 6b 2d 77 69 74 68 2d 61 | 72 67 73 20 62 65 66 6f |k-with-a|rgs befo|
|00000e50| 72 65 2d 64 65 6c 65 74 | 65 2d 61 6e 6e 6f 74 61 |re-delet|e-annota|
|00000e60| 74 69 6f 6e 2d 68 6f 6f | 6b 20 64 65 6c 65 74 65 |tion-hoo|k delete|
|00000e70| 2d 65 78 74 65 6e 74 20 | 72 75 6e 2d 68 6f 6f 6b |-extent |run-hook|
|00000e80| 73 20 61 66 74 65 72 2d | 64 65 6c 65 74 65 2d 61 |s after-|delete-a|
|00000e90| 6e 6e 6f 74 61 74 69 6f | 6e 2d 68 6f 6f 6b 5d 20 |nnotatio|n-hook] |
|00000ea0| 33 20 22 5c 0a 52 65 6d | 6f 76 65 20 41 4e 4e 4f |3 "\.Rem|ove ANNO|
|00000eb0| 54 41 54 49 4f 4e 20 66 | 72 6f 6d 20 69 74 73 20 |TATION f|rom its |
|00000ec0| 62 75 66 66 65 72 2e 20 | 20 54 68 69 73 20 64 6f |buffer. | This do|
|00000ed0| 65 73 20 6e 6f 74 20 6d | 6f 64 69 66 79 20 74 68 |es not m|odify th|
|00000ee0| 65 20 62 75 66 66 65 72 | 20 74 65 78 74 2e 22 5d |e buffer| text."]|
|00000ef0| 29 0a 28 66 73 65 74 20 | 27 61 6e 6e 6f 74 61 74 |).(fset |'annotat|
|00000f00| 69 6f 6e 70 20 23 5b 28 | 61 6e 6e 6f 74 61 74 69 |ionp #[(|annotati|
|00000f10| 6f 6e 29 20 22 c0 09 21 | ad 86 c2 09 c1 5c 22 3f |on) "..!|.....\"?|
|00000f20| 3f 87 22 20 5b 65 78 74 | 65 6e 74 2d 6c 69 76 65 |?." [ext|ent-live|
|00000f30| 2d 70 20 61 6e 6e 6f 74 | 61 74 69 6f 6e 20 65 78 |-p annot|ation ex|
|00000f40| 74 65 6e 74 2d 70 72 6f | 70 65 72 74 79 5d 20 33 |tent-pro|perty] 3|
|00000f50| 20 22 5c 0a 54 20 69 66 | 20 4f 42 4a 45 43 54 20 | "\.T if| OBJECT |
|00000f60| 69 73 20 61 6e 20 61 6e | 6e 6f 74 61 74 69 6f 6e |is an an|notation|
|00000f70| 22 5d 29 0a 28 66 73 65 | 74 20 27 61 6e 6e 6f 74 |"]).(fse|t 'annot|
|00000f80| 61 74 69 6f 6e 2d 76 69 | 73 69 62 6c 65 20 23 5b |ation-vi|sible #[|
|00000f90| 28 61 6e 6e 6f 74 61 74 | 69 6f 6e 29 20 22 c0 09 |(annotat|ion) "..|
|00000fa0| 21 ac 85 c2 c3 09 5c 22 | 87 c4 09 c5 5c 22 3f 87 |!.....\"|....\"?.|
|00000fb0| 22 20 5b 61 6e 6e 6f 74 | 61 74 69 6f 6e 70 20 61 |" [annot|ationp a|
|00000fc0| 6e 6e 6f 74 61 74 69 6f | 6e 20 65 72 72 6f 72 20 |nnotatio|n error |
|00000fd0| 22 25 73 20 69 73 20 6e | 6f 74 20 61 6e 20 61 6e |"%s is n|ot an an|
|00000fe0| 6e 6f 74 61 74 69 6f 6e | 22 20 65 78 74 65 6e 74 |notation|" extent|
|00000ff0| 2d 70 72 6f 70 65 72 74 | 79 20 67 6c 79 70 68 2d |-propert|y glyph-|
|00001000| 69 6e 76 69 73 69 62 6c | 65 5d 20 33 20 22 5c 0a |invisibl|e] 3 "\.|
|00001010| 54 20 69 66 20 74 68 65 | 72 65 20 69 73 20 65 6e |T if the|re is en|
|00001020| 6f 75 67 68 20 61 76 61 | 69 6c 61 62 6c 65 20 73 |ough ava|ilable s|
|00001030| 70 61 63 65 20 74 6f 20 | 64 69 73 70 6c 61 79 20 |pace to |display |
|00001040| 41 4e 4e 4f 54 41 54 49 | 4f 4e 2e 22 5d 29 0a 28 |ANNOTATI|ON."]).(|
|00001050| 66 73 65 74 20 27 61 6e | 6e 6f 74 61 74 69 6f 6e |fset 'an|notation|
|00001060| 2d 61 74 20 23 5b 28 26 | 6f 70 74 69 6f 6e 61 6c |-at #[(&|optional|
|00001070| 20 70 6f 73 20 62 75 66 | 66 65 72 29 20 22 c0 09 | pos buf|fer) "..|
|00001080| 5c 6e 5c 22 40 87 22 20 | 5b 61 6e 6e 6f 74 61 74 |\n\"@." |[annotat|
|00001090| 69 6f 6e 73 2d 61 74 20 | 70 6f 73 20 62 75 66 66 |ions-at |pos buff|
|000010a0| 65 72 5d 20 33 20 22 5c | 0a 46 69 6e 64 20 61 6e |er] 3 "\|.Find an|
|000010b0| 6e 6f 74 61 74 69 6f 6e | 20 61 74 20 50 4f 53 20 |notation| at POS |
|000010c0| 69 6e 20 42 55 46 46 45 | 52 2e 20 20 42 55 46 46 |in BUFFE|R. BUFF|
|000010d0| 45 52 20 64 65 66 61 75 | 6c 74 73 20 74 6f 20 74 |ER defau|lts to t|
|000010e0| 68 65 20 63 75 72 72 65 | 6e 74 20 62 75 66 66 65 |he curre|nt buffe|
|000010f0| 72 2e 0a 50 4f 53 20 64 | 65 66 61 75 6c 74 73 20 |r..POS d|efaults |
|00001100| 74 6f 20 70 6f 69 6e 74 | 20 69 6e 20 42 55 46 46 |to point| in BUFF|
|00001110| 45 52 22 5d 29 0a 28 66 | 73 65 74 20 27 61 6e 6e |ER"]).(f|set 'ann|
|00001120| 6f 74 61 74 69 6f 6e 2d | 6c 61 79 6f 75 74 20 23 |otation-|layout #|
|00001130| 5b 28 61 6e 6e 6f 74 61 | 74 69 6f 6e 29 20 22 c0 |[(annota|tion) ".|
|00001140| 09 21 ac 85 c2 c3 09 5c | 22 87 c4 09 21 87 22 20 |.!.....\|"...!." |
|00001150| 5b 61 6e 6e 6f 74 61 74 | 69 6f 6e 70 20 61 6e 6e |[annotat|ionp ann|
|00001160| 6f 74 61 74 69 6f 6e 20 | 65 72 72 6f 72 20 22 25 |otation |error "%|
|00001170| 73 20 69 73 20 6e 6f 74 | 20 61 6e 20 61 6e 6e 6f |s is not| an anno|
|00001180| 74 61 74 69 6f 6e 22 20 | 65 78 74 65 6e 74 2d 6c |tation" |extent-l|
|00001190| 61 79 6f 75 74 5d 20 33 | 20 22 5c 0a 52 65 74 75 |ayout] 3| "\.Retu|
|000011a0| 72 6e 20 74 68 65 20 6c | 61 79 6f 75 74 20 70 6f |rn the l|ayout po|
|000011b0| 6c 69 63 79 20 6f 66 20 | 61 6e 6e 6f 74 61 74 69 |licy of |annotati|
|000011c0| 6f 6e 20 41 4e 4e 4f 54 | 41 54 49 4f 4e 2e 20 20 |on ANNOT|ATION. |
|000011d0| 54 68 65 20 6c 61 79 6f | 75 74 20 70 6f 6c 69 63 |The layo|ut polic|
|000011e0| 79 0a 69 73 20 73 65 74 | 20 75 73 69 6e 67 20 60 |y.is set| using `|
|000011f0| 73 65 74 2d 61 6e 6e 6f | 74 61 74 69 6f 6e 2d 6c |set-anno|tation-l|
|00001200| 61 79 6f 75 74 27 2e 22 | 5d 29 0a 28 66 73 65 74 |ayout'."|]).(fset|
|00001210| 20 27 61 6e 6e 6f 74 61 | 74 69 6f 6e 2d 73 69 64 | 'annota|tion-sid|
|00001220| 65 20 23 5b 28 61 6e 6e | 6f 74 61 74 69 6f 6e 29 |e #[(ann|otation)|
|00001230| 20 22 c0 09 c1 5c 22 c2 | 48 ab 82 c3 87 c4 87 22 | "...\".|H......"|
|00001240| 20 5b 65 78 74 65 6e 74 | 2d 70 72 6f 70 65 72 74 | [extent|-propert|
|00001250| 79 20 61 6e 6e 6f 74 61 | 74 69 6f 6e 20 35 20 72 |y annota|tion 5 r|
|00001260| 69 67 68 74 20 6c 65 66 | 74 5d 20 33 20 22 5c 0a |ight lef|t] 3 "\.|
|00001270| 52 65 74 75 72 6e 20 74 | 68 65 20 73 69 64 65 20 |Return t|he side |
|00001280| 6f 66 20 74 68 65 20 62 | 75 66 66 65 72 20 74 68 |of the b|uffer th|
|00001290| 65 20 61 6e 6e 6f 74 61 | 74 69 6f 6e 20 69 73 20 |e annota|tion is |
|000012a0| 64 69 73 70 6c 61 79 65 | 64 20 6f 6e 2e 0a 52 65 |displaye|d on..Re|
|000012b0| 74 75 72 6e 20 76 61 6c | 75 65 20 69 73 20 65 69 |turn val|ue is ei|
|000012c0| 74 68 65 72 20 27 6c 65 | 66 74 20 6f 72 20 27 72 |ther 'le|ft or 'r|
|000012d0| 69 67 68 74 22 5d 29 0a | 28 66 73 65 74 20 27 73 |ight"]).|(fset 's|
|000012e0| 65 74 2d 61 6e 6e 6f 74 | 61 74 69 6f 6e 2d 6c 61 |et-annot|ation-la|
|000012f0| 79 6f 75 74 20 23 5b 28 | 61 6e 6e 6f 74 61 74 69 |yout #[(|annotati|
|00001300| 6f 6e 20 6c 61 79 6f 75 | 74 29 20 22 c0 09 21 ac |on layou|t) "..!.|
|00001310| 85 c2 c3 09 5c 22 87 c4 | 09 0d 5c 22 87 22 20 5b |....\"..|..\"." [|
|00001320| 61 6e 6e 6f 74 61 74 69 | 6f 6e 70 20 61 6e 6e 6f |annotati|onp anno|
|00001330| 74 61 74 69 6f 6e 20 65 | 72 72 6f 72 20 22 25 73 |tation e|rror "%s|
|00001340| 20 69 73 20 6e 6f 74 20 | 61 6e 20 61 6e 6e 6f 74 | is not |an annot|
|00001350| 61 74 69 6f 6e 22 20 73 | 65 74 2d 65 78 74 65 6e |ation" s|et-exten|
|00001360| 74 2d 6c 61 79 6f 75 74 | 20 6c 61 79 6f 75 74 5d |t-layout| layout]|
|00001370| 20 33 20 22 5c 0a 53 65 | 74 20 74 68 65 20 6c 61 | 3 "\.Se|t the la|
|00001380| 79 6f 75 74 20 70 6f 6c | 69 63 79 20 6f 66 20 41 |yout pol|icy of A|
|00001390| 4e 4e 4f 54 41 54 49 4f | 4e 20 74 6f 20 4c 41 59 |NNOTATIO|N to LAY|
|000013a0| 4f 55 54 2e 20 20 54 68 | 65 20 66 75 6e 63 74 69 |OUT. Th|e functi|
|000013b0| 6f 6e 0a 60 61 6e 6e 6f | 74 61 74 69 6f 6e 2d 6c |on.`anno|tation-l|
|000013c0| 61 79 6f 75 74 27 20 72 | 65 74 75 72 6e 73 20 74 |ayout' r|eturns t|
|000013d0| 68 65 20 63 75 72 72 65 | 6e 74 20 6c 61 79 6f 75 |he curre|nt layou|
|000013e0| 74 20 70 6f 6c 69 63 79 | 2e 22 5d 29 0a 28 6d 61 |t policy|."]).(ma|
|000013f0| 6b 65 2d 6f 62 73 6f 6c | 65 74 65 20 27 61 6e 6e |ke-obsol|ete 'ann|
|00001400| 6f 74 61 74 69 6f 6e 2d | 74 79 70 65 20 22 54 68 |otation-|type "Th|
|00001410| 69 73 20 66 75 6e 63 74 | 69 6f 6e 20 6e 6f 20 6c |is funct|ion no l|
|00001420| 6f 6e 67 65 72 20 68 61 | 73 20 61 6e 79 20 6d 65 |onger ha|s any me|
|00001430| 61 6e 69 6e 67 2e 22 29 | 0a 28 66 73 65 74 20 27 |aning.")|.(fset '|
|00001440| 61 6e 6e 6f 74 61 74 69 | 6f 6e 2d 77 69 64 74 68 |annotati|on-width|
|00001450| 20 23 5b 28 61 6e 6e 6f | 74 61 74 69 6f 6e 29 20 | #[(anno|tation) |
|00001460| 22 c0 09 21 ac 85 c2 c3 | 09 5c 22 87 c4 c5 09 21 |"..!....|.\"....!|
|00001470| 21 87 22 20 5b 61 6e 6e | 6f 74 61 74 69 6f 6e 70 |!." [ann|otationp|
|00001480| 20 61 6e 6e 6f 74 61 74 | 69 6f 6e 20 65 72 72 6f | annotat|ion erro|
|00001490| 72 20 22 25 73 20 69 73 | 20 6e 6f 74 20 61 6e 20 |r "%s is| not an |
|000014a0| 61 6e 6e 6f 74 61 74 69 | 6f 6e 22 20 67 6c 79 70 |annotati|on" glyp|
|000014b0| 68 2d 77 69 64 74 68 20 | 61 6e 6e 6f 74 61 74 69 |h-width |annotati|
|000014c0| 6f 6e 2d 67 6c 79 70 68 | 5d 20 33 20 22 5c 0a 52 |on-glyph|] 3 "\.R|
|000014d0| 65 74 75 72 6e 20 74 68 | 65 20 77 69 64 74 68 20 |eturn th|e width |
|000014e0| 6f 66 20 74 68 65 20 61 | 6e 6e 6f 74 61 74 69 6f |of the a|nnotatio|
|000014f0| 6e 20 41 4e 4e 4f 54 41 | 54 49 4f 4e 20 69 6e 20 |n ANNOTA|TION in |
|00001500| 70 69 78 65 6c 73 2e 22 | 5d 29 0a 28 66 73 65 74 |pixels."|]).(fset|
|00001510| 20 27 61 6e 6e 6f 74 61 | 74 69 6f 6e 2d 67 6c 79 | 'annota|tion-gly|
|00001520| 70 68 20 23 5b 28 61 6e | 6e 6f 74 61 74 69 6f 6e |ph #[(an|notation|
|00001530| 29 20 22 c0 09 21 ac 85 | c2 c3 09 5c 22 87 c4 09 |) "..!..|...\"...|
|00001540| c1 5c 22 c5 48 87 22 20 | 5b 61 6e 6e 6f 74 61 74 |.\".H." |[annotat|
|00001550| 69 6f 6e 70 20 61 6e 6e | 6f 74 61 74 69 6f 6e 20 |ionp ann|otation |
|00001560| 65 72 72 6f 72 20 22 25 | 73 20 69 73 20 6e 6f 74 |error "%|s is not|
|00001570| 20 61 6e 20 61 6e 6e 6f | 74 61 74 69 6f 6e 22 20 | an anno|tation" |
|00001580| 65 78 74 65 6e 74 2d 70 | 72 6f 70 65 72 74 79 20 |extent-p|roperty |
|00001590| 33 5d 20 33 20 22 5c 0a | 49 66 20 41 4e 4e 4f 54 |3] 3 "\.|If ANNOT|
|000015a0| 41 54 49 4f 4e 20 69 73 | 20 6f 66 20 74 79 70 65 |ATION is| of type|
|000015b0| 20 60 73 74 72 69 6e 67 | 27 20 72 65 74 75 72 6e | `string|' return|
|000015c0| 20 74 68 65 20 73 74 72 | 69 6e 67 2e 20 20 4f 74 | the str|ing. Ot|
|000015d0| 68 65 72 77 69 73 65 2c | 20 72 65 74 75 72 6e 0a |herwise,| return.|
|000015e0| 74 68 65 20 62 69 74 6d | 61 70 20 6f 72 20 70 69 |the bitm|ap or pi|
|000015f0| 78 6d 61 70 20 6f 62 6a | 65 63 74 20 6f 66 20 74 |xmap obj|ect of t|
|00001600| 68 65 20 67 6c 79 70 68 | 20 72 65 70 72 65 73 65 |he glyph| represe|
|00001610| 6e 74 69 6e 67 20 41 4e | 4e 4f 54 41 54 49 4f 4e |nting AN|NOTATION|
|00001620| 2e 0a 54 68 65 20 67 6c | 79 70 68 20 69 73 20 73 |..The gl|yph is s|
|00001630| 65 74 20 75 73 69 6e 67 | 20 60 73 65 74 2d 61 6e |et using| `set-an|
|00001640| 6e 6f 74 61 74 69 6f 6e | 2d 67 6c 79 70 68 27 2e |notation|-glyph'.|
|00001650| 22 5d 29 0a 28 66 73 65 | 74 20 27 73 65 74 2d 61 |"]).(fse|t 'set-a|
|00001660| 6e 6e 6f 74 61 74 69 6f | 6e 2d 67 6c 79 70 68 20 |nnotatio|n-glyph |
|00001670| 23 5b 28 61 6e 6e 6f 74 | 61 74 69 6f 6e 20 67 6c |#[(annot|ation gl|
|00001680| 79 70 68 20 26 6f 70 74 | 69 6f 6e 61 6c 20 6c 61 |yph &opt|ional la|
|00001690| 79 6f 75 74 20 72 69 67 | 68 74 70 29 20 22 c0 09 |yout rig|htp) "..|
|000016a0| 21 ac 85 c2 c3 09 5c 22 | 87 0c ac 84 c5 09 21 14 |!.....\"|......!.|
|000016b0| 0e 06 c7 3d ac 8d 0e 06 | c8 3d ac 90 c9 09 21 c7 |...=....|.=....!.|
|000016c0| 3d ab 89 ca 09 0e 0b 0c | 23 88 aa 87 cc 09 0e 0b |=.......|#.......|
|000016d0| 0c 23 88 cd 09 c1 5c 22 | ce 0e 0b 49 88 cd 09 c1 |.#....\"|...I....|
|000016e0| 5c 22 cf 0e 06 49 88 d0 | 09 21 87 22 20 5b 61 6e |\"...I..|.!." [an|
|000016f0| 6e 6f 74 61 74 69 6f 6e | 70 20 61 6e 6e 6f 74 61 |notation|p annota|
|00001700| 74 69 6f 6e 20 65 72 72 | 6f 72 20 22 25 73 20 69 |tion err|or "%s i|
|00001710| 73 20 6e 6f 74 20 61 6e | 20 61 6e 6e 6f 74 61 74 |s not an| annotat|
|00001720| 69 6f 6e 22 20 6c 61 79 | 6f 75 74 20 65 78 74 65 |ion" lay|out exte|
|00001730| 6e 74 2d 6c 61 79 6f 75 | 74 20 72 69 67 68 74 70 |nt-layou|t rightp|
|00001740| 20 72 69 67 68 74 20 6c | 65 66 74 20 61 6e 6e 6f | right l|eft anno|
|00001750| 74 61 74 69 6f 6e 2d 73 | 69 64 65 20 73 65 74 2d |tation-s|ide set-|
|00001760| 65 78 74 65 6e 74 2d 65 | 6e 64 2d 67 6c 79 70 68 |extent-e|nd-glyph|
|00001770| 20 67 6c 79 70 68 20 73 | 65 74 2d 65 78 74 65 6e | glyph s|et-exten|
|00001780| 74 2d 62 65 67 69 6e 2d | 67 6c 79 70 68 20 65 78 |t-begin-|glyph ex|
|00001790| 74 65 6e 74 2d 70 72 6f | 70 65 72 74 79 20 33 20 |tent-pro|perty 3 |
|000017a0| 35 20 61 6e 6e 6f 74 61 | 74 69 6f 6e 2d 67 6c 79 |5 annota|tion-gly|
|000017b0| 70 68 5d 20 34 20 22 5c | 0a 53 65 74 20 74 68 65 |ph] 4 "\|.Set the|
|000017c0| 20 72 65 70 72 65 73 65 | 6e 74 61 74 69 6f 6e 20 | represe|ntation |
|000017d0| 6f 66 20 41 4e 4e 4f 54 | 41 54 49 4f 4e 20 74 6f |of ANNOT|ATION to|
|000017e0| 20 47 4c 59 50 48 2e 20 | 20 47 4c 59 50 48 20 6d | GLYPH. | GLYPH m|
|000017f0| 61 79 20 62 65 20 65 69 | 74 68 65 72 0a 61 20 73 |ay be ei|ther.a s|
|00001800| 74 72 69 6e 67 20 6f 72 | 20 61 20 62 69 74 6d 61 |tring or| a bitma|
|00001810| 70 2f 70 69 78 6d 61 70 | 20 6f 62 6a 65 63 74 2e |p/pixmap| object.|
|00001820| 20 20 49 66 20 4c 41 59 | 4f 55 54 20 69 73 20 6e | If LAY|OUT is n|
|00001830| 6f 6e 2d 6e 69 6c 20 73 | 65 74 20 74 68 65 20 6c |on-nil s|et the l|
|00001840| 61 79 6f 75 74 0a 70 6f | 6c 69 63 79 20 6f 66 20 |ayout.po|licy of |
|00001850| 74 68 65 20 61 6e 6e 6f | 74 61 74 69 6f 6e 20 74 |the anno|tation t|
|00001860| 6f 20 4c 41 59 4f 55 54 | 2e 20 20 49 66 20 52 49 |o LAYOUT|. If RI|
|00001870| 47 48 54 50 20 69 73 20 | 65 71 75 61 6c 20 74 6f |GHTP is |equal to|
|00001880| 20 27 6c 65 66 74 20 6f | 72 20 27 72 69 67 68 74 | 'left o|r 'right|
|00001890| 0a 63 68 61 6e 67 65 20 | 74 68 65 20 73 69 64 65 |.change |the side|
|000018a0| 20 6f 66 20 74 68 65 20 | 61 6e 6e 6f 74 61 74 69 | of the |annotati|
|000018b0| 6f 6e 20 74 6f 20 74 68 | 61 74 20 76 61 6c 75 65 |on to th|at value|
|000018c0| 2e 0a 54 68 65 20 66 75 | 6e 63 74 69 6f 6e 20 60 |..The fu|nction `|
|000018d0| 61 6e 6e 6f 74 61 74 69 | 6f 6e 2d 67 6c 79 70 68 |annotati|on-glyph|
|000018e0| 27 20 72 65 74 75 72 6e | 73 20 74 68 65 20 63 75 |' return|s the cu|
|000018f0| 72 72 65 6e 74 20 67 6c | 79 70 68 2e 22 5d 29 0a |rrent gl|yph."]).|
|00001900| 28 66 73 65 74 20 27 61 | 6e 6e 6f 74 61 74 69 6f |(fset 'a|nnotatio|
|00001910| 6e 2d 64 6f 77 6e 2d 67 | 6c 79 70 68 20 23 5b 28 |n-down-g|lyph #[(|
|00001920| 61 6e 6e 6f 74 61 74 69 | 6f 6e 29 20 22 c0 09 21 |annotati|on) "..!|
|00001930| ac 85 c2 c3 09 5c 22 87 | c4 09 c1 5c 22 c5 48 87 |.....\".|...\".H.|
|00001940| 22 20 5b 61 6e 6e 6f 74 | 61 74 69 6f 6e 70 20 61 |" [annot|ationp a|
|00001950| 6e 6e 6f 74 61 74 69 6f | 6e 20 65 72 72 6f 72 20 |nnotatio|n error |
|00001960| 22 25 73 20 69 73 20 6e | 6f 74 20 61 6e 20 61 6e |"%s is n|ot an an|
|00001970| 6e 6f 74 61 74 69 6f 6e | 22 20 65 78 74 65 6e 74 |notation|" extent|
|00001980| 2d 70 72 6f 70 65 72 74 | 79 20 34 5d 20 33 20 22 |-propert|y 4] 3 "|
|00001990| 5c 0a 49 66 20 41 4e 4e | 4f 54 41 54 49 4f 4e 20 |\.If ANN|OTATION |
|000019a0| 69 73 20 6f 66 20 74 79 | 70 65 20 60 73 74 72 69 |is of ty|pe `stri|
|000019b0| 6e 67 27 20 72 65 74 75 | 72 6e 20 74 68 65 20 64 |ng' retu|rn the d|
|000019c0| 6f 77 6e 20 73 74 72 69 | 6e 67 2e 20 20 4f 74 68 |own stri|ng. Oth|
|000019d0| 65 72 77 69 73 65 2c 0a | 72 65 74 75 72 6e 20 74 |erwise,.|return t|
|000019e0| 68 65 20 62 69 74 6d 61 | 70 20 6f 72 20 70 69 78 |he bitma|p or pix|
|000019f0| 6d 61 70 20 6f 62 6a 65 | 63 74 20 6f 66 20 74 68 |map obje|ct of th|
|00001a00| 65 20 64 6f 77 6e 2d 67 | 6c 79 70 68 20 72 65 70 |e down-g|lyph rep|
|00001a10| 72 65 73 65 6e 74 69 6e | 67 20 41 4e 4e 4f 54 41 |resentin|g ANNOTA|
|00001a20| 54 49 4f 4e 2e 0a 54 68 | 65 20 64 6f 77 6e 2d 67 |TION..Th|e down-g|
|00001a30| 6c 79 70 68 20 69 73 20 | 73 65 74 20 75 73 69 6e |lyph is |set usin|
|00001a40| 67 20 60 73 65 74 2d 61 | 6e 6e 6f 74 61 74 69 6f |g `set-a|nnotatio|
|00001a50| 6e 2d 64 6f 77 6e 2d 67 | 6c 79 70 68 27 2e 22 5d |n-down-g|lyph'."]|
|00001a60| 29 0a 28 66 73 65 74 20 | 27 73 65 74 2d 61 6e 6e |).(fset |'set-ann|
|00001a70| 6f 74 61 74 69 6f 6e 2d | 64 6f 77 6e 2d 67 6c 79 |otation-|down-gly|
|00001a80| 70 68 20 23 5b 28 61 6e | 6e 6f 74 61 74 69 6f 6e |ph #[(an|notation|
|00001a90| 20 67 6c 79 70 68 29 20 | 22 c0 09 21 ac 85 c2 c3 | glyph) |"..!....|
|00001aa0| 09 5c 22 87 c4 09 c1 5c | 22 c5 0e 06 49 87 22 20 |.\"....\|"...I." |
|00001ab0| 5b 61 6e 6e 6f 74 61 74 | 69 6f 6e 70 20 61 6e 6e |[annotat|ionp ann|
|00001ac0| 6f 74 61 74 69 6f 6e 20 | 65 72 72 6f 72 20 22 25 |otation |error "%|
|00001ad0| 73 20 69 73 20 6e 6f 74 | 20 61 6e 20 61 6e 6e 6f |s is not| an anno|
|00001ae0| 74 61 74 69 6f 6e 22 20 | 65 78 74 65 6e 74 2d 70 |tation" |extent-p|
|00001af0| 72 6f 70 65 72 74 79 20 | 34 20 67 6c 79 70 68 5d |roperty |4 glyph]|
|00001b00| 20 33 20 22 5c 0a 53 65 | 74 20 74 68 65 20 64 65 | 3 "\.Se|t the de|
|00001b10| 70 72 65 73 73 65 64 20 | 72 65 70 72 65 73 65 6e |pressed |represen|
|00001b20| 74 61 74 69 6f 6e 20 6f | 66 20 41 4e 4e 4f 54 41 |tation o|f ANNOTA|
|00001b30| 54 49 4f 4e 20 74 6f 20 | 47 4c 59 50 48 2e 20 20 |TION to |GLYPH. |
|00001b40| 0a 47 4c 59 50 48 20 6d | 61 79 20 62 65 20 65 69 |.GLYPH m|ay be ei|
|00001b50| 74 68 65 72 20 61 20 73 | 74 72 69 6e 67 20 6f 72 |ther a s|tring or|
|00001b60| 20 61 20 62 69 74 6d 61 | 70 2f 70 69 78 6d 61 70 | a bitma|p/pixmap|
|00001b70| 20 6f 62 6a 65 63 74 2e | 20 0a 54 68 65 20 66 75 | object.| .The fu|
|00001b80| 6e 63 74 69 6f 6e 20 60 | 61 6e 6e 6f 74 61 74 69 |nction `|annotati|
|00001b90| 6f 6e 2d 64 6f 77 6e 2d | 67 6c 79 70 68 27 20 72 |on-down-|glyph' r|
|00001ba0| 65 74 75 72 6e 73 20 74 | 68 65 20 63 75 72 72 65 |eturns t|he curre|
|00001bb0| 6e 74 20 64 6f 77 6e 2d | 67 6c 79 70 68 2e 22 5d |nt down-|glyph."]|
|00001bc0| 29 0a 28 62 79 74 65 2d | 63 6f 64 65 20 22 c0 c1 |).(byte-|code "..|
|00001bd0| 4d 88 c2 c3 4d 88 c4 c0 | c1 5c 22 88 c4 c2 c3 5c |M...M...|.\"....\|
|00001be0| 22 87 22 20 5b 61 6e 6e | 6f 74 61 74 69 6f 6e 2d |"." [ann|otation-|
|00001bf0| 67 72 61 70 68 69 63 20 | 61 6e 6e 6f 74 61 74 69 |graphic |annotati|
|00001c00| 6f 6e 2d 67 6c 79 70 68 | 20 73 65 74 2d 61 6e 6e |on-glyph| set-ann|
|00001c10| 6f 74 61 74 69 6f 6e 2d | 67 72 61 70 68 69 63 20 |otation-|graphic |
|00001c20| 73 65 74 2d 61 6e 6e 6f | 74 61 74 69 6f 6e 2d 67 |set-anno|tation-g|
|00001c30| 6c 79 70 68 20 6d 61 6b | 65 2d 6f 62 73 6f 6c 65 |lyph mak|e-obsole|
|00001c40| 74 65 5d 20 33 29 0a 28 | 66 73 65 74 20 27 61 6e |te] 3).(|fset 'an|
|00001c50| 6e 6f 74 61 74 69 6f 6e | 2d 64 61 74 61 20 23 5b |notation|-data #[|
|00001c60| 28 61 6e 6e 6f 74 61 74 | 69 6f 6e 29 20 22 c0 09 |(annotat|ion) "..|
|00001c70| 21 ac 85 c2 c3 09 5c 22 | 87 c4 09 c1 5c 22 c5 48 |!.....\"|....\".H|
|00001c80| 87 22 20 5b 61 6e 6e 6f | 74 61 74 69 6f 6e 70 20 |." [anno|tationp |
|00001c90| 61 6e 6e 6f 74 61 74 69 | 6f 6e 20 65 72 72 6f 72 |annotati|on error|
|00001ca0| 20 22 25 73 20 69 73 20 | 6e 6f 74 20 61 6e 20 61 | "%s is |not an a|
|00001cb0| 6e 6e 6f 74 61 74 69 6f | 6e 22 20 65 78 74 65 6e |nnotatio|n" exten|
|00001cc0| 74 2d 70 72 6f 70 65 72 | 74 79 20 30 5d 20 33 20 |t-proper|ty 0] 3 |
|00001cd0| 22 5c 0a 52 65 74 75 72 | 6e 20 74 68 65 20 64 61 |"\.Retur|n the da|
|00001ce0| 74 61 20 61 73 73 6f 63 | 69 61 74 65 64 20 77 69 |ta assoc|iated wi|
|00001cf0| 74 68 20 61 6e 6e 6f 74 | 61 74 69 6f 6e 20 41 4e |th annot|ation AN|
|00001d00| 4e 4f 54 41 54 49 4f 4e | 2e 20 20 54 68 65 20 64 |NOTATION|. The d|
|00001d10| 61 74 61 20 69 73 0a 73 | 65 74 20 75 73 69 6e 67 |ata is.s|et using|
|00001d20| 20 60 73 65 74 2d 61 6e | 6e 6f 74 61 74 69 6f 6e | `set-an|notation|
|00001d30| 2d 64 61 74 61 27 2e 22 | 5d 29 0a 28 66 73 65 74 |-data'."|]).(fset|
|00001d40| 20 27 73 65 74 2d 61 6e | 6e 6f 74 61 74 69 6f 6e | 'set-an|notation|
|00001d50| 2d 64 61 74 61 20 23 5b | 28 61 6e 6e 6f 74 61 74 |-data #[|(annotat|
|00001d60| 69 6f 6e 20 64 61 74 61 | 29 20 22 c0 09 21 ac 85 |ion data|) "..!..|
|00001d70| c2 c3 09 5c 22 87 c4 09 | c1 5c 22 c5 0e 06 49 87 |...\"...|.\"...I.|
|00001d80| 22 20 5b 61 6e 6e 6f 74 | 61 74 69 6f 6e 70 20 61 |" [annot|ationp a|
|00001d90| 6e 6e 6f 74 61 74 69 6f | 6e 20 65 72 72 6f 72 20 |nnotatio|n error |
|00001da0| 22 25 73 20 69 73 20 6e | 6f 74 20 61 6e 20 61 6e |"%s is n|ot an an|
|00001db0| 6e 6f 74 61 74 69 6f 6e | 22 20 65 78 74 65 6e 74 |notation|" extent|
|00001dc0| 2d 70 72 6f 70 65 72 74 | 79 20 30 20 64 61 74 61 |-propert|y 0 data|
|00001dd0| 5d 20 33 20 22 5c 0a 53 | 65 74 20 74 68 65 20 64 |] 3 "\.S|et the d|
|00001de0| 61 74 61 20 66 69 65 6c | 64 20 6f 66 20 41 4e 4e |ata fiel|d of ANN|
|00001df0| 4f 54 41 54 49 4f 4e 20 | 74 6f 20 44 41 54 41 2e |OTATION |to DATA.|
|00001e00| 0a 54 68 65 20 66 75 6e | 63 74 69 6f 6e 20 60 61 |.The fun|ction `a|
|00001e10| 6e 6e 6f 74 61 74 69 6f | 6e 2d 64 61 74 61 27 20 |nnotatio|n-data' |
|00001e20| 72 65 74 75 72 6e 73 20 | 74 68 65 20 63 75 72 72 |returns |the curr|
|00001e30| 65 6e 74 20 64 61 74 61 | 2e 22 5d 29 0a 28 66 73 |ent data|."]).(fs|
|00001e40| 65 74 20 27 61 6e 6e 6f | 74 61 74 69 6f 6e 2d 61 |et 'anno|tation-a|
|00001e50| 63 74 69 6f 6e 20 23 5b | 28 61 6e 6e 6f 74 61 74 |ction #[|(annotat|
|00001e60| 69 6f 6e 29 20 22 c0 09 | 21 ac 85 c2 c3 09 5c 22 |ion) "..|!.....\"|
|00001e70| 87 c4 09 c1 5c 22 c5 48 | 87 22 20 5b 61 6e 6e 6f |....\".H|." [anno|
|00001e80| 74 61 74 69 6f 6e 70 20 | 61 6e 6e 6f 74 61 74 69 |tationp |annotati|
|00001e90| 6f 6e 20 65 72 72 6f 72 | 20 22 25 73 20 69 73 20 |on error| "%s is |
|00001ea0| 6e 6f 74 20 61 6e 20 61 | 6e 6e 6f 74 61 74 69 6f |not an a|nnotatio|
|00001eb0| 6e 22 20 65 78 74 65 6e | 74 2d 70 72 6f 70 65 72 |n" exten|t-proper|
|00001ec0| 74 79 20 31 5d 20 33 20 | 22 5c 0a 52 65 74 75 72 |ty 1] 3 |"\.Retur|
|00001ed0| 6e 20 74 68 65 20 61 63 | 74 69 6f 6e 20 61 73 73 |n the ac|tion ass|
|00001ee0| 6f 63 69 61 74 65 64 20 | 77 69 74 68 20 61 6e 6e |ociated |with ann|
|00001ef0| 6f 74 61 74 69 6f 6e 20 | 41 4e 4e 4f 54 41 54 49 |otation |ANNOTATI|
|00001f00| 4f 4e 2e 20 20 54 68 65 | 20 61 63 74 69 6f 6e 0a |ON. The| action.|
|00001f10| 69 73 20 73 65 74 20 75 | 73 69 6e 67 20 60 73 65 |is set u|sing `se|
|00001f20| 74 2d 61 6e 6e 6f 74 61 | 74 69 6f 6e 2d 61 63 74 |t-annota|tion-act|
|00001f30| 69 6f 6e 27 2e 22 5d 29 | 0a 28 66 73 65 74 20 27 |ion'."])|.(fset '|
|00001f40| 73 65 74 2d 61 6e 6e 6f | 74 61 74 69 6f 6e 2d 61 |set-anno|tation-a|
|00001f50| 63 74 69 6f 6e 20 23 5b | 28 61 6e 6e 6f 74 61 74 |ction #[|(annotat|
|00001f60| 69 6f 6e 20 61 63 74 69 | 6f 6e 29 20 22 c0 09 21 |ion acti|on) "..!|
|00001f70| ac 85 c2 c3 09 5c 22 87 | c4 09 c1 5c 22 c5 0e 06 |.....\".|...\"...|
|00001f80| 49 87 22 20 5b 61 6e 6e | 6f 74 61 74 69 6f 6e 70 |I." [ann|otationp|
|00001f90| 20 61 6e 6e 6f 74 61 74 | 69 6f 6e 20 65 72 72 6f | annotat|ion erro|
|00001fa0| 72 20 22 25 73 20 69 73 | 20 6e 6f 74 20 61 6e 20 |r "%s is| not an |
|00001fb0| 61 6e 6e 6f 74 61 74 69 | 6f 6e 22 20 65 78 74 65 |annotati|on" exte|
|00001fc0| 6e 74 2d 70 72 6f 70 65 | 72 74 79 20 31 20 61 63 |nt-prope|rty 1 ac|
|00001fd0| 74 69 6f 6e 5d 20 33 20 | 22 5c 0a 53 65 74 20 74 |tion] 3 |"\.Set t|
|00001fe0| 68 65 20 61 63 74 69 6f | 6e 20 66 69 65 6c 64 20 |he actio|n field |
|00001ff0| 6f 66 20 41 4e 4e 4f 54 | 41 54 49 4f 4e 20 74 6f |of ANNOT|ATION to|
|00002000| 20 41 43 54 49 4f 4e 2e | 20 20 54 68 65 20 66 75 | ACTION.| The fu|
|00002010| 6e 63 74 69 6f 6e 0a 60 | 61 6e 6e 6f 74 61 74 69 |nction.`|annotati|
|00002020| 6f 6e 2d 61 63 74 69 6f | 6e 27 20 72 65 74 75 72 |on-actio|n' retur|
|00002030| 6e 73 20 74 68 65 20 63 | 75 72 72 65 6e 74 20 61 |ns the c|urrent a|
|00002040| 63 74 69 6f 6e 2e 22 5d | 29 0a 28 66 73 65 74 20 |ction."]|).(fset |
|00002050| 27 61 6e 6e 6f 74 61 74 | 69 6f 6e 2d 66 61 63 65 |'annotat|ion-face|
|00002060| 20 23 5b 28 61 6e 6e 6f | 74 61 74 69 6f 6e 29 20 | #[(anno|tation) |
|00002070| 22 c0 09 21 ac 85 c2 c3 | 09 5c 22 87 c4 09 21 87 |"..!....|.\"...!.|
|00002080| 22 20 5b 61 6e 6e 6f 74 | 61 74 69 6f 6e 70 20 61 |" [annot|ationp a|
|00002090| 6e 6e 6f 74 61 74 69 6f | 6e 20 65 72 72 6f 72 20 |nnotatio|n error |
|000020a0| 22 25 73 20 69 73 20 6e | 6f 74 20 61 6e 20 61 6e |"%s is n|ot an an|
|000020b0| 6e 6f 74 61 74 69 6f 6e | 22 20 65 78 74 65 6e 74 |notation|" extent|
|000020c0| 2d 66 61 63 65 5d 20 33 | 20 22 5c 0a 52 65 74 75 |-face] 3| "\.Retu|
|000020d0| 72 6e 20 74 68 65 20 66 | 61 63 65 20 61 73 73 6f |rn the f|ace asso|
|000020e0| 63 69 61 74 65 64 20 77 | 69 74 68 20 61 6e 6e 6f |ciated w|ith anno|
|000020f0| 74 61 74 69 6f 6e 20 41 | 4e 4e 4f 54 41 54 49 4f |tation A|NNOTATIO|
|00002100| 4e 2e 20 20 54 68 65 20 | 66 61 63 65 20 69 73 0a |N. The |face is.|
|00002110| 73 65 74 20 75 73 69 6e | 67 20 60 73 65 74 2d 61 |set usin|g `set-a|
|00002120| 6e 6e 6f 74 61 74 69 6f | 6e 2d 66 61 63 65 27 2e |nnotatio|n-face'.|
|00002130| 22 5d 29 0a 28 66 73 65 | 74 20 27 73 65 74 2d 61 |"]).(fse|t 'set-a|
|00002140| 6e 6e 6f 74 61 74 69 6f | 6e 2d 66 61 63 65 20 23 |nnotatio|n-face #|
|00002150| 5b 28 61 6e 6e 6f 74 61 | 74 69 6f 6e 20 66 61 63 |[(annota|tion fac|
|00002160| 65 29 20 22 c0 09 21 ac | 85 c2 c3 09 5c 22 87 c4 |e) "..!.|....\"..|
|00002170| 09 0d 5c 22 87 22 20 5b | 61 6e 6e 6f 74 61 74 69 |..\"." [|annotati|
|00002180| 6f 6e 70 20 61 6e 6e 6f | 74 61 74 69 6f 6e 20 65 |onp anno|tation e|
|00002190| 72 72 6f 72 20 22 25 73 | 20 69 73 20 6e 6f 74 20 |rror "%s| is not |
|000021a0| 61 6e 20 61 6e 6e 6f 74 | 61 74 69 6f 6e 22 20 73 |an annot|ation" s|
|000021b0| 65 74 2d 65 78 74 65 6e | 74 2d 66 61 63 65 20 66 |et-exten|t-face f|
|000021c0| 61 63 65 5d 20 33 20 22 | 5c 0a 53 65 74 20 74 68 |ace] 3 "|\.Set th|
|000021d0| 65 20 66 61 63 65 20 61 | 73 73 6f 63 69 61 74 65 |e face a|ssociate|
|000021e0| 64 20 77 69 74 68 20 61 | 6e 6e 6f 74 61 74 69 6f |d with a|nnotatio|
|000021f0| 6e 20 41 4e 4e 4f 54 41 | 54 49 4f 4e 20 74 6f 20 |n ANNOTA|TION to |
|00002200| 46 41 43 45 2e 20 20 54 | 68 65 20 66 75 6e 63 74 |FACE. T|he funct|
|00002210| 69 6f 6e 0a 60 61 6e 6e | 6f 74 61 74 69 6f 6e 2d |ion.`ann|otation-|
|00002220| 66 61 63 65 27 20 72 65 | 74 75 72 6e 73 20 74 68 |face' re|turns th|
|00002230| 65 20 63 75 72 72 65 6e | 74 20 66 61 63 65 2e 22 |e curren|t face."|
|00002240| 5d 29 0a 28 66 73 65 74 | 20 27 61 6e 6e 6f 74 61 |]).(fset| 'annota|
|00002250| 74 69 6f 6e 2d 68 69 64 | 65 20 23 5b 28 61 6e 6e |tion-hid|e #[(ann|
|00002260| 6f 74 61 74 69 6f 6e 29 | 20 22 c0 09 21 c2 3d ab |otation)| "..!.=.|
|00002270| 85 c3 09 c4 5c 22 87 c5 | 09 c4 5c 22 87 22 20 5b |....\"..|..\"." [|
|00002280| 61 6e 6e 6f 74 61 74 69 | 6f 6e 2d 73 69 64 65 20 |annotati|on-side |
|00002290| 61 6e 6e 6f 74 61 74 69 | 6f 6e 20 6c 65 66 74 20 |annotati|on left |
|000022a0| 73 65 74 2d 65 78 74 65 | 6e 74 2d 62 65 67 69 6e |set-exte|nt-begin|
|000022b0| 2d 67 6c 79 70 68 20 6e | 69 6c 20 73 65 74 2d 65 |-glyph n|il set-e|
|000022c0| 78 74 65 6e 74 2d 65 6e | 64 2d 67 6c 79 70 68 5d |xtent-en|d-glyph]|
|000022d0| 20 33 20 22 5c 0a 52 65 | 6d 6f 76 65 20 41 4e 4e | 3 "\.Re|move ANN|
|000022e0| 4f 54 41 54 49 4f 4e 27 | 73 20 67 6c 79 70 68 20 |OTATION'|s glyph |
|000022f0| 73 6f 20 74 68 61 74 20 | 69 74 20 69 73 20 69 6e |so that |it is in|
|00002300| 76 69 73 69 62 6c 65 2e | 22 5d 29 0a 28 66 73 65 |visible.|"]).(fse|
|00002310| 74 20 27 61 6e 6e 6f 74 | 61 74 69 6f 6e 2d 72 65 |t 'annot|ation-re|
|00002320| 76 65 61 6c 20 23 5b 28 | 61 6e 6e 6f 74 61 74 69 |veal #[(|annotati|
|00002330| 6f 6e 29 20 22 c0 09 21 | c2 3d ab 87 c3 09 c4 09 |on) "..!|.=......|
|00002340| 21 5c 22 87 c5 09 c4 09 | 21 5c 22 87 22 20 5b 61 |!\".....|!\"." [a|
|00002350| 6e 6e 6f 74 61 74 69 6f | 6e 2d 73 69 64 65 20 61 |nnotatio|n-side a|
|00002360| 6e 6e 6f 74 61 74 69 6f | 6e 20 6c 65 66 74 20 73 |nnotatio|n left s|
|00002370| 65 74 2d 65 78 74 65 6e | 74 2d 62 65 67 69 6e 2d |et-exten|t-begin-|
|00002380| 67 6c 79 70 68 20 61 6e | 6e 6f 74 61 74 69 6f 6e |glyph an|notation|
|00002390| 2d 67 6c 79 70 68 20 73 | 65 74 2d 65 78 74 65 6e |-glyph s|et-exten|
|000023a0| 74 2d 65 6e 64 2d 67 6c | 79 70 68 5d 20 34 20 22 |t-end-gl|yph] 4 "|
|000023b0| 5c 0a 41 64 64 20 41 4e | 4e 4f 54 41 54 49 4f 4e |\.Add AN|NOTATION|
|000023c0| 27 73 20 67 6c 79 70 68 | 20 73 6f 20 74 68 61 74 |'s glyph| so that|
|000023d0| 20 69 74 20 69 73 20 76 | 69 73 69 62 6c 65 2e 22 | it is v|isible."|
|000023e0| 5d 29 0a 28 66 73 65 74 | 20 27 61 6e 6e 6f 74 61 |]).(fset| 'annota|
|000023f0| 74 69 6f 6e 73 2d 69 6e | 2d 72 65 67 69 6f 6e 20 |tions-in|-region |
|00002400| 23 5b 28 73 74 61 72 74 | 20 65 6e 64 20 62 75 66 |#[(start| end buf|
|00002410| 66 65 72 29 20 22 8a 08 | 71 88 09 65 57 ab 84 c2 |fer) "..|q..eW...|
|00002420| c3 21 88 0c 64 56 ab 84 | c2 c5 21 88 c6 1e 07 c8 |.!..dV..|..!.....|
|00002430| c9 08 09 0c c6 ca 26 06 | 88 0e 07 2a 87 22 20 5b |......&.|...*." [|
|00002440| 62 75 66 66 65 72 20 73 | 74 61 72 74 20 65 72 72 |buffer s|tart err|
|00002450| 6f 72 20 22 3c 73 74 61 | 72 74 3e 20 6e 6f 74 20 |or "<sta|rt> not |
|00002460| 69 6e 20 72 61 6e 67 65 | 20 6f 66 20 62 75 66 66 |in range| of buff|
|00002470| 65 72 22 20 65 6e 64 20 | 22 3c 65 6e 64 3e 20 6e |er" end |"<end> n|
|00002480| 6f 74 20 69 6e 20 72 61 | 6e 67 65 20 6f 66 20 62 |ot in ra|nge of b|
|00002490| 75 66 66 65 72 22 20 6e | 69 6c 20 6e 6f 74 65 2d |uffer" n|il note-|
|000024a0| 6c 69 73 74 20 6d 61 70 | 2d 65 78 74 65 6e 74 73 |list map|-extents|
|000024b0| 20 23 5b 28 65 78 74 65 | 6e 74 20 64 75 6d 6d 79 | #[(exte|nt dummy|
|000024c0| 29 20 22 c0 09 21 ab 84 | 09 5c 6e 42 12 c3 87 22 |) "..!..|.\nB..."|
|000024d0| 20 5b 61 6e 6e 6f 74 61 | 74 69 6f 6e 70 20 65 78 | [annota|tionp ex|
|000024e0| 74 65 6e 74 20 6e 6f 74 | 65 2d 6c 69 73 74 20 6e |tent not|e-list n|
|000024f0| 69 6c 5d 20 32 5d 20 74 | 5d 20 37 20 22 5c 0a 52 |il] 2] t|] 7 "\.R|
|00002500| 65 74 75 72 6e 20 61 6c | 6c 20 61 6e 6e 6f 74 61 |eturn al|l annota|
|00002510| 74 69 6f 6e 73 20 69 6e | 20 42 55 46 46 45 52 20 |tions in| BUFFER |
|00002520| 77 68 69 63 68 20 61 72 | 65 20 62 65 74 77 65 65 |which ar|e betwee|
|00002530| 6e 20 53 54 41 52 54 20 | 61 6e 64 20 45 4e 44 0a |n START |and END.|
|00002540| 69 6e 63 6c 75 73 69 76 | 65 6c 79 2e 22 5d 29 0a |inclusiv|ely."]).|
|00002550| 28 66 73 65 74 20 27 61 | 6e 6e 6f 74 61 74 69 6f |(fset 'a|nnotatio|
|00002560| 6e 73 2d 61 74 20 23 5b | 28 26 6f 70 74 69 6f 6e |ns-at #[|(&option|
|00002570| 61 6c 20 70 6f 73 20 62 | 75 66 66 65 72 29 20 22 |al pos b|uffer) "|
|00002580| 08 ac 82 70 10 09 ac 87 | 8a 08 71 88 60 11 29 c2 |...p....|..q.`.).|
|00002590| 09 89 08 23 87 22 20 5b | 62 75 66 66 65 72 20 70 |...#." [|buffer p|
|000025a0| 6f 73 20 61 6e 6e 6f 74 | 61 74 69 6f 6e 73 2d 69 |os annot|ations-i|
|000025b0| 6e 2d 72 65 67 69 6f 6e | 5d 20 34 20 22 5c 0a 52 |n-region|] 4 "\.R|
|000025c0| 65 74 75 72 6e 20 61 20 | 6c 69 73 74 20 6f 66 20 |eturn a |list of |
|000025d0| 61 6c 6c 20 61 6e 6e 6f | 74 61 74 69 6f 6e 73 20 |all anno|tations |
|000025e0| 61 74 20 50 4f 53 20 69 | 6e 20 42 55 46 46 45 52 |at POS i|n BUFFER|
|000025f0| 2e 20 20 49 66 20 42 55 | 46 46 45 52 20 69 73 20 |. If BU|FFER is |
|00002600| 6e 69 6c 2c 0a 74 68 65 | 20 63 75 72 72 65 6e 74 |nil,.the| current|
|00002610| 20 62 75 66 66 65 72 20 | 69 73 20 75 73 65 64 2e | buffer |is used.|
|00002620| 20 20 49 66 20 50 4f 53 | 20 69 73 20 6e 69 6c 2c | If POS| is nil,|
|00002630| 20 70 6f 69 6e 74 20 69 | 73 20 75 73 65 64 2e 22 | point i|s used."|
|00002640| 5d 29 0a 28 66 73 65 74 | 20 27 61 6e 6e 6f 74 61 |]).(fset| 'annota|
|00002650| 74 69 6f 6e 2d 6c 69 73 | 74 20 23 5b 28 26 6f 70 |tion-lis|t #[(&op|
|00002660| 74 69 6f 6e 61 6c 20 62 | 75 66 66 65 72 29 20 22 |tional b|uffer) "|
|00002670| 08 ac 82 70 10 8a 08 71 | 88 c1 65 64 08 23 29 87 |...p...q|..ed.#).|
|00002680| 22 20 5b 62 75 66 66 65 | 72 20 61 6e 6e 6f 74 61 |" [buffe|r annota|
|00002690| 74 69 6f 6e 73 2d 69 6e | 2d 72 65 67 69 6f 6e 5d |tions-in|-region]|
|000026a0| 20 34 20 22 5c 0a 52 65 | 74 75 72 6e 20 61 20 6c | 4 "\.Re|turn a l|
|000026b0| 69 73 74 20 6f 66 20 61 | 6c 6c 20 61 6e 6e 6f 74 |ist of a|ll annot|
|000026c0| 61 74 69 6f 6e 73 20 69 | 6e 20 42 55 46 46 45 52 |ations i|n BUFFER|
|000026d0| 2e 20 20 49 66 20 42 55 | 46 46 45 52 20 69 73 20 |. If BU|FFER is |
|000026e0| 6e 69 6c 2c 20 74 68 65 | 0a 63 75 72 72 65 6e 74 |nil, the|.current|
|000026f0| 20 62 75 66 66 65 72 20 | 69 73 20 75 73 65 64 2e | buffer |is used.|
|00002700| 22 5d 29 0a 28 66 73 65 | 74 20 27 61 6c 6c 2d 61 |"]).(fse|t 'all-a|
|00002710| 6e 6e 6f 74 61 74 69 6f | 6e 73 20 23 5b 6e 69 6c |nnotatio|ns #[nil|
|00002720| 20 22 c0 20 c1 1a 89 1b | ab 8d 5c 6e c4 0b 40 21 | ". ....|..\n..@!|
|00002730| a4 12 0b 41 89 13 ac 73 | 5c 6e 2a 87 22 20 5b 62 |...A...s|\n*." [b|
|00002740| 75 66 66 65 72 2d 6c 69 | 73 74 20 6e 69 6c 20 72 |uffer-li|st nil r|
|00002750| 65 73 75 6c 74 20 62 20 | 61 6e 6e 6f 74 61 74 69 |esult b |annotati|
|00002760| 6f 6e 2d 6c 69 73 74 5d | 20 34 20 22 5c 0a 52 65 |on-list]| 4 "\.Re|
|00002770| 74 75 72 6e 20 61 20 6c | 69 73 74 20 6f 66 20 61 |turn a l|ist of a|
|00002780| 6c 6c 20 61 6e 6e 6f 74 | 61 74 69 6f 6e 73 20 69 |ll annot|ations i|
|00002790| 6e 20 65 78 69 73 74 65 | 6e 63 65 2e 22 5d 29 0a |n existe|nce."]).|
|000027a0| 28 66 73 65 74 20 27 61 | 6e 6e 6f 74 61 74 69 6f |(fset 'a|nnotatio|
|000027b0| 6e 2d 70 6f 70 75 70 2d | 6d 65 6e 75 20 23 5b 28 |n-popup-|menu #[(|
|000027c0| 65 76 65 6e 74 29 20 22 | c0 09 21 1a 8a c3 5c 6e |event) "|..!...\n|
|000027d0| 21 62 88 c4 5c 6e 21 ab | 87 c5 c4 5c 6e 21 21 aa |!b..\n!.|...\n!!.|
|000027e0| 82 c6 20 2a 87 22 20 5b | 65 76 65 6e 74 2d 67 6c |.. *." [|event-gl|
|000027f0| 79 70 68 2d 65 78 74 65 | 6e 74 20 65 76 65 6e 74 |yph-exte|nt event|
|00002800| 20 65 78 74 65 6e 74 20 | 65 78 74 65 6e 74 2d 65 | extent |extent-e|
|00002810| 6e 64 2d 70 6f 73 69 74 | 69 6f 6e 20 61 6e 6e 6f |nd-posit|ion anno|
|00002820| 74 61 74 69 6f 6e 2d 6d | 65 6e 75 20 70 6f 70 75 |tation-m|enu popu|
|00002830| 70 2d 6d 65 6e 75 20 70 | 6f 70 75 70 2d 6d 6f 64 |p-menu p|opup-mod|
|00002840| 65 2d 6d 65 6e 75 5d 20 | 33 20 22 5c 0a 50 6f 70 |e-menu] |3 "\.Pop|
|00002850| 20 75 70 20 61 20 6d 65 | 6e 75 20 6f 66 20 61 6e | up a me|nu of an|
|00002860| 6e 6f 74 61 74 69 6f 6e | 73 20 63 6f 6d 6d 61 6e |notation|s comman|
|00002870| 64 73 2e 0a 50 6f 69 6e | 74 20 69 73 20 74 65 6d |ds..Poin|t is tem|
|00002880| 70 6f 72 61 72 69 6c 79 | 20 6d 6f 76 65 64 20 74 |porarily| moved t|
|00002890| 6f 20 74 68 65 20 63 6c | 69 63 6b 20 70 6f 73 69 |o the cl|ick posi|
|000028a0| 74 69 6f 6e 2e 22 20 22 | 65 22 5d 29 0a 28 66 73 |tion." "|e"]).(fs|
|000028b0| 65 74 20 27 73 65 74 2d | 61 6e 6e 6f 74 61 74 69 |et 'set-|annotati|
|000028c0| 6f 6e 2d 6d 65 6e 75 20 | 23 5b 28 61 6e 6e 6f 74 |on-menu |#[(annot|
|000028d0| 61 74 69 6f 6e 20 6d 65 | 6e 75 29 20 22 c0 09 21 |ation me|nu) "..!|
|000028e0| ac 85 c2 c3 09 5c 22 87 | c4 09 c1 5c 22 c5 0e 06 |.....\".|...\"...|
|000028f0| 49 87 22 20 5b 61 6e 6e | 6f 74 61 74 69 6f 6e 70 |I." [ann|otationp|
|00002900| 20 61 6e 6e 6f 74 61 74 | 69 6f 6e 20 65 72 72 6f | annotat|ion erro|
|00002910| 72 20 22 25 73 20 69 73 | 20 6e 6f 74 20 61 6e 20 |r "%s is| not an |
|00002920| 61 6e 6e 6f 74 61 74 69 | 6f 6e 22 20 65 78 74 65 |annotati|on" exte|
|00002930| 6e 74 2d 70 72 6f 70 65 | 72 74 79 20 32 20 6d 65 |nt-prope|rty 2 me|
|00002940| 6e 75 5d 20 33 20 22 5c | 0a 53 65 74 20 74 68 65 |nu] 3 "\|.Set the|
|00002950| 20 6d 65 6e 75 20 66 69 | 65 6c 64 20 6f 66 20 41 | menu fi|eld of A|
|00002960| 4e 4e 4f 54 41 54 49 4f | 4e 20 74 6f 20 4d 45 4e |NNOTATIO|N to MEN|
|00002970| 55 2e 20 20 54 68 65 20 | 66 75 6e 63 74 69 6f 6e |U. The |function|
|00002980| 0a 60 61 6e 6e 6f 74 61 | 74 69 6f 6e 2d 6d 65 6e |.`annota|tion-men|
|00002990| 75 27 20 72 65 74 75 72 | 6e 73 20 74 68 65 20 63 |u' retur|ns the c|
|000029a0| 75 72 72 65 6e 74 20 6d | 65 6e 75 2e 22 5d 29 0a |urrent m|enu."]).|
|000029b0| 28 66 73 65 74 20 27 61 | 6e 6e 6f 74 61 74 69 6f |(fset 'a|nnotatio|
|000029c0| 6e 2d 6d 65 6e 75 20 23 | 5b 28 61 6e 6e 6f 74 61 |n-menu #|[(annota|
|000029d0| 74 69 6f 6e 29 20 22 c0 | 09 21 ac 85 c2 c3 09 5c |tion) ".|.!.....\|
|000029e0| 22 87 c4 09 c1 5c 22 c5 | 48 87 22 20 5b 61 6e 6e |"....\".|H." [ann|
|000029f0| 6f 74 61 74 69 6f 6e 70 | 20 61 6e 6e 6f 74 61 74 |otationp| annotat|
|00002a00| 69 6f 6e 20 65 72 72 6f | 72 20 22 25 73 20 69 73 |ion erro|r "%s is|
|00002a10| 20 6e 6f 74 20 61 6e 20 | 61 6e 6e 6f 74 61 74 69 | not an |annotati|
|00002a20| 6f 6e 22 20 65 78 74 65 | 6e 74 2d 70 72 6f 70 65 |on" exte|nt-prope|
|00002a30| 72 74 79 20 32 5d 20 33 | 20 22 5c 0a 52 65 74 75 |rty 2] 3| "\.Retu|
|00002a40| 72 6e 20 74 68 65 20 6d | 65 6e 75 20 61 73 73 6f |rn the m|enu asso|
|00002a50| 63 69 61 74 65 64 20 77 | 69 74 68 20 61 6e 6e 6f |ciated w|ith anno|
|00002a60| 74 61 74 69 6f 6e 20 41 | 4e 4e 4f 54 41 54 49 4f |tation A|NNOTATIO|
|00002a70| 4e 2e 20 20 54 68 65 20 | 6d 65 6e 75 0a 69 73 20 |N. The |menu.is |
|00002a80| 73 65 74 20 75 73 69 6e | 67 20 60 73 65 74 2d 61 |set usin|g `set-a|
|00002a90| 6e 6e 6f 74 61 74 69 6f | 6e 2d 6d 65 6e 75 27 2e |nnotatio|n-menu'.|
|00002aa0| 22 5d 29 0a 28 70 72 6f | 76 69 64 65 20 27 61 6e |"]).(pro|vide 'an|
|00002ab0| 6e 6f 74 61 74 69 6f 6e | 73 29 0a |notation|s). |
+--------+-------------------------+-------------------------+--------+--------+