[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: buffer-swap-text and multibyteness
From: |
Kenichi Handa |
Subject: |
Re: buffer-swap-text and multibyteness |
Date: |
Mon, 02 Feb 2009 11:14:56 +0900 |
In article <address@hidden>, Eli Zaretskii <address@hidden> writes:
> I don't know, perhaps I was just confused. It's hard not to be, with
> all that mind-boggling swapping that goes on in Rmail between a
> unibyte buffer and a multibyte one. A horrible design, if you ask me.
> It's little surprise to me that I found so many bugs in Rmail due to
> this (and more are still there): one needs constantly to track the
> current state of the ``swappiness'', or else all bets are off.
> (Quick: if you are currently in rmail-view-buffer, and
> rmail-buffers-swapped-p returns non-nil, is the text unibyte or
> multibyte?)
> We should have simply used 2 separate buffers.
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?
---
Kenichi Handa
address@hidden
- Re: buffer-swap-text and multibyteness, (continued)
- Re: buffer-swap-text and multibyteness, Kenichi Handa, 2009/02/10
- Re: buffer-swap-text and multibyteness, Eli Zaretskii, 2009/02/21
- Re: buffer-swap-text and multibyteness, Kenichi Handa, 2009/02/24
- Re: buffer-swap-text and multibyteness, Eli Zaretskii, 2009/02/24
- Re: buffer-swap-text and multibyteness, Kenichi Handa, 2009/02/24
- Re: buffer-swap-text and multibyteness, Eli Zaretskii, 2009/02/24
- Re: buffer-swap-text and multibyteness, Kenichi Handa, 2009/02/26
Re: buffer-swap-text and multibyteness, Eli Zaretskii, 2009/02/01
Re: buffer-swap-text and multibyteness, Stefan Monnier, 2009/02/02
Re: buffer-swap-text and multibyteness, Richard M Stallman, 2009/02/01
Re: buffer-swap-text and multibyteness,
Kenichi Handa <=
Re: buffer-swap-text and multibyteness, Stefan Monnier, 2009/02/02