From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#13143: 24.2; mpc.el: mpc-songs-refresh: Args out of range Date: Wed, 12 Dec 2012 11:04:46 -0500 Message-ID: References: <87hanszl48.fsf@alfheim.i-did-not-set--mail-host-address--so-tickle-me> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1355328343 19086 80.91.229.3 (12 Dec 2012 16:05:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 12 Dec 2012 16:05:43 +0000 (UTC) Cc: 13143-done@debbugs.gnu.org To: David =?UTF-8?Q?Cad=C3=A9?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Dec 12 17:05:54 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Tiooh-0000tk-CC for geb-bug-gnu-emacs@m.gmane.org; Wed, 12 Dec 2012 17:05:51 +0100 Original-Received: from localhost ([::1]:47485 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TiooU-0000dt-FS for geb-bug-gnu-emacs@m.gmane.org; Wed, 12 Dec 2012 11:05:38 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:56061) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TiooM-0000RC-6z for bug-gnu-emacs@gnu.org; Wed, 12 Dec 2012 11:05:35 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tioo9-0006yq-KW for bug-gnu-emacs@gnu.org; Wed, 12 Dec 2012 11:05:27 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57184) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tioo9-0006xK-IF for bug-gnu-emacs@gnu.org; Wed, 12 Dec 2012 11:05:17 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Tioos-0005ch-I4 for bug-gnu-emacs@gnu.org; Wed, 12 Dec 2012 11:06:02 -0500 Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Wed, 12 Dec 2012 16:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 13143 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 13143@debbugs.gnu.org, monnier@IRO.UMontreal.CA, codename68@gmail.com Original-Received: via spool by 13143-done@debbugs.gnu.org id=D13143.135532833921583 (code D ref 13143); Wed, 12 Dec 2012 16:06:02 +0000 Original-Received: (at 13143-done) by debbugs.gnu.org; 12 Dec 2012 16:05:39 +0000 Original-Received: from localhost ([127.0.0.1]:39202 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TiooU-0005c3-Ee for submit@debbugs.gnu.org; Wed, 12 Dec 2012 11:05:39 -0500 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:54701) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TiooR-0005bu-8f for 13143-done@debbugs.gnu.org; Wed, 12 Dec 2012 11:05:36 -0500 Original-Received: from faina.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id qBCG4qLC022625; Wed, 12 Dec 2012 11:04:52 -0500 Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 8C875B415D; Wed, 12 Dec 2012 11:04:46 -0500 (EST) In-Reply-To: ("David =?UTF-8?Q?Cad=C3=A9?="'s message of "Wed, 12 Dec 2012 13:55:50 +0100 (CET)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4430=0 X-NAI-Spam-Version: 2.2.0.9309 : core <4430> : streams <873207> : uri <1292072> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:68393 Archived-At: Version: 24.4 > I looked at the code of this function, and from what I can gather, the bug > seems to be in: > (substring text 0 (- size postwidth textwidth 1)) Yes, that's also what I bumped into. Great minds debug alike! The patch looks good, installed in `trunk', thank you very much. Stefan PS: I guess I didn't know about truncate-string-to-width when I wrote this code. But looking at truncate-string-to-width, I hope it won't impact performance too much.