[Top][All Lists]
[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: |
Sat, 31 Jan 2009 12:12:55 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
> set-buffer-multibyte jumps through the hoops to DTRT.
> By contrast, in buffer-swap-text we do just this:
> swapfield (enable_multibyte_characters, Lisp_Object);
> Could this cause trouble, e.g. if one of the buffers whose text is
> swapped contains eight-bit characters?
Why would it? The text is swapped along with the
enable_multibyte_characters field, so they should stay consistent.
At least that was my reasoning when writing this code.
Basically, enable_multibyte_characters should be stored in the
buffer_text structure rather than in the buffer itself.
Stefan
- buffer-swap-text and multibyteness, Eli Zaretskii, 2009/01/31
- Re: buffer-swap-text and multibyteness,
Stefan Monnier <=
- Re: buffer-swap-text and multibyteness, Eli Zaretskii, 2009/01/31
- Re: buffer-swap-text and multibyteness, Stefan Monnier, 2009/01/31
- Re: buffer-swap-text and multibyteness, Eli Zaretskii, 2009/01/31
- Re: buffer-swap-text and multibyteness, Stefan Monnier, 2009/01/31
- Re: buffer-swap-text and multibyteness, Eli Zaretskii, 2009/01/31
- Re: buffer-swap-text and multibyteness, Stefan Monnier, 2009/01/31
- Re: buffer-swap-text and multibyteness, Eli Zaretskii, 2009/01/31