summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2024-08-10 08:50:27 +0200
committerUlrich Müller <ulm@gentoo.org>2024-08-10 08:50:27 +0200
commite0c920c95f1527d179d269647f3735820fe30b86 (patch)
tree31731b6aac43d85cf6edc33b25a595ff5f959bde
parentAvoid double space in tag line (diff)
downloadebuild-mode-e0c920c95f1527d179d269647f3735820fe30b86.tar.gz
ebuild-mode-e0c920c95f1527d179d269647f3735820fe30b86.tar.bz2
ebuild-mode-e0c920c95f1527d179d269647f3735820fe30b86.zip
Revert static-if in add-hook
* ebuild-mode.el (find-file-hook): Use 'if' because 'static-if' breaks autoloads. This partially reverts commit 4adf7b9. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
-rw-r--r--ChangeLog5
-rw-r--r--ebuild-mode.el2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index c8897d2..8a853d3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-08-10 Ulrich Müller <ulm@gentoo.org>
+
+ * ebuild-mode.el (find-file-hook): Use 'if' because 'static-if'
+ breaks autoloads.
+
2024-08-08 Ulrich Müller <ulm@gentoo.org>
* ebuild-mode.el (ebuild-mode-insert-tag-line): Don't insert
diff --git a/ebuild-mode.el b/ebuild-mode.el
index 42e162d..06a30a9 100644
--- a/ebuild-mode.el
+++ b/ebuild-mode.el
@@ -1041,7 +1041,7 @@ in a Gentoo profile."
;;;###autoload
(add-hook
;; XEmacs 21.5 doesn't have find-file-hook
- (static-if (boundp 'find-file-hook) 'find-file-hook 'find-file-hooks)
+ (if (boundp 'find-file-hook) 'find-file-hook 'find-file-hooks)
#'ebuild-repo-mode-maybe-enable)
(provide 'ebuild-mode)