[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Flycheck reports are never satisfying!?
From: |
Sebastien Vauban |
Subject: |
Re: Flycheck reports are never satisfying!? |
Date: |
Thu, 28 Aug 2014 19:35:10 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.93 (windows-nt) |
Stefan Monnier wrote:
>> Isn’t that what we have „with-eval-after-load“ for?
>
> with-eval-after-load is there to help make startup more lazy. But it's
> not particularly designed to help silence "spurious" byte-compiler warnings.
>
> This said, maybe the byte-compiler should treat it specially
> (i.e. treat it sort of like a `require' and forcefully load the file
> before processing the body of the with-eval-after-load).
That would make a lot of sense, IMHO.
And for personal constructions such as:
--8<---------------cut here---------------start------------->8---
(when (try-require 'blah)
...)
--8<---------------cut here---------------end--------------->8---
Would there be a solution?
Would replacing `try-require' by a `require' with all the necessary
parameters (in order not to stop if the package is missing) be OK?
--8<---------------cut here---------------start------------->8---
(when (require 'blah nil t)
...)
--8<---------------cut here---------------end--------------->8---
Would this last construct work? If yes, I'm willing to use it instead
of my `try-require'...
Best regards,
Seb
--
Sebastien Vauban
Message not available
Re: Flycheck reports are never satisfying!?, Sebastian Wiesner, 2014/08/28