From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Allen Li Newsgroups: gmane.emacs.bugs Subject: bug#30056: 25.3; battery-mode-line-string missing leading space Date: Wed, 12 Aug 2020 07:31:17 +0000 Message-ID: References: <83fu7d68bf.fsf@gnu.org> <834lnt5ybx.fsf@gnu.org> <83mv1k4cd1.fsf@gnu.org> <87tuxa39c7.fsf@gnus.org> <80ft8t8tiv.fsf@felesatra.moe> <87ft8txwdk.fsf@gnus.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000000009d805aca92d30" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21506"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Glenn Morris , 30056@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 12 09:32:19 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k5lFC-0005T6-U0 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 12 Aug 2020 09:32:19 +0200 Original-Received: from localhost ([::1]:54572 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k5lFC-00075V-0u for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 12 Aug 2020 03:32:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41580) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k5lEx-00075N-KD for bug-gnu-emacs@gnu.org; Wed, 12 Aug 2020 03:32:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59476) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k5lEw-0008Hc-FX for bug-gnu-emacs@gnu.org; Wed, 12 Aug 2020 03:32:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k5lEw-0005ze-CC for bug-gnu-emacs@gnu.org; Wed, 12 Aug 2020 03:32:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Allen Li Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 12 Aug 2020 07:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30056 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 30056-submit@debbugs.gnu.org id=B30056.159721749823007 (code B ref 30056); Wed, 12 Aug 2020 07:32:02 +0000 Original-Received: (at 30056) by debbugs.gnu.org; 12 Aug 2020 07:31:38 +0000 Original-Received: from localhost ([127.0.0.1]:42789 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k5lEY-0005z1-AQ for submit@debbugs.gnu.org; Wed, 12 Aug 2020 03:31:38 -0400 Original-Received: from mail-ot1-f41.google.com ([209.85.210.41]:39563) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k5lET-0005yl-Re for 30056@debbugs.gnu.org; Wed, 12 Aug 2020 03:31:37 -0400 Original-Received: by mail-ot1-f41.google.com with SMTP id z18so1214904otk.6 for <30056@debbugs.gnu.org>; Wed, 12 Aug 2020 00:31:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=felesatra-moe.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=kk/WUw2wNGSwCCvOxy7VTfGrFXXtBF23oaaFlj8v9sg=; b=PPagaNoisqNaI6yYXQ9RbWU5UoPUuQaoyXZTqxYI5G/mtFrgUJihz+ChfFyJkzlVwb y/8BLu78evowtFk87IfjZnR7bWlblUuNbstAuFMYNKtE6aUdWDJDqNJhbcWUfc33+VkI GrIldkuxr6ERvuB3aPjWtcRbYHpc4pfpOzqIQdYJxhS+HSZnMbo6b6tnhuOwFWwCyAW7 Mxogul3zmcUshhze/sWCls858PR6s3TKI7YG0uVWmH7/OtXfeOsUZheyCpz2M4kdpI/r 1jW3K3tXmp2Q9JyjLHXy69PYuhq+ZmADAADCNS5SP5Zwiy/qTqVOPmZgo3WchFI9WI/v IZfw== 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=kk/WUw2wNGSwCCvOxy7VTfGrFXXtBF23oaaFlj8v9sg=; b=qfugAOuEvgzZHec3AjU49qbnATCuGGFJiBUqqok/ZoQFrjO/4WFJgZFjbD4QqCEc1Y y+LKUE7k1nQ0mF1y4fGUlDP36LvxXzI4JBODBOLbHCMWxADpQmlE94sD9fX6j6ZG5qBi 3v3oCCjKinxxw+OETcExiCuNIfEGeplHEnTUznBlqG55f85QPutRNghg1I9jd8HrJIDT zV6LsyKLIUQ+trAhyV1/02SnUTUm/ePOLplHg4VkeODyWdCnEx+ALxErJg0YgrBuVAek FD3pTA9NlK7ZiyBgNpbvJ+6aG2wfAFRY4rbk9zVXqFWWIXXg5vIkWtn79xI/SdrNGolQ U0HA== X-Gm-Message-State: AOAM5304/GJ+ne9AFwMGe/BJ+dqx7enZV/OLARSfIIDgwtBWTjyEK7y4 wvy3XALlMThVpJGLFuDOrbUe6zqo/d5uYdpHv2rNsg== X-Google-Smtp-Source: ABdhPJwd43pHIwnRTgRTfpcAliw9Lh6NNp5X5S/BYPRDP2PpBn38wCNKz42APJEbNLjLXnmiPODT1r5Yo9YN0FF0W/4= X-Received: by 2002:a9d:1445:: with SMTP id h63mr8342812oth.75.1597217487972; Wed, 12 Aug 2020 00:31:27 -0700 (PDT) In-Reply-To: <87ft8txwdk.fsf@gnus.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:184762 Archived-At: --0000000000000009d805aca92d30 Content-Type: text/plain; charset="UTF-8" On Tue, Aug 11, 2020 at 11:20 AM Lars Ingebrigtsen wrote: > Allen Li writes: > > > I find that idea intriguing. It would work, and it's a useful feature > > to have as an Emacs Lisp developer, because it provide a robust solution > > to the problem of "I want to have a space separation in the mode line, > > but I don't know what comes before/after me". > > > > Although personally, I feel a little dirty adding a new %-construct just > > for this. > > I think we either have to do this, or introduce a formal convention for > these strings that say either to always add a space to the front or the > back of them. > > I guess we don't really see this much as a problem in practice, because > we don't have many of these "non-mode" strings in the mode line. > > So perhaps settling on a convention and then altering all the instances > to follow it would be more efficient -- there's probably just a few > dozen of them? > I'm fine with that (I assumed that such a convention already existed previously on this bug's thread). > > -- > (domestic pets only, the antidote for overdose, milk.) > bloggy blog: http://lars.ingebrigtsen.no > --0000000000000009d805aca92d30 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Tue, Aug 11, 2020 at 11:20 AM Lars Ing= ebrigtsen <larsi@gnus.org> wrot= e:
Allen Li <darkfeline@felesatra.moe> writes:

> I find that idea intriguing.=C2=A0 It would work, and it's a usefu= l feature
> to have as an Emacs Lisp developer, because it provide a robust soluti= on
> to the problem of "I want to have a space separation in the mode = line,
> but I don't know what comes before/after me".
>
> Although personally, I feel a little dirty adding a new %-construct ju= st
> for this.

I think we either have to do this, or introduce a formal convention for
these strings that say either to always add a space to the front or the
back of them.

I guess we don't really see this much as a problem in practice, because=
we don't have many of these "non-mode" strings in the mode li= ne.

So perhaps settling on a convention and then altering all the instances
to follow it would be more efficient -- there's probably just a few
dozen of them?

I'm fine with that (= I assumed that such a convention already existed previously on this bug'= ;s thread).
=C2=A0

--
(domestic pets only, the antidote for overdose, milk.)
=C2=A0 =C2=A0bloggy blog: http://lars.ingebrigtsen.no
--0000000000000009d805aca92d30--