emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Please try Pmail


From: Stefan Monnier
Subject: Re: Please try Pmail
Date: Mon, 19 Jan 2009 23:57:08 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

>>> Thanks.  First, the swapping code in pmail should be tweaked to use
>>> write-region-annotate, like in Stefan's 2008-12-30 change to
>>> tar-mode.el.
>> Sounds right.

> Actually, there seems to be a problem with doing this.  The
> straightforward approach for using write-region-annotate is:

> (defun pmail-write-region-annotate (start end)
>   (when (pmail-buffers-swapped-p)
>     (set-buffer pmail-view-buffer)
>     (widen)
>     nil))

Ah, indeed, that's a problem.

> The `widen' is necessary because pmail-view-buffer, which contains the
> swapped-out buffer contents, is narrowed to the current message.

So Pmail displays the messages directly from the raw mbox buffer?
How does it deal with character encodings, then?

> So we must either (i) put buffer-swapped-with back in and use that, or
> (ii) modify annotations to somehow automatically widen and save
> restrictions when the current buffer is switched.

Or use write-contents-functions, or change the code so the raw mbox
buffer is never narrowed (i.e. never shown to the user).


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]