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

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

bug#13143: 24.2; mpc.el: mpc-songs-refresh: Args out of range


From: Bastien
Subject: bug#13143: 24.2; mpc.el: mpc-songs-refresh: Args out of range
Date: Wed, 12 Dec 2012 17:51:59 +0100
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux)

Hi David,

David Cadé <codename68@gmail.com> writes:

> On Wed, 12 Dec 2012, Bastien wrote:
>
>> Argh!  truncate-string-to-width does what I suggested as string-tail:
>> http://lists.gnu.org/archive/html/emacs-devel/2012-07/msg00357.html
>
> <pedantic mode>
> Your string-tail implementation limits the string to n characters, but
> truncate-string-to-width limits it to n columns, which is not the same.
> (There are characters that take 0 (combining characters) 1 or 2 (full width
> CJK characters) columns)
> </pedantic mode>

Agreed.  I just wish I'd stumbled on `truncate-string-to-width' before!

-- 
 Bastien





reply via email to

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