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

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

[nongnu] elpa/hyperdrive 804ec989d3 062/102: Fix "%H" specifier


From: ELPA Syncer
Subject: [nongnu] elpa/hyperdrive 804ec989d3 062/102: Fix "%H" specifier
Date: Wed, 29 Nov 2023 04:00:54 -0500 (EST)

branch: elpa/hyperdrive
commit 804ec989d34c880ff257f5971b885c1348d45a02
Author: Adam Porter <adam@alphapapa.net>
Commit: Adam Porter <adam@alphapapa.net>

    Fix "%H" specifier
---
 hyperdrive-lib.el | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/hyperdrive-lib.el b/hyperdrive-lib.el
index 2f8f7cdf17..3097e1841c 100644
--- a/hyperdrive-lib.el
+++ b/hyperdrive-lib.el
@@ -981,7 +981,13 @@ according to FORMATS, by default `hyperdrive-formats', 
which see."
                     "")))
       (format-spec format
                    ;; TODO(deprecate-28): Use lambdas in each specifier.
-                   `((?H . ,(and (string-match-p "%H" format)
+                   `((?H . ,(and (string-match-p (rx "%"
+                                                     ;; Flags
+                                                     (optional (1+ (or " " "0" 
"-" "<" ">" "^" "_")))
+                                                     (0+ digit) ;; Width
+                                                     (0+ digit) ;; Precision
+                                                     "H")
+                                                 format)
                                  ;; HACK: Once using lambdas in this specifier,
                                  ;; remove the `string-match-p' check.
                                  (hyperdrive--preferred-format hyperdrive)))



reply via email to

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