Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

filladapt-mode conflicts with u-vm-color

2 views
Skip to first unread message

Jason Dagit

unread,
May 3, 2003, 10:58:04 PM5/3/03
to
[Forwarded from bug-vm, I have no clue about this. --kyle]

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.

Ulf Jasper

unread,
May 5, 2003, 3:36:10 PM5/5/03
to
"Jason Dagit" <undis...@engr.orst.edu> writes:
> [Forwarded from bug-vm, I have no clue about this. --kyle]
>
> 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.

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

Ulf Jasper

unread,
May 22, 2003, 12:40:45 PM5/22/03
to

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

0 new messages