From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#12866: 24.3.50; (elisp) `%-Constructs': padded with spaces to the right or left? Date: Mon, 12 Nov 2012 17:45:24 +0200 Message-ID: <83mwymx1t7.fsf@gnu.org> References: <6AF52605E30148ED8B17B728582BD036@us.oracle.com> <83pq3jwkwg.fsf@gnu.org> <0CF50E0E288748AEA7AAD1F837E5EE36@us.oracle.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1352735206 15951 80.91.229.3 (12 Nov 2012 15:46:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 12 Nov 2012 15:46:46 +0000 (UTC) Cc: 12866@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Nov 12 16:46:56 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 1TXwDv-000709-UP for geb-bug-gnu-emacs@m.gmane.org; Mon, 12 Nov 2012 16:46:56 +0100 Original-Received: from localhost ([::1]:41152 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TXwDm-0002vc-FQ for geb-bug-gnu-emacs@m.gmane.org; Mon, 12 Nov 2012 10:46:46 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:48781) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TXwDh-0002vI-89 for bug-gnu-emacs@gnu.org; Mon, 12 Nov 2012 10:46:44 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TXwDe-0004l6-5z for bug-gnu-emacs@gnu.org; Mon, 12 Nov 2012 10:46:41 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53573) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TXwDe-0004ky-30 for bug-gnu-emacs@gnu.org; Mon, 12 Nov 2012 10:46:38 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TXwE2-0004OY-Cs for bug-gnu-emacs@gnu.org; Mon, 12 Nov 2012 10:47:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 12 Nov 2012 15:47:02 +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.135273519516862 (code B ref 12866); Mon, 12 Nov 2012 15:47:02 +0000 Original-Received: (at 12866) by debbugs.gnu.org; 12 Nov 2012 15:46:35 +0000 Original-Received: from localhost ([127.0.0.1]:35590 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TXwDa-0004Nu-M9 for submit@debbugs.gnu.org; Mon, 12 Nov 2012 10:46:34 -0500 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:65215) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TXwDY-0004Nm-LG for 12866@debbugs.gnu.org; Mon, 12 Nov 2012 10:46:33 -0500 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MDD00H00T0TSC00@a-mtaout22.012.net.il> for 12866@debbugs.gnu.org; Mon, 12 Nov 2012 17:45:09 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MDD00GEFT39VOH0@a-mtaout22.012.net.il>; Mon, 12 Nov 2012 17:45:09 +0200 (IST) In-reply-to: <0CF50E0E288748AEA7AAD1F837E5EE36@us.oracle.com> X-012-Sender: halo1@inter.net.il X-Spam-Score: 1.5 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-Spam-Score: 1.5 (+) 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:66798 Archived-At: > From: "Drew Adams" > Cc: <12866@debbugs.gnu.org> > Date: Sun, 11 Nov 2012 19:45:33 -0800 > > > > (set (make-local-variable 'mode-line-position) '("%40l")) > > > > > > It seems to me that that pads the line number with spaces > > > on the left, not the right. But perhaps I'm missing something. > > > > I think string formats, like %s, are padded to the right. IOW, the > > padding behaves like in C. > > Dunno what that means. Are you drawing a contrast with what you think? Or with > %s (subprocess status) vs %l for mode-line constructs? Something else? > > The padding for %l (in the mode line) is what this bug report is about. AFAICT, > the padding is put on the left. Do you see something different from that? The bug report contrasted the documentation with what the code does. I pointed out that the documentation is only correct as far as string formatting is concerned, but is incorrect wrt numerical formats, which indeed pad on the left. Hopefully, this will help you know the truth, and will help someone to fix the documentation.