From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: emacs/lisp ChangeLog vc-bzr.el Date: Mon, 07 Dec 2009 11:18:54 -0500 Message-ID: <87my1uahap.fsf@stupidchicken.com> References: <87pr6rwvcn.fsf@telefonica.net> <87ein7l124.fsf@lola.goethe.zz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1260207415 15502 80.91.229.12 (7 Dec 2009 17:36:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 7 Dec 2009 17:36:55 +0000 (UTC) Cc: emacs-devel@gnu.org To: David Kastrup Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 07 18:36:48 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NHhVv-0006Jt-1u for ged-emacs-devel@m.gmane.org; Mon, 07 Dec 2009 18:36:47 +0100 Original-Received: from localhost ([127.0.0.1]:42451 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NHhVu-0008VV-ON for ged-emacs-devel@m.gmane.org; Mon, 07 Dec 2009 12:36:46 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NHgIu-0000bd-7I for emacs-devel@gnu.org; Mon, 07 Dec 2009 11:19:16 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NHgIm-0000Qe-Iu for emacs-devel@gnu.org; Mon, 07 Dec 2009 11:19:12 -0500 Original-Received: from [199.232.76.173] (port=53450 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NHgIm-0000QG-D7 for emacs-devel@gnu.org; Mon, 07 Dec 2009 11:19:08 -0500 Original-Received: from pantheon-po19.its.yale.edu ([130.132.50.75]:33238) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NHgIk-00076o-ON; Mon, 07 Dec 2009 11:19:06 -0500 Original-Received: from furry (dhcp128036014216.central.yale.edu [128.36.14.216]) (authenticated bits=0) by pantheon-po19.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id nB7GIvAp023168 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 7 Dec 2009 11:19:03 -0500 Original-Received: by furry (Postfix, from userid 1000) id D7973C071; Mon, 7 Dec 2009 11:18:54 -0500 (EST) In-Reply-To: <87ein7l124.fsf@lola.goethe.zz> (David Kastrup's message of "Mon, 07 Dec 2009 08:01:55 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:118366 Archived-At: David Kastrup writes: > =C3=93scar Fuentes 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.