Skip to content

Commit d79c5fe

Browse files
committed
Makefile: suppress warning for undo-redo being undefined
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.
1 parent fbc5f99 commit d79c5fe

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,12 @@ compile: $(ELCFILES)
2525

2626
-include .depend
2727

28+
# These functions are only part of newer Emacs, but they cause byte-compilation
29+
# warnings on older ones. So pre-declare them to suppress these warnings
30+
OLDER_EMACS_DEFUNS = "(progn (defun undo-redo ()) (defun minibuffer-history-value()) (defun switch-to-minibuffer()))"
31+
2832
$(ELCFILES): %.elc: %.el
29-
$(EMACS) --batch -Q -L . -f batch-byte-compile $<
33+
$(EMACS) --batch -Q -L . --eval $(OLDER_EMACS_DEFUNS) -f batch-byte-compile $<
3034

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

0 commit comments

Comments
 (0)