From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Noam Postavsky <npostavs@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: [Emacs-diffs] master 1f7b602 1/3: Add commentary about #$ in autoload files
Date: Sat, 06 Jul 2019 18:38:21 -0400 [thread overview]
Message-ID: <jwvbly6g5bp.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <20190706184138.A6CCD20BD5@vcs0.savannah.gnu.org> (Noam Postavsky's message of "Sat, 6 Jul 2019 14:41:38 -0400 (EDT)")
> + ;; Use the `#$' to indicate current file, from which
> + ;; we extract the directory name. Note that
> + ;; `package-quickstart-refresh' specifically replaces
> + ;; `#$', so any other tricks (e.g., `load-file-name')
> + ;; will not work for that case.
This is not true: load-file-name should work just as well
(package-quickstart-refresh surrounds the code with a let-binding of
load-file-name for that reason; sadly this let-binding doesn't work for
#$ because the #$ expansion is performed while reading the whole form
(the one that contains the let-binding) and hence before the let-binding
takes effect).
> - ";; no-byte-compile: t\n"
> + ";; no-byte-compile: t\n" ;; #$ is byte-compiled into nil.
This, on the other hand, is very true, thanks.
Stefan
next parent reply other threads:[~2019-07-06 22:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20190706184137.11481.46269@vcs0.savannah.gnu.org>
[not found] ` <20190706184138.A6CCD20BD5@vcs0.savannah.gnu.org>
2019-07-06 22:38 ` Stefan Monnier [this message]
2019-07-06 23:06 ` [Emacs-diffs] master 1f7b602 1/3: Add commentary about #$ in autoload files Noam Postavsky
2019-07-07 13:06 ` 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=jwvbly6g5bp.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
--cc=npostavs@gmail.com \
/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.