[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: dynamic reload of dynamic module not dynamic?
From: |
Eduardo Ochs |
Subject: |
Re: dynamic reload of dynamic module not dynamic? |
Date: |
Sun, 17 Apr 2022 15:31:09 -0300 |
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. ...