From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: Re: [PATCH 2/4] emacs: Add 'guix-devel-download-package-source'. Date: Fri, 09 Oct 2015 15:08:48 +0300 Message-ID: <87k2qws0q7.fsf@gmail.com> References: <1443791046-1015-1-git-send-email-alezost@gmail.com> <1443791046-1015-3-git-send-email-alezost@gmail.com> <87d1wvadw2.fsf@gnu.org> <87bnceah2e.fsf@gmail.com> <87r3la6077.fsf@gnu.org> <87eghalc7s.fsf@gmail.com> <87wpv1tils.fsf@gnu.org> <87a8rwf2vl.fsf@gmail.com> <87mvvu6f5y.fsf@gnu.org> <87si5mbnfr.fsf@gmail.com> <87k2qy1gah.fsf@gnu.org> <87d1wpfvmv.fsf@gmail.com> <87twq1twg2.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42170) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZkWTj-0007k6-76 for guix-devel@gnu.org; Fri, 09 Oct 2015 08:08:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZkWTf-0002ty-WB for guix-devel@gnu.org; Fri, 09 Oct 2015 08:08:51 -0400 In-Reply-To: <87twq1twg2.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Thu, 08 Oct 2015 13:46:05 +0200") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel@gnu.org Ludovic Court=C3=A8s (2015-10-08 14:46 +0300) wrote: > Alex Kost skribis: > >> Ludovic Court=C3=A8s (2015-10-08 01:10 +0300) wrote: >> >> [...] >>> Wouldn=E2=80=99t the explanation in the manual of how to use this be re= latively >>> complex? That=E2=80=99s a good benchmark. >> >> As I see it, it is not complex: >> >> =C2=ABDownload a source of the package defined by the current variable >> definition and print its SHA256 hash. This command has the same meaning >> as running @code{guix download} on the package source (@pxref{Invoking >> guix download})=C2=BB > > Hmm OK. (Is it really =E2=80=9Ccurrent variable definition=E2=80=9D, or = rather > =E2=80=9C=E2=80=98origin=E2=80=99 form at point=E2=80=9D?) As I said before it's the same as "C-c . b" is used for downloading the package source, i.e. it is performed "on the current variable definition". It is not possible to make it "on origin at point", because most of the times it has a reference to 'version' ('name'): (origin ... (uri (string-append "http://..." version ".tar.gz"))) and 'version' is known only for the whole package, not for the 'origin'. >> Anyway, after all I'm not going to add this command to not give people >> an incentive not to check signatures. > > Yeah, maybe we can see where the other discussion goes. > > The command to call =E2=80=98package-source-derivation=E2=80=99 for the p= ackage at point > is still welcome, though. :-) OK. --=20 Alex