🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.vm.bug
Article #782

Re: filladapt-mode conflicts with u-vm-color

#782
From: Ulf Jasper
Date: Thu, 22 May 2003 16:40
43 lines
2633 bytes
"Jason Dagit" <undisclosed@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.
> 
> 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. 

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


-- 
http://de.geocities.com/ulf_jasper/
                        Like it would be hello. -- J. Selbiger
Technical Details
Message-ID: <878yszorxu.fsf@web.de>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail
References: <b91vjs$cic$1@carbon.wonderworks.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f6829,a2ef53b4ee7a7470
X-Google-Attributes: gidf6829,public
X-Google-ArrivalTime: 2003-05-22 09:43:12 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail
From: Ulf Jasper <ulf.jasper@web.de>
Newsgroups: gnu.emacs.vm.bug
Subject: Re: filladapt-mode conflicts with u-vm-color
Date: 22 May 2003 18:40:45 +0200
Organization: T-Online
Lines: 43
Sender: ulf@medusa
Message-ID: <878yszorxu.fsf@web.de>
References: <b91vjs$cic$1@carbon.wonderworks.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: news.t-online.com 1053621647 00 31901 bv7ZVdyXSDAisr 030522 16:40:47
X-Complaints-To: usenet-abuse@t-online.de
X-ID: SSmEW+ZFoeJRcBNOuuUJRGjlM+Q7bM7lJpSjPzgpyiM-uV9W70LGsh
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3