emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/swsw e43021aa7e 112/146: * swsw.el (swsw-format-id): Use '


From: ELPA Syncer
Subject: [nongnu] elpa/swsw e43021aa7e 112/146: * swsw.el (swsw-format-id): Use 'format-spec' instead of 'format'
Date: Wed, 25 May 2022 02:59:52 -0400 (EDT)

branch: elpa/swsw
commit e43021aa7efb45d327b66d2f674563051ceea196
Author: Daniel Semyonov <daniel@dsemy.com>
Commit: Daniel Semyonov <daniel@dsemy.com>

    * swsw.el (swsw-format-id): Use 'format-spec' instead of 'format'
---
 swsw.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/swsw.el b/swsw.el
index a7b2fd0d8e..3ec4742d5b 100644
--- a/swsw.el
+++ b/swsw.el
@@ -219,8 +219,9 @@ If set to `lighter', use a mode line lighter."
 
 (defun swsw-format-id (window)
   "Format an ID string for WINDOW."
-  (format swsw-id-format
-          (apply #'string (window-parameter window 'swsw-id))))
+  (format-spec swsw-id-format
+               `((?s .
+                  ,(apply #'string (window-parameter window 'swsw-id))))))
 
 (defun swsw--mode-line-display ()
   "Display window IDs at the beginning of the mode line."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]