From: Stefan Monnier <monnier@iro.umontreal.ca>
To: emacs-devel@gnu.org
Subject: Re: [Ann]: An Implementation of the Shen programming language in Elisp and a call for help
Date: Sat, 14 May 2016 09:29:01 -0400 [thread overview]
Message-ID: <jwvlh3c3hf9.fsf-monnier+gmane.emacs.devel@gnu.org> (raw)
In-Reply-To: CAJrReyi7YiyjCELAu8hMNyhfuh9m6BgfH0fqYgtm04UWbjevwg@mail.gmail.com
> 1. I can't seem to get rid of warnings when byte-compiling the generated
> "shen.el" [4] even though I have the byte-compile-warnings property the top
> of the file. I'm getting a lot of "unused lexical variable" warnings even
> though "lexical" is in the list of warnings.
I strongly dislike disabling warnings via byte-compile-warnings, so
while I'm sure it can be done, I'd rather not help you with this.
"Unused variable/argument" warnings can be disabled individually in the
following ways (by order of preference):
- Get rid of those variables/arguments.
- Add an underscore in front of the variable name (that tells the
byte-compiler that the variable *should not* be used).
- Add an artificial use of the variable. The canonical way to do that
is to add a call (ignore <var>) somewhere harmless. E.g.
(let ((foo <mycode>))
(ignore foo)
<restofthecode>)
> 2. I would like for the "shen.el" and "shen-primitives.el" [5] file to be
> byte-compiled and loaded right after compilation even though they don't
> have any autoloads. Currently they are only loaded with I call the function
> `shen/repl` [6] which doesn't feel very responsive. Ideally they are loaded
> at the time they are compiled.
Compilation should happen once and for all when you install your
package, so whether it's loaded right away at that point or not is not
tremendously important, compared to how the package should be
(auto)loaded in the other cases, when the package is already installed.
IOW I don't understand what you want here.
Stefan
next prev parent reply other threads:[~2016-05-14 13:29 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-13 21:01 [Ann]: An Implementation of the Shen programming language in Elisp and a call for help aditya siram
2016-05-14 1:08 ` Alexis
2016-05-14 1:11 ` aditya siram
2016-05-14 1:30 ` Alexis
2016-05-14 1:41 ` Michael Heerdegen
2016-05-14 13:29 ` Stefan Monnier [this message]
2016-05-16 17:54 ` Stefan Monnier
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=jwvlh3c3hf9.fsf-monnier+gmane.emacs.devel@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@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.