From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tom Willemse Newsgroups: gmane.emacs.bugs Subject: bug#15108: 24.3.50; Package dependency documentation Date: Fri, 16 Aug 2013 10:06:38 +0200 Message-ID: References: <4ae8e584-105f-4ba4-9126-6087067ad7d8@default> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1376640435 29152 80.91.229.3 (16 Aug 2013 08:07:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 16 Aug 2013 08:07:15 +0000 (UTC) Cc: 15108@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Aug 16 10:07:17 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1VAF40-0007Qf-QD for geb-bug-gnu-emacs@m.gmane.org; Fri, 16 Aug 2013 10:07:16 +0200 Original-Received: from localhost ([::1]:57024 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VAF40-0001ow-Bs for geb-bug-gnu-emacs@m.gmane.org; Fri, 16 Aug 2013 04:07:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44190) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VAF3s-0001nt-In for bug-gnu-emacs@gnu.org; Fri, 16 Aug 2013 04:07:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VAF3n-0001gm-Bg for bug-gnu-emacs@gnu.org; Fri, 16 Aug 2013 04:07:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39501) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VAF3n-0001gb-05 for bug-gnu-emacs@gnu.org; Fri, 16 Aug 2013 04:07:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VAF3m-00063s-DK for bug-gnu-emacs@gnu.org; Fri, 16 Aug 2013 04:07:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tom Willemse Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Aug 2013 08:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15108 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 15108-submit@debbugs.gnu.org id=B15108.137664041123273 (code B ref 15108); Fri, 16 Aug 2013 08:07:02 +0000 Original-Received: (at 15108) by debbugs.gnu.org; 16 Aug 2013 08:06:51 +0000 Original-Received: from localhost ([127.0.0.1]:33817 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VAF3a-00063G-8u for submit@debbugs.gnu.org; Fri, 16 Aug 2013 04:06:50 -0400 Original-Received: from r0.smtpout1.alwaysdata.com ([176.31.58.0]:32877) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VAF3U-00062x-CV for 15108@debbugs.gnu.org; Fri, 16 Aug 2013 04:06:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=alwaysdata.net; s=ryuslash; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:References:Subject:Cc:To:From; bh=zdKaT3sPEXnWiPKdQL86xgRAT/Mrqhh2yKSMAO2IdRk=; b=WEo5DvZCxFYpXyZ4Hk45aBhzfwV9tXbjp5krNEN1BvtiLP08BGA4b3OZ0Q6Tm87WW9iUpNq0vZAJ6gBzbqsOlpZphMtduItFrphTBy/Tjx5KOrK8xvlb3c82E6aImshSAm33sy2S30CPBbOgGfBLZkEU/bDery9m03fZcdJeifk=; Original-Received: from 78-21-108-183.access.telenet.be ([78.21.108.183] helo=localhost) by smtpout1.alwaysdata.com with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.77) (envelope-from ) id 1VAF3O-0007Wd-Vb; Fri, 16 Aug 2013 10:06:38 +0200 In-Reply-To: (Drew Adams's message of "Fri, 16 Aug 2013 00:46:42 -0700 (PDT)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-alwaysdata-ID: 73446455 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:77425 Archived-At: Drew Adams writes: >> > You can use `Package Requires ((foo "0"))' as a workaround, but it's >> > silly that you have to do that. If a library is not versioned, or if >> > for some reason any version of it will do for the package that requires >> > it, it should be possible to use just `Package Requires ((foo))'. >> >> Would values of either `foo' for just a single package dependency, `(foo >> bar)' for packages without version dependencies and `(foo (baz "1.1.0") >> bar)' for mixed values be OK? That would be my preference, but perhaps >> this is to complex. > > Are you asking to be able to use (foo (baz "1.1.0") bar) as an > alternative to ((foo) (baz "1.1.0") (bar))? > > IOW, `foo' instead of `(foo)' or (foo "0")? Sounds OK to me. Maybe > someone else knows a reason why that would not work or be a good idea. It's not that I desperately want to use that, it just seems cleaner to me to be able to omit parentheses when they're not needed. But if someone else knows a reason not to do it, or if everyone else just thinks it's messy or complicated, that would be reasons not to look into that direction. I'm asking for opinions on the idea that I had. And yes, you seem to understand my meaning correctly. In case anyone else didn't understand I'll try to illustrate: ;; Package-Requires: foo Would just be a dependency on any version of `foo', ;; Package-Requires: (foo bar) Would be a dependency on any version of both `foo' and `bar', ;; Package-Requires: (foo (baz "1.1.0") bar) Would be a dependency on any version of both `foo' and `bar' and version 1.1.0 of `baz'. A single package with a version could also be an option, like so: ;; Package-Requires: (baz "1.1.0")