Questions tagged [dynamic-module]

4 questions
7
votes
2 answers

How do you reload a dynamic module?

If I have required a dynamic module in emacs, and then modify the source and rebuild it, how do I get emacs to reload the new module? I have not been able to just require it again. The only thing that works so far is to give the module a new…
John Kitchin
  • 11,555
  • 1
  • 19
  • 41
3
votes
1 answer

How to detect whether Emacs supports dynamic module loading?

Is it sufficient to check whether the module-file-suffix variable exists an is not nil to tell whether the running Emacs supports dynamic module loading? I'd like to be sure that an instance of Emacs I did not build myself was built using make after…
PRouleau
  • 744
  • 3
  • 10
2
votes
2 answers

How do you define constants in an emacs dynamic module?

I am trying to write a dynamic module to expose some constants in the GNU Scientific Library. I thought something like this would do it. #include #include "emacs-module.h" int plugin_is_GPL_compatible; int…
John Kitchin
  • 11,555
  • 1
  • 19
  • 41
0
votes
0 answers

Why does my dynamic module using zeromq return empty strings when running interactively?

I am trying to write a dynamic module for zeromq. It works when I test it in batch mode, but not interactively. The layout of the test is that I run a server (https://github.com/jkitchin/emacs-modules/blob/master/zeromq/hwserver.c) that just returns…
John Kitchin
  • 11,555
  • 1
  • 19
  • 41