From: Philipp Stephani <p.stephani2@gmail.com>
To: hx <silent2600@gmail.com>, emacs-devel@gnu.org
Subject: Re: how to keep a copy of emacs_env or ert in module ?
Date: Sun, 11 Sep 2016 08:02:57 +0000 [thread overview]
Message-ID: <CAArVCkRnXwKhpEDQQX-djEecuv=GwK6nv5r6JgSPwnMrLniXBA@mail.gmail.com> (raw)
In-Reply-To: <CAALPCHtSpVtb8Wb=Kr2JLzC6FF5oaVWd-9K_T9fP52=USEwc1w@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 368 bytes --]
hx <silent2600@gmail.com> schrieb am So., 11. Sep. 2016 um 06:30 Uhr:
> is it possible to keep a copy of the *env in module ?
>
>
No. emacs_env, emacs_runtime, and emacs_value objects are only valid within
the dynamic extent of the function they are created/passed in. You can't
keep them around. The only exception are global references, created by
make_global_ref.
[-- Attachment #2: Type: text/html, Size: 758 bytes --]
next prev parent reply other threads:[~2016-09-11 8:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-11 4:28 how to keep a copy of emacs_env or ert in module ? hx
2016-09-11 6:41 ` Andreas Schwab
2016-09-11 8:02 ` Philipp Stephani [this message]
2016-09-13 0:02 ` hx
2016-09-13 6:18 ` Philipp Stephani
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='CAArVCkRnXwKhpEDQQX-djEecuv=GwK6nv5r6JgSPwnMrLniXBA@mail.gmail.com' \
--to=p.stephani2@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=silent2600@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.