On Sunday, April 29, 2012 1:04:45 AM UTC-4, emacs user wrote: > > > could see the slow part is in the following lines at the very end of > > > vm-decode-mime-message: > > > > > > (vm-display nil nil '(vm-decode-mime-message) > > > '(vm-decode-mime-message reading-message))) > > > > Yes, after this line, u-vm-color runs because it places an advice on > > vm-decode-mime-message. I have no idea why it is so slow. > > brilliant of you... So if I set "enter debug on c-g" and then do control-g > while it's taking forever, I get this: > u-vm-color-fontify-regexp(69482 79728781 "^ *[-A-Za-z0-9]*> *.*$" ((0 > u-vm-color- >citation-1-face))) > > my inbox is about 79Mb large; 69482 is the beginning of the text of the first > message in the >inbox, right after its header. In this case I am applying "D" to the very >last message. Does >this mean that u-vm-color is trying to fontify the entire inbox rather than >only the message >that is being toggled with "D"?
so the recommended advice in the u-vm-color file header is to use ;; (defadvice vm-decode-mime-message (after u-vm-color activate) ;; (u-vm-color-fontify-buffer-even-more)) this function does (widen), and perhaps that's too much of a widening? if I change to this advice: (defadvice vm-decode-mime-message (after u-vm-color activate) (u-vm-color-fontify-buffer)) I think things are a bit better. perhaps you can see if this works for you too.