From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Kaushal Modi Newsgroups: gmane.emacs.bugs Subject: bug#28524: 26.0.60; Truncation in %d displayed numbers in minor mode lighter Date: Wed, 20 Sep 2017 16:18:53 +0000 Message-ID: References: <83d16lfiro.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="089e0828d2c0a158550559a155f1" X-Trace: blaine.gmane.org 1505924564 27847 195.159.176.226 (20 Sep 2017 16:22:44 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 20 Sep 2017 16:22:44 +0000 (UTC) Cc: 28524@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 20 18:22:39 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1duhlm-0006ow-7Y for geb-bug-gnu-emacs@m.gmane.org; Wed, 20 Sep 2017 18:22:38 +0200 Original-Received: from localhost ([::1]:49495 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1duhlt-0001Ue-CW for geb-bug-gnu-emacs@m.gmane.org; Wed, 20 Sep 2017 12:22:45 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42093) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1duhjK-0007mU-IP for bug-gnu-emacs@gnu.org; Wed, 20 Sep 2017 12:20:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1duhjH-0002A3-9V for bug-gnu-emacs@gnu.org; Wed, 20 Sep 2017 12:20:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41720) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1duhjH-00029q-6U for bug-gnu-emacs@gnu.org; Wed, 20 Sep 2017 12:20:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1duhjG-0005or-QT for bug-gnu-emacs@gnu.org; Wed, 20 Sep 2017 12:20:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Kaushal Modi Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 20 Sep 2017 16:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28524 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 28524-submit@debbugs.gnu.org id=B28524.150592435522304 (code B ref 28524); Wed, 20 Sep 2017 16:20:02 +0000 Original-Received: (at 28524) by debbugs.gnu.org; 20 Sep 2017 16:19:15 +0000 Original-Received: from localhost ([127.0.0.1]:50401 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1duhiU-0005nf-IN for submit@debbugs.gnu.org; Wed, 20 Sep 2017 12:19:14 -0400 Original-Received: from mail-yw0-f170.google.com ([209.85.161.170]:53905) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1duhiQ-0005nO-I9 for 28524@debbugs.gnu.org; Wed, 20 Sep 2017 12:19:11 -0400 Original-Received: by mail-yw0-f170.google.com with SMTP id x131so2248476ywa.10 for <28524@debbugs.gnu.org>; Wed, 20 Sep 2017 09:19:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=UYcESEsQQNJEpx0pmbqcNuJ28heAi4H+kOQzrWyqWwo=; b=GQt1VjiE9EW83PehQaCzx8mBH2wrbhsx7W52ub9nbb5fkW+fJRsw0VQKdDWr5PokNf rn3nxJExSAcnkwMY354hmp5+lFjzVXvyyoZcYmaPxvwQaQIPmGSCSVWEdfDPEAFCPrhp 6gULM1qH8kXWUqKqBB3e2BqbljxYYiF6tKIBrJyhlS2qE+GtPV36ypdrcgDRxspfBfVX To0gSBOeEoWkuRV6Kf3E4i/xSSmpq8k3PVTu7919GVzbtLtB72lMXm/MQX+QicY4AV8g nMgb/mfd1r/5N2w9dA3oJFPxMDWmSE8AtQtUs8m3iTGEiiYYKD+v0g4tq7lFry6j4NQO Bvxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=UYcESEsQQNJEpx0pmbqcNuJ28heAi4H+kOQzrWyqWwo=; b=qwC8e0Iw0emWRdMZTpGOksPiz1a6yGGdSxLx+nOA3fkhByWWLXvY0WeJMhdVorO0zU R2HhHb8S0DpvsLHnmKX7SNzOzVMssKdJD0U67QS64cQmUd3Axvhk+k7rqvSi71d7I5o7 yZzuCuxVDMQhvfQztDTgcTWXc5G6/ZF0EEFCLOMhazAAXJEIimnTKmO5lU9J+Ql1oCjo PKoZcdXU1HDEn2n/hMps3KuJ19w4y2bxoA1kguKJKSEi5kuD9lrXBMvNwVg9vb470ebF PKrNCeBfw4nSUHIYt/QXA+si2zCv3yAinFWvTPKAGABhu8aAYY+YYmyAiHeC1pCcY9Rf 54AQ== X-Gm-Message-State: AHPjjUhMzQJQP2uCdnhnNGIBnoW6ju/md+fpJUrYbDWdSrUqVzw961Dd CVJp4YpvWpghjm1dPaIiH+rqxPRbFRAi/S8ybhE= X-Google-Smtp-Source: AOwi7QAS/0EefekDa1vFzLRk3dXU9VNqQ3K3KnP6+KXfoXIzR0sJCPcVKHGyxhOR3gfR/oBAMo1s+4qxQHXH3Wo6OXk= X-Received: by 10.37.135.9 with SMTP id a9mr3970579ybl.316.1505924344795; Wed, 20 Sep 2017 09:19:04 -0700 (PDT) In-Reply-To: <83d16lfiro.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:137180 Archived-At: --089e0828d2c0a158550559a155f1 Content-Type: text/plain; charset="UTF-8" On Wed, Sep 20, 2017 at 12:16 PM Eli Zaretskii wrote: > > I don't understand the exact meaning of those numbers "0 2", but looks > like that limits the number of > > characters to be displayed after "test:"? > > No, it means that the face covers 2 characters starting with the first > one. > Thanks. I don't think I understand all the complexity you've gone through, > because this works for me in the current emacs-26 branch: > > (insert (format (propertize "%d" 'face 'font-lock-warning-face) 10)) > That works, and so I had to come up with this recipe. Can you see the problem too if you follow this recipe? Did you also see the screenshots I took based on this recipe in emacs -Q? > How is this different from what you do? > It probably has something to do with a function call (test-incr) instead of a static value like 10? -- Kaushal Modi --089e0828d2c0a158550559a155f1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Wed, Sep 20= , 2017 at 12:16 PM Eli Zaretskii <eliz@g= nu.org> wrote:
> I don= 9;t understand the exact meaning of those numbers "0 2", but look= s like that limits the number of
> characters to be displayed after "test:"?

No, it means that the face covers 2 characters starting with the first
one.

Thanks.

I don't think I understand all the complexity = you've gone through,
because this works for me in the current emacs-26 branch:

=C2=A0 (insert (format (propertize "%d" 'face 'font-lock-= warning-face) 10))

That works, and so I= had to come up with this recipe. Can you see the problem too if you follow= this recipe? Did you also see the screenshots I took based on this recipe = in emacs -Q?
=C2=A0
How is t= his different from what you do?

It prob= ably has something to do with a function call (test-incr) instead of a stat= ic value like 10?
--

Kaus= hal Modi

--089e0828d2c0a158550559a155f1--