From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: Merging Finder into package mechanism Date: Sun, 29 Aug 2010 00:38:10 +0100 Organization: JURTA Message-ID: <8739tyxoe5.fsf@mail.jurta.org> References: <87hbie8ppy.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1283041325 4452 80.91.229.12 (29 Aug 2010 00:22:05 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 29 Aug 2010 00:22:05 +0000 (UTC) Cc: emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 29 02:22:03 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 1OpVes-0004rG-VM for ged-emacs-devel@m.gmane.org; Sun, 29 Aug 2010 02:22:03 +0200 Original-Received: from localhost ([127.0.0.1]:57258 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OpVes-0002fW-9u for ged-emacs-devel@m.gmane.org; Sat, 28 Aug 2010 20:22:02 -0400 Original-Received: from [140.186.70.92] (port=41016 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OpVek-0002eg-VL for emacs-devel@gnu.org; Sat, 28 Aug 2010 20:21:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OpVej-0003Kd-KK for emacs-devel@gnu.org; Sat, 28 Aug 2010 20:21:54 -0400 Original-Received: from smarty.dreamhost.com ([208.113.175.8]:41607) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OpVej-0003KZ-GC for emacs-devel@gnu.org; Sat, 28 Aug 2010 20:21:53 -0400 Original-Received: from ps18281.dreamhostps.com (ps18281.dreamhost.com [69.163.218.105]) by smarty.dreamhost.com (Postfix) with ESMTP id 261196E805B; Sat, 28 Aug 2010 17:21:53 -0700 (PDT) Original-Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 720EE451C134; Sat, 28 Aug 2010 17:21:51 -0700 (PDT) In-Reply-To: <87hbie8ppy.fsf@stupidchicken.com> (Chong Yidong's message of "Sat, 28 Aug 2010 16:08:41 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:129372 Archived-At: > 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. > As part of this, I also want to eliminate some of the useless entries > that currently show up in Finder. For instance, Finder gives cc-vars.el > a separate entry from cc-mode.el, which is not very useful. All the > cc-*.el files should get a single entry, under the "cc-mode" package. The problem is that currently files in the Emacs source tree are not grouped into packages. It would be good to define built-in packages explicitly where Keywords will be defined once for every multi-file package. > 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'. > 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. > Second, alter `finder-compile-keywords' to recognize files that are part > of multi-file built-in packages. I propose to do this by adding an > optional "Package:" file header, which says that the file is part of a > multi-file package. For instance, cc-vars.el can have the header > "Package: cc-mode". Files that we want to omit from Finder can have the > header "Package: emacs". This looks like a good thing since some package sub-files already do something like that, e.g. files in the cc-mode package refer to the main file as ";; Version: See cc-mode.el".