From: Philip Kaludercic <philipk@posteo.net>
To: help-gnu-emacs@gnu.org
Subject: Re: Flymake for elisp does not respect `load-path`
Date: Sat, 15 May 2021 23:20:15 +0000 [thread overview]
Message-ID: <87zgwvtwi8.fsf@posteo.net> (raw)
In-Reply-To: <87sg2ousf9.fsf@gmail.com> (Max Brieiev's message of "Sat, 15 May 2021 14:50:50 +0300")
Max Brieiev <max.brieiev@gmail.com> writes:
> In elisp buffer, flymake reports an error for the following line:
>
> (require 'dash)
>
> The reported error is "Cannot open load file: No such file or directory,
> dash".
>
> dash is obviously on `load-path`. How can I make flymake happy?
Have you tried wrapping the require statement in a (eval-and-load ...)
block? I had the same issue with loading site-local files in my
configuration.
--
Philip K.
prev parent reply other threads:[~2021-05-15 23:20 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-15 11:50 Flymake for elisp does not respect `load-path` Max Brieiev
2021-05-15 15:43 ` Stefan Monnier via Users list for the GNU Emacs text editor
2021-05-15 21:01 ` Max Brieiev
2021-05-15 19:31 ` Joost Kremers
2021-05-15 19:38 ` Joost Kremers
2021-05-15 21:26 ` Max Brieiev
2021-05-15 21:39 ` Joost Kremers
2021-05-15 23:20 ` Philip Kaludercic [this message]
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=87zgwvtwi8.fsf@posteo.net \
--to=philipk@posteo.net \
--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.