From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [PATCH 2/4] emacs: Add 'guix-devel-download-package-source'. Date: Fri, 09 Oct 2015 14:17:07 +0200 Message-ID: <87vbags0cc.fsf@gnu.org> 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> <87k2qws0q7.fsf@gmail.com> 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]:45974) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZkWbr-0008ML-Ft for guix-devel@gnu.org; Fri, 09 Oct 2015 08:17:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZkWbm-00062R-EA for guix-devel@gnu.org; Fri, 09 Oct 2015 08:17:15 -0400 In-Reply-To: <87k2qws0q7.fsf@gmail.com> (Alex Kost's message of "Fri, 09 Oct 2015 15:08:48 +0300") 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: Alex Kost Cc: guix-devel@gnu.org Alex Kost skribis: > 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 r= elatively >>>> 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'. Oh right. Thanks for bearing with me! Ludo=E2=80=99.