From: Tassilo Horn <tsdh@gnu.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: defcustom standard value and byte-compilation
Date: Wed, 11 Mar 2015 16:04:06 +0100 [thread overview]
Message-ID: <87egovr2xl.fsf@gnu.org> (raw)
In-Reply-To: <jwvlhj363tv.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Wed, 11 Mar 2015 09:54:39 -0400")
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> I don't think this is an option for AUCTeX as it supports Emacs
>> versions down to 21.4 and also XEmacs.
>
> Of course, I think that's a mistake ;-)
I'd have no problems cutting support for emacs <23 or even <24, but
cutting support for XEmacs is something which I'd prefer not to do
without extremely good reasons although that would make life much more
easy.
>> And several parts make use of the dynamic binding of locals. :-(
>
> That's no problem, lexical-binding supports dynamically scoped
> variables as well (you just have to declare them beforehand via
> (defvar <var>)).
Yes, I know. But having non-prefixed (defvar name) etc just looks so
damn wrong.
>> But customize shows the value of the expression, not the expression
>> itself.
>
> IIRC there's a way to get the expression rather than the value.
At least I couldn't find one in the customize UI but maybe you're right.
>> Ok, but couldn't the standard form be at least macroexpanded? That
>> shouldn't cause any harm and would take care of the typical use-case
>> where one uses macros of a package which might not be available at
>> load-time.
>
> Changing the defcustom behavior in Emacs-25.1 to be the same in
> dynamic-binding than with lexical-binding wouldn't help you with
> XEmacs and Emacs-21.4.
No, sure. And macroexpanding in dynamic-binding wouldn't make it the
same with byte-compilation in lexical-binding. But still it would
eliminate the (void-function some-macro) error at load-time. There's
also an issue from 2011 about the very same thing:
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=9712
But I can also see the good thing about the current behavior. It
consistently fails on all Emacs/XEmacs versions (if dynamic-binding is
in use and not something else loaded, e.g., cl, before the file in
question).
Bye,
Tassilo
next prev parent reply other threads:[~2015-03-11 15:04 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
2015-03-11 7:18 ` Tassilo Horn
2015-03-11 13:54 ` Stefan Monnier
2015-03-11 15:04 ` Tassilo Horn [this message]
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=87egovr2xl.fsf@gnu.org \
--to=tsdh@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
/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.