summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2024-07-03 18:45:35 +0200
committerUlrich Müller <ulm@gentoo.org>2024-07-03 18:45:35 +0200
commit7d875c20ad419715459129a46ff04beda8cf74aa (patch)
treeb126580fc5d90f21f87d01fea1f4e86bbf535baa
parentRearrange order of functions, no code changes (diff)
downloadebuild-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--ChangeLog2
-rw-r--r--ebuild-mode.el4
2 files changed, 4 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index b7bdc28..052969a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.