diff options
-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. |