From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: bruce.connor.am@gmail.com Newsgroups: gmane.emacs.devel Subject: Re: Elpa packages and macro dependencies. Date: Fri, 17 Oct 2014 22:24:10 +0100 Message-ID: References: Reply-To: bruce.connor.am@gmail.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c2f38863df510505a4fca9 X-Trace: ger.gmane.org 1413581069 1496 80.91.229.3 (17 Oct 2014 21:24:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 17 Oct 2014 21:24:29 +0000 (UTC) Cc: emacs-devel To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 17 23:24:23 2014 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 1XfF0U-0004ws-EY for ged-emacs-devel@m.gmane.org; Fri, 17 Oct 2014 23:24:18 +0200 Original-Received: from localhost ([::1]:34710 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XfF0U-0001CM-1d for ged-emacs-devel@m.gmane.org; Fri, 17 Oct 2014 17:24:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42889) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XfF0Q-0001CH-Aw for emacs-devel@gnu.org; Fri, 17 Oct 2014 17:24:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XfF0P-0006G7-Ij for emacs-devel@gnu.org; Fri, 17 Oct 2014 17:24:14 -0400 Original-Received: from mail-ob0-x231.google.com ([2607:f8b0:4003:c01::231]:53827) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XfF0O-0006Ft-Cf; Fri, 17 Oct 2014 17:24:12 -0400 Original-Received: by mail-ob0-f177.google.com with SMTP id uy5so1255860obc.8 for ; Fri, 17 Oct 2014 14:24:10 -0700 (PDT) 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=M3Itsis7mHJFkDF0D0gFvZK1R/Nflv12c7xSvQBlIwI=; b=bGdogn5dLTLaDKdkcfwy4+74wq4uGhgYKc9dnj1FQMNK73bCkInVMaBVQd8xPirqRF zMChj61btET7uXRZmUV642TUHW7BW9zmOydMh8tPiOB9nhcB9dAJ7xIiaBWbDUboXTS7 uG4gvuuTmz3ST1ORI6LKEsHkm9n1Atvm1Yuh/0v4HZkNQGgMtHdthFUvWpSGpfHt9mFU dXJdEuTzxnF80brQcg8svarAP8W9wipvuX9Jwging7n1A2dfRsNoK3IeYAvTc+Qw4E44 aLE3pYUM5eRosNREBt9leysBDT60lcMWP9xBhxm109vQ2UoIRDuy93wywdNBuHxB/znT 9xgQ== X-Received: by 10.182.72.163 with SMTP id e3mr3417125obv.66.1413581050729; Fri, 17 Oct 2014 14:24:10 -0700 (PDT) Original-Received: by 10.76.1.137 with HTTP; Fri, 17 Oct 2014 14:24:10 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: RdMp6eoz-1hrjxq6Q_iRKnTzS2k X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4003:c01::231 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:175529 Archived-At: --001a11c2f38863df510505a4fca9 Content-Type: text/plain; charset=UTF-8 > > Before upgrading a package, package.el could check if the package is already > > loaded and then force-reload it after the installation. > > The question is how to do the "force-reload". Once we know how to do > that, there are various options as to when to do this force-reload, and > I think this is an easier problem. Just calling (load "file") is what I had in mind. It's enough to redefine macros, which are the biggest issue IMO. It won't redefine defcustom/var, but I'm not even convinced that it would be a good idea to redefine them. --001a11c2f38863df510505a4fca9 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

> > Before upgrading a package, package.el could = check if the package is already
> > loaded and then force-reload it after the installation.
>
> The question is how to do the "force-reload".=C2=A0 Once we = know how to do
> that, there are various options as to when to do this force-reload, an= d
> I think this is an easier problem.=C2=A0

Just calling (load &quo= t;file") is what I had in mind.
It's enough to redefine macros, which are the biggest issue IMO.

It won't redefine defcustom/var, but I'm not even convinced that= it would
be a good idea to redefine them.

--001a11c2f38863df510505a4fca9--