From: Stefan Monnier <monnier@iro.umontreal.ca>
To: emacs-devel@gnu.org
Subject: Re: defcustom standard value and byte-compilation
Date: Tue, 10 Mar 2015 20:46:57 -0400 [thread overview]
Message-ID: <jwvd24g74bs.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87r3sxukh4.fsf@gnu.org> (Tassilo Horn's message of "Tue, 10 Mar 2015 13:04:39 +0100")
> I just found out that the form defining the standard value of a
> defcustom is not subject to byte-compilation.
IIRC this is not the case if you use lexical-binding.
> The problem with that is that you can't use macros in there without
> having to require the file providing the macro at load-time, too.
Indeed, and the byte-compiler won't warn about unknown functions/vars
and things like that.
> I can use macros in functions and init-forms of defvars and defconsts
> and they are all compiled away, so why shouldn't I allowed to do the
> same for defcustoms?
IIIRC there's a pending bug report about the new behavior in
lexical-binding mode, because when you M-x customize-variable and ask to
see the expression it shows you the byte-compiled gobbledygook instead
of a readable expression.
> Also, I don't find a note on that behavior in the docs.
I don't think it was a conscious decision.
Stefan
next prev parent reply other threads:[~2015-03-11 0:46 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-10 12:04 defcustom standard value and byte-compilation Tassilo Horn
2015-03-11 0:46 ` Stefan Monnier [this message]
2015-03-11 7:18 ` Tassilo Horn
2015-03-11 13:54 ` Stefan Monnier
2015-03-11 15:04 ` Tassilo Horn
2015-03-11 18:56 ` Stefan Monnier
2015-03-11 20:27 ` Drew Adams
2015-03-12 7:43 ` Tassilo Horn
2015-03-12 13:29 ` Drew Adams
2015-03-12 14:04 ` Andreas Schwab
2015-03-12 14:10 ` Drew Adams
2015-03-12 13:22 ` Stefan Monnier
2015-03-12 4:05 ` Stephen J. Turnbull
2015-03-12 7:31 ` Tassilo Horn
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=jwvd24g74bs.fsf-monnier+emacs@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.