From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: Merging Finder into package mechanism Date: Sat, 28 Aug 2010 21:44:04 -0400 Message-ID: <87wrranqfv.fsf@stupidchicken.com> References: <87hbie8ppy.fsf@stupidchicken.com> <8739tyxoe5.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1283046422 18001 80.91.229.12 (29 Aug 2010 01:47:02 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 29 Aug 2010 01:47:02 +0000 (UTC) Cc: emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 29 03:47:01 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 1OpWy6-00062R-I1 for ged-emacs-devel@m.gmane.org; Sun, 29 Aug 2010 03:46:59 +0200 Original-Received: from localhost ([127.0.0.1]:36605 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OpWxV-0002kB-EH for ged-emacs-devel@m.gmane.org; Sat, 28 Aug 2010 21:45:21 -0400 Original-Received: from [140.186.70.92] (port=35247 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OpWxD-0002XY-Vy for emacs-devel@gnu.org; Sat, 28 Aug 2010 21:45:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OpWwJ-0002le-7B for emacs-devel@gnu.org; Sat, 28 Aug 2010 21:44:08 -0400 Original-Received: from pantheon-po45.its.yale.edu ([130.132.50.79]:53405) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OpWwJ-0002lX-5Q for emacs-devel@gnu.org; Sat, 28 Aug 2010 21:44:07 -0400 Original-Received: from furry (adsl-99-70-212-122.dsl.wlfrct.sbcglobal.net [99.70.212.122]) (authenticated bits=0) by pantheon-po45.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o7T1i4Fj013497 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 28 Aug 2010 21:44:04 -0400 Original-Received: by furry (Postfix, from userid 1000) id 1A85216D402; Sat, 28 Aug 2010 21:44:04 -0400 (EDT) In-Reply-To: <8739tyxoe5.fsf@mail.jurta.org> (Juri Linkov's message of "Sun, 29 Aug 2010 00:38:10 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 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:129374 Archived-At: Juri Linkov writes: >> package.el has a variable `package--builtins-base' which defines >> packages built into Emacs. This is similar, but not identical, to the >> Finder conception of a package. I would like to remove the discrepancy. > > I think Keywords should be additional package attribute > along with Name, Version, Brief description, Long description. There should definitely be a way to search packages by keyword, but I am not sure if setting them as package attributes is necessary. I am experimenting with a few different approaches, such as storing a keyword-to-package map in the repository. >> Eventually, finder-by-keyword should allow searching for elpa packages >> as well as built-in packages. > > Finder scans local files to collect package information, so it could > also connect to elpa.gnu.org, but this requires Internet access during > `make finder-data'. I don't think that's necessary. We can simply have `make finder-data' collect information about built-in packages. During `package-initialize' (usually called at startup), Emacs can supplement the data in finder-inf.el using cached information about elpa.gnu.org packages. During `package-refresh-contents', when Emacs connects to elpa.gnu.org, it can update this information. >> The proposed technical steps are as follows. First, merge >> `finder-package-info' and `package--builtins-base' into a single >> variable. This is a backward-incompatible change, but I think that's >> acceptable, since third-party code is unlikely to make use of >> `finder-package-info'. > > Does this mean that `list-packages' will list all Emacs built-in > packages (in addition to elpa packages)? Maybe not bad, after all. Yeah. There's a lot of built-in packages (around 400), so we should probably also add a toggle to hide them.