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: Merging Finder into package mechanism Date: Sat, 28 Aug 2010 16:08:41 -0400 Message-ID: <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 1283026138 22897 80.91.229.12 (28 Aug 2010 20:08:58 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 28 Aug 2010 20:08:58 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Aug 28 22:08:52 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 1OpRhs-0002Fx-Ad for ged-emacs-devel@m.gmane.org; Sat, 28 Aug 2010 22:08:52 +0200 Original-Received: from localhost ([127.0.0.1]:56979 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OpRhq-0005wG-Hm for ged-emacs-devel@m.gmane.org; Sat, 28 Aug 2010 16:08:50 -0400 Original-Received: from [140.186.70.92] (port=43983 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OpRhl-0005w7-5R for emacs-devel@gnu.org; Sat, 28 Aug 2010 16:08:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OpRhj-0003bb-V2 for emacs-devel@gnu.org; Sat, 28 Aug 2010 16:08:45 -0400 Original-Received: from pantheon-po23.its.yale.edu ([130.132.50.117]:34817) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OpRhj-0003bQ-TQ for emacs-devel@gnu.org; Sat, 28 Aug 2010 16:08:43 -0400 Original-Received: from furry (173-14-147-246-NewEngland.hfc.comcastbusiness.net [173.14.147.246]) (authenticated bits=0) by pantheon-po23.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o7SK8gak009931 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sat, 28 Aug 2010 16:08:43 -0400 Original-Received: by furry (Postfix, from userid 1000) id 5BB8016D402; Sat, 28 Aug 2010 16:08:41 -0400 (EDT) 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:129360 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. 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. Eventually, finder-by-keyword should allow searching for elpa packages as well as built-in packages. 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'. 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". Thoughts?