all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Allen Li <vianchielfaura@gmail.com>
To: 30056@debbugs.gnu.org
Subject: bug#30056: [PATCH] Add leading space to battery-mode-line-format
Date: Wed, 10 Jan 2018 00:45:52 -0800	[thread overview]
Message-ID: <CAJr1M6eRUkcerQ+G80OUW8jN+JPTyL313cBAFqNsMpnt6gqy4g@mail.gmail.com> (raw)
In-Reply-To: <CAJr1M6dB__pwxfTs6+ZuACvazjAsNutDVep9eKNHupX5gQwiWA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 119 bytes --]

Attached patch.  This seems like a reasonable and trivial change, so I
haven't updated NEWS or :version for defcustom.

[-- Attachment #2: 0001-Add-leading-space-to-battery-mode-line-format.patch --]
[-- Type: text/x-patch, Size: 959 bytes --]

From e6c0eeaf0f753c6e49013207730642031af181bb Mon Sep 17 00:00:00 2001
From: Allen Li <darkfeline@felesatra.moe>
Date: Wed, 10 Jan 2018 00:43:03 -0800
Subject: [PATCH] Add leading space to battery-mode-line-format

* lisp/battery.el (battery-mode-line-format): Add leading space.
---
 lisp/battery.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisp/battery.el b/lisp/battery.el
index ca17ae8fc3..880b3536fb 100644
--- a/lisp/battery.el
+++ b/lisp/battery.el
@@ -119,9 +119,9 @@ battery-mode-line-limit
 
 (defcustom battery-mode-line-format
   (cond ((eq battery-status-function 'battery-linux-proc-acpi)
-	 "[%b%p%%,%d°C]")
+	 " [%b%p%%,%d°C]")
 	(battery-status-function
-	 "[%b%p%%]"))
+	 " [%b%p%%]"))
   "Control string formatting the string to display in the mode line.
 Ordinary characters in the control string are printed as-is, while
 conversion specifications introduced by a `%' character in the control
-- 
2.15.1


  reply	other threads:[~2018-01-10  8:45 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-10  3:26 bug#30056: 25.3; battery-mode-line-string missing leading space Allen Li
2018-01-10  8:45 ` Allen Li [this message]
2018-01-10 15:29 ` Eli Zaretskii
2018-01-10 17:06   ` Glenn Morris
2018-01-10 19:05     ` Eli Zaretskii
2018-01-10 23:26       ` Allen Li
2018-01-11 15:57         ` Eli Zaretskii
2018-01-12  8:18           ` Allen Li
2020-08-10 13:43             ` Lars Ingebrigtsen
2020-08-11  8:40               ` Allen Li
2020-08-11 11:19                 ` Lars Ingebrigtsen
2020-08-12  7:31                   ` Allen Li
2021-07-22 14:15               ` Lars Ingebrigtsen
2021-07-23 12:48                 ` Lars Ingebrigtsen
2021-07-23 18:23                   ` Juri Linkov
2021-07-24 11:54                     ` Lars Ingebrigtsen
2021-07-26 23:09                       ` Juri Linkov
2021-07-27 20:56                         ` Juri Linkov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAJr1M6eRUkcerQ+G80OUW8jN+JPTyL313cBAFqNsMpnt6gqy4g@mail.gmail.com \
    --to=vianchielfaura@gmail.com \
    --cc=30056@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.