emacs-devel
[Top][All Lists]
Advanced

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

Re: emacs/lisp ChangeLog vc-bzr.el


From: Chong Yidong
Subject: Re: emacs/lisp ChangeLog vc-bzr.el
Date: Mon, 07 Dec 2009 11:18:54 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

David Kastrup <address@hidden> writes:

> Óscar Fuentes <address@hidden> writes:
>
>> That change fails on (substring author 0 7) when `author' contains less
>> than 7 characters:
>>
>> error in process filter: concat: Args out of range: "oscar", 0, 7
>> error in process filter: Args out of range: "oscar", 0, 7
>>
>> I tried with a kludge:
>>
>> (substring (concat author "         ") 0 7)
>>
>> and that fixed the problem.
>
> (format "%-7.7s" author)
>
> If you put all the rest into the same format string as well, this might
> look less kludgy.

Good point, thanks.




reply via email to

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