[mew-int 2331] Re: Summary form; cite prefix; "sync" vs. "all"

Nicholas Riley njriley at example.com
Thu Jul 26 06:27:48 JST 2007


On Mon, 23 Jul 2007 18:41:48 -0500 (CDT), Nicholas Riley wrote:
> I did notice the above broke highlighting of the cited region, so I
> needed to add:
> 
> (add-hook 'mew-cite-hook 'mew-draft-rehighlight)

This is unnecessary - mu-cite-original puts the point and mark
reversed from how mew-draft-cite expects to find it for
rehighlighting, so all I need to do is swap the point and mark in
mew-cite-hook.

Also, since citation is wrapped in save-excursion by
mew-summary-reply-with-citation, I can't put the point after the
quoted text and before the signature unless I use a hack.

So, fixing both of the above problems:

(add-hook 'mew-cite-hook
	  (lambda ()
	    (mu-cite-original) ; point @ beginning, mark @ end of citation
	    (exchange-point-and-mark) ; mew-draft-cite assumes it's this way
	    (narrow-to-region (point-min) (point))))

(defadvice mew-summary-reply-with-citation (after mew-reply-block-signature)
  (widen))
(ad-activate 'mew-summary-reply-with-citation)

Pretty ugly, but it does work.

-- 
Nicholas Riley <njriley at example.com> | <http://www.uiuc.edu/ph/www/njriley>



More information about the Mew-int mailing list