From: Stefan Monnier <monnier@iro.umontreal.ca>
To: help-gnu-emacs@gnu.org
Subject: Re: Flycheck reports are never satisfying!?
Date: Thu, 28 Aug 2014 23:32:10 -0400 [thread overview]
Message-ID: <jwva96ot1w5.fsf-monnier+gnu.emacs.help@gnu.org> (raw)
In-Reply-To: 86a96oikkx.fsf@somewhere.org
> That would make a lot of sense, IMHO.
I could consider inclusion of such a patch.
> --8<---------------cut here---------------start------------->8---
> (when (try-require 'blah)
> ...)
> --8<---------------cut here---------------end--------------->8---
> Would there be a solution?
No, the compiler doesn't know anything about try-require.
> 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'...
Maybe we could make it work, yes.
Still, there's a problem: one of the reasons to try and byte-compile the
.emacs file is so as to give warnings to the user about use of obsolete
variables and functions.
But for that to work well (i.e. used all the time by default),
byte-compilation should be quick and lightweight.
But that won't work if we start pre-loading eagerly all those packages
that the user is painstaking trying to load lazily.
I have this nagging feeling that we can't make it work by just
byte-compiling the .emacs in the same way as any other Elisp package.
Maybe rather than re-using the byte-compiler's warnings, we really need
a specialized tool for that.
Stefan
next prev parent reply other threads:[~2014-08-29 3:32 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-28 12:05 Flycheck reports are never satisfying!? Sebastien Vauban
2014-08-28 13:40 ` Stefan Monnier
2014-08-28 15:15 ` Sebastian Wiesner
2014-08-28 15:48 ` Stefan Monnier
2014-08-29 9:01 ` Sebastian Wiesner
2014-08-29 13:05 ` Stefan Monnier
[not found] ` <mailman.7732.1409240949.1147.help-gnu-emacs@gnu.org>
2014-08-28 17:35 ` Sebastien Vauban
2014-08-29 3:32 ` Stefan Monnier [this message]
[not found] ` <mailman.7720.1409233288.1147.help-gnu-emacs@gnu.org>
2014-08-28 14:14 ` Sebastien Vauban
2014-08-28 14:38 ` Stefan Monnier
2014-08-28 15:51 ` worrying about byte-compiler warnings [was: Flycheck reports are never satisfying!?] Drew Adams
2014-08-28 15:25 ` Flycheck reports are never satisfying!? Sebastian Wiesner
[not found] ` <61C65218-4004-4FD5-ABE0-6C863E5F60A6-MMJ3jE1zGgOaMJb+Lgu22Q@public.gmane.org>
2014-08-28 15:39 ` Sebastien Vauban
2014-08-28 15:45 ` Sebastian Wiesner
[not found] ` <B540BE8A-D03C-4F2D-ADB7-2A17F8E55F4E-MMJ3jE1zGgOaMJb+Lgu22Q@public.gmane.org>
2014-08-28 18:35 ` Sebastien Vauban
[not found] ` <mailman.7753.1409250970.1147.help-gnu-emacs@gnu.org>
[not found] ` <mailman.7753.1409250970.1147.help-gnu-emacs-mXXj517/zsQ@public.gmane.org>
2014-09-01 10:00 ` Sebastien Vauban
2014-09-01 10:23 ` Sebastian Wiesner
2014-09-01 12:27 ` sokobania.01
2014-09-01 12:30 ` sokobania.01
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=jwva96ot1w5.fsf-monnier+gnu.emacs.help@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.