emacs-devel
[Top][All Lists]
Advanced

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

Re: Need some help with Rmail/mbox


From: Eli Zaretskii
Subject: Re: Need some help with Rmail/mbox
Date: Sat, 20 Sep 2008 14:30:46 +0300

> From: Daiki Ueno <address@hidden>
> Cc: address@hidden,  address@hidden,  address@hidden
> Date: Sat, 20 Sep 2008 19:46:42 +0900
> 
> >>>>> In <address@hidden> 
> >>>>> Eli Zaretskii <address@hidden> wrote:
> > > I'd recommend to use `decode-coding-string' and `insert' instead of
> > > `decode-coding-region', if unsure.
> 
> > Why? you can always set-buffer-multibyte to the right mode, at least
> > in Emacs.
> 
> Yes, we can.  But I'm anxious of that those who are not familiar with
> Mule cannot decide which is the right mode.

We were discussing Rmail/mbox.  In that context, whenever you need to
decode a message body, the buffer needs to be in unibyte mode.  That's
it.  I think this is simple enough for anyone who writes related code.

> > Again, operations on buffers are much more efficient in Emacs than on
> > strings.
> 
> Oh, I'll try to do profile later.

Please do, but please profile memory, not only CPU.




reply via email to

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