It seems that when I use u-vm-color and filladapt mode, u-vm-color
doesn't happen. I have the following in ~/.vm
(add-hook 'vm-summary-mode-hook 'u-vm-color-summary-mode)
(add-hook 'vm-select-message-hook 'u-vm-color-fontify-buffer)
;;(add-hook 'vm-presentation-mode-hook 'turn-on-filladapt-mode)
(defadvice vm-decode-mime-message (after u-vm-color activate)
(u-vm-color-fontify-buffer-even-more))
Currently this works, but I don't get filladapt mode. If I uncomment
the 3rd line then I get filladapt mode, but I don't get color.
How should I turn on filladapt mode? I don't want to enable it with
setq-default, but I would like it to be on for all my presentation
buffers.
I'd like to help but I can't reproduce it!
I guess you have setqed vm-fill-paragraphs-containing-long-lines to
t. When I do that and then uncomment the third line I get, after
starting VM
Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p t)
vm-fill-paragraphs-containing-long-lines(t 1641 #<marker at 1652 in inbox Presentation>)
Another interesting I effect: when I setq debug-on-error to t *after*
having loaded VM I get
Debugger entered--Lisp error: (void-function nil)
(nil)
I have to turn off these features first... (VM 7.14 on Emacs 21.3.2
as found on debian unstable)
ulf
>
> How should I turn on filladapt mode? I don't want to enable it with
> setq-default, but I would like it to be on for all my presentation
> buffers.
--
http://de.geocities.com/ulf_jasper/
Like it would be hello. -- J. Selbiger
Finally, I managed to reproduce the problem. Apparently it is not
necessary to say
(add-hook 'vm-presentation-mode-hook 'turn-on-filladapt-mode)
but the problem already occurs when making
(setq vm-fill-paragraphs-containing-long-lines 40)
In this case u-vm-color will fail on messages in virtual buffers. I
still don't know what's going wrong. u-vm-color just adds colors to
the text between (point-min) and (point-max). I guess it is time to
read the fine elisp manual. In the meantime, here's the workaround:
(defadvice vm-fill-paragraphs-containing-long-lines (after u-vm-color activate)
(u-vm-color-fontify-buffer))
ulf