From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id KHIAJFe03F4KJAAA0tVLHw (envelope-from ) for ; Sun, 07 Jun 2020 09:33:11 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id qHjOH1e03F5OUAAAbx9fmQ (envelope-from ) for ; Sun, 07 Jun 2020 09:33:11 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 106629407C7 for ; Sun, 7 Jun 2020 09:33:11 +0000 (UTC) Received: from localhost ([::1]:33636 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jhrfx-0000EF-T9 for larch@yhetil.org; Sun, 07 Jun 2020 05:33:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37438) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jhrfq-0000CH-3A for bug-guix@gnu.org; Sun, 07 Jun 2020 05:33:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:41764) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jhrfp-0005H4-QM for bug-guix@gnu.org; Sun, 07 Jun 2020 05:33:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jhrfp-0004O2-Ln for bug-guix@gnu.org; Sun, 07 Jun 2020 05:33:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#41732: issue with emacs-lua-mode and emacs-next Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 07 Jun 2020 09:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41732 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Maxim Cournoyer Received: via spool by 41732-submit@debbugs.gnu.org id=B41732.159152232316785 (code B ref 41732); Sun, 07 Jun 2020 09:33:01 +0000 Received: (at 41732) by debbugs.gnu.org; 7 Jun 2020 09:32:03 +0000 Received: from localhost ([127.0.0.1]:53310 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jhres-0004MU-CG for submit@debbugs.gnu.org; Sun, 07 Jun 2020 05:32:02 -0400 Received: from mail-qt1-f196.google.com ([209.85.160.196]:40466) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jhreq-0004MB-Ad for 41732@debbugs.gnu.org; Sun, 07 Jun 2020 05:32:00 -0400 Received: by mail-qt1-f196.google.com with SMTP id i16so12347492qtr.7 for <41732@debbugs.gnu.org>; Sun, 07 Jun 2020 02:32:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=XGvvcA8QlBPIue0bJY7kBXK5SygydAX4dd+iSqeQhyg=; b=LO8ps+S3RoUUNxOHlXpQlyqUfJ/f6fWgGJ/QODiHQv9Hq1SlpzeP0ZRWjeMIXeQJf+ Y+kgEgQWum24tMTirfxo1+apv5M4GOTwiTmUdJakhz81MOJK2Tt4gA1Fp9UEpYRHddVc czSf03SN064OMOY1LQJyW90LBxmkQb6aogm33KMDXF56bBQoCgv0JtjnN9M1ri9GoQIX f4TrLTwatQVJz4zGH8tshRUSArznudq1iPqWzLKOC2rxpnB8Y74x/ktft8WFWvHQDXlL jzymPT/x8+0fUTnnkWLP8F3wtSfBy62u3ne6M1G2NFuYggBoJkeCbK/Ep7JaSg3a5non wVLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=XGvvcA8QlBPIue0bJY7kBXK5SygydAX4dd+iSqeQhyg=; b=jXW4o4yvAxJhEQ8Xq6tlnfMidsPqlW0B6nP0lpgkSB543RUy9fh9i5Vwcmo4Z6k4tn HWQOq5YzUig1bDLAmp/YWRyYS0WrvQNKvMynNb7deBRuzPBf+VP9trTyHVV9fMpoXUEv UL2s+jJpyQX7L9ZDghQMexfR5l95BqtM06htBcR267LVvqtieasWsceP4D9L0CkeRZTm hc1oP3GtPyO2luMmR5044bnW+0OBGsp/m7z9SeKVKbnCFCq9W5BZ6uMiZSSUvdPKorIm u9NaGFuqAgi49u4RM1v6VE25puDLL9jCPimjB/jWeR5di0X0w6fLc5ciptX3ZAF2iEXW YZVA== X-Gm-Message-State: AOAM533Lpo3yDPscCIBcatwoRXTbiuTduRTV6A/S1MHeojG/PdcTMtgq 47MMhcxlUHjZiIMG5mDhossMPlD7rIv31hROoJc= X-Google-Smtp-Source: ABdhPJysiAzEXvKHgRDNUSKxzKtXEh6Z/gdqq2PUsfTeLaZtGEcuDjN7vEbKvQHPEb15DMW9hWOF1ee+V6XBQSh/BkA= X-Received: by 2002:aed:3169:: with SMTP id 96mr17434755qtg.211.1591522313203; Sun, 07 Jun 2020 02:31:53 -0700 (PDT) MIME-Version: 1.0 References: <87tuzo8vj6.fsf@nicolasgoaziou.fr> <87sgf8ffj9.fsf@nicolasgoaziou.fr> <877dwj4hho.fsf@gmail.com> In-Reply-To: <877dwj4hho.fsf@gmail.com> From: zimoun Date: Sun, 7 Jun 2020 11:31:41 +0200 Message-ID: Content-Type: multipart/mixed; boundary="00000000000021cc0905a77b2a06" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 41732@debbugs.gnu.org, Fredrik Salomonsson , Nicolas Goaziou Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=gmail.com header.s=20161025 header.b=LO8ps+S3; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Spam-Score: 1.69 X-TUID: HhmTbFoQvv4k --00000000000021cc0905a77b2a06 Content-Type: text/plain; charset="UTF-8" Dear Maxim, On Sun, 7 Jun 2020 at 06:39, Maxim Cournoyer wrote: > Some people have been adding emacs-next-something packages (IIRC); I > think it's OK for the big, complicated packages that need effort to > port, but otherwise I wouldn't like seeing this happening for all > packages. I agree. I am not suggesting to duplicate all the packages with 'emacs-next-something'. There is already enough to do with the current ones. :-) > > Well, I am not suggesting to duplicate all the Emacs packages with > > something like 'emacs-next-' because it is too much. I am > > suggesting to provide 'package-with-emacs-next' and then for example > > in my manifest file I would use this new procedure to generate > > on-the-fly these next packages; as an expert Emacs mode. > > That sounds like a good idea; provide a way for users to rewrite their > package at the level of their manifest file (which is already possible > IIUC). I propose to provide 'package-with-emacs-next' for the people in the experimental mood. :-) For example, the manifest looks like: --8<---------------cut here---------------start------------->8--- (use-modules (guix build-system emacs) (gnu packages emacs) (gnu packages emacs-xyz)) (packages->manifest (cons emacs-next (map package-with-emacs-next (list emacs-lua-mode emacs-magit)))) --8<---------------cut here---------------end--------------->8--- Then the expert uses it with: guix package -m manifest.scm Well, the attached patch does that. And maybe, an entry to the Cookbook could be worth. > > I do not know if this proposal makes sense. Probably not. :-) > > (My regular Emacs is the current version and I very rarely use > > emacs-next because I started Emacs with 23 therefore 24 was already a > > so-nice improvement. :-)) > > It does make sense. For those who would like to see our base Emacs > package be updated to emacs-next, we need to iron out all the packages > currently failing to build with it. It is easy to try, by modifying > slightly a local Guix checkout: > > --8<---------------cut here---------------start------------->8--- > 1 file changed, 1 insertion(+), 1 deletion(-) > guix/build-system/emacs.scm | 2 +- > > modified guix/build-system/emacs.scm > @@ -52,7 +52,7 @@ > "Return the default Emacs package." > ;; Lazily resolve the binding to avoid a circular dependency. > (let ((emacs-mod (resolve-interface '(gnu packages emacs)))) > - (module-ref emacs-mod 'emacs-minimal))) > + (module-ref emacs-mod 'emacs-next))) > > (define* (lower name > #:key source inputs native-inputs outputs system target > > --8<---------------cut here---------------end--------------->8--- What I propose simplifies because it avoids to recompile all Guix and to use ./pre-inst-env. Well, I do not know. It is an half-cooked proposal. :-) And the added 'package-with-explicit-emacs' procedure allows to use any Emacs as the VM, so for example, it could be cool to see what happens with REmacs (which is not packaged but that's another story :-)). Or for example with Gccemacs. All the best, simon ps: Note that 'package-with-explicite-emacs' and 'package-with-explicit-python' should be refactored, another story. :-) --00000000000021cc0905a77b2a06 Content-Type: text/x-patch; charset="UTF-8"; name="0001-DRAFT-build-system-emacs-Add-new-package-with-emacs-.patch" Content-Disposition: attachment; filename="0001-DRAFT-build-system-emacs-Add-new-package-with-emacs-.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_kb4ur7vv0 RnJvbSA0MDM4YjBjNTNkNTA2NmZhY2NlZWEzYzE1OWE2NTEwZmE4YTYyNWQ2IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiB6aW1vdW4gPHppbW9uLnRvdXRvdW5lQGdtYWlsLmNvbT4KRGF0 ZTogU3VuLCA3IEp1biAyMDIwIDExOjA3OjA4ICswMjAwClN1YmplY3Q6IFtQQVRDSF0gRFJBRlQ6 IGJ1aWxkLXN5c3RlbTogZW1hY3M6IEFkZCBuZXcKICdwYWNrYWdlLXdpdGgtZW1h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oZSBuZXcgcGFja2FnZSBvYmplY3QgZ3JhcGgu CisgICAgICgoZXE/IChwYWNrYWdlLWJ1aWxkLXN5c3RlbSBwKSBlbWFjcy1idWlsZC1zeXN0ZW0p CisgICAgICAocGFja2FnZQorICAgICAgICAoaW5oZXJpdCBwKQorICAgICAgICAobG9jYXRpb24g KHBhY2thZ2UtbG9jYXRpb24gcCkpCisgICAgICAgIChuYW1lIChsZXQgKChuYW1lIChwYWNrYWdl LW5hbWUgcCkpKQorICAgICAgICAgICAgICAgIChzdHJpbmctYXBwZW5kIG5ldy1wcmVmaXgKKyAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAoaWYgKHN0cmluZy1wcmVmaXg/IG9sZC1wcmVm aXggbmFtZSkKKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKHN1YnN0cmluZyBu YW1lCisgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKHN0cmlu Zy1sZW5ndGggb2xkLXByZWZpeCkpCisgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg IG5hbWUpKSkpCisgICAgICAgIChhcmd1bWVudHMKKyAgICAgICAgIChsZXQgKChlbWFjcyAoaWYg KHByb21pc2U/IGVtYWNzKQorICAgICAgICAgICAgICAgICAgICAgICAgICAgKGZvcmNlIGVtYWNz KQorICAgICAgICAgICAgICAgICAgICAgICAgICAgZW1hY3MpKSkKKyAgICAgICAgICAgKGVuc3Vy ZS1rZXl3b3JkLWFyZ3VtZW50cyAocGFja2FnZS1hcmd1bWVudHMgcCkKKyAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICBgKCM6ZW1hY3MgLGVtYWNzKSkpKSkpCisgICAgIChlbHNl IHApKSkKKworICAoZGVmaW5lIChjdXQ/IHApCisgICAgKG9yIChub3QgKGVxPyAocGFja2FnZS1i dWlsZC1zeXN0ZW0gcCkgZW1hY3MtYnVpbGQtc3lzdGVtKSkKKyAgICAgICAgKHBhY2thZ2UtdmFy aWFudCBwKSkpCisKKyAgKHBhY2thZ2UtbWFwcGluZyB0cmFuc2Zvcm0gY3V0PykpCisKKyhkZWZp bmUgcGFja2FnZS13aXRoLWVtYWNzLW5leHQKKyAgOzsgTm90ZTogZGVsYXkgY2FsbCB0byAnZGVm YXVsdC1lbWFjcy1uZXh0JyB1bnRpbCBhZnRlciB0aGUgJ2FyZ3VtZW50cycgZmllbGQKKyAgOzsg b2YgcGFja2FnZXMgaXMgYWNjZXNzZWQgdG8gYXZvaWQgYSBjaXJjdWxhciBkZXBlbmRlbmN5IHdo ZW4gZXZhbHVhdGluZworICA7OyB0aGUgdG9wLWxldmVsIG9mIChnbnUgcGFja2FnZXMgZW1hY3Mp LgorICAocGFja2FnZS13aXRoLWV4cGxpY2l0LWVtYWNzIChkZWxheSAoZGVmYXVsdC1lbWFjcy1u ZXh0KSkKKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgImVtYWNzLSIgImVtYWNzLW5l eHQtIgorICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAjOnZhcmlhbnQtcHJvcGVydHkg J2VtYWNzLW5leHQtdmFyaWFudCkpCisKIChkZWZpbmUqIChsb3dlciBuYW1lCiAgICAgICAgICAg ICAgICAgIzprZXkgc291cmNlIGlucHV0cyBuYXRpdmUtaW5wdXRzIG91dHB1dHMgc3lzdGVtIHRh cmdldAogICAgICAgICAgICAgICAgIChlbWFjcyAoZGVmYXVsdC1lbWFjcykpCi0tIAoyLjI2LjIK Cg== --00000000000021cc0905a77b2a06--