Remove use of 'string-pad' so we can depend on Emacs 27.1

This is in response to bug#78991 by John Sullivan:
<https://lists.gnu.org/archive/html/bug-gnu-emacs/2025-07/msg00480.html>.
This commit is contained in:
Protesilaos Stavrou 2025-07-10 20:08:32 +03:00
parent 5f9dc66851
commit bf6c6ce67a
No known key found for this signature in database
GPG key ID: 99BD6459CD5CA3EA

View file

@ -6,7 +6,7 @@
;; Maintainer: Protesilaos Stavrou <info@protesilaos.com>
;; URL: https://github.com/protesilaos/modus-themes
;; Version: 4.8.0
;; Package-Requires: ((emacs "28.1"))
;; Package-Requires: ((emacs "27.1"))
;; Keywords: faces, theme, accessibility
;; This file is part of GNU Emacs.
@ -1313,7 +1313,7 @@ PALETTE is the value of a variable like `modus-operandi-palette'."
(pcase-let* ((`(,name ,value) cell)
(name-string (format "%s" name))
(value-string (format "%s" value))
(value-string-padded (string-pad value-string 30))
(value-string-padded (format "%-30s" value-string))
(color (modus-themes-get-color-value name mappings theme))) ; resolve a semantic mapping
(list name
(vector