When I byte compile an elisp file via
emacs -batch -f batch-byte-compile I get Warning: load-theme called with 2 arguments, but accepts only 1. The code in question:
(load-theme 'solarized-light t)
The source in Emacs 25.1's custom.el:
(defun load-theme (theme &optional no-confirm no-enable) ...
Similarly I get set-frame-font called with 3 arguments, but accepts
only 1-2 when set-frame-font's help says:
(set-frame-font FONT &optional KEEP-SIZE FRAMES)
Which is confused, the byte compiler or I; and why?