[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to keep a copy of emacs_env or ert in module ?
From: |
Andreas Schwab |
Subject: |
Re: how to keep a copy of emacs_env or ert in module ? |
Date: |
Sun, 11 Sep 2016 08:41:58 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) |
On Sep 11 2016, hx <address@hidden> wrote:
> int emacs_module_init(struct emacs_runtime *ert) {
> emacs_env *env = ert->get_environment(ert);
> gert = ert;
> genv = env;
>
> return 0;
> } // until here, the gert and genv content still correct.
All the contents of ert disappears when the funtion returns.
Andreas.
--
Andreas Schwab, address@hidden
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."