From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [NonGNU ELPA] New package: sweep Date: Thu, 29 Sep 2022 09:17:43 +0300 Message-ID: <83leq2hfg8.fsf@gnu.org> References: <877d1qlynt.fsf@posteo.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9387"; mail-complaints-to="usenet@ciao.gmane.io" Cc: eshelshay.yaron@gmail.com, philipk@posteo.net, emacs-devel@gnu.org, jan@swi-prolog.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Sep 29 08:25:02 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1odmyj-0002DE-8m for ged-emacs-devel@m.gmane-mx.org; Thu, 29 Sep 2022 08:25:01 +0200 Original-Received: from localhost ([::1]:60990 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1odmyi-0001kA-A1 for ged-emacs-devel@m.gmane-mx.org; Thu, 29 Sep 2022 02:25:00 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37996) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1odmrr-0007mW-Vl for emacs-devel@gnu.org; Thu, 29 Sep 2022 02:17:56 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:49280) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1odmrq-0003wd-8C; Thu, 29 Sep 2022 02:17:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=E3J2nwPpa7ye/hHVnoiG1bV+4exGgT+/dBmzCMh1YYQ=; b=HJsKsaCKge+0 yJOmKCJVdPR7eDYHJls0FaslhIkM8g7I5zr9BZ76X4LYfvkUnk6ohDo6M+MlTFbY2C6zpNX4aM854 eUSP9aeHxA/IXfBPloWw/en0BnjI70Solu/MjYo7AbjAH8jSDYNX6jGW5xRggPMWyXXYa7dlb3DZ6 7VENCN902E2CRzBFUiNKPF/Fm5r70caUMqy+tHGnIDrglr0UgXUYunCLFgSpaHq+/ehdRAFuUYdUn J1DB8z/jMEfHxjKAp3ZfC2oNR0WvWbm1fdbQWbou7pZ3hQCfihbTcYJrLL8Dv88QMBJ8R78IQU+tv /svu78Gcih/0rOMxGHAtPg==; Original-Received: from [87.69.77.57] (port=2011 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1odmrh-0006T3-TT; Thu, 29 Sep 2022 02:17:51 -0400 In-Reply-To: (message from Richard Stallman on Wed, 28 Sep 2022 23:02:10 -0400) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:296448 Archived-At: > From: Richard Stallman > Cc: philipk@posteo.net, emacs-devel@gnu.org, jan@swi-prolog.org > Date: Wed, 28 Sep 2022 23:02:10 -0400 > > > Currently you would get an error while loading `sweep.el` because > > `sweep--ensure-module` is executed on load which tries to find and load > > the dynamic module. This is probably not ideal. I wonder if it would > > be preferable to suggest fetching and building the dynamic module, or > > just to fail more gracefully... > > This may try to answer that question, but it takes various things > about SWI-Prolog for granted, which naturally I don't know. > > What in the world is "the dynamic module"? Since Emacs 25, Emacs supports loading of modules that extend Emacs Lisp with additional primitives. Those modules are shared libraries, and can be written in any language that is capable of producing shared libraries. Loading of such modules by Emacs is subject to checking the plugin_is_GPL_compatible symbol in the library about to be loaded.