Skip to content

Commit fa5a6f1

Browse files
committed
Use auto-compile--static-if instead of static-if
Using our own copy of static-if was the intention in [1: bd9fa40]. 1: 2026-02-17 bd9fa40 auto-compile-use-mode-line-set: Use static-if
1 parent bd9fa40 commit fa5a6f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

auto-compile.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ Optionally that suffix may be followed by one listed in
507507
(string-match-p (format "\\.el%s\\'" (regexp-opt load-file-rep-suffixes))
508508
file))
509509

510-
(static-if (fboundp 'file-name-with-extension)
510+
(auto-compile--static-if (fboundp 'file-name-with-extension)
511511
;; Added in Emacs 28.1.
512512
(defalias 'auto-compile--file-name-with-extension
513513
#'file-name-with-extension)
@@ -872,7 +872,7 @@ Without this advice the outdated source file would get loaded."
872872

873873
;;; _
874874

875-
(static-if (fboundp 'setopt) ; since Emacs 29.1
875+
(auto-compile--static-if (fboundp 'setopt) ; since Emacs 29.1
876876
(defun auto-compile-use-mode-line-set (_ignored value)
877877
(declare (obsolete "use `setopt' instead." "Auto-Compile 2.1.2"))
878878
(setopt auto-compile-use-mode-line value)))

0 commit comments

Comments
 (0)