diff options
author | 2024-07-03 18:45:35 +0200 | |
---|---|---|
committer | 2024-07-03 18:45:35 +0200 | |
commit | 7d875c20ad419715459129a46ff04beda8cf74aa (patch) | |
tree | b126580fc5d90f21f87d01fea1f4e86bbf535baa | |
parent | Rearrange order of functions, no code changes (diff) | |
download | ebuild-mode-7d875c20ad419715459129a46ff04beda8cf74aa.tar.gz ebuild-mode-7d875c20ad419715459129a46ff04beda8cf74aa.tar.bz2 ebuild-mode-7d875c20ad419715459129a46ff04beda8cf74aa.zip |
Use static-if in XEmacs compat function
* ebuild-mode.el (ebuild-mode-time-string): Use static-if.
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | ebuild-mode.el | 4 |
2 files changed, 4 insertions, 2 deletions
@@ -1,5 +1,7 @@ 2024-07-03 Ulrich Müller <ulm@gentoo.org> + * ebuild-mode.el (ebuild-mode-time-string): Use static-if. + * ebuild-mode.el (ebuild-mode-update-copyright): Replace nested ifs with cond. diff --git a/ebuild-mode.el b/ebuild-mode.el index 010d414..e8cf385 100644 --- a/ebuild-mode.el +++ b/ebuild-mode.el @@ -267,8 +267,8 @@ Returns non-nil if A is less than B by Gentoo keyword ordering." "Use FORMAT-STRING to format the time value TIME. Calls `format-time-string' (which see) for the UTC time zone. Compatibility function for XEmacs." - (if (and (featurep 'xemacs) - (not (function-allows-args #'format-time-string 3))) + (static-if (and (featurep 'xemacs) + (not (function-allows-args #'format-time-string 3))) ;; format-time-string in older XEmacs versions can take only two ;; arguments. Version 21.5.35 still doesn't support a time zone ;; as third argument, but accepts non-nil to mean Universal Time. |