emacs-devel
[Top][All Lists]
Advanced

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

Re: buffer-swap-text and multibyteness


From: Stefan Monnier
Subject: Re: buffer-swap-text and multibyteness
Date: Sun, 01 Feb 2009 21:39:05 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

> I think rmail-buffer and rmail-view-buffer should be set
> consistently to the unibyte buffer containing RMAIL file and
> to the multibyte buffer showing one message to a user.

> And, most of the interactive functions should just do
> something like this:

>   (set-buffer rmail-buffer)
>   ...
>   (switch-to-buffer rmail-view-buffer)

> Is the conbination of set-buffer and switch-to-buffer
> heavier than two buffer-swap-text?

Yes. we agree (except that switch-to-buffer is a function I would
prefer to see disapppear, so better use something else like
pop-to-buffer or just set-buffer).

Also, I'd prefer to use `rmail-buffer' for the multibyte buffer that's
displayed, and rmail-data-buffer for the raw unibyte mbox.


        Stefan




reply via email to

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