From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jonas Bernoulli Newsgroups: gmane.emacs.devel Subject: Re: Integrating package.el Date: Mon, 1 Mar 2010 17:32:21 +0100 Message-ID: <201bac3a1003010832n4973a6d5s29d3db5de84c4c41@mail.gmail.com> References: <87ocl167wx.fsf@hagelb.org> <8763795zsh.fsf@hagelb.org> <87r5pmwcf8.fsf@hagelb.org> <87ocjh2hyp.fsf@lifelogs.com> <873a0qxrd1.fsf@lifelogs.com> <87635gqe8k.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: dough.gmane.org 1267461613 27710 80.91.229.12 (1 Mar 2010 16:40:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 1 Mar 2010 16:40:13 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 01 17:40:09 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Nm8ed-0003NO-Ti for ged-emacs-devel@m.gmane.org; Mon, 01 Mar 2010 17:40:07 +0100 Original-Received: from localhost ([127.0.0.1]:59052 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nm8eZ-0007Kg-TN for ged-emacs-devel@m.gmane.org; Mon, 01 Mar 2010 11:39:31 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nm8eV-0007KQ-Gj for emacs-devel@gnu.org; Mon, 01 Mar 2010 11:39:27 -0500 Original-Received: from [140.186.70.92] (port=35063 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nm8eS-0007KE-Fu for emacs-devel@gnu.org; Mon, 01 Mar 2010 11:39:26 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nm8eQ-000581-SW for emacs-devel@gnu.org; Mon, 01 Mar 2010 11:39:23 -0500 Original-Received: from mail-ww0-f41.google.com ([74.125.82.41]:58368) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nm8eQ-00057o-Lq for emacs-devel@gnu.org; Mon, 01 Mar 2010 11:39:22 -0500 Original-Received: by wwb24 with SMTP id 24so1306673wwb.0 for ; Mon, 01 Mar 2010 08:39:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:from:date:x-google-sender-auth:message-id:subject:to :content-type; bh=NORJkSzUf2TeP53T7rXEvp0JBVsdoek9ZirgDx1dcw0=; b=Yv4vfRWurKiOjRgsgT79Er/lSWCRzN3wjX/PJSwPfn+rC3J/oSFakdD3pTp7RrHpoA bAbme8aPLxYMtWWLwSYFC3vjvi1r746gs3N1n0kBITm1fOVBViaZPysdNDYXTAYSprEN 9eUZ8j8XlpjA43lPpAK/9kOwNhRxx7aJ1TSrY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:content-type; b=hZQcb4mC7DCWSzwS+hViIf9/Db2LCCXul7pAIiAF0ioQLW0tA1ntSrMRVx1KkQIn5Q vpXdqH/Dfm+Q5AlFGKhGCU2wAjFBZKwV/eB7ASY6CRr48fqZAftYnc+tdNedXf0AQp1c Fet9+cPvEfo2N5nMuTAGVTdxug8gM/p8gwtqg= Original-Received: by 10.216.158.1 with SMTP id p1mr3074042wek.202.1267461561216; Mon, 01 Mar 2010 08:39:21 -0800 (PST) In-Reply-To: <87635gqe8k.fsf@lifelogs.com> X-Google-Sender-Auth: 99821b6c2069d2a3 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:121499 Archived-At: (I am rather confused by the mixture of quoting styles.) >>> Emacs could recognize the Version header and always track it internally >>> when it loads a library file, maybe with a (version . "1.2") in the >>> load-history. That would help a lot, I think. Absolutely. However this information is missing from a lot of libraries. Also even if library contain version information it is still uncommon that libraries state what version of their dependencies are actually required. Cedet contains something like this - has this portion of cedet been merged into 23.2? If such an extended `require' form (or similar standardized information in the library header) are not adopted there is no way to automatically extract this information. This means that maintainers of package repositories have to figure it out manually or just leave this information out completely. I am mirroring 2100 packages - I won't do it manually. > SM> I personnally don't care about the behavior if the user tries to > SM> activate two different versions of the same package in a given session. If I remember correctly what he meant to say was that loading multiple versions is a user error. Having multiple versions installed is still an option as is choosing a particular version by the user (as opposed to the sysadmin) at runtime. > OK. But I still think Emacs should record the version as I suggested > whenever it finds it in a .el/.elc file. It would help resolve many > annoying user-level bugs by showing exactly what version of the library > was loaded, not implied from the directory but directly from the version > header. Does that require lots of changes? I agree. But as explained above this still doesn't help the package manager to determine which version of a dependency is required. -- Jonas