refactor(lib): backport static-{if,when,unless}

And deprecate our eval-{if,when}! macros.
This commit is contained in:
Henrik Lissner
2025-04-14 22:58:59 -04:00
parent faea320162
commit a13719af45
4 changed files with 46 additions and 18 deletions

View File

@ -596,7 +596,7 @@ which case it will save it without prompting."
;; Introduced in Emacs 29.
;;;###autoload
(eval-when! (not (fboundp 'find-sibling-file))
(static-unless (fboundp 'find-sibling-file)
(defvar find-sibling-rules nil)
(defun find-sibling-file (file)