From: Stefan Monnier <email@example.com>
Subject: Re: More use of lexical-binding in ox.el
Date: Tue, 27 Apr 2021 18:51:41 -0400 [thread overview]
Message-ID: <firstname.lastname@example.org> (raw)
In-Reply-To: <email@example.com> (Nicolas Goaziou's message of "Tue, 27 Apr 2021 23:12:46 +0200")
> It looks great but it introduces a test failure, however.
> `org-export-expand-include-keyword' is called from within
> At the very beginning of `org-export-expand-include-keyword', there is
> (buffer-file-name (buffer-base-buffer))
> Before the patch, it returned the source file name. After the patch it
> returns nil.
> Actually I'm a bit surprised it used to work, since we're evaluating
> this from a new buffer, not an existing one. But hey, it worked!
That's because the "buffer copy" also copies the local vars, and indeed
that's where I made a typo.
> Do you know what could cause this?
(push (cons var val) varvals))))
(push (cons var val) varvals)))))
so that the final `varvals` is outside the `dolist` (it's the thing we
want to return to store it in the outer `varvals` variable).
Sorry 'bout that,
next prev parent reply other threads:[~2021-04-27 22:52 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-20 3:37 More use of lexical-binding in ox.el Stefan Monnier
2021-04-27 21:12 ` Nicolas Goaziou
2021-04-27 22:51 ` Stefan Monnier [this message]
2021-04-28 8:45 ` Nicolas Goaziou
2021-04-28 14:15 ` Stefan Monnier
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:
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
* 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 public inbox
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).