From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: Chong Yidong <cyd@stupidchicken.com>
Cc: rms@gnu.org, emacs-devel@gnu.org
Subject: Re: Please try Pmail
Date: Mon, 19 Jan 2009 23:57:08 -0500 [thread overview]
Message-ID: <jwviqoah92u.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87ljt83svc.fsf@cyd.mit.edu> (Chong Yidong's message of "Sun, 18 Jan 2009 21:57:27 -0500")
>>> 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
next prev parent reply other threads:[~2009-01-20 4:57 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-18 3:43 Please try Pmail Richard M Stallman
2009-01-18 14:47 ` Chong Yidong
2009-01-18 15:06 ` Alfred M. Szmidt
2009-01-18 20:40 ` Stefan Monnier
2009-01-19 1:41 ` Chong Yidong
2009-01-19 2:57 ` Chong Yidong
2009-01-20 4:57 ` Stefan Monnier [this message]
2009-01-20 14:20 ` Chong Yidong
2009-01-21 2:37 ` Stefan Monnier
2009-01-21 4:11 ` Chong Yidong
2009-01-21 4:18 ` Stefan Monnier
2009-01-21 15:06 ` Chong Yidong
2009-01-21 20:38 ` Stefan Monnier
2009-01-21 21:21 ` Chong Yidong
2009-01-22 4:12 ` Stefan Monnier
2009-01-22 4:55 ` Chong Yidong
2009-01-23 1:52 ` Richard M Stallman
2009-01-23 2:35 ` Chong Yidong
2009-01-21 20:32 ` Richard M Stallman
2009-01-21 21:07 ` Chong Yidong
2009-01-20 23:00 ` Richard M Stallman
2009-01-21 5:56 ` Eli Zaretskii
2009-01-20 1:00 ` Richard M Stallman
2009-01-19 4:31 ` Richard M Stallman
2009-01-19 14:39 ` Chong Yidong
2009-01-19 1:59 ` Glenn Morris
2009-01-20 0:59 ` Richard M Stallman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwviqoah92u.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=cyd@stupidchicken.com \
--cc=emacs-devel@gnu.org \
--cc=rms@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.