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: Thu, 16 Oct 2014 18:57:44 +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=001a113e4b9641c0d105058dfcea X-Trace: ger.gmane.org 1413482279 21108 80.91.229.3 (16 Oct 2014 17:57:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 16 Oct 2014 17:57:59 +0000 (UTC) Cc: emacs-devel To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 16 19:57:52 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 1XepJ9-0007tO-JC for ged-emacs-devel@m.gmane.org; Thu, 16 Oct 2014 19:57:51 +0200 Original-Received: from localhost ([::1]:51710 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XepJ9-0000vX-9T for ged-emacs-devel@m.gmane.org; Thu, 16 Oct 2014 13:57:51 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59327) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XepJ5-0000vP-UI for emacs-devel@gnu.org; Thu, 16 Oct 2014 13:57:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XepJ5-0003gX-7e for emacs-devel@gnu.org; Thu, 16 Oct 2014 13:57:47 -0400 Original-Received: from mail-ob0-x232.google.com ([2607:f8b0:4003:c01::232]:33681) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XepJ3-0003cm-1d; Thu, 16 Oct 2014 13:57:45 -0400 Original-Received: by mail-ob0-f178.google.com with SMTP id wn1so3287504obc.23 for ; Thu, 16 Oct 2014 10:57:44 -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=4TtElktcBQq7okoVkL1Wbkyzcsb+wxjDK8hO3L+hPqQ=; b=RiPjo+vkoJjEKGaZ1aA8Bp7HOiohUW2NuVN4D6jdG3038myVOpYM5lkITHQgLQjVNJ jnVchisUQhucZuDjloFDGqLNJ8ecgRU3vdbbWJf61ebJ7ytvgsNqNsmNFvtnqvtnvgBV 3pS8GPOP4KfyiZ4suT7oQC7TfjHJXGmner0ke859NvDNo/6NlUUNmBmpv8dWcCOTBC0I e+GPGei8pbYQdnCEJ6vchCj5dcSus0qQqYDI1/JjYVihjsN0WGn8QOeKMdHz/g6lj4yM juU9pkUKBOcpfk5DTykGfg7Or1c3O8CPMW4GgRlbEuZxowN+4W/7451QtW3pDFjh+ccM Kp7A== X-Received: by 10.202.130.139 with SMTP id e133mr2134075oid.35.1413482264246; Thu, 16 Oct 2014 10:57:44 -0700 (PDT) Original-Received: by 10.76.1.137 with HTTP; Thu, 16 Oct 2014 10:57:44 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: DiWMccbUrUXj6U3YvDzC0XmFGUk X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4003:c01::232 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:175473 Archived-At: --001a113e4b9641c0d105058dfcea Content-Type: text/plain; charset=UTF-8 > > Indeed. I think your situation could also be handled correctly by my > suggestion: > > E.g. we could add to bytecomp.el the ability to force `require' to > reload a package if it's not already loaded from the file that > locate-library returns. > > Yes, that's what I'm resorting to now. I'm writing the package so that it reloads itself before doing anything if `locate-library' returns a newer version. It's a little annoying that it has to visit a file and check every time it's used, but it only happens at byte-compile time, so it's not a huge deal. Cheers, Artur --001a113e4b9641c0d105058dfcea Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

=

Indeed.=C2=A0 I think your situation could also be handled correctly= by my
suggestion:

=C2=A0 =C2=A0E.g. we could add to bytecomp.el the ability to force `require= ' to
=C2=A0 =C2=A0reload a package if it's not already loaded from the file = that
=C2=A0 =C2=A0locate-library returns.

Yes, that's what I'm resorting to = now. I'm writing the package so that it reloads
itself before doing= anything if `locate-library' returns a newer version.

It's = a little annoying that it has to visit a file and check every time it's= used,
but it only happens at byte-compile time, so it's not a huge = deal.

Cheers,
Artur
--001a113e4b9641c0d105058dfcea--