From: Stefan Monnier <monnier@iro.umontreal.ca>
To: help-gnu-emacs@gnu.org
Subject: Re: How to deal with 'function' not known to be defined
Date: Thu, 01 Oct 2020 14:28:57 -0400 [thread overview]
Message-ID: <jwvr1qhhkkz.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: m2ft6xc15n.fsf@codeisgreat.org
> I have a lisp file `init-which-key.el` which is included in
> `~/.emacs.d/init.el`.
[...]
> Flymake reports one warning - "The function 'which-key-mode" is not
> known to be define.
The linters activated in `emacs-lisp-mode` for `flymake` are inadequate
for the kind of code you find in `~/.emacs.d/init.el`.
They're designed for the kind of code you'd find in a package, like
those you can find in ELPA.
If you really want, you can try and write your `init.el` code in a way
that will silence those warnings, but it'll be inconvenient and the
benefits will be very slim and it could even be harmful (typically to
the startup time).
Making a linter that only emits those warnings when they're really
relevant in such a file will/would take a fair bit more effort. In the
mean time I'd suggest you disable that linter in that file or ignore
those warnings.
Stefan
next prev parent reply other threads:[~2020-10-01 18:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-01 17:21 How to deal with 'function' not known to be defined Pankaj Jangid
2020-10-01 17:51 ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-10-01 18:28 ` Stefan Monnier [this message]
2020-10-02 5:08 ` Emanuel Berg via Users list for the GNU Emacs text editor
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvr1qhhkkz.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.