From unknown Sat Aug 16 10:51:07 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#6659 <6659@debbugs.gnu.org> To: bug#6659 <6659@debbugs.gnu.org> Subject: Status: 24.0.50; doc string of `format' Reply-To: bug#6659 <6659@debbugs.gnu.org> Date: Sat, 16 Aug 2025 17:51:07 +0000 retitle 6659 24.0.50; doc string of `format' reassign 6659 emacs submitter 6659 "Drew Adams" severity 6659 minor tag 6659 fixed thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 16 17:49:39 2010 Received: (at submit) by debbugs.gnu.org; 16 Jul 2010 21:49:39 +0000 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 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 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 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 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 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 Received: from abhmt019.oracle.com by acsmt353.oracle.com with ESMTP id 433837991279316929; Fri, 16 Jul 2010 14:48:49 -0700 Received: from dradamslap1 (/141.144.64.46) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 16 Jul 2010 14:48:49 -0700 From: "Drew Adams" To: Subject: 24.0.50; doc string of `format' Date: Fri, 16 Jul 2010 14:48:51 -0700 Message-ID: <8783F2C73E2C4F04A5A4B36F21CCFAFC@us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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-Spam-Score: -6.3 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.3 (------) 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' From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 03 09:03:47 2011 Received: (at control) by debbugs.gnu.org; 3 Jul 2011 13:03:47 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QdMKw-0004tw-Ji for submit@debbugs.gnu.org; Sun, 03 Jul 2011 09:03:46 -0400 Received: from hermes.netfonds.no ([80.91.224.195]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QdMKv-0004tj-BL for control@debbugs.gnu.org; Sun, 03 Jul 2011 09:03:45 -0400 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 1QdMKk-00087F-7R for control@debbugs.gnu.org; Sun, 03 Jul 2011 15:03:34 +0200 Date: Sun, 03 Jul 2011 15:03:33 +0200 Message-Id: To: control@debbugs.gnu.org From: Lars Magne Ingebrigtsen Subject: control message for bug #6659 X-MailScanner-ID: 1QdMKk-00087F-7R X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1310303014.49371@kdkj4ofZC1OL68++wQFbsQ X-Spam-Status: No X-Spam-Score: -2.8 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.8 (--) tags 6659 fixed close 6659 24.1 From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 03 09:10:01 2011 Received: (at 6659) by debbugs.gnu.org; 3 Jul 2011 13:10:02 +0000 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 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 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 From: Lars Magne Ingebrigtsen To: "Drew Adams" Subject: Re: 24.0.50; doc string of `format' In-Reply-To: <8783F2C73E2C4F04A5A4B36F21CCFAFC@us.oracle.com> (Drew Adams's message of "Fri, 16 Jul 2010 14:48:51 -0700") Date: Sun, 03 Jul 2011 15:03:29 +0200 Message-ID: References: <8783F2C73E2C4F04A5A4B36F21CCFAFC@us.oracle.com> 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 MIME-Version: 1.0 Content-Type: text/plain X-MailScanner-ID: 1QdMQg-0008Cm-KY X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1310303382.80665@eCPesCynkEHbGTl8f1R0UA X-Spam-Status: No X-Spam-Score: -2.8 (--) X-Debbugs-Envelope-To: 6659 Cc: 6659@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.8 (--) "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/ From unknown Sat Aug 16 10:51:07 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 01 Aug 2011 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator