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#12866: 24.3.50; (elisp) `%-Constructs': padded with spaces to the right or left? Date: Sun, 11 Nov 2012 17:12:00 -0800 Message-ID: References: <6AF52605E30148ED8B17B728582BD036@us.oracle.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1352682770 2581 80.91.229.3 (12 Nov 2012 01:12:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 12 Nov 2012 01:12:50 +0000 (UTC) Cc: 12866@debbugs.gnu.org To: "'Juanma Barranquero'" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Nov 12 02:13:00 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 1TXiaC-0003tt-2k for geb-bug-gnu-emacs@m.gmane.org; Mon, 12 Nov 2012 02:13:00 +0100 Original-Received: from localhost ([::1]:38182 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TXia0-0008VU-GZ for geb-bug-gnu-emacs@m.gmane.org; Sun, 11 Nov 2012 20:12:48 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:46252) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TXiZv-0008VG-H1 for bug-gnu-emacs@gnu.org; Sun, 11 Nov 2012 20:12:46 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TXiZs-0006H6-F5 for bug-gnu-emacs@gnu.org; Sun, 11 Nov 2012 20:12:43 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51969) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TXiZs-0006H2-BW for bug-gnu-emacs@gnu.org; Sun, 11 Nov 2012 20:12:40 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TXiaD-00088i-Hw for bug-gnu-emacs@gnu.org; Sun, 11 Nov 2012 20:13:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 12 Nov 2012 01:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12866 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12866-submit@debbugs.gnu.org id=B12866.135268275531255 (code B ref 12866); Mon, 12 Nov 2012 01:13:01 +0000 Original-Received: (at 12866) by debbugs.gnu.org; 12 Nov 2012 01:12:35 +0000 Original-Received: from localhost ([127.0.0.1]:33985 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TXiZn-000883-70 for submit@debbugs.gnu.org; Sun, 11 Nov 2012 20:12:35 -0500 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:48451) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TXiZl-00087w-61 for 12866@debbugs.gnu.org; Sun, 11 Nov 2012 20:12:33 -0500 Original-Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by aserp1040.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id qAC1CAmP020611 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 12 Nov 2012 01:12:11 GMT Original-Received: from acsmt357.oracle.com (acsmt357.oracle.com [141.146.40.157]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id qAC1CAEr020336 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 12 Nov 2012 01:12:10 GMT Original-Received: from abhmt119.oracle.com (abhmt119.oracle.com [141.146.116.71]) by acsmt357.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id qAC1CARl015261; Sun, 11 Nov 2012 19:12:10 -0600 Original-Received: from dradamslap1 (/71.202.147.44) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sun, 11 Nov 2012 17:12:09 -0800 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: Ac3AbwWD1TcSIRM2TpGLa/+6WfO9+gAAfxsA X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-Spam-Score: 0.6 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-Spam-Score: 0.6 (/) 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:66779 Archived-At: > > In any construct except `%%', you can add a decimal > > integer after the`%' to specify a minimum field width. > > If the width is less, the field is padded with spaces > > to the right. > > I think it was meant to say "is padded, with spaces, to the right", or > more clearly, "is padded to the right with spaces". Sorry, I still don't get it. To me, each of those statements suggests that the text in the field, in this case the line number indication (e.g. "L25"), gets padded by adding spaces on the right (i.e., after the text), up to the specified width. But what I think I see is that the text gets padded on the left; that is, spaces are added before (to the left of) the field's text, until it is of the given width. E.g., for "%8l": Field unpadded (i.e., "%l"): "L25" Field padded on the left: " L25" Field padded on the right: "L25 " "Padding on the right" means adding spaces to the right of the text, AFAIK. And I think I am seeing them added to the left of the text. What am I missing?