[Top][All Lists]

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

Re: emacs/lisp ChangeLog vc-bzr.el

From: David Kastrup
Subject: Re: emacs/lisp ChangeLog vc-bzr.el
Date: Mon, 07 Dec 2009 08:01:55 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

Ó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.

David Kastrup

reply via email to

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