all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Joris Vankerschaver <joris.vankerschaver@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Wrapping an Emacs dynamic module in a package
Date: Sun, 16 Oct 2016 18:37:54 +0100	[thread overview]
Message-ID: <CAFytq+mOk2WskOjbKp+DdgHGHmTMS3=VKU+ya45U9t8W43uVog@mail.gmail.com> (raw)

Hi all,

I have an emacs dynamic module that I would like install as part of a
multi-file package. That is, I have a shared object file _mymod.so, and
some Elisp wrappers mymod-pkg.el and mymod.el that do various bits of
initialization.

When Emacs installs my package, things go wrong when generating the
autoloads for _mymod.so. I get a

  (error "_mymod.so:0:0: error: scan-error: (Containing expression ends
prematurely 238020 238021))

This happens during autoload-generate-file-autoloads for _mymod.so.

Two questions:

1) Is there any way to avoid autoload processing shared object files?

2) Is there an example of an Emacs package that contains a dynamic module,
so I can take a look at how this works?

Please let me know if you need more info! I'm more an Emacs user than a
developer, but I'm happy to dig into the Emacs internals to get a handle on
this.

With best wishes,
Joris


             reply	other threads:[~2016-10-16 17:37 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-16 17:37 Joris Vankerschaver [this message]
2016-10-17  5:51 ` Wrapping an Emacs dynamic module in a package Eli Zaretskii
2016-10-17  8:34   ` Joris Vankerschaver
2016-10-17  9:02     ` Eli Zaretskii
2016-10-17 13:27     ` Stefan Monnier
  -- strict thread matches above, loose matches on Subject: below --
2016-10-18  7:31 Joris Vankerschaver
2016-10-18 13:08 ` Stefan Monnier

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='CAFytq+mOk2WskOjbKp+DdgHGHmTMS3=VKU+ya45U9t8W43uVog@mail.gmail.com' \
    --to=joris.vankerschaver@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /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.