From: Eduardo Ochs <eduardoochs@gmail.com>
To: Emanuel Berg <moasenwood@zoho.eu>,
help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Re: dynamic reload of dynamic module not dynamic?
Date: Sun, 17 Apr 2022 15:31:09 -0300 [thread overview]
Message-ID: <CADs++6grGjGht63g1P5xZpYbe0xchM5daLtC-WPwsOPj3+AMdA@mail.gmail.com> (raw)
In-Reply-To: <87o810mic0.fsf@zoho.eu>
On Sun, 17 Apr 2022 at 14:20, Emanuel Berg via Users list for the GNU
Emacs text editor <help-gnu-emacs@gnu.org> wrote:
>
> It seems recompiling the C for an Emacs dynamic module and
> then loading the new SO file from the same Emacs instance that
> loaded the old doesn't get you the new stuff?
>
> So not so dynamic after all, ey?
>
> See this example project with screenshots,
>
> https://dataswamp.org/~incal/emacs-init/random-urandom/
>
> --
> underground experts united
> https://dataswamp.org/~incal
Hi Emanuel,
Are you using `load' or `require'?
If I remember correctly, when I used
(load "/tmp/emlua.so")
my module would be reloaded, but when I used
(require 'emlua "/tmp/emlua.so")
it would not...
The full example is here:
http://angg.twu.net/emlua/emlua.cpp.html
http://angg.twu.net/emlua/emlua.cpp.html#tests-in-tmp
https://github.com/edrx/emlua#introduction
Cheers,
E. ...
next prev parent reply other threads:[~2022-04-17 18:31 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-17 4:42 dynamic reload of dynamic module not dynamic? Emanuel Berg via Users list for the GNU Emacs text editor
2022-04-17 18:31 ` Eduardo Ochs [this message]
2022-04-17 20:18 ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-04-17 18:44 ` Philipp Stephani
2022-04-17 20:12 ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-04-19 5:13 ` tomas
2022-04-19 11:08 ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-04-20 17:06 ` Eli Zaretskii
2022-04-19 12:46 ` Philipp Stephani
2022-04-19 14:01 ` Emanuel Berg via Users list for the GNU Emacs text editor
-- strict thread matches above, loose matches on Subject: below --
2024-07-04 7:00 Psionic K
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.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CADs++6grGjGht63g1P5xZpYbe0xchM5daLtC-WPwsOPj3+AMdA@mail.gmail.com \
--to=eduardoochs@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=moasenwood@zoho.eu \
/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.
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).