Skip to content

Commit

Permalink
Makefile: suppress warning for undo-redo being undefined
Browse files Browse the repository at this point in the history
It is part of the newer Emacs, but on the older ones it causes
warnings. There's no tests of that functionality, so just suppress the
warning.
  • Loading branch information
Hi-Angel committed Feb 20, 2024
1 parent a512796 commit ac11f03
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,12 @@ compile: $(ELCFILES)

-include .depend

# These functions are only part of newer Emacs, but they cause byte-compilation
# warnings on older ones. So pre-declare them to suppress these warnings
OLDER_EMACS_DEFUNS = "(progn (defun undo-redo ()) (defun minibuffer-history-value()) (defun switch-to-minibuffer()))"

$(ELCFILES): %.elc: %.el
$(EMACS) --batch -Q -L . -f batch-byte-compile $<
$(EMACS) --batch -Q -L . --eval $(OLDER_EMACS_DEFUNS) -f batch-byte-compile $<

# Byte-compile all files in one batch. This is faster than
# compiling each file in isolation, but also less stringent.
Expand Down

0 comments on commit ac11f03

Please sign in to comment.