]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix space at the start of appt mode line element
authorLars Ingebrigtsen <larsi@gnus.org>
Thu, 19 Aug 2021 15:48:14 +0000 (17:48 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Thu, 19 Aug 2021 15:48:14 +0000 (17:48 +0200)
* lisp/calendar/appt.el (appt-check): Add space at the end
(bug#18164) -- all `global-mode-string' elements should have it
there to get an even space distribution.

lisp/calendar/appt.el

index 29bcd6de2ceaeb1e706ef75f5476842e7f4e5615..f523863440fcc932bb88bf367f2c04eda1b02c45 100644 (file)
@@ -402,11 +402,12 @@ displayed in a window:
              (appt-display-message string-list min-list))
         (when appt-display-mode-line
           (setq appt-mode-string
-                (concat " " (propertize
-                             (appt-mode-line (mapcar #'number-to-string
-                                                     min-list)
-                                             t)
-                             'face 'mode-line-emphasis))))
+                (concat (propertize
+                         (appt-mode-line (mapcar #'number-to-string
+                                                 min-list)
+                                         t)
+                         'face 'mode-line-emphasis)
+                        " ")))
         ;; Reset count to 0 in case we display another appt on the next cycle.
         (setq appt-display-count (if (eq '(0) min-list) 0
                                    (1+ prev-appt-display-count))))