I just saw this line near the top of the file
(declare-function package-installed-p 'package)
'package be a useful 2nd argument, when the doc for
declare-function says that the third argument should be a filename?
Emacs Stack Exchange is a question and answer site for those using, extending or developing Emacs. It only takes a minute to sign up.Sign up to join this community
'packagebe a useful 2nd argument, when the doc for
declare-functionsays that the third argument should be a filename?
It's a mistake in use-package.el, now fixed. If you run
check-declare on the unfixed version you'll see in
Malformed declaration for `package-installed-p' Malformed declaration for `(, command)'
The first is the
'package mistake, the second is a false positive on
use-package code that generates a
declare-function statement call.
The reason it's like this, is that
check-declare-scan works by regexp rather than actually parse the lisp code, so it can't be 100% certain about which statements are real.