From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Joris Vankerschaver Newsgroups: gmane.emacs.help Subject: Wrapping an Emacs dynamic module in a package Date: Sun, 16 Oct 2016 18:37:54 +0100 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: blaine.gmane.org 1476651620 9768 195.159.176.226 (16 Oct 2016 21:00:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 16 Oct 2016 21:00:20 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Oct 16 23:00:16 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bvsXV-0001wI-3I for geh-help-gnu-emacs@m.gmane.org; Sun, 16 Oct 2016 23:00:13 +0200 Original-Received: from localhost ([::1]:57758 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bvsXX-0004pH-6m for geh-help-gnu-emacs@m.gmane.org; Sun, 16 Oct 2016 17:00:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60072) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bvpNm-0002Fd-As for help-gnu-emacs@gnu.org; Sun, 16 Oct 2016 13:37:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bvpNl-0006Oo-3B for help-gnu-emacs@gnu.org; Sun, 16 Oct 2016 13:37:58 -0400 Original-Received: from mail-lf0-x22a.google.com ([2a00:1450:4010:c07::22a]:33873) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1bvpNk-0006Np-RK for help-gnu-emacs@gnu.org; Sun, 16 Oct 2016 13:37:57 -0400 Original-Received: by mail-lf0-x22a.google.com with SMTP id b81so241149587lfe.1 for ; Sun, 16 Oct 2016 10:37:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=X1ZzpK9mV4XttPqRpkF2YuBnxSVfu2ydZfNymUjyWeQ=; b=S22U8XHQgHVoeVtJ4fzTmklEzYZS3EPeme0/RUehX+Ggm6zsMj4u8x/e0CwZ4BL42X ZBbWVcicKnXGzl3f1RBqODgcp6MlXUXMpyjRU3J/BNDARO8tJ52iXk6TRaXK9ihqesIW l4tNVHJ3/eIL0Qq00CU3xjhOEgAIHKDvpUFB9aqVJbNBX3SelXZccoC4z9bb1yoYUhIN wGnaUCriuNdSNeYe6oqiE77szhaRzb4wyOSWZYTFzQNani3LPMcSpWn+Exji8yTVYdTb j1vwWe87oHpYdEZTjGRhjYU9CuHZpyOrV15iKYU6PDU9/D/KOUOdExqQvAiFN8Wn6Qjm 12hg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=X1ZzpK9mV4XttPqRpkF2YuBnxSVfu2ydZfNymUjyWeQ=; b=PnxFcXXL3G3I37ypZp2+iOlAW1Uh2BB9AuXk57ydt+JKb2q4iv7p3pNXhAcQyKmAhV wlSFLvwKhsSt6Y2w4fl4gwJ6iFIeIvq/Oy2TG5fVe0pYlHMbRiI10ihokyKf5fK/iBOR zoNig8CA2ugmuUaq+BnmVEAf2kadSoBvceA422/PlkT9FB8jIKuGLhS45n4Qj/722Vlo S/qiF2cTT7iC5hbGn2VWIkMZxgt3MRCZmJbcGJ2EqjhsgdflT7WP2Bcw2DyM3o+thlF5 cgwM+yxapOSQ9fjr8+kK6ykWrpHoFpznyssmBRsYEmxAnMIoQ08PeiuEkFU9+Qc8CnDU Bxvg== X-Gm-Message-State: AA6/9RlGwyAk+ep43W5WlyKB4WbEMqy6UxjP5F+ep4LWv2nnZbU7qJIDNsd0sdRts0SSGCTfImbdt2EC3mh2pg== X-Received: by 10.195.11.134 with SMTP id ei6mr8877840wjd.176.1476639474740; Sun, 16 Oct 2016 10:37:54 -0700 (PDT) Original-Received: by 10.80.177.59 with HTTP; Sun, 16 Oct 2016 10:37:54 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:4010:c07::22a X-Mailman-Approved-At: Sun, 16 Oct 2016 16:59:31 -0400 X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:111537 Archived-At: 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