From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#6659: 24.0.50; doc string of `format' Date: Sun, 03 Jul 2011 15:03:29 +0200 Message-ID: References: <8783F2C73E2C4F04A5A4B36F21CCFAFC@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1309698635 10953 80.91.229.12 (3 Jul 2011 13:10:35 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 3 Jul 2011 13:10:35 +0000 (UTC) Cc: 6659@debbugs.gnu.org To: "Drew Adams" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jul 03 15:10:30 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QdMRS-00063h-Ew for geb-bug-gnu-emacs@m.gmane.org; Sun, 03 Jul 2011 15:10:30 +0200 Original-Received: from localhost ([::1]:57235 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QdMRR-0002xD-FQ for geb-bug-gnu-emacs@m.gmane.org; Sun, 03 Jul 2011 09:10:29 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:49791) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QdMR6-0002u7-6H for bug-gnu-emacs@gnu.org; Sun, 03 Jul 2011 09:10:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QdMR3-0004Ml-C4 for bug-gnu-emacs@gnu.org; Sun, 03 Jul 2011 09:10:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:32812) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QdMR3-0004MX-0A for bug-gnu-emacs@gnu.org; Sun, 03 Jul 2011 09:10:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QdMR1-00053d-Nh; Sun, 03 Jul 2011 09:10:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Magne Ingebrigtsen Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 03 Jul 2011 13:10:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6659 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed Original-Received: via spool by 6659-submit@debbugs.gnu.org id=B6659.130969860219425 (code B ref 6659); Sun, 03 Jul 2011 13:10:03 +0000 Original-Received: (at 6659) by debbugs.gnu.org; 3 Jul 2011 13:10:02 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QdMQx-00053B-Je for submit@debbugs.gnu.org; Sun, 03 Jul 2011 09:10:01 -0400 Original-Received: from hermes.netfonds.no ([80.91.224.195]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QdMQv-00052l-5l for 6659@debbugs.gnu.org; Sun, 03 Jul 2011 09:09:58 -0400 Original-Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=quimbies.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1QdMQg-0008Cm-KY; Sun, 03 Jul 2011 15:09:42 +0200 In-Reply-To: <8783F2C73E2C4F04A5A4B36F21CCFAFC@us.oracle.com> (Drew Adams's message of "Fri, 16 Jul 2010 14:48:51 -0700") User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) X-Now-Playing: Beth Sorrentino's _Nine Songs, One Story_: "Child" X-Hashcash: 1:23:110703:drew.adams@oracle.com::g5ki5NAIxK/xUi0F:0000000000000000000000000000000000000000IZ17 X-Hashcash: 1:23:110703:6659@debbugs.gnu.org::GVcMEz72mQSNj7UY:00000000000000000000000000000000000000000LqPL X-MailScanner-ID: 1QdMQg-0008Cm-KY MailScanner-NULL-Check: 1310303382.80665@eCPesCynkEHbGTl8f1R0UA X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 03 Jul 2011 09:10:03 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:47821 Archived-At: "Drew Adams" writes: > The Elisp manual says this about the 0 and - flags for `format': > > "The flag `-' causes the padding inserted by the width specifier, if > any, to be inserted on the right rather than the left. The flag `0' > ensures that the padding consists of `0' characters instead of spaces, > inserted on the left. These flags are ignored for specification > characters for which they do not make sense: `%s', `%S' and `%c' accept > the `0' flag, but still pad with _spaces_ on the left." > > 1. What does "for which they do not make sense" mean, exactly? The text > goes on to say that `0' is never used for the non-numeric specs. But it > says nothing about `-'. When does `-' "not make sense"? > > 2. That information about `-' and `0' being ignored in some cases is > completely missing from the doc string for `format'. The doc string in > fact contradicts this, saying that "The padding character is normally a > space, but it is 0 if the 0 flag is present." That sentence is false > for anything except a number spec - it is never 0 for a number spec. I've now clarified both the manual and the doc string. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/