From debbugs-submit-bounces@debbugs.gnu.org Mon May 10 03:51:16 2021 Received: (at submit) by debbugs.gnu.org; 10 May 2021 07:51:17 +0000 Received: from localhost ([127.0.0.1]:57293 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lg0hA-0004bm-OU for submit@debbugs.gnu.org; Mon, 10 May 2021 03:51:16 -0400 Received: from lists.gnu.org ([209.51.188.17]:57176) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lg0h6-0004bc-SK for submit@debbugs.gnu.org; Mon, 10 May 2021 03:51:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42972) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lg0h6-0001fV-Gb for bug-guix@gnu.org; Mon, 10 May 2021 03:51:12 -0400 Received: from mail-lj1-x235.google.com ([2a00:1450:4864:20::235]:42732) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lg0h3-000595-5u for bug-guix@gnu.org; Mon, 10 May 2021 03:51:12 -0400 Received: by mail-lj1-x235.google.com with SMTP id w4so19627876ljw.9 for ; Mon, 10 May 2021 00:51:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=trop-in.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:mime-version; bh=r4/sErCH6hHGhqiwJMA1i89tk3kQPD/qQIL1QSC03b0=; b=kLqJItH3MR5LMLLnGGmxL7x1uCiG2IqbD3XjrxTvJmpYcr0igguPHicYswWsYMg4FW YnCe9cFKeFOhemeGDDh7L7gZ+N39p3K5NpzU8BlEDW6M8hkjzSqQujx2EBPMsDx+8CGN h1+sr+gL3HpqPC2gmkVZmexzUteItHlTVmNFd7Ofx5CyYOqqzo/AVg3GNCWBQkok176Q rCATXfVfILU2SvbsdiUc3IPvNalc4LUZyXbGWo9Unl+n6DKRkSx6IhDyOPmxw06fSzJk 77OOz6wQmE8YJ9IcTjnLJiqvbGveGTQtjpZks4qkkIgeoIfOVzeIU7QhyBKxSgX4ZBbQ W+ww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=r4/sErCH6hHGhqiwJMA1i89tk3kQPD/qQIL1QSC03b0=; b=WJkoIb5gSiu/SvycyabH763CEF4REN0v63kjroDoILF5NtlKbwfKIDBpDATLdOw7Cg PCx0eAlHPL8aQykwgvxRsPTxnRxxcSqR05qYc+cyouZFr7KRzjMQAVGRhS4SBvmlDQss HeivZK854rkbQXxUvHs+c8PJchrMSD1hPkTuRsE6cYghu06iaN+y9SSGVJWJM7Ycw7qW Yj+zKTbYmTBIsnnvLscRWfiMzEgT9ZLbKx0Q8WKCHrfmW1Cwe0SrpeVcq2KExVq1rO9z 72QSFGwKMq+kax4yr9z+mc8zhTBzBtuXLr1mFAHfpndRgSGpBiJhxkcMmU45brWKpWBI MUwA== X-Gm-Message-State: AOAM531rrTVexP4BayxyI0SV87mETmLDo5cCsRagaQFhwm/lzuQNptGw GKkbUWIN1f+L/cwDNqT+DJepbuDLMTiElwG1 X-Google-Smtp-Source: ABdhPJyxPoyh0kQXSEIVUWeXaIMwY9wK5FFmQmF0xef+t6WV+BbZPTbSMajTIqDvN6GneNSaocUkPQ== X-Received: by 2002:a2e:bf1f:: with SMTP id c31mr19226507ljr.30.1620633065906; Mon, 10 May 2021 00:51:05 -0700 (PDT) Received: from ixy ([109.252.117.148]) by smtp.gmail.com with ESMTPSA id m1sm2149567lfq.19.2021.05.10.00.51.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 May 2021 00:51:05 -0700 (PDT) From: Andrew Tropin To: bug-guix@gnu.org Subject: Emacs' describe-package doesn't work for packages managed by guix Date: Mon, 10 May 2021 10:51:03 +0300 Message-ID: <87im3r81so.fsf@trop.in> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: none client-ip=2a00:1450:4864:20::235; envelope-from=andrew@trop.in; helo=mail-lj1-x235.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit 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: -3.3 (---) describe-package and list-packages do not show emacs packages, installed with guix. Packages themselves work perfectly fine, but not listed in list-packages and can't be accessed with describe-package. Way to reproduce: guix environment --pure --ad-hoc emacs emacs-treemacs emacs -q M-x treemacs ;; Works fine C-h P treemacs ;; Doesn't work M-x list-packages ;; Doesn't list treemacs Played around with it a little bit, still not sure how to solve. From debbugs-submit-bounces@debbugs.gnu.org Tue May 11 06:06:04 2021 Received: (at 48331) by debbugs.gnu.org; 11 May 2021 10:06:04 +0000 Received: from localhost ([127.0.0.1]:35054 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgPHA-0004oB-Ft for submit@debbugs.gnu.org; Tue, 11 May 2021 06:06:04 -0400 Received: from mailrelay.tugraz.at ([129.27.2.202]:34758) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgPH8-0004nj-Ct for 48331@debbugs.gnu.org; Tue, 11 May 2021 06:06:03 -0400 Received: from [10.0.0.4] (91-114-247-246.adsl.highway.telekom.at [91.114.247.246]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4FfYTd2xwnz3xqm; Tue, 11 May 2021 12:05:57 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1620727557; bh=9aAW5k7UpkYk1kSTYFKkkdPFAidrBlLqaFYuDxxCIzs=; h=Subject:From:To:Date:In-Reply-To:References; b=DaC4iMXD4gKUaxLTU3jinahl6K2+d+EpnfJMwTnFA/lHv9rBT2EwHQD28Ao/SxLvs kKMZXADMFEdtS+ObT2VHzwpIDqKirlROUiU2EuKt+ua8W/rfbPjKWPDMKk/f1xBIqy Fu/MUVxlQ5EirTnRebAAT+k8gBXMsv/u/yut7V/U= Message-ID: <78cfb495305fb1137da26e37a7ae5dd9467043bf.camel@student.tugraz.at> Subject: Re: Emacs' describe-package doesn't work for packages managed by guix From: Leo Prikler To: Andrew Tropin , 48331@debbugs.gnu.org Date: Tue, 11 May 2021 12:05:31 +0200 In-Reply-To: <87im3r81so.fsf@trop.in> References: <87im3r81so.fsf@trop.in> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-TUG-Backscatter-control: bt4lQm5Tva3SBgCuw0EnZw X-Spam-Scanner: SpamAssassin 3.003001 X-Spam-Score-relay: -1.9 X-Scanned-By: MIMEDefang 2.74 on 129.27.10.117 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 48331 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: -3.3 (---) Am Montag, den 10.05.2021, 10:51 +0300 schrieb Andrew Tropin: > describe-package and list-packages do not show emacs packages, > installed > with guix. Packages themselves work perfectly fine, but not listed in > list-packages and can't be accessed with describe-package. > > Way to reproduce: > > guix environment --pure --ad-hoc emacs emacs-treemacs > > emacs -q > > M-x treemacs ;; Works fine > C-h P treemacs ;; Doesn't work > M-x list-packages ;; Doesn't list treemacs > > Played around with it a little bit, still not sure how to solve. This mail brought me back to the good old days of 2018, when I was still using Gentoo and had to solve a similar issue. The problem here is, that Guix does not include the -pkg.el file, that would typically be generated by package.el. To deal with this, you have to provide package specs on your own. There already exists a utility to locate libraries in a package manager agnostic fashion [1], all you need to do is to feed back that information to package.el. I have now published emacs-dpd [2], which does exactly that. To use it for your Guix Emacs packages, execute (dpd (list "$GUIX_PROFILE/share/emacs/site-lisp" ...)) replacing "$GUIX_PROFILE" with the actual profile, after `package- initialize' has run with `dpd-fuzzy-recognize' in `dpd-recognize-hook'. I might write a more detailed README later. Neither packed nor dpd are currently packaged in Guix. packed can easily be imported from melpa-stable, but for dpd you'd have to write your own guix.scm. I might do that at some point as well. We already had modifications in emacs-build-system recently, so if you want to argue, that all Emacs packages should have that - pkg.el to work with package.el out of the box, I would ask you to wait, so as to not cause an "Emacs world" rebuild again after only ten days. I also don't know whether Guix has the same information as package.el at build time, but that might change with time as well. Particularly, there will hopefully be a move towards supplying name and version at build, which would give us the most important information. Regards, Leo [1] https://github.com/emacscollective/packed [2] https://gitlab.com/leoprikler/emacs-dpd From debbugs-submit-bounces@debbugs.gnu.org Tue May 11 11:57:37 2021 Received: (at 48331) by debbugs.gnu.org; 11 May 2021 15:57:38 +0000 Received: from localhost ([127.0.0.1]:37177 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgUlN-0002h3-Kz for submit@debbugs.gnu.org; Tue, 11 May 2021 11:57:37 -0400 Received: from mail-qk1-f179.google.com ([209.85.222.179]:43573) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgUlL-0002gm-FP for 48331@debbugs.gnu.org; Tue, 11 May 2021 11:57:36 -0400 Received: by mail-qk1-f179.google.com with SMTP id a22so18635630qkl.10 for <48331@debbugs.gnu.org>; Tue, 11 May 2021 08:57:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=trop-in.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=QbxjEEbfeiMzamdYCZoFeEELJ/GH0lJF8H6HQ+hOaxM=; b=ZvLDzILELPGxiM0HakvionoElEMPmmpiufm71mn74sLsePi+2VhxbDRe9cKnZrHdAr CdsqChAo6wK0i3uLmAHEKau6G37QD05CP24jg7bFvrZ9m3uNXCnYb44avIyyKvGoTE+d KHeAqXBepz6HFj66hpBm9sN3gLZshg7V1e4XyUxJdurlH6EyEnM4PtY4BHtDyx2i14AJ 4spx+h+z+SeNusMlM6LdglgTp60KJJFyfPi04pO2iI1ZNFSEH0FjVYy6kA/IsFL3fS+2 /UUQvtYuPWazQ4Fi4o0Hzg+zFybcZJCndMTvzdA8qQyaZXVqgnd5nxECjVkfy4EW2Nz6 pR2A== 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=QbxjEEbfeiMzamdYCZoFeEELJ/GH0lJF8H6HQ+hOaxM=; b=Egqzn7N+NStbZ+Q6cYIlcNkA8bE3OlY/6bsdwCwUgAxZhU/zIPfYqPUqN/0m2PYd9F /5xFvp7mf4ml+z2UCzdN3Db747Idwks5g8P410iEyHGbFQ6lbl1R+DElhOiDrDQnq/cO d6LNdUF96QWbYyxrrhAKJA0GCt3dj18f8PUEaXKF8YCC7uHf2CI4X/kMh6Op55mN/LQ6 TQAQCtqIRA0b0sd9I/jHWpiKeDsWf0INsL8uipceITunFi4UE+YEyxpfQ2Q8gkmuGS26 HPODYfWOsehvI3tS7yXeLZ9VJOKML50Mx1/tiVXRfztgmt3dbrwGTxtGi1oKB9EpKhZY raYg== X-Gm-Message-State: AOAM532C9gNyrf9i/79y6xRKp8esTd5vSabCrM5HXZeqAWtBZNFvFV3x KjnlSiUvxQUsQnoWK9doqXzVuU2IhYgU5/JN2roY3VjGhj8RJUCQ X-Google-Smtp-Source: ABdhPJy7g/M7Kh8EiZME98ZxKdSslP6MGMaK15v0EFDvwjhikEqwwTO0MtYJyeQ4rGfwFZEhGe4DcsUTp8kBlgiUVCI= X-Received: by 2002:a05:620a:126d:: with SMTP id b13mr7613105qkl.436.1620748649802; Tue, 11 May 2021 08:57:29 -0700 (PDT) MIME-Version: 1.0 References: <87im3r81so.fsf@trop.in> <78cfb495305fb1137da26e37a7ae5dd9467043bf.camel@student.tugraz.at> In-Reply-To: <78cfb495305fb1137da26e37a7ae5dd9467043bf.camel@student.tugraz.at> From: Andrew Tropin Date: Tue, 11 May 2021 18:57:18 +0300 Message-ID: Subject: Re: Emacs' describe-package doesn't work for packages managed by guix To: Leo Prikler Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 48331 Cc: 48331@debbugs.gnu.org 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 (-) > The problem here is, that Guix does not include the -pkg.el > file, that would typically be generated by package.el. To deal with > this, you have to provide package specs on your own. There already > exists a utility to locate libraries in a package manager agnostic > fashion [1], all you need to do is to feed back that information to > package.el. Yep, I figured it out yesterday and even hacked around a little bit. Patched emacs-build-system to place packages under elpa/NAME-VERSION subdirectory and removed "-pkg\\.el$" from %default-exclude. > I have now published emacs-dpd [2], which does exactly that. To use it > for your Guix Emacs packages, execute > (dpd (list "$GUIX_PROFILE/share/emacs/site-lisp" ...)) > replacing "$GUIX_PROFILE" with the actual profile, after `package- > initialize' has run with `dpd-fuzzy-recognize' in `dpd-recognize-hook'. > I might write a more detailed README later. Most of the packages already have -pkg.el in sources, but yep, pretty cool utility, also thought about implementing something like that yesterday, but luckily I didn't and now I do not need to do it, because now I'm aware of already-existing implementations!) > Neither packed nor dpd are currently packaged in Guix. packed can > easily be imported from melpa-stable, but for dpd you'd have to write > your own guix.scm. I might do that at some point as well. > We already had modifications in emacs-build-system recently, so if you > want to argue, that all Emacs packages should have that - > pkg.el to work with package.el out of the box, I would ask you to wait, > so as to not cause an "Emacs world" rebuild again after only ten days. > I also don't know whether Guix has the same information as package.el > at build time, but that might change with time as well. Particularly, > there will hopefully be a move towards supplying name and version at > build, which would give us the most important information. Very cool, I didn't have the latest changes on my local checkout and didn't see your commits, but now I see, it is exactly what I needed. The only side note: it should be site-lisp/elpa/NAME-VERSION (right now it is site-lisp/NAME-VERSION). Also, on line 137 elpa-directory function can be used. When you will be updating the path, please remove -pkg.el from %default-exclude. Thank you very much for your work! Really appreciate it! -- Best regards, Andrew Tropin From debbugs-submit-bounces@debbugs.gnu.org Tue May 11 12:33:45 2021 Received: (at 48331) by debbugs.gnu.org; 11 May 2021 16:33:45 +0000 Received: from localhost ([127.0.0.1]:37223 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgVKL-0003cl-58 for submit@debbugs.gnu.org; Tue, 11 May 2021 12:33:45 -0400 Received: from mailrelay.tugraz.at ([129.27.2.202]:54426) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgVKH-0003cY-C9 for 48331@debbugs.gnu.org; Tue, 11 May 2021 12:33:43 -0400 Received: from nijino.local (91-114-247-246.adsl.highway.telekom.at [91.114.247.246]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4Ffk4x5tVDz3xqb; Tue, 11 May 2021 18:33:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1620750818; bh=0a8MTnRt9WsyJBbj9iVeUNqDpA5DVkuWjg4xWqNzLCU=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=E0YZuOfK2n9deQDRUgc1/Fl0NZFS/a1HGNaW7c84xF0S2/juOs7SCDqzZDQE0pnjd FMFpwvu2Ebequo0qZCLjDxjMe4P8ext9XuRkRrURADGfpNF64coPKSl1NZGG4frmEL t4na9WThKBlmbMXyrWHvwBMr/JHKnHpYHUrt5AU4= Message-ID: <8164abe40ec6e865bf8385e010702cfe158dabcc.camel@student.tugraz.at> Subject: Re: Emacs' describe-package doesn't work for packages managed by guix From: Leo Prikler To: Andrew Tropin Date: Tue, 11 May 2021 18:33:37 +0200 In-Reply-To: References: <87im3r81so.fsf@trop.in> <78cfb495305fb1137da26e37a7ae5dd9467043bf.camel@student.tugraz.at> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-TUG-Backscatter-control: bt4lQm5Tva3SBgCuw0EnZw X-Spam-Scanner: SpamAssassin 3.003001 X-Spam-Score-relay: -1.9 X-Scanned-By: MIMEDefang 2.74 on 129.27.10.117 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 48331 Cc: 48331@debbugs.gnu.org, Maxim Cournoyer 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: -3.3 (---) Am Dienstag, den 11.05.2021, 18:57 +0300 schrieb Andrew Tropin: > Patched emacs-build-system to place packages under elpa/NAME-VERSION > subdirectory and removed "-pkg\\.el$" from %default-exclude. I don't know whether that's a good idea. The elpa/ part I already dislike, and the "-pkg\\.el$" exclude might have existed for a reason (I don't know which, put perhaps byte compilation). > > I have now published emacs-dpd [2], which does exactly that. To > > use it > > for your Guix Emacs packages, execute > > (dpd (list "$GUIX_PROFILE/share/emacs/site-lisp" ...)) > > replacing "$GUIX_PROFILE" with the actual profile, after `package- > > initialize' has run with `dpd-fuzzy-recognize' in `dpd-recognize- > > hook'. > > I might write a more detailed README later. > > Most of the packages already have -pkg.el in sources, but yep, pretty > cool utility, also thought about implementing something like that > yesterday, but luckily I didn't and now I do not need to do it, > because > now I'm aware of already-existing implementations!) I know people take package.el for granted nowadays, but alternative package managers for Emacs have their uses. This is not just a Guix thing :) > > Neither packed nor dpd are currently packaged in Guix. packed can > > easily be imported from melpa-stable, but for dpd you'd have to > > write > > your own guix.scm. I might do that at some point as well. > > We already had modifications in emacs-build-system recently, so if > > you > > want to argue, that all Emacs packages should have that - > > pkg.el to work with package.el out of the box, I would ask you to > > wait, > > so as to not cause an "Emacs world" rebuild again after only ten > > days. > > I also don't know whether Guix has the same information as > > package.el > > at build time, but that might change with time as > > well. Particularly, > > there will hopefully be a move towards supplying name and version > > at > > build, which would give us the most important information. > > Very cool, I didn't have the latest changes on my local checkout and > didn't > see your commits, but now I see, it is exactly what I needed. > > The only side note: it should be site-lisp/elpa/NAME-VERSION (right > now > it is site-lisp/NAME-VERSION). Also, on line 137 elpa-directory > function can be used. I don't think we want to fake elpa that hard. Two iterations ago it was .guix.d and people didn't really like it. My subdirs.el patch is also stretching it. So I really don't want to add another subdirectory layer to it. If elpa can't deal with that, we'll have to code around it in Elisp. > When you will be updating the path, please remove -pkg.el from > %default-exclude. I've CC'd Maxim, perhaps they know more about %default-exclude. Regards, Leo From debbugs-submit-bounces@debbugs.gnu.org Tue May 11 14:56:03 2021 Received: (at 48331) by debbugs.gnu.org; 11 May 2021 18:56:03 +0000 Received: from localhost ([127.0.0.1]:37385 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgXY2-0000mO-Qe for submit@debbugs.gnu.org; Tue, 11 May 2021 14:56:03 -0400 Received: from mail-qk1-f176.google.com ([209.85.222.176]:38441) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgXY0-0000lg-Ff for 48331@debbugs.gnu.org; Tue, 11 May 2021 14:56:01 -0400 Received: by mail-qk1-f176.google.com with SMTP id q10so15667936qkc.5 for <48331@debbugs.gnu.org>; Tue, 11 May 2021 11:56:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=trop-in.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ldm7Vmt8hIhpLT6X/1nbd+3Ifld0FDlOIveerZjZ5rk=; b=gdbGydlNIhnZs9nrKzTLkDYhaSiYbeIGXX2UwC72JK7RtTuRoXTP2O5Y8ckTsDBLyV qw0Nb3sEEKPGRbeeZnM7dnuxVdx5XIS9FnZy1WPZS9z72bGCII+EYlBQLNQAfBtHAIBO HIVKHRtFp6FMdXRYXTBgIRj2lGjq7OwVrnejnzR0bN63dh2XEaGmZ7AgpdJHxl2q84mM ci6oMo9R6QexkAYjIPURqgN+5W6IZ2eWx09mLDwiFLg/ctRS8/vpE3MCuK/RskqeGu52 VOcU0AJiwufCXC6pOqeHPXZV93VX/b6eFHe9gQ2sLuxKlJ82eSehouWKfi+yetLxtJMj /zZg== 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=ldm7Vmt8hIhpLT6X/1nbd+3Ifld0FDlOIveerZjZ5rk=; b=BrD0kLNoznBOvPaFJY4NDATCtbF+5rUG7+9dQJlq8zJujbYeeq2S8teehYn76q2HFL 99X7qe3Cd5D+kQ7AJCBRUyZ2NY9MfTOlzbXfxME31AoLHFgDEG2VJvJLLtAE99n86G7T EJLsuVgv7JfqN+aZ+mTgg5oeSlA3COe6cJZJyNiV5BmOihEyeiSbxui6gHYVmHWCg/rE Tj450qu/mO9gbLHWQ94B/LB8yZD23u6kiS774L3VOVISSqApyU7AJfC0yMTv0nDbu4pq v5TW8Kahkeraxz6gGvWh+lQwUhgb7HsSAQLQyrP0ggcg3M/tg7P8MgFTNikYlDxgYTNO h7oQ== X-Gm-Message-State: AOAM530UEDayaAzlaohpOIgTnsrOuSPcaDSHYIaBOgHXKoVMCNoaeEkJ Y5vhxn8YBVbg7NyiRQVNTTlLEClScM0YUeZAOFSJ/Q== X-Google-Smtp-Source: ABdhPJz94v5yDazmwczmv2AGM+vNMv6Xbqtd8+dqQXhoUysqtBAHF+7U8ebRGvwsW6ybeeD1fVrOhlDkECnqDNXn/R4= X-Received: by 2002:a05:620a:126d:: with SMTP id b13mr8415330qkl.436.1620759354762; Tue, 11 May 2021 11:55:54 -0700 (PDT) MIME-Version: 1.0 References: <87im3r81so.fsf@trop.in> <78cfb495305fb1137da26e37a7ae5dd9467043bf.camel@student.tugraz.at> <8164abe40ec6e865bf8385e010702cfe158dabcc.camel@student.tugraz.at> In-Reply-To: <8164abe40ec6e865bf8385e010702cfe158dabcc.camel@student.tugraz.at> From: Andrew Tropin Date: Tue, 11 May 2021 21:55:43 +0300 Message-ID: Subject: Re: Emacs' describe-package doesn't work for packages managed by guix To: Leo Prikler Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 48331 Cc: 48331@debbugs.gnu.org, Maxim Cournoyer 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 (-) > the "-pkg\\.el$" exclude might have existed for a reason > (I don't know which, put perhaps byte compilation). Perhaps it should be ignored during byte compilation, but still installing it seems to be a good idea. Ok, let's wait for Maxim answer. > I know people take package.el for granted nowadays, but alternative > package managers for Emacs have their uses. This is not just a Guix > thing :) Why not take it for granted?) It's built-in since 24(?), elpa/melpa archives respect it format and provide package descriptions in -pkg.el format, AFAIK. Most other package managers seem to respect "infrastructure" provided by package.el. For example you can view a list of packages with `list-packages` even for packages installed with other PMs (Nix for example), BTW they keep "package.el" directory structure. https://0x0.st/-BxL.txt Don't see too many reasons not to follow this format. I mean it's easily fixable with current directory structure just by stripping "/elpa" suffix from package-directory-list, but why we would do that emacs "customization" instead of just placing packages under /elpa subdirectory and make everything work out of the box? > I don't think we want to fake elpa that hard. Two iterations ago it > was .guix.d and people didn't really like it. Do you mean the package installation path was site-lisp/.guix.d/NAME-VERSION? > My subdirs.el patch is also stretching it. Not sure what you mean by this, sorry, I'm not native speaker and automated translation doesn't make sense to me. Rephrase please. I do not insist on any particular directory structure, just curious why not to stick to the widely adopted format. Once again, thank you for placing packages into subdirectories, now the site-lisp structure seems more organized and less polluted + problem with describe-package (C-h P) and list-packages are easily fixable. Appreciate your work!) -- Best regards, Andrew Tropin From debbugs-submit-bounces@debbugs.gnu.org Tue May 11 15:57:11 2021 Received: (at 48331) by debbugs.gnu.org; 11 May 2021 19:57:11 +0000 Received: from localhost ([127.0.0.1]:37526 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgYVC-0002KT-P1 for submit@debbugs.gnu.org; Tue, 11 May 2021 15:57:11 -0400 Received: from mailrelay.tugraz.at ([129.27.2.202]:57574) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgYVA-0002KH-4z for 48331@debbugs.gnu.org; Tue, 11 May 2021 15:57:09 -0400 Received: from nijino.local (91-114-247-246.adsl.highway.telekom.at [91.114.247.246]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4Ffpbg48Rqz3x8F; Tue, 11 May 2021 21:57:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1620763023; bh=yX30V6mXr1kVIeqkqT6Bltcii812sBWLitmzkWteoJE=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=NS7it26/lilEvoLEqmoWGbOkAgv5Sp8BbHyHbTaS4VLVnQvm4QnfPDMt3N7YxvKZc 4eFl3mxEzZzlEY+cH9z0yj/CdsrANUJWvw/1z8sWtamTssvQHRPYBtrVLDb6zx0FtT JfVtn9A6E5Xu1C443ZF3b1UVlG1x3bKT7/wyITEY= Message-ID: <6cba9730ace19ecebc397023b243cdb02486cc0c.camel@student.tugraz.at> Subject: Re: Emacs' describe-package doesn't work for packages managed by guix From: Leo Prikler To: Andrew Tropin Date: Tue, 11 May 2021 21:57:02 +0200 In-Reply-To: References: <87im3r81so.fsf@trop.in> <78cfb495305fb1137da26e37a7ae5dd9467043bf.camel@student.tugraz.at> <8164abe40ec6e865bf8385e010702cfe158dabcc.camel@student.tugraz.at> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TUG-Backscatter-control: bt4lQm5Tva3SBgCuw0EnZw X-Spam-Scanner: SpamAssassin 3.003001 X-Spam-Score-relay: -1.9 X-Scanned-By: MIMEDefang 2.74 on 129.27.10.117 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 48331 Cc: 48331@debbugs.gnu.org, Maxim Cournoyer 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: -3.3 (---) Am Dienstag, den 11.05.2021, 21:55 +0300 schrieb Andrew Tropin: > > the "-pkg\\.el$" exclude might have existed for a reason > > (I don't know which, put perhaps byte compilation). > > Perhaps it should be ignored during byte compilation, but still > installing it seems to be a good idea. Ok, let's wait for Maxim > answer. I think we agree on that. > > I know people take package.el for granted nowadays, but alternative > > package managers for Emacs have their uses. This is not just a > > Guix thing :) > > Why not take it for granted?) It's built-in since 24(?), elpa/melpa > archives respect it format and provide package descriptions in > -pkg.el format, AFAIK. el-get[1] is still active. straight.el[2] is another package manager for Emacs, its README comparing 5+1 approaches for package mangers, including el-get and package.el. Those are very much wild lands, I say. Not to speak for all the distro-specific ways of handling things. Gentoo had (and probably still has) an overlay, that magically creates Gentoo packages from elpa – in which of course they drop the -pkg.el. Debian has a mix of elpa packages and non-elpa ones, some of which naturally don't have the -pkg.el either. (Also their packages use site-lisp/elpa-src instead of site-lisp/elpa). Arch also seems to install at least some Elisp packages "directly" in site-lisp/$PACKAGE. > Most other package managers seem to respect "infrastructure" provided > by package.el. I don't think that statement is well-supported by the data we have. > Don't see too many reasons not to follow this format. > > I mean it's easily fixable with current directory structure just by > stripping "/elpa" suffix from package-directory-list, but why we > would do that emacs "customization" instead of just placing packages > under /elpa subdirectory and make everything work out of the box? Why should we let ELPA dictate our layout? I have not even once tried customizing package.el for actual use since I got Guix, because the elpa importer is trivial. > > I don't think we want to fake elpa that hard. Two iterations ago > > it was .guix.d and people didn't really like it. > > Do you mean the package installation path was site-lisp/.guix.d/NAME- > VERSION? Yep, that was a kinda ELPA-y convention while also remaining more true to what we're doing. > > My subdirs.el patch is also stretching it. > > Not sure what you mean by this, sorry, I'm not native speaker and > automated translation doesn't make sense to me. Rephrase please. The patch, which I've made, that adds subdirs.el is not uncontroversial. > I do not insist on any particular directory structure, just curious > why not to stick to the widely adopted format. Once again, thank you > for placing packages into subdirectories, now the site-lisp structure > seems more organized and less polluted + problem with describe- > package (C-h P) and list-packages are easily fixable. Appreciate > your work!) I hope I've shed some light as to how "wide" this adoption actually is – Emacs users are a contentious people. Just because something is "the default" and enjoys being shipped with Emacs itself doesn't mean that everyone is happy with it. Thus we're not trying to keep in line with any specific package manager, we just need to make things work "with Emacs" in the sense that packages installed via Guix should have working autoloads and one should be able to (require ...) them. Regards, Leo [1] https://github.com/dimitri/el-get [2] https://github.com/raxod502/straight.el From debbugs-submit-bounces@debbugs.gnu.org Tue May 11 17:17:43 2021 Received: (at 48331) by debbugs.gnu.org; 11 May 2021 21:17:43 +0000 Received: from localhost ([127.0.0.1]:37655 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgZl8-0006U4-T6 for submit@debbugs.gnu.org; Tue, 11 May 2021 17:17:43 -0400 Received: from eggs.gnu.org ([209.51.188.92]:38028) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgZl7-0006Pn-JW for 48331@debbugs.gnu.org; Tue, 11 May 2021 17:17:42 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:38386) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgZl2-0001rq-Ar; Tue, 11 May 2021 17:17:36 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=33438 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgZl1-0002kn-Q4; Tue, 11 May 2021 17:17:36 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Andrew Tropin Subject: Re: bug#48331: Emacs' describe-package doesn't work for packages managed by guix References: <87im3r81so.fsf@trop.in> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 22 =?utf-8?Q?Flor=C3=A9al?= an 229 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Tue, 11 May 2021 23:17:34 +0200 In-Reply-To: <87im3r81so.fsf@trop.in> (Andrew Tropin's message of "Mon, 10 May 2021 10:51:03 +0300") Message-ID: <87mtt1ug0h.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 48331 Cc: 48331@debbugs.gnu.org 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: -3.3 (---) Hi, Andrew Tropin skribis: > M-x list-packages ;; Doesn't list treemacs Let me recommend Emacs-Guix (aka. =E2=80=98guix.el=E2=80=99) as a superior = alternative. :-) I think it=E2=80=99s fine that =E2=80=98package.el=E2=80=99 is unaware of G= uix-managed software and vice-versa. Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Wed May 19 10:32:36 2021 Received: (at 48331) by debbugs.gnu.org; 19 May 2021 14:32:36 +0000 Received: from localhost ([127.0.0.1]:60397 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ljNFT-0005Kf-Pd for submit@debbugs.gnu.org; Wed, 19 May 2021 10:32:36 -0400 Received: from mail-qk1-f177.google.com ([209.85.222.177]:45615) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ljNFK-0005KH-K8 for 48331@debbugs.gnu.org; Wed, 19 May 2021 10:32:34 -0400 Received: by mail-qk1-f177.google.com with SMTP id i5so5658272qkf.12 for <48331@debbugs.gnu.org>; Wed, 19 May 2021 07:32:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=trop-in.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Yg8aDPRq+PeUjqtkPOcs6YiX34Wd/Sc8+S9OKLMrrGk=; b=VavXJZF9cVbuqrGUpIevdOgIHlDuFcebJ6amwb5zDP9MbrL//i/K4sjf1NIwVjzfjc OOlwioEkSdK4AM2/QKg4Q5s7rhijuyPWFjl51ELvtdUM0frgsdE+lmLtOze1UuteOLC/ jb8FpJHFIZXnbDu8sNSDOdA8RBFoQpqe3d+rD4kqi4joPVHTUYDpPpiQ3PxDJWFuTmR6 LUl+OKi2MfpqWe+wv7/nAMrtWtlk29qJo4C2t9p0ecq2ek28/4xHoOuqamplyYtIetIU VhCAWPatrO52Fb6tEsNqOXorcpWq/juDAXXW7OVi4/+Uki9UuOPxV4cfu85MWqG/f2nY Yh8Q== 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=Yg8aDPRq+PeUjqtkPOcs6YiX34Wd/Sc8+S9OKLMrrGk=; b=YvMtGa0i8Cz3MR4rVZEzOcVycys/+rEBbUIJqgKasQ6ba4WFU95uBz1oMZkGyu324v na+Cduie9bynwxpEPPkT6bzDUEUJau2xeSPlX9LrKDJ5dbdtmVMLMfsU1Us89Nw+qt3R dKsKagGBGNH6G5hcBLgAPXvL3dpdSfjWE6y0wF1lUvf14t+IJHoMsUSP2+fb5n1eHcsc GwqyMAqv5ZZL4tEyi2vmU2nxFVBb4ZqTH38NAfpdegmUMc4MYrUnCYp8nf4Z0nxzn6pa h5o1Jn+rxD0Qa4AygaUBlsWQJXi/NTBEkjmCe4o3fpO1kjpNgLoA9rxFrNkeqswZE0Ub C9AA== X-Gm-Message-State: AOAM531B9WyRwpow2jm+P5hxoCAM/i+W1uXvJi5e8qe0mQ8VVFXYhzLv hZtwN7ZHlJPALnnk4CImufzGvfZP3PNVKS/RlbLb1g== X-Google-Smtp-Source: ABdhPJyjBuPUOq1XCmvCjlL2VgDSyr3yjTVQkWxB2xGbTscmasqTOpP5OipwmL2Z9C0J5P4PNxnvc5n0Iz77LH8soL4= X-Received: by 2002:a05:620a:448c:: with SMTP id x12mr12463680qkp.52.1621434741018; Wed, 19 May 2021 07:32:21 -0700 (PDT) MIME-Version: 1.0 References: <87im3r81so.fsf@trop.in> <78cfb495305fb1137da26e37a7ae5dd9467043bf.camel@student.tugraz.at> <8164abe40ec6e865bf8385e010702cfe158dabcc.camel@student.tugraz.at> <6cba9730ace19ecebc397023b243cdb02486cc0c.camel@student.tugraz.at> In-Reply-To: <6cba9730ace19ecebc397023b243cdb02486cc0c.camel@student.tugraz.at> From: Andrew Tropin Date: Wed, 19 May 2021 17:32:10 +0300 Message-ID: Subject: Re: Emacs' describe-package doesn't work for packages managed by guix To: Leo Prikler Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 48331 Cc: 48331@debbugs.gnu.org, Maxim Cournoyer 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 (-) > > Most other package managers seem to respect "infrastructure" provided > > by package.el. > I don't think that statement is well-supported by the data we have. Agree, that was an incorrect statement. I should have said something like: there are some popular tools like use-package configuration helper, Nix package manager, Spacemacs configuration framework, some elisp archives and probably something else, which utilize and follow package.el. Not all of them use package.el itself, but they follow conventions and describe-package help command and some other work correctly. > Why should we let ELPA dictate our layout? I have not even once tried > customizing package.el for actual use since I got Guix, because the > elpa importer is trivial. We don't have to. Actually, I'm very happy with the new (current) layout we have right now. I would say I find the following use case very confusing for newcomers: - Install emacs package via Guix. - Use built-in help C-h C-h, find C-h P. - Get it to work for built-in packages, but not for packages installed by Guix. - Get frustrated. I think we could avoid this at least in two ways: 1. Use elpa/ subdirectory. 2. Keep current structure, set package-directory-list to .../site-lisp instead of .../site-lisp/elpa by default. > Thus we're not trying to keep in line with any specific package > manager, we just need to make things work "with Emacs" in the sense > that packages installed via Guix should have working autoloads and one > should be able to (require ...) them. Yes, but at the same time I don't see reasons why not to implement one of two options above. We can get both: working autoloads and working built-in help function (+newcommers won't be so frustrated). Personally, I'm quite happy that packages got their own subdirectories and I'm fully satisfied with current state of it, but it would be cool if inexperienced users will be able to use at least built-in help commands for packages out of the box without additional configuration. Hope my original point is a little better worded now. -- Best regards, Andrew Tropin From debbugs-submit-bounces@debbugs.gnu.org Wed May 19 10:41:27 2021 Received: (at 48331) by debbugs.gnu.org; 19 May 2021 14:41:27 +0000 Received: from localhost ([127.0.0.1]:60410 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ljNO3-0005ZE-Hb for submit@debbugs.gnu.org; Wed, 19 May 2021 10:41:27 -0400 Received: from mail-qv1-f41.google.com ([209.85.219.41]:45629) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ljNO1-0005Yy-RD for 48331@debbugs.gnu.org; Wed, 19 May 2021 10:41:26 -0400 Received: by mail-qv1-f41.google.com with SMTP id h7so6229654qvs.12 for <48331@debbugs.gnu.org>; Wed, 19 May 2021 07:41:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=trop-in.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=+U7snOLOdi85jleV0W0DrVt9KDTtrhndae9BkVP0PtA=; b=yOTJEApL50ihRXQwOX768m61QFXXVgkxo7QdDgiIDQGssU+02grRJcM3M8t179K8qN V6XetKuJanZ6XsQ5aH+99by1fA/oe7zoft2eYdSQU2qUYI5O0kV5Q47ffcvR2bO2zwdk Uqx6TQOm+hrT9x0y2KULlpMo2wa0snMnEaNI24x1oDt2NW5zYFanZUTDd/JXt+EaOQiF r9EyCnTnpwWgIE9DL9F6osQNVsFOC6TJmWE8xCN84pFdN6g2LeveIokl/aEXERVE2tnj XA6wp16/lhc6HMcmWbQQ/8lv71P238PEbVQeG3k6r10LItSE3D2e+wKfp7FRePWelJVm LvTA== 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=+U7snOLOdi85jleV0W0DrVt9KDTtrhndae9BkVP0PtA=; b=WRKVygzGCIK6jSnzHQXxFmleI3NWAApzyYcoAxddLJHJGfP534BmXQ6c/2fnnvR13p nbsesyxFZsarhvSdIIhtAn5TJ2NFGyZOEC7KUk+LICXAdkbEmMb4xPj0luGjIeYti14T WRzvHk3D5L4tObzUo3eAu0LutSiWItYeJH7RQAR1k3+SS3+6laH2NxRVb+ChvAGy28yF KtJDVF0g5mu0Slfms1ABV+pnu5fGzNTAqwVoniom9QPMjx0juEGt/VnEMT1ygWsF+Wm9 RK8noVgNNx9CWewLC6mnpEBXJ1s8PDzE7x+zSXnkMpxvI4VczgxmrnBuRqQTf3Ps9DJd HDkQ== X-Gm-Message-State: AOAM530sFs1I9WcwtsXt+yp9VjBjqedNNUekAQmgPOx5cCwv+lReHiWI j2pIFdmZDeQSI5TH2hG016CkuH3hqCSOJrsew+8tadkATTNUq38+ X-Google-Smtp-Source: ABdhPJwWXY6yrC7zk6jkZVYbJXLGjXd6pTFLgKcqrrZWjQg8RjVy/SzA0Yq+DQZBLD8Z9oWoOwHWSpOZgf2X6A9PMrI= X-Received: by 2002:ad4:4d48:: with SMTP id m8mr7148554qvm.12.1621435280290; Wed, 19 May 2021 07:41:20 -0700 (PDT) MIME-Version: 1.0 References: <87im3r81so.fsf@trop.in> <87mtt1ug0h.fsf@gnu.org> In-Reply-To: <87mtt1ug0h.fsf@gnu.org> From: Andrew Tropin Date: Wed, 19 May 2021 17:41:09 +0300 Message-ID: Subject: Re: bug#48331: Emacs' describe-package doesn't work for packages managed by guix To: =?UTF-8?Q?Ludovic_Court=C3=A8s?= Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 48331 Cc: 48331@debbugs.gnu.org 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 (-) > > M-x list-packages ;; Doesn't list treemacs > Let me recommend Emacs-Guix (aka. 'guix.el') as a superior alternative. > :-) Sure) Aware of it, cool tool. > I think it's fine that 'package.el' is unaware of Guix-managed software > and vice-versa. Yep, perfectly fine, but why not to make it aware, if it is relatively easy to achieve?) From debbugs-submit-bounces@debbugs.gnu.org Wed May 19 11:08:38 2021 Received: (at 48331) by debbugs.gnu.org; 19 May 2021 15:08:38 +0000 Received: from localhost ([127.0.0.1]:60429 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ljNoM-0006H9-8w for submit@debbugs.gnu.org; Wed, 19 May 2021 11:08:38 -0400 Received: from mailrelay.tugraz.at ([129.27.2.202]:20464) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ljNoI-0006Gt-UC for 48331@debbugs.gnu.org; Wed, 19 May 2021 11:08:36 -0400 Received: from nijino.local (91-114-247-246.adsl.highway.telekom.at [91.114.247.246]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4Flbq26gGHz1LB20; Wed, 19 May 2021 17:08:30 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 mailrelay.tugraz.at 4Flbq26gGHz1LB20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1621436911; bh=5hcWY9nOVvLr4x2e8l1gqctwSK4t7JzUuIL7RzrsGR8=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=KItqwd7I4GmhY1mQM8Jk5UuCnoDsYYA44iBYKbXQiTv9T4fJR+RYaAOKeS3XIgMGg TaqbkNxERutl860U+yJVnGE2h4kxlbiC5EB6ObdfEgVUU5DtFunmhCFOjgcFV0SyUV LmyueYo8cEr2TzjtTw0qU7XZU3Qc2vwRUZ7hZFL4= Message-ID: <437d90a3cc91400fdf0828fea2c989c277a73a7c.camel@student.tugraz.at> Subject: Re: Emacs' describe-package doesn't work for packages managed by guix From: Leo Prikler To: Andrew Tropin Date: Wed, 19 May 2021 17:08:30 +0200 In-Reply-To: References: <87im3r81so.fsf@trop.in> <78cfb495305fb1137da26e37a7ae5dd9467043bf.camel@student.tugraz.at> <8164abe40ec6e865bf8385e010702cfe158dabcc.camel@student.tugraz.at> <6cba9730ace19ecebc397023b243cdb02486cc0c.camel@student.tugraz.at> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-TUG-Backscatter-control: bt4lQm5Tva3SBgCuw0EnZw X-Spam-Scanner: SpamAssassin 3.003001 X-Spam-Score-relay: -1.9 X-Scanned-By: MIMEDefang 2.74 on 129.27.10.117 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 48331 Cc: 48331@debbugs.gnu.org, Maxim Cournoyer 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: -3.3 (---) Am Mittwoch, den 19.05.2021, 17:32 +0300 schrieb Andrew Tropin: > > > Most other package managers seem to respect "infrastructure" > > > provided by package.el. > > I don't think that statement is well-supported by the data we have. > > Agree, that was an incorrect statement. I should have said something > like: there are some popular tools like use-package configuration > helper, Nix package manager, Spacemacs configuration framework, some > elisp archives and probably something else, which utilize and follow > package.el. Not all of them use package.el itself, but they follow > conventions and describe-package help command and some other work > correctly. Is package.el really so well supported by all these tools? I might concede, that some of them don't throw away the package.el blurb like guix does, but other than that, I think you'd have a hard time stuffing a random git repo from use-package into package.el. Am I missing something? > > Why should we let ELPA dictate our layout? I have not even once > > tried customizing package.el for actual use since I got Guix, > > because the elpa importer is trivial. > > We don't have to. Actually, I'm very happy with the new (current) > layout we have right now. That's good :) > I would say I find the following use case very confusing for > newcomers: > - Install emacs package via Guix. > - Use built-in help C-h C-h, find C-h P. > - Get it to work for built-in packages, but not for packages > installed by Guix. > - Get frustrated. You mean Emacs newcomers? Tell me something new about the first-time Emacs experience :P > I think we could avoid this at least in two ways: > 1. Use elpa/ subdirectory. > 2. Keep current structure, set package-directory-list to .../site- > lisp instead of .../site-lisp/elpa by default. Neither sounds very pleasant, but does (2) even work? > > Thus we're not trying to keep in line with any specific package > > manager, we just need to make things work "with Emacs" in the sense > > that packages installed via Guix should have working autoloads and > > one should be able to (require ...) them. > > Yes, but at the same time I don't see reasons why not to implement > one of two options above. We can get both: working autoloads and > working built-in help function (+newcommers won't be so frustrated). Of course. The glue code for that would go into guix-emacs.el, just like our autoload glue. > Personally, I'm quite happy that packages got their own > subdirectories and I'm fully satisfied with current state of it, but > it would be cool if inexperienced users will be able to use at least > built-in help commands for packages out of the box without additional > configuration. > > Hope my original point is a little better worded now. Doing something in Emacs without configuration sounds like an oxymoron, but I get your point. At the same time, I think that this kind of change is a pretty large request (DPD has more than 100 lines not counting dependencies, it's not small and neat like guix-emacs.el). If you find a clever trick to make your troubles go away, do submit a patch, but don't let it rely on user setup (in particular, don't rely on "haha, the user always carries about the elpa subdirectory"). Regards, Leo From debbugs-submit-bounces@debbugs.gnu.org Wed May 19 13:59:02 2021 Received: (at 48331) by debbugs.gnu.org; 19 May 2021 17:59:02 +0000 Received: from localhost ([127.0.0.1]:60678 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ljQTG-0002bs-Cg for submit@debbugs.gnu.org; Wed, 19 May 2021 13:59:02 -0400 Received: from mail-qk1-f171.google.com ([209.85.222.171]:34604) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ljQT9-0002bI-5W for 48331@debbugs.gnu.org; Wed, 19 May 2021 13:59:00 -0400 Received: by mail-qk1-f171.google.com with SMTP id v8so13632846qkv.1 for <48331@debbugs.gnu.org>; Wed, 19 May 2021 10:58:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=trop-in.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=n7K9VOuuX65Swv9GtX88y8FdF9NX61aDrYFsnKITxjc=; b=drwmd1AXLd1yFreVe6unc7nFZ6z7gZn4ADrn3wi45QGF+LldZn0VE9MwPTJ6TS7XiV H3lpi61ZFtfzM9KIL7Z2Y/cdob8w3oM7hF3k13I2gloz90D/G5s1krjDe7M1OHmIUEYI RlEOIg465RlRf4kJjXeoitcEcv1sbv/vJkqbC98+r+VCS/M23Sh5zNuUrLs+4NoEB0BS gcm/4ImPvjr5blIk7mZOcjZqL3ikjZFnAA4/4VETPMYSezdIarCQ7G04mVxRsxoFSSGO RWHbkzFm8QIlLBN4Fsi2la2GGUdi7E+4rHhh3RrBsawOWsrUZlDV4Ron4fbOFyikfd11 Fz0Q== 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=n7K9VOuuX65Swv9GtX88y8FdF9NX61aDrYFsnKITxjc=; b=LT3YfZTb/IqSsVdT/waBekChUmLYp8Rrry5j97C8Eh6yY9PeetcfhL0d98HUm/VSQ8 J69lhFKf63jVrBLlRxOhy7ILONSupIVtMkRCbJiPy/i2swNu5RgWrgeU3TNUrsdtCS+x dXVJJPUCHqyyULbit+iCn3yz6z+IF2Dghath7Tm2zDlIx2X5WxVzZHDxnlv9/oL3vmfv tF046MLXDsfCfdBsgTbSAoChFLDs6/VEdpE1qMbjW4jrZ+RLb4BfwRyT1g39dJwUheNO 5y+tJEAAqmtDmB8PRdWpIUX9TzYA9T45wODqRsBt8S56gxz6qq9oy9Lb+AcIuuHCzSeI lhkQ== X-Gm-Message-State: AOAM530WQDUekRO18Wp866wj1KfKz3LD+UrbTYYhE8xcSwNyR6ePE9RJ txI/3/0BGp6MPb5EZxqt0chfRoW+ZINAr6rpAbLuCw== X-Google-Smtp-Source: ABdhPJzBeNZlLhI+DZH6UYVPkcxJZelHb4kB2qqq5j6r8cZGPWJs1cLStCGYfFo+ebSG/I1FJoKv/MA10H96w0G+NGQ= X-Received: by 2002:a37:b643:: with SMTP id g64mr686079qkf.6.1621447129547; Wed, 19 May 2021 10:58:49 -0700 (PDT) MIME-Version: 1.0 References: <87im3r81so.fsf@trop.in> <78cfb495305fb1137da26e37a7ae5dd9467043bf.camel@student.tugraz.at> <8164abe40ec6e865bf8385e010702cfe158dabcc.camel@student.tugraz.at> <6cba9730ace19ecebc397023b243cdb02486cc0c.camel@student.tugraz.at> <437d90a3cc91400fdf0828fea2c989c277a73a7c.camel@student.tugraz.at> In-Reply-To: <437d90a3cc91400fdf0828fea2c989c277a73a7c.camel@student.tugraz.at> From: Andrew Tropin Date: Wed, 19 May 2021 20:58:38 +0300 Message-ID: Subject: Re: Emacs' describe-package doesn't work for packages managed by guix To: Leo Prikler Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 48331 Cc: 48331@debbugs.gnu.org, Maxim Cournoyer 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 (-) From: Andrew Tropin Date: Wed, 19 May 2021 20:44:22 +0300 Subject: [PATCH] guix: build: emacs-build-system: Make package.el aware of guix packages After updating the package-directory-list variable, functions like list-packages, describe-package become aware of packages installed by guix. --- This code is getting work done, but I'm not a very experienced elisp developer, so please review it thoroughly. gnu/packages/aux-files/emacs/guix-emacs.el | 10 ++++++++++ guix/build/emacs-build-system.scm | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/gnu/packages/aux-files/emacs/guix-emacs.el b/gnu/packages/aux-files/emacs/guix-emacs.el index ca9146c535..4aa4220cda 100644 --- a/gnu/packages/aux-files/emacs/guix-emacs.el +++ b/gnu/packages/aux-files/emacs/guix-emacs.el @@ -58,6 +58,16 @@ The files in the list do not have extensions (.el, .elc)." (load f 'noerror)) autoloads))) + +(require 'package) + +;; Set `package-directory-list' to the value without elpa/ suffix +;; to match the structure of site-lisp directory of guix's emacs +;; build system. +;;;###autoload +(setq package-directory-list + (list (string-remove-suffix "/elpa" (car package-directory-list)))) + (provide 'guix-emacs) ;;; guix-emacs.el ends here diff --git a/guix/build/emacs-build-system.scm b/guix/build/emacs-build-system.scm index e41e9a6595..7565b9a422 100644 --- a/guix/build/emacs-build-system.scm +++ b/guix/build/emacs-build-system.scm @@ -53,7 +53,7 @@ ;; These are the default inclusion/exclusion regexps for the install phase. (define %default-include '("^[^/]*\\.el$" "^[^/]*\\.info$" "^doc/.*\\.info$")) -(define %default-exclude '("^\\.dir-locals\\.el$" "-pkg\\.el$" +(define %default-exclude '("^\\.dir-locals\\.el$" "^[^/]*tests?\\.el$")) (define gnu:unpack (assoc-ref gnu:%standard-phases 'unpack)) -- 2.31.1 From debbugs-submit-bounces@debbugs.gnu.org Wed May 19 14:42:45 2021 Received: (at 48331) by debbugs.gnu.org; 19 May 2021 18:42:45 +0000 Received: from localhost ([127.0.0.1]:60723 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ljR9Y-0003hQ-QL for submit@debbugs.gnu.org; Wed, 19 May 2021 14:42:45 -0400 Received: from mailrelay.tugraz.at ([129.27.2.202]:53170) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ljR9W-0003hG-Gc for 48331@debbugs.gnu.org; Wed, 19 May 2021 14:42:43 -0400 Received: from nijino.local (91-114-247-246.adsl.highway.telekom.at [91.114.247.246]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4FlhZ62g9Zz3wZl; Wed, 19 May 2021 20:42:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1621449758; bh=bEMQMYFabjGzoJ49Mj17o9YZfcuB+v36ChKuhf0dzh8=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=mC2nH8JO5/lFLrGPTPLEo3CgCKSjFqrfLZQLHcsA1//zWLvsOrnhLZJFk0i7xLX4B JsLkim2NWaZhuzlQNvLqVgFGmW4m+ZOUmD8JKZD5eUkDSroZUXGR1WtUUzPO2Hbu/Z bYqFZHdPKYZjrXgUDBeXPO/9n8FS6t0K60yUGHds= Message-ID: <88a438a74fabe0f4d4bfd8a649c38e960ef82ed2.camel@student.tugraz.at> Subject: Re: Emacs' describe-package doesn't work for packages managed by guix From: Leo Prikler To: Andrew Tropin Date: Wed, 19 May 2021 20:42:37 +0200 In-Reply-To: References: <87im3r81so.fsf@trop.in> <78cfb495305fb1137da26e37a7ae5dd9467043bf.camel@student.tugraz.at> <8164abe40ec6e865bf8385e010702cfe158dabcc.camel@student.tugraz.at> <6cba9730ace19ecebc397023b243cdb02486cc0c.camel@student.tugraz.at> <437d90a3cc91400fdf0828fea2c989c277a73a7c.camel@student.tugraz.at> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-TUG-Backscatter-control: bt4lQm5Tva3SBgCuw0EnZw X-Spam-Scanner: SpamAssassin 3.003001 X-Spam-Score-relay: -1.9 X-Scanned-By: MIMEDefang 2.74 on 129.27.10.117 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 48331 Cc: Arun Isaac , 48331@debbugs.gnu.org, Maxim Cournoyer 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: -3.3 (---) That looks like it'd mess with people's installed ELPA packages. In general, hacks based on package-directory-list don't feel very stable. Consider writing a function similar in nature to `package-load-all- descriptors' instead. Also, this seems to rely on us not deleting the -pkg.el, but probably won't work for packages, that don't ship it, e.g. emacs-howm. [Adding Arun Isaac to CC. Their commit d8796851 is the first one to drop -pkg.el, but without explanation.] Am Mittwoch, den 19.05.2021, 20:58 +0300 schrieb Andrew Tropin: > From: Andrew Tropin > Date: Wed, 19 May 2021 20:44:22 +0300 > Subject: [PATCH] guix: build: emacs-build-system: Make package.el > aware of > guix packages > > After updating the package-directory-list variable, functions like > list-packages, > describe-package become aware of packages installed by guix. > > --- > This code is getting work done, but I'm not a very experienced elisp > developer, so > please review it thoroughly. > > gnu/packages/aux-files/emacs/guix-emacs.el | 10 ++++++++++ > guix/build/emacs-build-system.scm | 2 +- > 2 files changed, 11 insertions(+), 1 deletion(-) > > diff --git a/gnu/packages/aux-files/emacs/guix-emacs.el > b/gnu/packages/aux-files/emacs/guix-emacs.el > index ca9146c535..4aa4220cda 100644 > --- a/gnu/packages/aux-files/emacs/guix-emacs.el > +++ b/gnu/packages/aux-files/emacs/guix-emacs.el > @@ -58,6 +58,16 @@ The files in the list do not have extensions (.el, > .elc)." > (load f 'noerror)) > autoloads))) > > + > +(require 'package) > + > +;; Set `package-directory-list' to the value without elpa/ suffix > +;; to match the structure of site-lisp directory of guix's emacs > +;; build system. > +;;;###autoload > +(setq package-directory-list > + (list (string-remove-suffix "/elpa" (car package-directory- > list)))) > + > (provide 'guix-emacs) > > ;;; guix-emacs.el ends here > diff --git a/guix/build/emacs-build-system.scm > b/guix/build/emacs-build-system.scm > index e41e9a6595..7565b9a422 100644 > --- a/guix/build/emacs-build-system.scm > +++ b/guix/build/emacs-build-system.scm > @@ -53,7 +53,7 @@ > > ;; These are the default inclusion/exclusion regexps for the install > phase. > (define %default-include '("^[^/]*\\.el$" "^[^/]*\\.info$" > "^doc/.*\\.info$")) > -(define %default-exclude '("^\\.dir-locals\\.el$" "-pkg\\.el$" > +(define %default-exclude '("^\\.dir-locals\\.el$" > "^[^/]*tests?\\.el$")) > > (define gnu:unpack (assoc-ref gnu:%standard-phases 'unpack)) From debbugs-submit-bounces@debbugs.gnu.org Thu May 20 06:02:06 2021 Received: (at 48331) by debbugs.gnu.org; 20 May 2021 10:02:06 +0000 Received: from localhost ([127.0.0.1]:33162 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ljfVG-0006MZ-Mu for submit@debbugs.gnu.org; Thu, 20 May 2021 06:02:06 -0400 Received: from mail-qt1-f179.google.com ([209.85.160.179]:45957) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ljfVF-0006M4-CA for 48331@debbugs.gnu.org; Thu, 20 May 2021 06:02:05 -0400 Received: by mail-qt1-f179.google.com with SMTP id h24so899362qtm.12 for <48331@debbugs.gnu.org>; Thu, 20 May 2021 03:02:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=trop-in.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=MTrnHB4nrQIwL8gSGAhbRx/dH9570Fz0ISRiz17D9Aw=; b=tDN/SYDg4YQMn657C115XxWRYrMxFoDExrdFkeT5sy7zUw9LyX8JGTivyTzjqWtThl udyd2FhN2zGBFyKba9jAr5cCBz8qT1su93dcrLHYWGvZnmfFfaPe12AnHD/SO/el1aUi lwtTnXwlI3Ym3lziycerqfOWX4SFdZkNs64qSu4PtyGa8PWJSEvQl0NqCbyG2Md6ChsC agkHEQ5eWYP3wYfuomeuNPnbV7Qqjvqec4s4KaGoiUtOMGOxgx4xu/sATE+Ztm7mEbPj SqW7B+Zy1/IXt0fIdCaCCrjF6TCccWbmxCTGEHAwhg9aLWWq0XQ/lfKq6b8bGU9Q7Foq n1ug== 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=MTrnHB4nrQIwL8gSGAhbRx/dH9570Fz0ISRiz17D9Aw=; b=U0ri4BocEoyU39w/JmxOCYj4neJW0od0IKvNsr0K+IEvMeBselsDmP8RL/y7bwNKs5 e8ZaxSg7G5CO6Uio98t9bTSlcuHG5M6THLY5dBW63rU359i3J1AMW+iEBef8BU7vvOot eBj2YF0IbSmJjxWelNXus9qagIKyYqrOLixaeTTY7B6tqXjP+o0BNxrQZNDAg1nnQEoQ npC6yIcdweGw81eTjM4V6h1DOiiNkrbtnNW4DytTIi4t9lzQ+GeqX1hkLKyMIm7GApiF k+6fzep98OcYuf4bHmQqkIasQ9VEEiBlwYgmO9ILf+cWExLMV8H/VDZrMAMA2V+I2o3v nohA== X-Gm-Message-State: AOAM532d/2lUa0+wPnR5oryBlewM8cK7Hqb4qMmrNkT8jFACGHhxCkUo ryC0eCURT4pAFYC+5WiEIRTla6h4OH3Im7Ej3pI0Tw== X-Google-Smtp-Source: ABdhPJzvHQ4Vjm+/2/FksuiCiWjp9rUixwBuJGBFxr80jAKGZsshp05YCLy4pyTl65fnQ3SMzJGY6Jlx+nPH/tUmm/4= X-Received: by 2002:ac8:45d2:: with SMTP id e18mr4200360qto.374.1621504919725; Thu, 20 May 2021 03:01:59 -0700 (PDT) MIME-Version: 1.0 References: <87im3r81so.fsf@trop.in> <78cfb495305fb1137da26e37a7ae5dd9467043bf.camel@student.tugraz.at> <8164abe40ec6e865bf8385e010702cfe158dabcc.camel@student.tugraz.at> <6cba9730ace19ecebc397023b243cdb02486cc0c.camel@student.tugraz.at> <437d90a3cc91400fdf0828fea2c989c277a73a7c.camel@student.tugraz.at> <88a438a74fabe0f4d4bfd8a649c38e960ef82ed2.camel@student.tugraz.at> In-Reply-To: <88a438a74fabe0f4d4bfd8a649c38e960ef82ed2.camel@student.tugraz.at> From: Andrew Tropin Date: Thu, 20 May 2021 13:01:48 +0300 Message-ID: Subject: Re: Emacs' describe-package doesn't work for packages managed by guix To: Leo Prikler Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 48331 Cc: Arun Isaac , 48331@debbugs.gnu.org, Maxim Cournoyer 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 (-) > That looks like it'd mess with people's installed ELPA packages. In > general, hacks based on package-directory-list don't feel very stable. If you talk about ~/.emacs.d/elpa, it won't, because there is a separate package-user-dir variable for that. The problem can arise if we have emacs installed in a few profiles, I'm not sure if it is a good idea to do so, but it is possible, in such a case we will have a few items in the package-directory-list. A fix for that: (setq package-directory-list (mapcar (apply-partially 'string-remove-suffix "/elpa") package-directory-list))) > Also, this seems to rely on us not deleting the -pkg.el, but probably > won't work for packages, that don't ship it, e.g. emacs-howm. It's true, but it seems relatively easy to implement a build phase, which will generate -pgk.el in case it is missing. From debbugs-submit-bounces@debbugs.gnu.org Thu May 20 06:21:12 2021 Received: (at 48331) by debbugs.gnu.org; 20 May 2021 10:21:12 +0000 Received: from localhost ([127.0.0.1]:33181 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ljfnk-0006vQ-8I for submit@debbugs.gnu.org; Thu, 20 May 2021 06:21:12 -0400 Received: from mailrelay.tugraz.at ([129.27.2.202]:54915) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ljfng-0006vD-PR for 48331@debbugs.gnu.org; Thu, 20 May 2021 06:21:10 -0400 Received: from [10.0.0.4] (91-114-247-246.adsl.highway.telekom.at [91.114.247.246]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4Fm5Nv6ZFsz3x6y; Thu, 20 May 2021 12:21:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1621506064; bh=hc0kpX1iA/xRFOgtmy7Irz3xvm6KqRVa3iaHjAjYWQg=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=FWmJ5gnXQoS16ygN4xqU0KL6dXtF9ebN/UdGg45r/Cw+VEvzph8PpfzYIMZpZNKQq F8LrQHRbzIiMbQaMKS2Zjn1V4MKri6K7zCBDVNr7ioKFWSQbZ5kpMojgGtorNtuRzb mfxGftM8UuF8goItw0gBKhPnSPdkaXieHgG0I0Wk= Message-ID: <43c4f2959e4805aae7414d0acc08f1fd7b35d986.camel@student.tugraz.at> Subject: Re: Emacs' describe-package doesn't work for packages managed by guix From: Leo Prikler To: Andrew Tropin Date: Thu, 20 May 2021 12:20:38 +0200 In-Reply-To: References: <87im3r81so.fsf@trop.in> <78cfb495305fb1137da26e37a7ae5dd9467043bf.camel@student.tugraz.at> <8164abe40ec6e865bf8385e010702cfe158dabcc.camel@student.tugraz.at> <6cba9730ace19ecebc397023b243cdb02486cc0c.camel@student.tugraz.at> <437d90a3cc91400fdf0828fea2c989c277a73a7c.camel@student.tugraz.at> <88a438a74fabe0f4d4bfd8a649c38e960ef82ed2.camel@student.tugraz.at> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-TUG-Backscatter-control: bt4lQm5Tva3SBgCuw0EnZw X-Spam-Scanner: SpamAssassin 3.003001 X-Spam-Score-relay: -1.9 X-Scanned-By: MIMEDefang 2.74 on 129.27.10.117 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 48331 Cc: Arun Isaac , 48331@debbugs.gnu.org, Maxim Cournoyer 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: -3.3 (---) Am Donnerstag, den 20.05.2021, 13:01 +0300 schrieb Andrew Tropin: > > That looks like it'd mess with people's installed ELPA > > packages. In general, hacks based on package-directory-list don't > > feel very stable. > > If you talk about ~/.emacs.d/elpa, it won't, because there is a > separate package-user-dir variable for that. > > The problem can arise if we have emacs installed in a few profiles, > I'm not sure if it is a good idea to do so, but it is possible, in > such a case we will have a few items in the package-directory- > list. A fix for that: > > (setq package-directory-list > (mapcar (apply-partially 'string-remove-suffix "/elpa") > package-directory-list))) Multi-profile Emacs should be supported, but this also breaks on foreign distros with foreign distro ELPA. Again, hacking variables is not the solution (and even if it was, it'd be better to patch the emacs default value, not that this is a good idea either). > > Also, this seems to rely on us not deleting the -pkg.el, but > > probably won't work for packages, that don't ship it, e.g. emacs- > > howm. > > It's true, but it seems relatively easy to implement a build phase, > which will generate -pgk.el in case it is missing. Generating our own -pkg.el should work, still waiting for Maxim or Arun on a statement as to why we exclude it. *Always* generating a -pkg.el (disregarding the upstream one if it exists) might further be a reasonable thing to do if we decide, that those -pkg.el files are useful. Regards, Leo From debbugs-submit-bounces@debbugs.gnu.org Thu May 20 06:32:47 2021 Received: (at 48331) by debbugs.gnu.org; 20 May 2021 10:32:47 +0000 Received: from localhost ([127.0.0.1]:33187 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ljfyw-0007Nh-Sb for submit@debbugs.gnu.org; Thu, 20 May 2021 06:32:47 -0400 Received: from mugam.systemreboot.net ([139.59.75.54]:36848) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ljfyt-0007NT-Gq for 48331@debbugs.gnu.org; Thu, 20 May 2021 06:32:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=systemreboot.net; s=default; h=Content-Type:MIME-Version:Message-ID:Date: References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=fjupa7a8w9HiY+JC8j5jHwP2bZWZ+C182ixjl7m3Elc=; b=nccxVSA/eF77Ry/Sv8TwlcBqY 0sIAGxDEjGQro0nWCJ+/wK6Hz0DG6vpH43Yf/R3rYLJQ6iLPsJ+x0EWYRVpTHh2nA2jgGyUt8hXL6 g5ddSvRCH0onh8bBhUteET35VDcTSs3NiY5L1+wBYYfK+T6wjcYxl2nLsejhln4jizWleOd0pTukP pB4nFFvY3RczUCwRVPOfecyapiu0xLe0vzSnxWPftGrmqvAc7ORdxBW7pftHL4E3kVYuoNWsrv+jv NVqr8U3zBcpmI5TwhVPs36QTEHTjKK8Z+u/J/STm3yCEWXRBVBg9tIWZDOT3R+blBy5GNWwHIBTkd rnp98mIdg==; Received: from [192.168.2.1] (helo=steel) by systemreboot.net with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1ljfyc-000nGg-OC; Thu, 20 May 2021 16:02:26 +0530 From: Arun Isaac To: Leo Prikler , Andrew Tropin Subject: Re: Emacs' describe-package doesn't work for packages managed by guix In-Reply-To: <88a438a74fabe0f4d4bfd8a649c38e960ef82ed2.camel@student.tugraz.at> References: <87im3r81so.fsf@trop.in> <78cfb495305fb1137da26e37a7ae5dd9467043bf.camel@student.tugraz.at> <8164abe40ec6e865bf8385e010702cfe158dabcc.camel@student.tugraz.at> <6cba9730ace19ecebc397023b243cdb02486cc0c.camel@student.tugraz.at> <437d90a3cc91400fdf0828fea2c989c277a73a7c.camel@student.tugraz.at> <88a438a74fabe0f4d4bfd8a649c38e960ef82ed2.camel@student.tugraz.at> Date: Thu, 20 May 2021 16:02:05 +0530 Message-ID: <87tumxzoey.fsf@systemreboot.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 48331 Cc: 48331@debbugs.gnu.org, Maxim Cournoyer 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 (-) --=-=-= Content-Type: text/plain > [Adding Arun Isaac to CC. Their commit d8796851 is the first one to > drop -pkg.el, but without explanation.] Commit d8796851 was an attempt to not install too many unnecessary files and be closer to how MELPA packaged emacs packages. See https://lists.gnu.org/archive/html/guix-devel/2017-04/msg00274.html for the detailed discussion. Cheers! --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFPBAEBCAA5FiEEf3MDQ/Lwnzx3v3nTLiXui2GAK7MFAmCmOqUbHGFydW5pc2Fh Y0BzeXN0ZW1yZWJvb3QubmV0AAoJEC4l7othgCuzA1wH/0C6jGDkwLFVUib+44r/ bRlzRgC+SGjJmvHZPgvPiPBTSvTvvUae2zeIhju5yQYafTZg96/W8uqyeh/LbmVJ 9L1wBgxze8otsQVHcCsisPk/YcN1fJtsr59rWo6oEmjcoJyo7NwS6lntPyR2KCcN oNcARvrQDSY+2IuTgzlQq/zzgip4S2Ph3xR3qDJJuu+4KEszX8CMNZpNdHdvqZrh GeyuZJo3LvkCst6sUjRC5tdn2oK6ETVdonz8Dr4FItMnwEWAhkFe94bV39bx5wBm DMbQYCEuTJi5A1VbXcBFgrwnF8Zx7vIF1wTttfcd56upa90FeSPDvcqnxjnjCE+X PaE= =1WMU -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Thu May 20 06:39:46 2021 Received: (at 48331) by debbugs.gnu.org; 20 May 2021 10:39:46 +0000 Received: from localhost ([127.0.0.1]:33191 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ljg5i-0007XO-Jp for submit@debbugs.gnu.org; Thu, 20 May 2021 06:39:46 -0400 Received: from mugam.systemreboot.net ([139.59.75.54]:36864) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ljg5g-0007XF-GA for 48331@debbugs.gnu.org; Thu, 20 May 2021 06:39:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=systemreboot.net; s=default; h=Content-Type:MIME-Version:Message-ID:Date: References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=rtyjlrewDfdhW2t3UtNIe5AWlSw5RzwEYg0FUGBOx00=; b=Uh+6EVX1+jrOIuSnNnyXz8X4+ p5t3uaYZqYGzdWPFwuQI+206LuKSKd0JPjvNovrkOd2MioR18jHWYjuZXYz2RnTfKXRjvukrT3ujI TluwRGJ1xme80sJbTgiLaHqVXZR7sh70SI77QnAHx8mK4L8Rltboz6Z6aidobtkR32c5OC2iYcFsV mFtdevIu3PuVdUx9mu/ikyWNtCwKP6lr5WUZFBucCRtmS8Z02iNoyHlfjBDtUeJw/LPC0ybE2KOIX ZtTRG3CkLuhSQJ5PoEl9YLNKylkNzxh9mXiu6QeO92ERruFdL6CTNfVhk/TLOUZnca0jjLOSlM5YV 4ikqZhNoA==; Received: from [192.168.2.1] (helo=steel) by systemreboot.net with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1ljg5X-000nHu-6b; Thu, 20 May 2021 16:09:35 +0530 From: Arun Isaac To: Leo Prikler , Andrew Tropin Subject: Re: bug#48331: Emacs' describe-package doesn't work for packages managed by guix In-Reply-To: <87tumxzoey.fsf@systemreboot.net> References: <87im3r81so.fsf@trop.in> <78cfb495305fb1137da26e37a7ae5dd9467043bf.camel@student.tugraz.at> <8164abe40ec6e865bf8385e010702cfe158dabcc.camel@student.tugraz.at> <6cba9730ace19ecebc397023b243cdb02486cc0c.camel@student.tugraz.at> <437d90a3cc91400fdf0828fea2c989c277a73a7c.camel@student.tugraz.at> <88a438a74fabe0f4d4bfd8a649c38e960ef82ed2.camel@student.tugraz.at> <87tumxzoey.fsf@systemreboot.net> Date: Thu, 20 May 2021 16:09:19 +0530 Message-ID: <87r1i1zo2w.fsf@systemreboot.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 48331 Cc: 48331@debbugs.gnu.org, Maxim Cournoyer 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 (-) --=-=-= Content-Type: text/plain >> [Adding Arun Isaac to CC. Their commit d8796851 is the first one to >> drop -pkg.el, but without explanation.] > > Commit d8796851 was an attempt to not install too many unnecessary files > and be closer to how MELPA packaged emacs packages. See > https://lists.gnu.org/archive/html/guix-devel/2017-04/msg00274.html for > the detailed discussion. In other words, no particular thought was given to -pkg.el. It was simply dropped along with many other files. So, if consensus is reached that keeping -pkg.el is a good idea, there is no reason to not do that. Cheers! --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFPBAEBCAA5FiEEf3MDQ/Lwnzx3v3nTLiXui2GAK7MFAmCmPFcbHGFydW5pc2Fh Y0BzeXN0ZW1yZWJvb3QubmV0AAoJEC4l7othgCuzZBsIAL332OS6wbQQWXOXnku8 ejyDzp8enbrx0aV3DPjuicsY5EEsPiL2R4+iVTe44RRYT+qlRg7m3iBBWyCTWlh7 VZH0+shMpAr+2oiaZYhcZSv3PlFJMuGNx/6Ny8hOqYhZgMwsFjxI/CuBuqhbgspZ 1TqtP95gV7QquLJnZ3fAlyPznaC53ibeG2R7pPL2LwklNaQ60AUYqffZd8Gatv6K VN9/cCD3Bfll+B1qCCh+BKQFTzLlN02pnIIYuKIEYNOTXCOtCC8hWu01Tx08aReL ZwAiHFgHmx68uFu4XblUQhk7KNYdVSCBLhXE4hJ2A6MJcznkWzAAH3gfaDtaazDp GYI= =B1+W -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Thu May 20 07:13:49 2021 Received: (at 48331) by debbugs.gnu.org; 20 May 2021 11:13:49 +0000 Received: from localhost ([127.0.0.1]:33214 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ljgcf-0008Nv-14 for submit@debbugs.gnu.org; Thu, 20 May 2021 07:13:49 -0400 Received: from mailrelay.tugraz.at ([129.27.2.202]:51760) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ljgcc-0008Nl-T9 for 48331@debbugs.gnu.org; Thu, 20 May 2021 07:13:47 -0400 Received: from [10.0.0.4] (91-114-247-246.adsl.highway.telekom.at [91.114.247.246]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4Fm6Yf42WLz3x7T; Thu, 20 May 2021 13:13:42 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1621509222; bh=vP21ZXboBlrPTi/kSEEoLkOWbF+ezRDbh2PFrleMpSk=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=sllVNXqo42NDQmA8ae9cQge63mH+sVDGu6J08/JNIlm2uAawVrO6V4K5InF/a/IRK pt64ZonDfHrMSluKujJC4zi4NQNGcDgjgoW3ry3UaHiaEazC6hfHlD8/CQX4O35QCO zerC9rRdpABLpopIejEP7yyhurELKWuTa+QECBbY= Message-ID: <681fe5a3db7bcff56fa20e2124c2cb5276fc5eb0.camel@student.tugraz.at> Subject: Re: bug#48331: Emacs' describe-package doesn't work for packages managed by guix From: Leo Prikler To: Arun Isaac , Andrew Tropin Date: Thu, 20 May 2021 13:13:21 +0200 In-Reply-To: <87r1i1zo2w.fsf@systemreboot.net> References: <87im3r81so.fsf@trop.in> <78cfb495305fb1137da26e37a7ae5dd9467043bf.camel@student.tugraz.at> <8164abe40ec6e865bf8385e010702cfe158dabcc.camel@student.tugraz.at> <6cba9730ace19ecebc397023b243cdb02486cc0c.camel@student.tugraz.at> <437d90a3cc91400fdf0828fea2c989c277a73a7c.camel@student.tugraz.at> <88a438a74fabe0f4d4bfd8a649c38e960ef82ed2.camel@student.tugraz.at> <87tumxzoey.fsf@systemreboot.net> <87r1i1zo2w.fsf@systemreboot.net> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-TUG-Backscatter-control: bt4lQm5Tva3SBgCuw0EnZw X-Spam-Scanner: SpamAssassin 3.003001 X-Spam-Score-relay: -1.9 X-Scanned-By: MIMEDefang 2.74 on 129.27.10.117 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 48331 Cc: 48331@debbugs.gnu.org, Maxim Cournoyer 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: -3.3 (---) Am Donnerstag, den 20.05.2021, 16:09 +0530 schrieb Arun Isaac: > > > [Adding Arun Isaac to CC. Their commit d8796851 is the first one > > > to > > > drop -pkg.el, but without explanation.] > > > > Commit d8796851 was an attempt to not install too many unnecessary > > files > > and be closer to how MELPA packaged emacs packages. See > > https://lists.gnu.org/archive/html/guix-devel/2017-04/msg00274.html > > for > > the detailed discussion. > > In other words, no particular thought was given to -pkg.el. It was > simply dropped along with many other files. So, if consensus is > reachedthat keeping -pkg.el is a good idea, there is no reason to not > do that. Thanks for clearing that up. In that case, I don't have any qualms about including them either. Cheers! From debbugs-submit-bounces@debbugs.gnu.org Thu May 20 08:24:59 2021 Received: (at 48331) by debbugs.gnu.org; 20 May 2021 12:24:59 +0000 Received: from localhost ([127.0.0.1]:33297 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ljhjX-00041x-3Y for submit@debbugs.gnu.org; Thu, 20 May 2021 08:24:59 -0400 Received: from mail-qt1-f180.google.com ([209.85.160.180]:39623) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ljhjT-00041b-VT for 48331@debbugs.gnu.org; Thu, 20 May 2021 08:24:57 -0400 Received: by mail-qt1-f180.google.com with SMTP id f8so12565004qth.6 for <48331@debbugs.gnu.org>; Thu, 20 May 2021 05:24:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=trop-in.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=6f8mk1d06+Xcc69xOQKFc/Uher7BnPgzenrAqoNZjas=; b=bQTlPBihlhzhUldwH3JHwWBdkCvBUEvy+3+ht827oNRam06GybOCIUSkHPCDu9bG3W 04hgRwMbDBJXLbtxxk3nXCnhJH2sfm6AJGJ9ryuijNuKNi4+lDENCtDkuUPVc3T1c7MJ +JDWko1geKB+NMh5RrLzbOrcnKAtLfVqatMApDMwoe5yLVs/yzykIfrx2GM2hhbW67IJ 25hKxOWdLK4vcQpyvq/de7hSIJ55+fFSs6qBZmbOqJRA0wuD6WEeCEgArNmi2REaog7J 6sx88ZcX+12MG4hs6XJZU+0DdKBHUgG1J6xrNt3fXVpEZs1fIdjFIOUSTd/K9YykN6cS LkQw== 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=6f8mk1d06+Xcc69xOQKFc/Uher7BnPgzenrAqoNZjas=; b=iIFWYuSBoG/bdB5vnKpyxzB2EYPFdqIpGD77PcclyLRhRIXnPEOeQfC5AhipS262Pf q4Z1zLXJDXKSiiIrTxq0AyHxwic+YUj4uErEjkjOLyg+FESWpfGFKd0yOIDLyhwMLrFh njTILw6vtMZBuvfTpLFYLML9VwnK903mDZJuLlKOawNJdPQ6Wf21Cgx4Eicmn22mJnaQ 2kz+SFW4H1yya1Og1uV4LjDvNYD284N5TSepPG3RPbGxlUDt7P1oGE9wjAZlBkXp9hlM J3masoTJ/M6aIItkZVqkEhawmPT7siFaPf82/9y9z9IGhcmEGf1XbhHlB1UgR+0bCmTp jl2A== X-Gm-Message-State: AOAM532olNDq6ZGhWjj3VBn2hMxDyN42D6iAqNTAEo1KLJs4OJofnvws 4fCu75mAZTpafj+cEiQVjuY7g5MjWqXlZra2j/2agg== X-Google-Smtp-Source: ABdhPJzzr7hvxsuZgGuKEKb3bJyAfId/GV7F37+Hwh4fvd5y7EkUMrw636JWkg6oihMyPJCVUTWYwzgZaRd1CAg/2L8= X-Received: by 2002:ac8:5ac7:: with SMTP id d7mr4718420qtd.173.1621513490459; Thu, 20 May 2021 05:24:50 -0700 (PDT) MIME-Version: 1.0 References: <87im3r81so.fsf@trop.in> <78cfb495305fb1137da26e37a7ae5dd9467043bf.camel@student.tugraz.at> <8164abe40ec6e865bf8385e010702cfe158dabcc.camel@student.tugraz.at> <6cba9730ace19ecebc397023b243cdb02486cc0c.camel@student.tugraz.at> <437d90a3cc91400fdf0828fea2c989c277a73a7c.camel@student.tugraz.at> <88a438a74fabe0f4d4bfd8a649c38e960ef82ed2.camel@student.tugraz.at> <87tumxzoey.fsf@systemreboot.net> In-Reply-To: <87tumxzoey.fsf@systemreboot.net> From: Andrew Tropin Date: Thu, 20 May 2021 15:24:39 +0300 Message-ID: Subject: Re: Emacs' describe-package doesn't work for packages managed by guix To: Arun Isaac Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 48331 Cc: Leo Prikler , 48331@debbugs.gnu.org, Maxim Cournoyer 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 (-) > > In other words, no particular thought was given to -pkg.el. It was > > simply dropped along with many other files. So, if consensus is > > reachedthat keeping -pkg.el is a good idea, there is no reason to not > > do that. > Thanks for clearing that up. In that case, I don't have any qualms > about including them either. Cool, seems we can get -pkg.el files back. > Multi-profile Emacs should be supported, but this also breaks on > foreign distros with foreign distro ELPA. Again, hacking variables is > not the solution (and even if it was, it'd be better to patch the emacs > default value, not that this is a good idea either). Yep, the last snippet supports multi-profile Emacs. Installing packages for Emacs via a few different package manager sounds like a very bad practice) I agree that current implementation with updating variables isn't perfect and it doesn't cover the use case, which I expect to be rare (packages from Guix will be listed in list-packages, files from foreign distro PM won't). I can dive into package.el implementation and spend some time next week providing a different workaround. BTW, can you remind me why we do not place packages under site-lisp/elpa/NAME-VERSION? It seems almost the same as site-lisp/NAME-VERSION, but everything related to describe-package and other functions will work out of the box. This way it will work even with a foreign distro use case. From debbugs-submit-bounces@debbugs.gnu.org Thu May 20 11:58:05 2021 Received: (at 48331) by debbugs.gnu.org; 20 May 2021 15:58:05 +0000 Received: from localhost ([127.0.0.1]:35041 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ljl3l-0008LL-0z for submit@debbugs.gnu.org; Thu, 20 May 2021 11:58:05 -0400 Received: from mailrelay.tugraz.at ([129.27.2.202]:19794) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ljl3g-0008Ks-Cm for 48331@debbugs.gnu.org; Thu, 20 May 2021 11:58:03 -0400 Received: from nijino.local (91-114-247-246.adsl.highway.telekom.at [91.114.247.246]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4FmDsb5y5rz3x7l; Thu, 20 May 2021 17:57:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1621526276; bh=oWcK6bAKXZ3PSRCTl7hTU9V2C2Ww5eL1TP95i9YzA9w=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=HpYsiSo1MsJiD8udpg1Cw/ykiwcDr+OgIGhF3QGTJlJLE2adjk1xjHmMTYQWWYXEj LYZnWWWbjVMBdeHoRCJjhsnY2wkJTL/ufW7MIQRG1jlB2EvJ3tTjwGIM+fxPrWs+Sg KvmFsTyxdXDlC94oAD2Ns1UwEYASC5XWc3HK4bmQ= Message-ID: <5bb7553ac84e241a8ce936033b9ec1e1d6d302dd.camel@student.tugraz.at> Subject: Re: Emacs' describe-package doesn't work for packages managed by guix From: Leo Prikler To: Andrew Tropin , Arun Isaac Date: Thu, 20 May 2021 17:57:55 +0200 In-Reply-To: References: <87im3r81so.fsf@trop.in> <78cfb495305fb1137da26e37a7ae5dd9467043bf.camel@student.tugraz.at> <8164abe40ec6e865bf8385e010702cfe158dabcc.camel@student.tugraz.at> <6cba9730ace19ecebc397023b243cdb02486cc0c.camel@student.tugraz.at> <437d90a3cc91400fdf0828fea2c989c277a73a7c.camel@student.tugraz.at> <88a438a74fabe0f4d4bfd8a649c38e960ef82ed2.camel@student.tugraz.at> <87tumxzoey.fsf@systemreboot.net> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-TUG-Backscatter-control: bt4lQm5Tva3SBgCuw0EnZw X-Spam-Scanner: SpamAssassin 3.003001 X-Spam-Score-relay: -1.9 X-Scanned-By: MIMEDefang 2.74 on 129.27.10.117 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 48331 Cc: 48331@debbugs.gnu.org, Maxim Cournoyer 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: -3.3 (---) Am Donnerstag, den 20.05.2021, 15:24 +0300 schrieb Andrew Tropin: > > > In other words, no particular thought was given to -pkg.el. It > > > was > > > simply dropped along with many other files. So, if consensus is > > > reachedthat keeping -pkg.el is a good idea, there is no reason to > > > not > > > do that. > > Thanks for clearing that up. In that case, I don't have any qualms > > about including them either. > > Cool, seems we can get -pkg.el files back. Yes, we can. > > Multi-profile Emacs should be supported, but this also breaks on > > foreign distros with foreign distro ELPA. Again, hacking variables > > is not the solution (and even if it was, it'd be better to patch > > the emacs default value, not that this is a good idea either). > > Yep, the last snippet supports multi-profile Emacs. While that's better, I still don't think it's sufficient. > Installing packages for Emacs via a few different package manager > sounds like a very bad practice) I agree that current implementation > with updating variables isn't perfect and it doesn't cover the use > case, which I expect to be rare (packages from Guix will be listed in > list-packages, files from foreign distro PM won't). I can dive into > package.el implementation and spend some time next week providing a > different workaround. I think this is common practice on other distros. For example your system provides auctex, but it doesn't provide dash.el. What do you do? Install it through ELPA. Now let's say, you have Guix installed. Guix provides packages for some of ELPA, but not what you want. You could hack together a Guix package based on the ELPA importer, but perhaps upstream is slow in accepting it or perhaps you've fetched the package from a shady source, that Guix won't accept. So you have foreign distro system packages + Guix + personal ELPA. As far as getting Guix packages to work without affecting the rest of package.el or user configuration, I think an advice, that runs after package-load-all-descriptors might be necessary. As for the candidates to check for this advice, you can read all subdirs.el files you find inside load-path. When they're formatted (normal-top-level-add-to-load-path (list P1 ... PN)) they were likely added by Guix (even if not, one should probably consider them important) and P1 ... PN should be scanned for descriptors. > BTW, can you remind me why we do not place packages under > site-lisp/elpa/NAME-VERSION? It seems almost the same as > site-lisp/NAME-VERSION, but everything related to describe-package > and other functions will work out of the box. This way it will work > even with a foreign distro use case. Again, Guix is not ELPA and calling it ELPA would be misleading. As for why we don't put stuff in any other site-lisp/ directory, e.g. site-lisp/guix.d/NAME-VERSION, doing that led to rather tricky issues, which is why we've decided to use site-lisp "directly". The current way of handling things is a bit of a compromise. It gives you per- package directories like ELPA, but unlike ELPA can easily be handled at Emacs startup. From debbugs-submit-bounces@debbugs.gnu.org Fri May 21 23:09:18 2021 Received: (at 48331) by debbugs.gnu.org; 22 May 2021 03:09:18 +0000 Received: from localhost ([127.0.0.1]:38112 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lkI0s-00061N-3a for submit@debbugs.gnu.org; Fri, 21 May 2021 23:09:18 -0400 Received: from mail-qv1-f51.google.com ([209.85.219.51]:40655) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lkI0p-000615-B3 for 48331@debbugs.gnu.org; Fri, 21 May 2021 23:09:17 -0400 Received: by mail-qv1-f51.google.com with SMTP id e8so8232062qvp.7 for <48331@debbugs.gnu.org>; Fri, 21 May 2021 20:09:15 -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=VkZQ5OleQyX1assN7hJ70tp1Fx+qMtQCAQeQ++PEqTA=; b=nyVgh5fJFTmGm98uUPjGp7vlinrwJxqPYIz/immho1rs5BeiZh+DbVBaE7uQRbYzOs qK1RRBSV94H83Mgft0t7RF3xVx2XRPOzR1C+ur/SG+Zuf7PHnOwkZiXEPZGRnhWSs77E BDrwhINunncHQnTQAUDA8Z57PhNkqpFLciun8iVhTzCLscx9ql404kRBehVaSIdQNcFN BdyoxLXY1vX58Xp6NVuzxjc6AZuABfhLC/qptY8s9dd2mMAtl1lEUQaLSP3Afir6oiG9 RAFM2VQbkpAJxPz+zKFRCyZHojqbctrb2/J9d4jF7dAu8We9zpfSyr/VFzHX6bqo1aEG CY1A== 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=VkZQ5OleQyX1assN7hJ70tp1Fx+qMtQCAQeQ++PEqTA=; b=iYGqq4lBPljFavlJptrTEu+T7u+bhnDogB9ymVZctlK6LbAuZoElEXAXX4EyV9Jvdm lPxBuEcViJ6M1BhMuVQhpZz0/CL4ZzKq4uZbjNT9O13+r4X9vOz68ZSYhtC4CR0ELUlQ /YTr5fE6P9n3Sx8Btkc9/DT7hjHIlV64iQZnq8H+TJdVNLTvi8tX8P3E785n7+S3U2i4 +POJQ//pbXmYsfO274B0taBg1Bnh2IHd4GAEaK8z1NxKDqceQPp0N4QjjM3rRP1wNb5x lehbZFS7b/2gc5YfnGxW0yeazu+hFh9ludubDyEB3m0xxjKM+UTKouClPTLCb1JjP46b sZ7A== X-Gm-Message-State: AOAM533hT2Uji8MxT3lkmMbyWZWWbxLevblnzRfs/r0h8IxF5qnbY3ky /o6pbp9pLc+iYihMUFVmM0JzDFCsVLo= X-Google-Smtp-Source: ABdhPJxeSg5boykuzDWkGrPLsApsoMcVY8Kx6VwgsZ77HVT70SwwqUglBvXPGDDcuMvgbOzM4O5ryA== X-Received: by 2002:a0c:e251:: with SMTP id x17mr16825863qvl.2.1621652949728; Fri, 21 May 2021 20:09:09 -0700 (PDT) Received: from hurd (dsl-10-133-218.b2b2c.ca. [72.10.133.218]) by smtp.gmail.com with ESMTPSA id u11sm5524608qtq.93.2021.05.21.20.09.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 May 2021 20:09:09 -0700 (PDT) From: Maxim Cournoyer To: Leo Prikler Subject: Re: Emacs' describe-package doesn't work for packages managed by guix References: <87im3r81so.fsf@trop.in> <78cfb495305fb1137da26e37a7ae5dd9467043bf.camel@student.tugraz.at> <8164abe40ec6e865bf8385e010702cfe158dabcc.camel@student.tugraz.at> <6cba9730ace19ecebc397023b243cdb02486cc0c.camel@student.tugraz.at> <437d90a3cc91400fdf0828fea2c989c277a73a7c.camel@student.tugraz.at> <88a438a74fabe0f4d4bfd8a649c38e960ef82ed2.camel@student.tugraz.at> <87tumxzoey.fsf@systemreboot.net> <5bb7553ac84e241a8ce936033b9ec1e1d6d302dd.camel@student.tugraz.at> Date: Fri, 21 May 2021 23:09:08 -0400 In-Reply-To: <5bb7553ac84e241a8ce936033b9ec1e1d6d302dd.camel@student.tugraz.at> (Leo Prikler's message of "Thu, 20 May 2021 17:57:55 +0200") Message-ID: <874kevxy5n.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 48331 Cc: Arun Isaac , 48331@debbugs.gnu.org, Andrew Tropin 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, Leo Prikler writes: > Am Donnerstag, den 20.05.2021, 15:24 +0300 schrieb Andrew Tropin: >> > > In other words, no particular thought was given to -pkg.el. It >> > > was >> > > simply dropped along with many other files. So, if consensus is >> > > reachedthat keeping -pkg.el is a good idea, there is no reason to >> > > not >> > > do that. >> > Thanks for clearing that up. In that case, I don't have any qualms >> > about including them either. >> >> Cool, seems we can get -pkg.el files back. > Yes, we can. I'm late, but I think it's OK to have those *-pkg.el files installed, if they are useful. [...] >> BTW, can you remind me why we do not place packages under >> site-lisp/elpa/NAME-VERSION? It seems almost the same as >> site-lisp/NAME-VERSION, but everything related to describe-package >> and other functions will work out of the box. This way it will work >> even with a foreign distro use case. > Again, Guix is not ELPA and calling it ELPA would be misleading. As > for why we don't put stuff in any other site-lisp/ directory, e.g. > site-lisp/guix.d/NAME-VERSION, doing that led to rather tricky issues, > which is why we've decided to use site-lisp "directly". The current > way of handling things is a bit of a compromise. It gives you per- > package directories like ELPA, but unlike ELPA can easily be handled at > Emacs startup. If you are interested in an alternate view of the world, with the benefits and drawbacks of integrating with package.el to provide packages autoloading in Guix, you may be interested in studying the abandoned https://debbugs.gnu.org/cgi/bugreport.cgi?bug=45316. The packages are loaded by the package.el library via (package-initialize). The main drawback (that was deemed inconvenient enough to not go ahead with this scheme) is summarized in the introductory message: Parting with a directly usable EMACSLOADPATH means that site-start.el *must* run for packages to appear in the load-path; that means for running a test suite, the -Q or --quick Emacs options cannot be used, since it implies --no-site-file. HTH, Maxim From debbugs-submit-bounces@debbugs.gnu.org Sat May 22 08:55:24 2021 Received: (at 48331) by debbugs.gnu.org; 22 May 2021 12:55:25 +0000 Received: from localhost ([127.0.0.1]:38510 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lkRA4-00086R-9E for submit@debbugs.gnu.org; Sat, 22 May 2021 08:55:24 -0400 Received: from mailrelay.tugraz.at ([129.27.2.202]:46554) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lkRA2-00086D-1l for 48331@debbugs.gnu.org; Sat, 22 May 2021 08:55:22 -0400 Received: from localhost.localdomain (91-114-247-246.adsl.highway.telekom.at [91.114.247.246]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4FnNjz2zclz3xbj; Sat, 22 May 2021 14:55:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1621688119; bh=yIVEFRMMsi0NPEWkcrT7cmnFFw8kEODNzcDYCMQ83yc=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=Aw/rkBq/A+X+2bUbqq3MwRxZlcx4+bIRTBJR/9YJFpNoP8ltYc9PzY6GZQdbKk6V8 eBD/s+vWAGETDWXUobNSuKvvzZELyrapzRuR2TxNUf7wZYhe5F0xHtgpXAO0NMgtf6 xWJ8V8jksQV7wqw5jIaajONpv9QvmisodOyfF914= From: Leo Prikler To: 48331@debbugs.gnu.org Subject: [PATCH 2/2] gnu: emacs: Load package descriptors from packages referenced by subdirs.el Date: Sat, 22 May 2021 14:54:28 +0200 Message-Id: <20210522125428.12859-2-leo.prikler@student.tugraz.at> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210522125428.12859-1-leo.prikler@student.tugraz.at> References: <20210522125428.12859-1-leo.prikler@student.tugraz.at> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-TUG-Backscatter-control: bt4lQm5Tva3SBgCuw0EnZw X-Spam-Scanner: SpamAssassin 3.003001 X-Spam-Score-relay: -1.9 X-Scanned-By: MIMEDefang 2.74 on 129.27.10.117 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 48331 Cc: arunisaac@systemreboot.net, maxim.cournoyer@gmail.com, andrew@trop.in 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: -3.3 (---) * gnu/packages/aux-files/emacs/guix-emacs.el (guix-emacs--non-core-load-path): New procedure. (guix-emacs-autoload-packages): Use it here. (guix-emacs-load-package-descriptors): New procedure. * gnu/packages/emacs.scm (emacs)[install-site-start]: Install advice to run ‘guix-emacs-load-package-descriptors’. --- gnu/packages/aux-files/emacs/guix-emacs.el | 34 +++++++++++++++++----- gnu/packages/emacs.scm | 7 +++-- 2 files changed, 31 insertions(+), 10 deletions(-) diff --git a/gnu/packages/aux-files/emacs/guix-emacs.el b/gnu/packages/aux-files/emacs/guix-emacs.el index ca9146c535..eff44bfe90 100644 --- a/gnu/packages/aux-files/emacs/guix-emacs.el +++ b/gnu/packages/aux-files/emacs/guix-emacs.el @@ -26,6 +26,7 @@ ;;; Code: (require 'seq) +(declare-function package-load-descriptor "package" (pkg-dir)) (defvar guix-emacs-autoloads-regexp (rx (* any) "-autoloads.el" (zero-or-one "c") string-end) @@ -39,6 +40,12 @@ The files in the list do not have extensions (.el, .elc)." (directory-files directory 'full-name guix-emacs-autoloads-regexp)))) +(defun guix-emacs--non-core-load-path () + ;; Filter out core Elisp directories, which are already handled by Emacs. + (seq-filter (lambda (dir) + (string-match-p "/share/emacs/site-lisp" dir)) + load-path)) + ;;;###autoload (defun guix-emacs-autoload-packages () "Autoload Emacs packages found in EMACSLOADPATH. @@ -46,18 +53,29 @@ The files in the list do not have extensions (.el, .elc)." 'Autoload' means to load the 'autoloads' files matching `guix-emacs-autoloads-regexp'." (interactive) - (let* ((emacs-non-core-load-path-directories - ;; Filter out core Elisp directories, which are already autoloaded - ;; by Emacs. - (seq-filter (lambda (dir) - (string-match-p "/share/emacs/site-lisp" dir)) - load-path)) - (autoloads (mapcan #'guix-emacs-find-autoloads - emacs-non-core-load-path-directories))) + (let ((autoloads (mapcan #'guix-emacs-find-autoloads + (guix-emacs--non-core-load-path)))) (mapc (lambda (f) (load f 'noerror)) autoloads))) +;;;###autoload +(defun guix-emacs-load-package-descriptors () + "Load descriptors for packages found in EMACSLOADPATH via subdirs.el." + (dolist (dir (guix-emacs--non-core-load-path)) + (let ((subdirs-file (expand-file-name "subdirs.el" dir))) + (when (file-exists-p subdirs-file) + (with-temp-buffer + (insert-file-contents subdirs-file) + (goto-char (point-min)) + (let ((subdirs (read (current-buffer)))) + (and (equal (car-safe subdirs) 'normal-top-level-add-to-load-path) + (equal (car-safe (cadr subdirs)) 'list) + (dolist (subdir (cdadr subdirs)) + (let ((pkg-dir (expand-file-name subdir dir))) + (when (file-directory-p pkg-dir) + (package-load-descriptor pkg-dir))))))))))) + (provide 'guix-emacs) ;;; guix-emacs.el ends here diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm index 5316d25151..e4af6ea6a9 100644 --- a/gnu/packages/emacs.scm +++ b/gnu/packages/emacs.scm @@ -166,8 +166,11 @@ (with-output-to-file (string-append lisp-dir "/site-start.el") (lambda () (display - (string-append "(when (require 'guix-emacs nil t)\n" - " (guix-emacs-autoload-packages))\n")))) + (string-append + "(when (require 'guix-emacs nil t)\n" + " (guix-emacs-autoload-packages)\n" + " (advice-add 'package-load-all-descriptors" + " :after #'guix-emacs-load-package-descriptors))")))) ;; Remove the extraneous subdirs.el file, as it causes Emacs to ;; add recursively all the the sub-directories of a profile's ;; share/emacs/site-lisp union when added to EMACSLOADPATH, -- 2.31.1 From debbugs-submit-bounces@debbugs.gnu.org Sat May 22 08:55:25 2021 Received: (at 48331) by debbugs.gnu.org; 22 May 2021 12:55:25 +0000 Received: from localhost ([127.0.0.1]:38512 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lkRA4-00086T-So for submit@debbugs.gnu.org; Sat, 22 May 2021 08:55:25 -0400 Received: from mailrelay.tugraz.at ([129.27.2.202]:64186) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lkRA0-00086B-T0 for 48331@debbugs.gnu.org; Sat, 22 May 2021 08:55:23 -0400 Received: from localhost.localdomain (91-114-247-246.adsl.highway.telekom.at [91.114.247.246]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4FnNjw3wHnz3wWP; Sat, 22 May 2021 14:55:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1621688117; bh=9B6PPaJNBoSsN05F9Qcft/bRIFlm6m9cktf/ayZrIyk=; h=From:To:Cc:Subject:Date; b=EjParXYuwP8ypsWBcdl4wWnuuYosRy5lPsYYutDRV+ZpgJmzLSlXjFvalutQjuF4Y AWqo28RtPXfw1NbRaU8r8Xp9bB8SAEjZXH3TJPPGWddj/v1RWHQy0fpk/9F/nPfFUX GAR9kwbHusrWndcnZ9Ct/w6PFvwuHqaTXPU22U/4= From: Leo Prikler To: 48331@debbugs.gnu.org Subject: [PATCH 1/2] build-system: emacs: Keep -pkg.el files. Date: Sat, 22 May 2021 14:54:27 +0200 Message-Id: <20210522125428.12859-1-leo.prikler@student.tugraz.at> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TUG-Backscatter-control: bt4lQm5Tva3SBgCuw0EnZw X-Spam-Scanner: SpamAssassin 3.003001 X-Spam-Score-relay: -1.9 X-Scanned-By: MIMEDefang 2.74 on 129.27.10.117 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 48331 Cc: arunisaac@systemreboot.net, maxim.cournoyer@gmail.com, andrew@trop.in 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: -3.3 (---) Partly fixes -- package descriptions can now be found in the install directory. * guix/build/emacs-build-system.scm (%default-exclude): Remove "-pkg\\.el$". --- guix/build/emacs-build-system.scm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/guix/build/emacs-build-system.scm b/guix/build/emacs-build-system.scm index e41e9a6595..f13162d6c4 100644 --- a/guix/build/emacs-build-system.scm +++ b/guix/build/emacs-build-system.scm @@ -53,8 +53,7 @@ ;; These are the default inclusion/exclusion regexps for the install phase. (define %default-include '("^[^/]*\\.el$" "^[^/]*\\.info$" "^doc/.*\\.info$")) -(define %default-exclude '("^\\.dir-locals\\.el$" "-pkg\\.el$" - "^[^/]*tests?\\.el$")) +(define %default-exclude '("^\\.dir-locals\\.el$" "^[^/]*tests?\\.el$")) (define gnu:unpack (assoc-ref gnu:%standard-phases 'unpack)) -- 2.31.1 From debbugs-submit-bounces@debbugs.gnu.org Tue May 25 09:41:09 2021 Received: (at 48331) by debbugs.gnu.org; 25 May 2021 13:41:09 +0000 Received: from localhost ([127.0.0.1]:45032 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1llXIx-0006nM-UB for submit@debbugs.gnu.org; Tue, 25 May 2021 09:41:09 -0400 Received: from mail-qk1-f176.google.com ([209.85.222.176]:35340) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1llXIs-0006mg-5d for 48331@debbugs.gnu.org; Tue, 25 May 2021 09:41:06 -0400 Received: by mail-qk1-f176.google.com with SMTP id j189so9571283qkf.2 for <48331@debbugs.gnu.org>; Tue, 25 May 2021 06:41:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=trop-in.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=IP9zXvyExMGat+L1Fz8jYw+uYo3aND9KVPNuqiPYU/s=; b=aDhzNAgT1IsM8W9O4qQBTP1hFkPfVqgJz/LI8IFnMp/pMFilNHBgYQrCSHn0ldlqlb Gp42TjPHMsfUcGWrxtd5qPmsAis4XOMpJ/vCmZFUn+6squ6TDIVL7xd69pgGCK4qUF30 rX+Xf/nYqsCPAh+ZzBfBgn43lCX/yF7/EwRGDyvuJI0x2Rx4Kngdv/52rKeY9VXiQU5H 3X/zqWUKVvXmr5g6blUX+nG+i57QoyL9SOfNy9vUTZzyVWJCdKBraDrOhdPh0x7MGg5g e2twhSS2amx2NjUSY3GA8evpmV84jiG43/sQfYInSjwqMTeheRCMwqLBPn65upKyDavE Yw4w== 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=IP9zXvyExMGat+L1Fz8jYw+uYo3aND9KVPNuqiPYU/s=; b=URDb8XdQ9FiP/hN6nOw+nMKlzVJ3G6EiZ7F4pQshYxIK2UMnmb+bQNZPQEafiVBLWX a3PHUmEr3HeQLPcxLwH8aCNDxew4My9EudaHhVBjrF/U/uNS5JAWYghj1o11rVXS2/cY /h+qMtwitLxZQDwU7rq9eDIVkqfnjAhE/TuMEgfYvdjNW9F18lftTs4Ip4iO6u3oKIaz We5eftQW2KCSAMIP6yt7ZQ7FLWj4Q7KZnP/Yx90K3W/+tL0W6a3FS+Sq5feLWdJ7RvHt w1xDaCTje/Y30FezKrqZXnrTpGzTKXwsmZYMo3/Y9wNoULdxH7cXgswScX/+PjbU30a0 pxVg== X-Gm-Message-State: AOAM530PbjvEe5l2Etw+9VoZTWYq2bKPw7UidnXQopx3ANSHtFlk6ccW LPZCgusz6RVH4m0BgKSlPPrEKkvV93GAqdNJvWozPg== X-Google-Smtp-Source: ABdhPJwHS3WeM1Ia3WH86EcuhCMjq5iL8KULMsvUna/rFmM2r7E+IPH2PHmj3bwg+MPgQQXcLTGtq3jXqzYqjBSp7TE= X-Received: by 2002:a37:6645:: with SMTP id a66mr36588081qkc.314.1621950056405; Tue, 25 May 2021 06:40:56 -0700 (PDT) MIME-Version: 1.0 References: <20210522125428.12859-1-leo.prikler@student.tugraz.at> <20210522125428.12859-2-leo.prikler@student.tugraz.at> In-Reply-To: <20210522125428.12859-2-leo.prikler@student.tugraz.at> From: Andrew Tropin Date: Tue, 25 May 2021 16:40:45 +0300 Message-ID: Subject: [PATCH draft] build-system: emacs: Generate -pkg.el file in case it is missing To: Leo Prikler Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 48331 Cc: Arun Isaac , 48331@debbugs.gnu.org, Maxim Cournoyer 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 (-) --- Thank you for the patches, tested, works for me! The solution is much more precise than mutating package-directory-list variable, good job. I don't see any major problems in the implementation (but I'm not very fluent elisp dev and maybe missing something). I drafted a simple build phase, which generates -pkg.el in case it is missing. There are at least a few problems with this implementation: 1. There is no information about package record available during build, which makes it hard to get package name and package version. I can't use any regexp to obtain this information from name or elpa-name-ver, because package name and version can have arbitrary form: comment-dwim-2-1.0, cyberpunk-2019-theme-20191008-alpha or something like that. 2. It's also not so easy to extract description of the package from somewhere, the first option is to pass package record to build phases somehow, another is to parse PACKAGE-NAME.el file comments section. 3. This one I consider as a minor flaw: there is no generic solution for packages built with build systems other than emacs-build-system. So, this patch is very dirty and I publish it only for future reference. The intuition says that we should split name and version in build phase arguments, also it seems that it will be useful to provide other information about package during build time for cases like this one. I'll learn this area a bit more and probably will make another thread someday. guix/build/emacs-build-system.scm | 60 ++++++++++++++++++++++++++++++- 1 file changed, 59 insertions(+), 1 deletion(-) diff --git a/guix/build/emacs-build-system.scm b/guix/build/emacs-build-system.scm index f13162d6c4..2bb102b4be 100644 --- a/guix/build/emacs-build-system.scm +++ b/guix/build/emacs-build-system.scm @@ -116,6 +116,63 @@ environment variable\n" source-directory)) (parameterize ((%emacs emacs)) (emacs-byte-compile-directory (elpa-directory out))))) + +(define* (add-pkg-file-if-missing #:key name outputs #:allow-other-keys + #:rest args) + "Generate simple -pkg.el in case package doesn't have it in source code." + (define (file-contains-nul-char? file) + (call-with-input-file file + (lambda (in) + (let loop ((line (read-line in 'concat))) + (cond + ((eof-object? line) #f) + ((string-index line #\nul) #t) + (else (loop (read-line in 'concat)))))) + #:binary #t)) + + (let* ((out (assoc-ref outputs "out")) + (el-dir (elpa-directory out)) + (elpa-name-ver (store-directory->elpa-name-version out)) + (el-files (remove file-contains-nul-char? + (find-files (getcwd) "\\.el$"))) + (el-names (map (lambda (x) (basename x ".el")) el-files)) + + (possible-names + (fold (lambda (x acc) + (cons + (string-append + (if (not (null? acc)) (string-append (first acc) "-") "") + x) + acc)) + '() + (string-split elpa-name-ver #\-))) + + (package-names (append-map + (lambda (name) + (let ((m (member name el-names))) + (if m (list (car m)) '()))) + possible-names)) + + (package-name (if (null? package-names) "" (car package-names))) + (package-version (string-drop elpa-name-ver + (1+ (string-length package-name)))) + (package-description "description should be here") + (pkg-file (string-append el-dir "/" package-name "-pkg.el"))) + + (when (not (file-exists? pkg-file)) + (with-output-to-file pkg-file + (lambda () + (format + #t + "\ +(define-package + ~s + ~s + ~s + nil)" + package-name package-version package-description)))) + #t)) + (define* (patch-el-files #:key outputs #:allow-other-keys) "Substitute the absolute \"/bin/\" directory with the right location in the store in '.el' files." @@ -293,8 +350,9 @@ for libraries following the ELPA convention." (add-after 'make-autoloads 'enable-autoloads-compilation enable-autoloads-compilation) (add-after 'enable-autoloads-compilation 'patch-el-files patch-el-files) + (add-after 'patch-el-files 'add-pkg-file-if-missing add-pkg-file-if-missing) ;; The .el files are byte compiled directly in the store. - (add-after 'patch-el-files 'build build) + (add-after 'add-pkg-file-if-missing 'build build) (add-after 'build 'validate-compiled-autoloads validate-compiled-autoloads) (add-after 'validate-compiled-autoloads 'move-doc move-doc))) -- 2.31.1 From debbugs-submit-bounces@debbugs.gnu.org Tue May 25 11:08:03 2021 Received: (at 48331) by debbugs.gnu.org; 25 May 2021 15:08:03 +0000 Received: from localhost ([127.0.0.1]:46557 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1llYf4-000120-MA for submit@debbugs.gnu.org; Tue, 25 May 2021 11:08:03 -0400 Received: from mailrelay.tugraz.at ([129.27.2.202]:6367) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1llYf1-00011c-8B for 48331@debbugs.gnu.org; Tue, 25 May 2021 11:08:01 -0400 Received: from [10.0.0.4] (91-114-247-246.adsl.highway.telekom.at [91.114.247.246]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4FqHWZ0775z3xP9; Tue, 25 May 2021 17:07:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1621955274; bh=At0E0qzFCYUqWTQ68PHAqEfCikenyxtNnDKkQWXbSdc=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=uENmhvuhmn2a+nNGIIJMvT0Qv2Zhjdj8ZcyR2nYyg0ijUntpVare9LSpkOTHy207Z JpztWqQgkXADARJ/gHulbd+UQujxhA7VEHRBhq5dhmAOv1Rfif86b5LpTuYVe7hlTd Tl24qgnlwfd/XuqzmOqlbVF2FkZ20X/0+dJbbT8E= Message-ID: Subject: Re: [PATCH draft] build-system: emacs: Generate -pkg.el file in case it is missing From: Leo Prikler To: Andrew Tropin Date: Tue, 25 May 2021 17:07:28 +0200 In-Reply-To: References: <20210522125428.12859-1-leo.prikler@student.tugraz.at> <20210522125428.12859-2-leo.prikler@student.tugraz.at> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-TUG-Backscatter-control: bt4lQm5Tva3SBgCuw0EnZw X-Spam-Scanner: SpamAssassin 3.003001 X-Spam-Score-relay: -1.9 X-Scanned-By: MIMEDefang 2.74 on 129.27.10.117 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 48331 Cc: Arun Isaac , 48331@debbugs.gnu.org, Maxim Cournoyer 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: -3.3 (---) Am Dienstag, den 25.05.2021, 16:40 +0300 schrieb Andrew Tropin: > --- > Thank you for the patches, tested, works for me! The solution is > much more precise than mutating package-directory-list variable, good > job. I don't see any major problems in the implementation (but I'm > not very fluent elisp dev and maybe missing something). Don't worry, I can wait for a proper review by some of our experts, since we shouldn't mess with emacs-build-system all too often anyway :P > I drafted a simple build phase, which generates -pkg.el in case it is > missing. > > There are at least a few problems with this implementation: > > 1. There is no information about package record available during > build, which makes it hard to get package name and package > version. I can't use any regexp to obtain this information from name > or elpa-name-ver, because package name and version can have > arbitrary form: comment-dwim-2-1.0, cyberpunk-2019-theme-20191008- > alpha or something like that. > 2. It's also not so easy to extract description of the package from > somewhere, the first option is to pass package record to build phases > somehow, another is to parse PACKAGE-NAME.el file comments section. > 3. This one I consider as a minor flaw: there is no generic solution > for packages built with build systems other than emacs-build-system. 3. is easy -- just have those packages call the phase through emacs- build-system. There already exist packages which do that, and it should be pretty straightforward to do. For 1. and 2. I think you're thinking a little too complicated. We can call Emacs at build time. In particular, we can use all of the lisp- mnt stuff, that I used in emacs-dpd at build time, we just need to write the (define-package ...) form to disk. In order to pick the right file, we can either use package-name (see discussion below) or the name of the pkg-file without -pkg. Come to think about it, we might also provide #:pkg-file-name as a keyword and only generate the package file if it's set to a value other than #f, i.e. let the packager choose whether they want to generate a -pkg.el file. Something along this line is done with the build.xml of ant- build-system. > So, this patch is very dirty and I publish it only for future > reference. > > The intuition says that we should split name and version in build > phase arguments, also it seems that it will be useful to provide > other information about package during build time for cases like this > one. I'll learn this area a bit more and probably will make another > thread someday. IIRC, there's a demand for having package-name and package-version available during build (which might get through next core-updates or might not -- we'll see), but I don't think we can argue for description, especially when the Guix description might not be the thing package.el wants here. > guix/build/emacs-build-system.scm | 60 > ++++++++++++++++++++++++++++++- > 1 file changed, 59 insertions(+), 1 deletion(-) > > diff --git a/guix/build/emacs-build-system.scm > b/guix/build/emacs-build-system.scm > index f13162d6c4..2bb102b4be 100644 > --- a/guix/build/emacs-build-system.scm > +++ b/guix/build/emacs-build-system.scm > @@ -116,6 +116,63 @@ environment variable\n" source-directory)) > (parameterize ((%emacs emacs)) > (emacs-byte-compile-directory (elpa-directory out))))) > > + > +(define* (add-pkg-file-if-missing #:key name outputs #:allow-other- > keys > + #:rest args) > + "Generate simple -pkg.el in case package doesn't have it in source > code." > + (define (file-contains-nul-char? file) > + (call-with-input-file file > + (lambda (in) > + (let loop ((line (read-line in 'concat))) > + (cond > + ((eof-object? line) #f) > + ((string-index line #\nul) #t) > + (else (loop (read-line in 'concat)))))) > + #:binary #t)) > + > + (let* ((out (assoc-ref outputs "out")) > + (el-dir (elpa-directory out)) > + (elpa-name-ver (store-directory->elpa-name-version out)) > + (el-files (remove file-contains-nul-char? > + (find-files (getcwd) "\\.el$"))) > + (el-names (map (lambda (x) (basename x ".el")) el-files)) > + > + (possible-names > + (fold (lambda (x acc) > + (cons > + (string-append > + (if (not (null? acc)) (string-append (first acc) > "-") "") > + x) > + acc)) > + '() > + (string-split elpa-name-ver #\-))) > + > + (package-names (append-map > + (lambda (name) > + (let ((m (member name el-names))) > + (if m (list (car m)) '()))) > + possible-names)) > + > + (package-name (if (null? package-names) "" (car package- > names))) > + (package-version (string-drop elpa-name-ver > + (1+ (string-length package- > name)))) > + (package-description "description should be here") > + (pkg-file (string-append el-dir "/" package-name "- > pkg.el"))) > + > + (when (not (file-exists? pkg-file)) > + (with-output-to-file pkg-file > + (lambda () > + (format > + #t > + "\ > +(define-package > + ~s > + ~s > + ~s > + nil)" > + package-name package-version package-description)))) > + #t)) > + > (define* (patch-el-files #:key outputs #:allow-other-keys) > "Substitute the absolute \"/bin/\" directory with the right > location in the > store in '.el' files." > @@ -293,8 +350,9 @@ for libraries following the ELPA convention." > (add-after 'make-autoloads 'enable-autoloads-compilation > enable-autoloads-compilation) > (add-after 'enable-autoloads-compilation 'patch-el-files patch- > el-files) > + (add-after 'patch-el-files 'add-pkg-file-if-missing > add-pkg-file-if-missing) > ;; The .el files are byte compiled directly in the store. > - (add-after 'patch-el-files 'build build) > + (add-after 'add-pkg-file-if-missing 'build build) > (add-after 'build 'validate-compiled-autoloads validate- > compiled-autoloads) > (add-after 'validate-compiled-autoloads 'move-doc move-doc))) > From debbugs-submit-bounces@debbugs.gnu.org Wed May 26 10:41:17 2021 Received: (at 48331) by debbugs.gnu.org; 26 May 2021 14:41:17 +0000 Received: from localhost ([127.0.0.1]:49697 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lluif-0000DO-2g for submit@debbugs.gnu.org; Wed, 26 May 2021 10:41:17 -0400 Received: from forward104p.mail.yandex.net ([77.88.28.107]:58106) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lloh6-0001xe-3n for 48331@debbugs.gnu.org; Wed, 26 May 2021 04:15:16 -0400 Received: from myt3-7164a1763450.qloud-c.yandex.net (myt3-7164a1763450.qloud-c.yandex.net [IPv6:2a02:6b8:c12:38b:0:640:7164:a176]) by forward104p.mail.yandex.net (Yandex) with ESMTP id B86464B01382 for <48331@debbugs.gnu.org>; Wed, 26 May 2021 11:15:04 +0300 (MSK) Received: from myt4-1dda227af9a8.qloud-c.yandex.net (myt4-1dda227af9a8.qloud-c.yandex.net [2a02:6b8:c00:3c83:0:640:1dda:227a]) by myt3-7164a1763450.qloud-c.yandex.net (mxback/Yandex) with ESMTP id ETY6jENcbk-F4KKaVCo; Wed, 26 May 2021 11:15:04 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ya.ru; s=mail; t=1622016904; bh=aj/bALR19vB05MpjyuQYqIVG22GnLOvpZfTYEpW5yB8=; h=Date:Subject:To:From:Message-ID; b=T3kkY8Bhl+Zz+EQ2luki6Rka35eBWUz8oK46tUpnBTl4jy8FUbncQ8sARKuHxkNOw ccEew5hhtf9hmcfrRKriJArazewAnsYuwdb1U8vjSLwX6/WzMjDme+HCr9jN33kAM+ Emfqu4DaJCRlKVppfaxaR2KH87HPQEZtYZ+aCki0= Authentication-Results: myt3-7164a1763450.qloud-c.yandex.net; dkim=pass header.i=@ya.ru Received: by myt4-1dda227af9a8.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id EsLsAw36nf-F4L0MH1Q; Wed, 26 May 2021 11:15:04 +0300 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client certificate not present) From: Ivan Sokolov To: 48331@debbugs.gnu.org Subject: RE: [PATCH] guix: build: emacs-build-system: Make package.el aware of guix packages Date: Wed, 26 May 2021 11:15:03 +0300 Message-ID: <871r9t6hdk.fsf@ya.ru> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 1.9 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: > After updating the package-directory-list variable, functions like > list-packages, describe-package become aware of packages installed by > guix. > --- > This code is getting work done, but I'm not a very experienced elisp > developer, so please review it thoroughly. Content analysis details: (1.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [77.88.28.107 listed in wl.mailspike.net] 0.0 T_SPF_TEMPERROR SPF: test of record failed (temperror) 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (ivan-p-sokolov[at]ya.ru) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 1.9 SPOOFED_FREEMAIL No description available. X-Debbugs-Envelope-To: 48331 X-Mailman-Approved-At: Wed, 26 May 2021 10:41:08 -0400 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 (-) > After updating the package-directory-list variable, functions like > list-packages, describe-package become aware of packages installed by > guix. > --- > This code is getting work done, but I'm not a very experienced elisp > developer, so please review it thoroughly. > + > +(require 'package) > + > +;; Set `package-directory-list' to the value without elpa/ suffix > +;; to match the structure of site-lisp directory of guix's emacs > +;; build system. > +;;;###autoload > +(setq package-directory-list > + (list (string-remove-suffix "/elpa" (car package-directory-list)))) > + > (provide 'guix-emacs) For future reference, this approach is absolutely unacceptable, no package should modify customizable variables unless explicitly requested by the user. From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 03 15:46:12 2021 Received: (at 48331-done) by debbugs.gnu.org; 3 Dec 2021 20:46:12 +0000 Received: from localhost ([127.0.0.1]:52340 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mtFRb-0002uQ-Ug for submit@debbugs.gnu.org; Fri, 03 Dec 2021 15:46:12 -0500 Received: from mail-wm1-f66.google.com ([209.85.128.66]:38738) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mtFRa-0002uF-Lq for 48331-done@debbugs.gnu.org; Fri, 03 Dec 2021 15:46:10 -0500 Received: by mail-wm1-f66.google.com with SMTP id p3-20020a05600c1d8300b003334fab53afso5782836wms.3 for <48331-done@debbugs.gnu.org>; Fri, 03 Dec 2021 12:46:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=8gPRcAZfLn6bGTxIi4Px7BtB1mqDy0tEM6DeWafscAI=; b=BRDVryXSeziiKIvLvzZPnNKzSE/ZsijYTRMJoQS8gCZ5aE9U6+EjBcfjK30lejXiXq pVAY0Mmy2uXEUhFf3KeVp54Z9r3geUAfAmasiyzYA107uudAck9Y8iN5ANwrnAUA2/a+ g3C4QT19eTX1i3D35FoUg40lzeVzsivjcEAYxwFRSC9e9vNpndSDJIPFLlb81h1RHfBz y+k+PN+o32FXlAezAF8T8ESP8aJaNYLe5eKlPzOYCedGXqad2YYFRjdF6VpTDE85issW d1MM0x7sR5T9g9lnQHrsZlkmwA09Aa8dxWub1VmgNtOwidRtygCHRgCsnRr9JSKmlR4W F7Og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=8gPRcAZfLn6bGTxIi4Px7BtB1mqDy0tEM6DeWafscAI=; b=tJC4SQDkNv5p0H+tHRx/sArFivbyHqox5bPbGqaPz0FJX97tEaWIYdApZnN2cVtITz n/Q//MsAYOIcJyshpUCm0Hlm9FI7E3ysUYKv3/s5kR8qM5ciaIjI+62vw7x2ExL4vGoF T6MSmao4wGqQ6YVL7nZbtnl/pgxcvoimb0CFZjAwNo6+bX1ZgWoE0IfkLt7WdmdcR1NH 5u9VCwQ3U4uZy7kdCm6X19JJhbAvSMxd53o022XmshK4rEaLeiK4c/KFtRlmwyYg2RRL UOgDxBluhkN1ZXN8iADvQsVSHm/29H1wCs0iIy9ska3/AyZlMCItUF99H9ibqJvFUWMi weqQ== X-Gm-Message-State: AOAM532ppK5VGNRGcr43XgmCteCRLF1PXkAePOUXZGjetw0/Upe8y1bn dC6PKKs5q7XH0ZHQP/rhHPE= X-Google-Smtp-Source: ABdhPJxJCKesR6Zx6wSBehUERNVU8S9Qd+Pja07CIWO6vnlgUHDdHQgRDNBr/H1qJDxGy0t0hYGS0g== X-Received: by 2002:a05:600c:1548:: with SMTP id f8mr17811469wmg.67.1638564364873; Fri, 03 Dec 2021 12:46:04 -0800 (PST) Received: from nijino.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id o4sm4409934wry.80.2021.12.03.12.46.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Dec 2021 12:46:04 -0800 (PST) Message-ID: Subject: Re: Emacs' describe-package doesn't work for packages managed by guix From: Liliana Marie Prikler To: Maxim Cournoyer Date: Fri, 03 Dec 2021 21:46:03 +0100 In-Reply-To: <874kevxy5n.fsf@gmail.com> References: <87im3r81so.fsf@trop.in> <78cfb495305fb1137da26e37a7ae5dd9467043bf.camel@student.tugraz.at> <8164abe40ec6e865bf8385e010702cfe158dabcc.camel@student.tugraz.at> <6cba9730ace19ecebc397023b243cdb02486cc0c.camel@student.tugraz.at> <437d90a3cc91400fdf0828fea2c989c277a73a7c.camel@student.tugraz.at> <88a438a74fabe0f4d4bfd8a649c38e960ef82ed2.camel@student.tugraz.at> <87tumxzoey.fsf@systemreboot.net> <5bb7553ac84e241a8ce936033b9ec1e1d6d302dd.camel@student.tugraz.at> <874kevxy5n.fsf@gmail.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 48331-done Cc: Arun Isaac , 48331-done@debbugs.gnu.org, Andrew Tropin 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 (-) At long last, I'm pushing the patch to keep -pkg.el files as well as to load them from guix-emacs during package-initialize. I'll hereby be closing this bug. Andrew, if you wish to write a phase that adds such a file for the packages currently lacking them, I'm pretty sure we can do with a new bug number for that :) Thanks everyone involved for your help and patience. Cheers From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 05 23:52:55 2021 Received: (at 48331-done) by debbugs.gnu.org; 6 Dec 2021 04:52:55 +0000 Received: from localhost ([127.0.0.1]:60255 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mu5zj-0004y2-07 for submit@debbugs.gnu.org; Sun, 05 Dec 2021 23:52:55 -0500 Received: from mail-lf1-f45.google.com ([209.85.167.45]:45840) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mu5zg-0004xl-7f for 48331-done@debbugs.gnu.org; Sun, 05 Dec 2021 23:52:53 -0500 Received: by mail-lf1-f45.google.com with SMTP id m27so22228437lfj.12 for <48331-done@debbugs.gnu.org>; Sun, 05 Dec 2021 20:52:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=trop-in.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=VQRmQLMQ5yglDBZ59zd/YsShbdiAxvHyzKtuTg20wkY=; b=FNe/YzVtlEcgzHoNPsOJ5R+sdj01ETA3ZkTjTqjMSj5LSbrZqzQqOOdbOs2yOqtlEd /tR09tNuTD532hKL/sgaUeelQbFU0lH1RJrob5kXD/JfiYyKCiKumeiJfN2olUtFxuts 9PwP+6i5CrlZmlX4d0k0d/Ov22xCs9ptNWzdZEg/noRGV8uzj8reF43VP21aW8zUFM78 JBu2znZjMhc/FCM3IxTsQajf/PVSh55R/Dr2pzLWS312hxchoHdVaYyiSNY53ac2Yugt 3OlRENibBPF0+onbhS8fdAzlwcWNFgd4G23UNINqDBtsmAGY8ftVATICwdIbakNqKuUB ayqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=VQRmQLMQ5yglDBZ59zd/YsShbdiAxvHyzKtuTg20wkY=; b=UvLvnLY3FwKOxegj32NrMvaA98CtPrsRyO8bTQsg3OSsfjuTeA+RVItcP457zYiJHt /GeEnjpHg/eFHHdh66UpDLz0PbRW8f+VBECl/F6sFja5a6qA41wRGI1ywvllAw5Ev1hW j5Y2GkxRNWGzwEeNE8vZdfw8nWOIC4dF9JOYjZDW3oV43HqVdJ5TfcMEaKBs6B9uPfEh U8bpvEW3tL++Cp3UEETgNUB8r8+4Zp0g3By/5cGTseZD1m9NF9Fq/B7hnFI9Lg+zoC9t j9Qq0hmFL7O/7DWVxqJlbaVd3vpQ3HqdIonO9XyjbDuBNThwUaUbiuFjkKwh8tc7aJ4X qYfg== X-Gm-Message-State: AOAM530OAIacwbUkWhBuLhmWe9qg9K+bAkLXijFTnztAIwi+RkNI1ofB lnPvbe4wMFDOrEjzLtd8ZdJRIg== X-Google-Smtp-Source: ABdhPJxLMtqo1ZO1W+512wCTRmSq6imrIXEnBgMe62/ekifW3nm7XbtEnKryzuJP4+olKxVTnQ3MzA== X-Received: by 2002:ac2:5a1a:: with SMTP id q26mr32843949lfn.329.1638766366050; Sun, 05 Dec 2021 20:52:46 -0800 (PST) Received: from localhost (109-252-182-19.dynamic.spd-mgts.ru. [109.252.182.19]) by smtp.gmail.com with ESMTPSA id t23sm1251402lfg.63.2021.12.05.20.52.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Dec 2021 20:52:45 -0800 (PST) From: Andrew Tropin To: Liliana Marie Prikler , Maxim Cournoyer Subject: Re: Emacs' describe-package doesn't work for packages managed by guix In-Reply-To: References: <87im3r81so.fsf@trop.in> <78cfb495305fb1137da26e37a7ae5dd9467043bf.camel@student.tugraz.at> <8164abe40ec6e865bf8385e010702cfe158dabcc.camel@student.tugraz.at> <6cba9730ace19ecebc397023b243cdb02486cc0c.camel@student.tugraz.at> <437d90a3cc91400fdf0828fea2c989c277a73a7c.camel@student.tugraz.at> <88a438a74fabe0f4d4bfd8a649c38e960ef82ed2.camel@student.tugraz.at> <87tumxzoey.fsf@systemreboot.net> <5bb7553ac84e241a8ce936033b9ec1e1d6d302dd.camel@student.tugraz.at> <874kevxy5n.fsf@gmail.com> Date: Mon, 06 Dec 2021 07:52:42 +0300 Message-ID: <877dci49np.fsf@trop.in> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 48331-done Cc: Arun Isaac , 48331-done@debbugs.gnu.org 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 (-) --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On 2021-12-03 21:46, Liliana Marie Prikler wrote: > At long last, I'm pushing the patch to keep -pkg.el files as well as to > load them from guix-emacs during package-initialize. I'll hereby be > closing this bug. Andrew, if you wish to write a phase that adds such > a file for the packages currently lacking them, I'm pretty sure we can > do with a new bug number for that :) > > Thanks everyone involved for your help and patience. Cheers > Thank you very much for applying this change!) =2D-=20 Best regards, Andrew Tropin --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJDBAEBCgAtFiEEKEGaxlA4dEDH6S/6IgjSCVjB3rAFAmGtlxoPHGFuZHJld0B0 cm9wLmluAAoJECII0glYwd6wOp8P/jb45i1nBfVsnURbr3qqR4ILv3Krj8RyGrn8 d6UO4jUIVjoRK8/XUBCmvrFazdi/KUTzqWsA5dK2GBKSnIkbn1tZ0BVFYPbAPHCU VxLdQQbcqv0EYxsy6D+vix/Xmm47BYYlGxaJEx1uTnvU+t4C6tEjf3D4giG/JmvM axoO6/wbrxCM2mUoqA3aNlNIFSzLu3QZILF+QR0L976bWc+k+JyHHa3UHYHVM5SR vNHReWAKhgL9HhP7SDcJKoX+j4Fi/f2b/pOnd2yMRmUhGYjyQtr43/jXas8PKRZa AdaLyAfnhUGfu2vb30H/L7dcIKnHQ5RhyI7CnVenNEmXLHq8IvTmqAb3hXvaYcgk M5sILYRarvnYpxUNZk6+wc2g9H6FQfT5IcubPqFKfmk5dRWERnqcmX7jzWJGxgvK 9jDvrrLHLuHqKQ2pxiFlXtB0LX2ML0v/VskgH7e1DKASbWm1gZRlelfvhNDhhOvf ia2i9IZ/KgrYHq52VLi0Hebn9B/yHbo2HT9CEcQJIFR7P2H+T+xnvHZ6gASiihbk 6xu4c/tHGnQ8Rq4Dls/9BijZx+SWCCbvp7LWGxJcN6MBJUb2F4XTt0a4S0dk977B eECMXr6FBlfk60HG1eqc3B+EoLa7/RcWxJIn0PX4abeLC4x4oFBr8HjrzDcCG7gt 3DHh+zsN =rexi -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 30 03:12:33 2021 Received: (at 48331-done) by debbugs.gnu.org; 30 Dec 2021 08:12:33 +0000 Received: from localhost ([127.0.0.1]:51324 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n2qY4-0001cd-QH for submit@debbugs.gnu.org; Thu, 30 Dec 2021 03:12:32 -0500 Received: from mail-ed1-f48.google.com ([209.85.208.48]:33548) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n2qY2-0001cH-G2 for 48331-done@debbugs.gnu.org; Thu, 30 Dec 2021 03:12:31 -0500 Received: by mail-ed1-f48.google.com with SMTP id m21so96428191edc.0 for <48331-done@debbugs.gnu.org>; Thu, 30 Dec 2021 00:12:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=trop-in.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:in-reply-to:date:message-id:mime-version; bh=lkej6TB+Oplzci/OBLUnQENzO3kXCH2fvvOF+dr8Ldk=; b=E1OKbxWb0hTEHO9qvxotGFuFCeTCUcqURqrFV2zVITHaMsMKE7xA6r36a2vKJTaiU7 XBbpZBmu+ezJ5EmjLk7TZt85z+YFS+zac1AbCV+vBDP6sJ9Wq3RE+b6wDUJs8kQCMA3s X+qu92YqCDtilMfdj2UCnTfJFGrI65DyBjROL2x8KihaOa0aJ/rExgbETwmMYtIQMS6S nCa/DKIACSt53M4RifUmgPN5ZmFfG1XWQBjdo6iDD8EH9dGAes7bySWJmowZCtpu9tlg vrqq60R4EsXyNyomgqAKQWhuP4Bk/0a9WiI54/ug6S6ZdcQEOH/JQnOgl7As6DsCXyrP mT4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:date:message-id :mime-version; bh=lkej6TB+Oplzci/OBLUnQENzO3kXCH2fvvOF+dr8Ldk=; b=cPu/k5okwFdRhlE5K1iDSLl3qzSSDY9VL2alooXMFXGdwzDoqqFdfcaNm+gVgEQPs6 DCXi3Z0gEP7un2pQvTIfRzRMDhdb8miP3bYCSOME4vkvMLg+nCd0OAFe31J3UE9mjKz0 Lc2zA//qRSmxGl1fvqutq+o+eMdXDE3cpI+Vafj8yVcLoarHt3Me0dP0iyfdTrsvzWoZ MvG7kP8Rm4WwgWtCoBiOCn4DDv+q2J6CpQxSNfdc8x9W2pp24BfG3IOIjD7mIvr1vtIb 95Tgo8bOjG9E1HRx1tBAwhvDsSa8cyZOH2Mvhdb7Su5GKOzrf21dTAA839oCwOZqw/PG A7og== X-Gm-Message-State: AOAM532FmQMBMrmHaWgZ3ZmBXceIUeP5xFl73I9YB2N7JQ5hGdY5acSR Co/3KIGbmBwYpBXnmQ31AiBf5Q== X-Google-Smtp-Source: ABdhPJxqpH3M1F4LcFnd2l9fIZsLj4NtgKebseh9V2JzLYvORX7o6mmcQ5o6wzsieuGSZVsI7ASy+A== X-Received: by 2002:a17:907:7fa0:: with SMTP id qk32mr25705846ejc.591.1640851944697; Thu, 30 Dec 2021 00:12:24 -0800 (PST) Received: from localhost ([5.27.28.105]) by smtp.gmail.com with ESMTPSA id i23sm910687edt.93.2021.12.30.00.12.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Dec 2021 00:12:23 -0800 (PST) From: Andrew Tropin To: Liliana Marie Prikler , Maxim Cournoyer Subject: Re: Emacs' describe-package doesn't work for packages managed by guix In-Reply-To: Date: Thu, 30 Dec 2021 11:12:17 +0300 Message-ID: <8735mamrz2.fsf@trop.in> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 48331-done Cc: Arun Isaac , 48331-done@debbugs.gnu.org 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 (-) --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On 2021-12-03 21:46, Liliana Marie Prikler wrote: > At long last, I'm pushing the patch to keep -pkg.el files as well as to > load them from guix-emacs during package-initialize. I'll hereby be > closing this bug. Andrew, if you wish to write a phase that adds such > a file for the packages currently lacking them, I'm pretty sure we can > do with a new bug number for that :) I implemented this phase in issues.guix.gnu.org/52388, I have it applied to my local guix fork and I didn't notice any issues with it, however, emacs packages built without emacs-build-system will require tweaking. Everyone reading this thread can jump to [1] and check it out =3D) [1]: The mail thread id is 871r2mrleb.fsf@trop.in > > Thanks everyone involved for your help and patience. Cheers > =2D-=20 Best regards, Andrew Tropin --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJDBAEBCgAtFiEEKEGaxlA4dEDH6S/6IgjSCVjB3rAFAmHNaeEPHGFuZHJld0B0 cm9wLmluAAoJECII0glYwd6wsgcQAIVaPz2q+DDpQc5aFEW68TURSbkrD/gQTkc0 yNVM72W3AgtczIRoXLuEGkiM6cl8BHjZvCFJ28jTiKdfDsdH73SGyqhLpI7r27xo 2sjdXMQCTiwuQWYH1kt55pZLY9FXjLNTfhAtRqvHtkuJpltXLTLzhN+WR8NrrGhl n0IL9dHT/0xUdla67jCjo0AX2u2jgMpiES+KN6dsu58L4WJu9rbGtQIJYzlIui07 oA16d1Qa3C0QDGIqWdb3GM1SYZv1wYmsGd6rpD9tTfM4DYIoPBrI0qjgkWF70TCL cqJpm2cq0kO+zgBSRjtZn41hcV3/epPiXHp2iBKSW2ggA9/vAcZgMv64Jmtn19ri lPy/7sVfIyVAJ5YmMFlkp+Ftj0/MxZFSU5SLFEWBB+pbpp8PC8qwtf0PTy70rD1/ 5Gj4UwsMfWVtbOk5fjzgOxnnPuvknSHWjpc1tV/TUg4Ox8TuqFGbbLEP1zwY2pAO tUpxq3RFVtdLEy+KqutwBW0lPPjkRdXdEVET4FIcimbc99ymAfVfrtT42FLLixGj 0YvnUu3KHwAckTmg/2YOacj3URNnTTTxejAADKnJfoMCg3dFnhNfigHLrIhRfQZm MnR30NkHPzq3QLpbMnxK/FG+hJ2MWFzg3T1y0lpwBTL9c0O7E1VJSIXU7C9vZmuk l3lHzzYq =Ji8v -----END PGP SIGNATURE----- --=-=-=-- From unknown Sun Jun 15 08:39:32 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 27 Jan 2022 12:24:07 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator