emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Arun Isaac <arunisaac@systemreboot.net>
To: "Emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: [BUG] Dynamic scoping of project-plist in preparation-function
Date: Tue, 21 Jun 2016 23:46:59 +0530	[thread overview]
Message-ID: <87oa6u1k6c.fsf@systemreboot.net> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 593 bytes --]


The org mode manual says "The project property list is scoped into this
call as the variable project-plist". But, ox-publish.el has lexical
binding enabled, and the variable project-plist doesn't seem to be
accessible from the executed preparation-function. When I try to access
the variable, I get a (void-variable project-plist) error.

Please find attached a minimal elisp file to reproduce the bug.

emacs -Q -l preparation-function-dynamic-scoping.el

My understanding of dynamic and lexical binding is a little foggy. So,
do let me know if I'm missing something.

Regards,
Arun Isaac.


[-- Attachment #1.2: preparation-function-dynamic-scoping.el --]
[-- Type: application/emacs-lisp, Size: 510 bytes --]

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 472 bytes --]

             reply	other threads:[~2016-06-21 18:17 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-21 18:16 Arun Isaac [this message]
2016-06-21 20:15 ` [BUG] Dynamic scoping of project-plist in preparation-function Nicolas Goaziou
2016-06-22  6:07   ` Arun Isaac
2016-06-22 13:34     ` Nicolas Goaziou
2016-06-22 14:37       ` Arun Isaac
2016-06-22 16:37         ` Nicolas Goaziou

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87oa6u1k6c.fsf@systemreboot.net \
    --to=arunisaac@systemreboot.net \
    --cc=emacs-orgmode@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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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).