[mew-int 2893] Re: mew-wrap-lines

Christophe TROESTLER Christophe.Troestler at example.com
Wed Jul 21 06:00:21 JST 2010


On Mon, 28 Jun 2010 22:34:09 +0200, Christophe TROESTLER wrote:
>
> - For lines starting with a dash, like enumerations, mew-wrap-lines 
>  uses the dash as a prefix to fold lines.
> - When several items follow, this make it impossible to distinguish 
>  them, unless one does not wrap the lines, which is not fun.
>
> Of course, one may have a citation prefix like
>
> > - bla bla...
>
> Is there a way to tell mew to remove the dashes (and maybe "*") fro 
> m filling prefix?  This would be a nice thing to have.

Replying to myself, here is the trick I use:

(defadvice mew-fill-match-adaptive-prefix
   (after mew-remove-itemize-chars)
   "Remove the symbols commonly used as indicators for itemize lists  
from
the prefix used for filling messages."
   (message ad-return-value)
   (setq ad-return-value
	(replace-regexp-in-string "[-*$(Q#@(B]" " " ad-return-value)))

(add-hook 'mew-init-hook
  (function
   (lambda ()
     (ad-activate 'mew-fill-match-adaptive-prefix))))

Hope it may be pf help to somebody else...

Best,
C.


More information about the Mew-int mailing list