diff options
author | Ulrich Müller <ulm@gentoo.org> | 2024-08-10 08:50:27 +0200 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2024-08-10 08:50:27 +0200 |
commit | e0c920c95f1527d179d269647f3735820fe30b86 (patch) | |
tree | 31731b6aac43d85cf6edc33b25a595ff5f959bde | |
parent | Avoid double space in tag line (diff) | |
download | ebuild-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-- | ChangeLog | 5 | ||||
-rw-r--r-- | ebuild-mode.el | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -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) |