bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#4839: 23.1.50; *Buffer List* -- incorrect handling of multibyte char


From: Andreas Schwab
Subject: bug#4839: 23.1.50; *Buffer List* -- incorrect handling of multibyte characters?
Date: Mon, 02 Nov 2009 16:40:19 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

Štěpán Němec <stepnem@gmail.com> writes:

> On Mon, Nov 02, 2009 at 04:08:16AM -0500, Glenn Morris wrote:
>> stepnem@gmail.com wrote:
>> 
>> > Here is a part of my *Buffer List*:
>> >
>> >     desktop-menu.el      20228  Emacs-Lisp        
>> > ~/.emacs.d/load/desktop-menu.el
>> [...]
>> >     面無人色.org         11681  Org               ~/Documents/ling/cn/面無人色.org
>> >     xhc.org               1833  Org               
>> > ~/Documents/ling/cn/xhc.org
>> >     词典.org              2940  Org               ~/Documents/ling/cn/词典.org
>> [...]
>> > All the `Org' lines, with exception of `xhc.org', are misaligned.
>> 
>> When I copy and paste your buffer names, the issue seems to be that
>> `string-width' returns an incorrect value (eg 13 when the buffer name
>> actually seems to occupy 12). Although some of these characters seem
>> to have a non-integer width on my system, so I don't see that it is
>> possible to get this right. But it still looks more wrong than it
>> should be (off by > 1 character).
>
> Yes -- when I view your quotation from my mail above in Mutt, it's
> aligned correctly, but as soon as I cut & paste it into an Emacs buffer,
> it's misaligned again, the exact same way as displayed in the *Buffer List*...

If the double width characters are not exactly twice as wide as the
single width characters there is not much that can be done about that.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."





reply via email to

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