From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 07 00:39:23 2020 Received: (at 41732) by debbugs.gnu.org; 7 Jun 2020 04:39:23 +0000 Received: from localhost ([127.0.0.1]:53143 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jhn5f-0003Hf-7t for submit@debbugs.gnu.org; Sun, 07 Jun 2020 00:39:23 -0400 Received: from mail-qt1-f196.google.com ([209.85.160.196]:41751) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jhn5e-0003HQ-3M for 41732@debbugs.gnu.org; Sun, 07 Jun 2020 00:39:22 -0400 Received: by mail-qt1-f196.google.com with SMTP id w90so12094857qtd.8 for <41732@debbugs.gnu.org>; Sat, 06 Jun 2020 21:39:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=HuDmtlZw1+p088uFEJ5HF5UAmDpfXTmp7peHzNuAZvE=; b=SGZlAIfWdqbO2gYhVnxnuGFJrEIAKKiBAViJMZtzTzjl3mwMIgmmGOlK1SbcKb/T9G 6gVqK2pe7YN1DidimNYQbndugku+lEeUpbd3Ew7ZSMfOdOnQUJqypcmbE5aGrkveHjuF 40OdPxmnJ3hIKng+mdKzF3WAs6x8f/M+WFZ7YGfUmiGC42stztrBaN5UTd2u+7qQWGoh hePvs/ArE2X4qXjcIH0nJexnqMH4/0Lg/WHck/1q+JhgDhYe6LuDEFm0XHrR6HhHttqi OUtdsdV9AQY8BE581Pkjecx/nMDZSsweygDIYxfMG++TuEg+dja5T2uvI6Wfu1Fijx9Z Zt0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=HuDmtlZw1+p088uFEJ5HF5UAmDpfXTmp7peHzNuAZvE=; b=KnWYCrqSE03UE0NMBx/7DkjSh+iJ6LNYcdMwmIHZ0ZY5i71KFQbVntFrCE4PXQcfDl 7vpo8jnoQRtTH+pbmD4XpSA0GyYVZvMSmI6FRh29tOuOL59AmyuwxExgjkY3z6636+Ze YPbpAWohqIJcf1nB0T+rRHjiqdk/b1dJ6z0O3cxa2gMgBF0cXF4B8P4daSgFMhGX4a5F C+ra8woUC4FDpStzVtBgMpwBCV0rWTNQaYKujiOMIszcdRDCiWcgoJuUGEYWV6wpocrJ T2j/umT5aan9Bc3SDZwtyRsZRVFfL4Zin4fEzXaMiMdiIGpqw4/sYz6FuvTlrRO/n5bV byqQ== X-Gm-Message-State: AOAM533sLXb+DFaTHdAfp/H/f+k3odx3vbwG+JaOFJVAVH0vxHycsCNC DVUbLQXsmGq+3mmb5t6WeRw= X-Google-Smtp-Source: ABdhPJwAbk1yb3xp+hETjSnc6WX7Y9bmuSR5bRL5xHRZJXoFS0wRm96NN4rWMo5GVZlRCIvmLCAclw== X-Received: by 2002:ac8:3150:: with SMTP id h16mr15910095qtb.99.1591504756469; Sat, 06 Jun 2020 21:39:16 -0700 (PDT) Received: from hurd (dsl-236-125-184.b2b2c.ca. [207.236.125.184]) by smtp.gmail.com with ESMTPSA id f43sm4650376qte.58.2020.06.06.21.39.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Jun 2020 21:39:15 -0700 (PDT) From: Maxim Cournoyer To: zimoun Subject: Re: bug#41732: issue with emacs-lua-mode and emacs-next References: <87tuzo8vj6.fsf@nicolasgoaziou.fr> <87sgf8ffj9.fsf@nicolasgoaziou.fr> Date: Sun, 07 Jun 2020 00:39:15 -0400 In-Reply-To: (zimoun's message of "Sat, 6 Jun 2020 17:30:11 +0200") Message-ID: <877dwj4hho.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 41732 Cc: 41732@debbugs.gnu.org, Fredrik Salomonsson , Nicolas Goaziou X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hello, zimoun writes: > Dear Nicolas, > > On Sat, 6 Jun 2020 at 16:13, Nicolas Goaziou wrote: >> zimoun writes: > >> > Somehow, one needs to change the Emacs version used by the Emacs >> > toolchain to bytecompile, right? >> > I do not know if it makes sense, but we could add something like >> > 'package-with-emacs-next' similar to 'package-with-python2' or >> > 'package-with-ocam4.07'. >> > WDYT? >> >> This sounds like serious overhead for a single package. Maybe we could >> try to prevent byte-compilation for the package and see what happens? > > Maybe I miss the issue. From my understanding, all the Emacs packages > are byte-compiled with the current Emacs. Therefore, "guix install > emacs-next emacs-foo" and then "M-x foo" works by luck -- well because > the Emacs VM is stable. :-) That's a good description of the situation. There's no warranty that emacs-something works with emacs-next unless it was packaged to be compiled specifically with emacs-next instead of the default emacs package (currently 26.3). > And I do not know how to rebuild all my Emacs packages using > 'emacs-next' instead of the current Emacs. Maybe I miss something. 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. > 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 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--- Maxim