From: Brian Warner Date: Sun, 7 Jan 2007 20:10:15 +0000 (-0700) Subject: figleaf.el: add some emacs22 comments X-Git-Tag: tahoe_v0.1.0-0-UNSTABLE~387 X-Git-Url: https://git.rkrishnan.org/pf/reliability?a=commitdiff_plain;h=322b6738f07c2d801bc82b91a466b8fcb7c91401;p=tahoe-lafs%2Ftahoe-lafs.git figleaf.el: add some emacs22 comments --- diff --git a/misc/figleaf.el b/misc/figleaf.el index 449ac6af..d541a2a8 100644 --- a/misc/figleaf.el +++ b/misc/figleaf.el @@ -50,6 +50,18 @@ (message "Removed annotations") )) +;; in emacs22, it will be possible to put the annotations in the fringe. Set +;; a display property for one of the characters in the line, using +;; (right-fringe BITMAP FACE), where BITMAP should probably be right-triangle +;; or so, and FACE should probably be '(:foreground "red"). We can also +;; create new bitmaps, with faces. To do tartans will require a lot of +;; bitmaps, and you've only got about 8 pixels to work with. + +;; unfortunately emacs21 gives us less control over the fringe. We can use +;; overlays to put letters on the left or right margins (in the text area, +;; overriding actual program text), and to modify the text being displayed +;; (by changing its background color, or adding a box around each word). + (defun figleaf-annotate (&optional show-code) (interactive "P") (let ((allcoverage (load-figleaf-annotations))