From 7d875c20ad419715459129a46ff04beda8cf74aa Mon Sep 17 00:00:00 2001 From: Ulrich Müller Date: Wed, 3 Jul 2024 18:45:35 +0200 Subject: Use static-if in XEmacs compat function MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * ebuild-mode.el (ebuild-mode-time-string): Use static-if. Signed-off-by: Ulrich Müller --- ChangeLog | 2 ++ ebuild-mode.el | 4 ++-- 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 + * 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. -- cgit v1.2.3-65-gdbad