|
From: | Stefan Monnier |
Subject: | Re: [patch] vc-annotate-toggle-annotation-visibility, almost |
Date: | Sat, 03 Nov 2007 23:13:29 -0400 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux) |
> "almost" because i don't see any change w/ `redisplay' > in `vc-annotate-toggle-annotation-visibility'; use of > `force-mode-line-update' is suboptimal. still investigating. Use of force-mode-line-update doesn't seem particularly bad to me (assuming it works). > You can use the mode-specific menu to alter the time-span of the used > colors. See variable `vc-annotate-menu-elements' for customizing the > menu items." > + (setq buffer-invisibility-spec nil) > (set (make-local-variable 'truncate-lines) t) > (set (make-local-variable 'font-lock-defaults) > '(vc-annotate-font-lock-keywords t)) > (view-mode 1)) Why? > + (when (get-text-property (point) 'invisible) > + (goto-char (next-single-property-change (point) 'invisible))) What is this for? We could additionally put commands to print the (invisible) annotation in the echo-area, and also add a `help-echo' property to the whole buffer so as to get tooltips that display the (invisible) annotation. Stefan
[Prev in Thread] | Current Thread | [Next in Thread] |