From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id uBh3ElhipWCNQgAAgWs5BA (envelope-from ) for ; Wed, 19 May 2021 21:09:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id oAg/DlhipWADawAAB5/wlQ (envelope-from ) for ; Wed, 19 May 2021 19:09:12 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 8E3E8DCFE for ; Wed, 19 May 2021 21:09:11 +0200 (CEST) Received: from localhost ([::1]:38686 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ljRZ8-0007kz-Mp for larch@yhetil.org; Wed, 19 May 2021 15:09:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56190) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ljR9s-0002fV-MF for bug-guix@gnu.org; Wed, 19 May 2021 14:43:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49183) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ljR9q-0003ZW-7k for bug-guix@gnu.org; Wed, 19 May 2021 14:43:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ljR9q-0003iB-5t for bug-guix@gnu.org; Wed, 19 May 2021 14:43:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#48331: Emacs' describe-package doesn't work for packages managed by guix Resent-From: Leo Prikler Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 19 May 2021 18:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48331 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Andrew Tropin Received: via spool by 48331-submit@debbugs.gnu.org id=B48331.162144976514228 (code B ref 48331); Wed, 19 May 2021 18:43:02 +0000 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> From: Leo Prikler 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 48331@debbugs.gnu.org, Maxim Cournoyer Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1621451351; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=bEMQMYFabjGzoJ49Mj17o9YZfcuB+v36ChKuhf0dzh8=; b=To3L+I58Aof9gxgmt0fBs6sKRQ2QAzx4JOlRQE23RVGyCivPMPUfRlslzPXU9a6iOuBUhc 8kVfkLYTYt3bgF+5zo88n9sCJqq7OEP8WX4+eW4mjeXCW2cCn8LHO2H8esNmticqmzB6YX 7aM/uZ9giK5IkvJqOq2n96kigK1eT+c5GUolv01Ov7Ffja6i5ok/eQZ2nKBgUAalv7ud8r y/DRH4vrHyiuuhSoGvCnC7Or//urnum08UhUOjdThInCjP1kHt66zfNahuDjbGfiJFVA8N 7+kq2YMRn3dHAilWkHELA7PQVErtWkiH6WS5HLpWgd5cCnksY8QXO4Vjp5TsTQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1621451351; a=rsa-sha256; cv=none; b=iB+2VTgkC0m/gS8SaAzf7hajuTagOYwn4ydw+3x5l/5fR6ZjI9onHB+ESMIzrz64YAdbvw 3R1x2p1mPiAJTZicun1hbVNtgye6Lzn3rPdpeuIGhc1NxCxKAOp5dcU0D87kNvGbjHDT9n 5OlKGNZ+jemOpyhrXFyxHCmvvabW07k7ibO7g6lkHsvNmIkticDL1euWurhoZSzqKxygH6 TMz/xw5p4FPT+yfLwVO2//1//OollQv5cJOeecrDUHfcUrJ4g7kPBMRJJ9WHbjHDAOK5yn RxT8jaMdEwBswGOKMsgkEF5J2QfFiL1rvWL8R42dWWhi0PPlftuvAWIMTPqHoQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tugraz.at header.s=mailrelay header.b=mC2nH8JO; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: 0.16 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tugraz.at header.s=mailrelay header.b=mC2nH8JO; dmarc=fail reason="SPF not aligned (relaxed)" header.from=student.tugraz.at (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 8E3E8DCFE X-Spam-Score: 0.16 X-Migadu-Scanner: scn0.migadu.com X-TUID: MRVj+ZS4ikD1 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))