From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philip Kaludercic Newsgroups: gmane.emacs.devel Subject: Re: [NonGNU ELPA] New package: sweep Date: Mon, 26 Sep 2022 19:32:22 +0000 Message-ID: <877d1qlynt.fsf@posteo.net> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10213"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org, Jan Wielemaker To: Eshel Yaron Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Sep 26 21:37:24 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 1octuu-0002PM-Fh for ged-emacs-devel@m.gmane-mx.org; Mon, 26 Sep 2022 21:37:24 +0200 Original-Received: from localhost ([::1]:40340 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1octut-0006MQ-2R for ged-emacs-devel@m.gmane-mx.org; Mon, 26 Sep 2022 15:37:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33882) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1octqB-00043T-2M for emacs-devel@gnu.org; Mon, 26 Sep 2022 15:32:38 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]:46971) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1octq8-0002zI-Bm for emacs-devel@gnu.org; Mon, 26 Sep 2022 15:32:30 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id E5EC7240027 for ; Mon, 26 Sep 2022 21:32:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1664220745; bh=XEH2DmvGVzskHFsyprUyFLDlsf5Y92qK1Z+QvOW1KJI=; h=From:To:Cc:Subject:Autocrypt:Date:From; b=GNjaNyK2QvXfVHNgDEXwR6yFfrroPmYjoDDcCSMziD5ZfsQ6ATvff2mGhuOANSLFD lEZS44lK/RK8GPmT2elXLIyVgNLwxbtHzGBFW2yOg4VJ5azM3VlK2Jnki46WNW8oC5 OBlBg0qiID46Fez5VGnU4rtaD1J5Nh2iF0B3vwJoFVzFR0XoCeZbq5O4p/ce5KDLH5 Ax3OdODN2umxz640Tgazme6lOb7bzDZMh4+NrAruJjaedyRK4h2kjwK4ZCh6E1PZru /5IeHhqXqAc6eHKE49QBfFv2GFx6QwBY45yyRUtKHfyntXu/62YN7p+2hhGjejrWE2 Q3v4TKx2LPmxA== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4MbtF24wnLz6tnv; Mon, 26 Sep 2022 21:32:22 +0200 (CEST) In-Reply-To: (Eshel Yaron's message of "Mon, 26 Sep 2022 14:29:57 +0300") Autocrypt: addr=philipk@posteo.net; prefer-encrypt=nopreference; keydata= mDMEYHHqUhYJKwYBBAHaRw8BAQdAp3GdmYJ6tm5McweY6dEvIYIiry+Oz9rU4MH6NHWK0Ee0QlBo aWxpcCBLYWx1ZGVyY2ljIChnZW5lcmF0ZWQgYnkgYXV0b2NyeXB0LmVsKSA8cGhpbGlwa0Bwb3N0 ZW8ubmV0PoiQBBMWCAA4FiEEDM2H44ZoPt9Ms0eHtVrAHPRh1FwFAmBx6lICGwMFCwkIBwIGFQoJ CAsCBBYCAwECHgECF4AACgkQtVrAHPRh1FyTkgEAjlbGPxFchvMbxzAES3r8QLuZgCxeAXunM9gh io0ePtUBALVhh9G6wIoZhl0gUCbQpoN/UJHI08Gm1qDob5zDxnIHuDgEYHHqUhIKKwYBBAGXVQEF AQEHQNcRB+MUimTMqoxxMMUERpOR+Q4b1KgncDZkhrO2ql1tAwEIB4h4BBgWCAAgFiEEDM2H44Zo Pt9Ms0eHtVrAHPRh1FwFAmBx6lICGwwACgkQtVrAHPRh1Fw1JwD/Qo7kvtib8jy7puyWrSv0MeTS g8qIxgoRWJE/KKdkCLEA/jb9b9/g8nnX+UcwHf/4VfKsjExlnND3FrBviXUW6NcB Received-SPF: pass client-ip=185.67.36.65; envelope-from=philipk@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:296304 Archived-At: Eshel Yaron writes: > [posting again since the last message didn't seem to reach the list, sorry for the noise if you receive this message twice] > > > Hello emacs-devel, > Long time listener, first time caller :) > > > I would like to submit a new package to NonGNU ELPA, called "sweep": May I ask what the name is supposed to mean? > sweep is SWI-Prolog Embedded in Emacs. Quoting from the manual[0]: > >> sweep provides an interface for executing Prolog queries and consuming >> their results from Emacs Lisp. sweep further builds on top of this >> interface and on top of the standard Emacs facilities to provide >> advanced features for developing SWI-Prolog programs in Emacs. > > The aim of this package is to provide a fully integrated development > environment for SWI-Prolog[1] in GNU Emacs. It does so by creating a > dynamic Emacs module that contains the SWI-Prolog runtime, which allows > us to leverage the SWI-Prolog analysis and introspection facilities > directly from Elisp. This sound very interesting! >From briefly skimming through the code I see that you define a new major that doesn't inherit from the default `prolog-mode'. Is there a reason not to do so, or even implement sweep as a minor mode? > The dynamic module ("sweep-module") is distributed and built as part of > the latest SWI-Prolog version, so the only files that need to be > distributed via the ELPA package are the Elisp package sweep.el and the > user manual. What happens if someone doesn't have a recent version of SWI Prolog? Also, I am guessing this is the reason you want to add it to NonGNU ELPA instead of GNU ELPA, right? > sweep is licensed under the BSD-2 license, similarly to the rest of > SWI-Prolog. Its source code is available at > https://git.sr.ht/~eshel/sweep and at > https://github.com/SWI-Prolog/packages-sweep. I see you've added Sourcehut as the "official" URL in the package header, do you plan to use your mailing list (https://lists.sr.ht/~eshel/dev) too? If so, I recommend adding the mailing list as the "maintainer" email address so that people can easily send you a "public" message. > This project is still in active development, any comments or suggestions > will be appreciated! > > I'm attaching below the proposed patch to nongnu.git: > > From 48c15e1354b7b49028f82369fddc458c40ade5ed Mon Sep 17 00:00:00 2001 > From: Eshel Yaron > Date: Wed, 14 Sep 2022 23:26:20 +0300 > Subject: [PATCH] * elpa-packages (sweep): New package > > --- > elpa-packages | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/elpa-packages b/elpa-packages > index 6ad5f44aee..51816e285c 100644 > --- a/elpa-packages > +++ b/elpa-packages > @@ -567,6 +567,13 @@ > :lisp-dir "subed" > :ignored-files "LICENSES/GPL-3.0-or-later.txt") > > + ("sweep" :url "https://github.com/SWI-Prolog/packages-sweep" > + :ignored-files ("LICENSE" > + "sweep.c" > + "sweep.pl" > + "CMakeLists.txt") > + :doc "README.org") > + > ("swift-mode" :url "https://github.com/swift-emacs/swift-mode" > :ignored-files ("COPYING" "scripts" "test" "Eldev" "Makefile"))