From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs Subject: bug#6659: 24.0.50; doc string of `format' Date: Fri, 16 Jul 2010 14:48:51 -0700 Message-ID: <8783F2C73E2C4F04A5A4B36F21CCFAFC@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1279317641 9407 80.91.229.12 (16 Jul 2010 22:00:41 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 16 Jul 2010 22:00:41 +0000 (UTC) To: 6659@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 17 00:00:38 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OZsxS-0002FO-2C for geb-bug-gnu-emacs@m.gmane.org; Sat, 17 Jul 2010 00:00:38 +0200 Original-Received: from localhost ([127.0.0.1]:42699 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OZsxQ-0004MI-HJ for geb-bug-gnu-emacs@m.gmane.org; Fri, 16 Jul 2010 18:00:36 -0400 Original-Received: from [140.186.70.92] (port=37584 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OZsxH-0004Lx-8P for bug-gnu-emacs@gnu.org; Fri, 16 Jul 2010 18:00:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OZsxG-0008IK-2E for bug-gnu-emacs@gnu.org; Fri, 16 Jul 2010 18:00:27 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53943) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OZsxG-0008IA-0n for bug-gnu-emacs@gnu.org; Fri, 16 Jul 2010 18:00:26 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OZsnD-00027B-DP; Fri, 16 Jul 2010 17:50:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Jul 2010 21:50:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 6659 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: Original-Received: via spool by submit@debbugs.gnu.org id=B.12793169798117 (code B ref -1); Fri, 16 Jul 2010 21:50:03 +0000 Original-Received: (at submit) by debbugs.gnu.org; 16 Jul 2010 21:49:39 +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 1OZsmo-00026s-U3 for submit@debbugs.gnu.org; Fri, 16 Jul 2010 17:49:39 -0400 Original-Received: from mx10.gnu.org ([199.232.76.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OZsmn-00026n-3F for submit@debbugs.gnu.org; Fri, 16 Jul 2010 17:49:37 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:40060) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1OZsn1-0001sj-Cd for submit@debbugs.gnu.org; Fri, 16 Jul 2010 17:49:51 -0400 Original-Received: from [140.186.70.92] (port=52909 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OZsmz-0002ta-TI for bug-gnu-emacs@gnu.org; Fri, 16 Jul 2010 17:49:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OZsmy-00073e-Qb for bug-gnu-emacs@gnu.org; Fri, 16 Jul 2010 17:49:49 -0400 Original-Received: from rcsinet10.oracle.com ([148.87.113.121]:23311) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OZsmy-00073V-L3 for bug-gnu-emacs@gnu.org; Fri, 16 Jul 2010 17:49:48 -0400 Original-Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id o6GLnjVP015056 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 16 Jul 2010 21:49:47 GMT Original-Received: from acsmt355.oracle.com (acsmt355.oracle.com [141.146.40.155]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o6GLdLrs017264 for ; Fri, 16 Jul 2010 21:49:45 GMT Original-Received: from abhmt019.oracle.com by acsmt353.oracle.com with ESMTP id 433837991279316929; Fri, 16 Jul 2010 14:48:49 -0700 Original-Received: from dradamslap1 (/141.144.64.46) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 16 Jul 2010 14:48:49 -0700 X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5931 Thread-Index: AcslMK3kJ8wYDvJIRcaB6duXuPNdEQ== X-Source-IP: acsmt355.oracle.com [141.146.40.155] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090202.4C40D3F9.00F1:SCFMA4539814,ss=1,fgs=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 16 Jul 2010 17:50:03 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:38616 Archived-At: 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. In GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600) of 2010-07-12 on 3249CTO Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (4.4) --no-opt --cflags -Ic:/xpm/include'