From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Artur Malabarba Newsgroups: gmane.emacs.devel Subject: Re: package.el dependencies Date: Tue, 3 Feb 2015 10:04:06 +0000 Message-ID: References: <87wq4dpqib.fsf@gmail.com> <87wq44su8v.fsf@gmail.com> <878ugj7ajz.fsf@gmail.com> <874mr67gjb.fsf@gmail.com> <87oapervqv.fsf@gmail.com> <877fw2kp1y.fsf@gmail.com> <87d25tps2q.fsf@gmail.com> <87egq83veh.fsf@gmail.com> <87oapbegtp.fsf@gmail.com> Reply-To: bruce.connor.am@gmail.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113cde08f52653050e2c3061 X-Trace: ger.gmane.org 1422957877 15187 80.91.229.3 (3 Feb 2015 10:04:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 3 Feb 2015 10:04:37 +0000 (UTC) Cc: Stefan Monnier , emacs-devel To: Thierry Volpiatto Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 03 11:04:37 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YIaLR-0006Fa-9J for ged-emacs-devel@m.gmane.org; Tue, 03 Feb 2015 11:04:33 +0100 Original-Received: from localhost ([::1]:58467 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YIaLQ-0000UR-O0 for ged-emacs-devel@m.gmane.org; Tue, 03 Feb 2015 05:04:32 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47132) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YIaL2-0000RR-Go for emacs-devel@gnu.org; Tue, 03 Feb 2015 05:04:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YIaL1-0008Ml-1k for emacs-devel@gnu.org; Tue, 03 Feb 2015 05:04:08 -0500 Original-Received: from mail-ob0-x22c.google.com ([2607:f8b0:4003:c01::22c]:43031) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YIaL0-0008Mg-TB for emacs-devel@gnu.org; Tue, 03 Feb 2015 05:04:06 -0500 Original-Received: by mail-ob0-f172.google.com with SMTP id nt9so17941913obb.3 for ; Tue, 03 Feb 2015 02:04:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=aWVp5G9abWXfnjakTjJfwgxpcl12icAIOEldh0JFINE=; b=g5xojQNlgGOjs4INKLkYt3DeSIXOwwayRTE2KJzCzevTFdXd64UEEfNWmJSljToWxY oyXrTNY+OqM++w3nsVy1awVvdUKXebuHt4xEn7SRh+KRjGR69CTijJbgRr7lU/e6lP/1 PbJMOi/vbmAgr/u+bGdNDj18BPg2PipDdMYyEvSp7tvE+bv8iHJS1b3pNtqjFnwdAgHm i8Xj1q8EQi+yeUx9VgMYVp9th07M3OUtGgw1uGar6QGfXS9Khxva8CN5A22mUf/abZvj nosA9J8h/GGfjkheibC9RxWHDSEtaSufs+/jVRgFWYV5+lT7FWTOOzUlXR7n2dQuqQM8 n1xw== X-Received: by 10.202.171.69 with SMTP id u66mr13864881oie.27.1422957846268; Tue, 03 Feb 2015 02:04:06 -0800 (PST) Original-Received: by 10.76.125.1 with HTTP; Tue, 3 Feb 2015 02:04:06 -0800 (PST) Original-Received: by 10.76.125.1 with HTTP; Tue, 3 Feb 2015 02:04:06 -0800 (PST) In-Reply-To: <87oapbegtp.fsf@gmail.com> X-Google-Sender-Auth: cxtAGhDeY88xRvjg5rnVJrvHhbQ X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4003:c01::22c X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:182317 Archived-At: --001a113cde08f52653050e2c3061 Content-Type: text/plain; charset=UTF-8 > > I was about to suggest the following. > > > > + (package-delete (cadr (assq pkg package-alist)) 'force) > > + (package-install pkg selected))) > > At first I had the same idea, but after I thought it was calling two time > custom-save-varaible for nothing (i.e one time to remove the package and > on time to add it again), so I think it is better to just delete the > package without removing it from the list. Good point. --001a113cde08f52653050e2c3061 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

> > I was about to suggest the following.
> >
> > +=C2=A0 =C2=A0 (package-delete (cadr (assq pkg package-alist)) &#= 39;force)
> > +=C2=A0 =C2=A0 (package-install pkg selected)))
>
> At first I had the same idea, but after I thought it was calling two t= ime
> custom-save-varaible for nothing (i.e one time to remove the package a= nd
> on time to add it again), so I think it is better to just delete the > package without removing it from the list.

Good point.

--001a113cde08f52653050e2c3061--