unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
To: Chong Yidong <cyd@stupidchicken.com>
Cc: emacs-devel@gnu.org
Subject: Re: Merging Finder into package mechanism
Date: Sun, 29 Aug 2010 00:38:10 +0100	[thread overview]
Message-ID: <8739tyxoe5.fsf@mail.jurta.org> (raw)
In-Reply-To: <87hbie8ppy.fsf@stupidchicken.com> (Chong Yidong's message of "Sat, 28 Aug 2010 16:08:41 -0400")

> 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".



  parent reply	other threads:[~2010-08-28 23:38 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-28 20:08 Merging Finder into package mechanism Chong Yidong
2010-08-28 20:34 ` Drew Adams
2010-08-28 23:38 ` Juri Linkov [this message]
2010-08-29  1:44   ` Chong Yidong
2010-08-31  0:27     ` Juri Linkov
2010-08-31  1:29       ` Chong Yidong
2010-08-31 22:39         ` Juri Linkov
2010-09-01  6:54           ` Stefan Monnier
2010-09-01 22:05             ` Juri Linkov
2010-09-02  7:54               ` Stefan Monnier
2010-09-03 18:30           ` Chong Yidong
2010-09-03 20:45             ` Juri Linkov
2010-08-30  0:46 ` Chong Yidong
2010-08-31  0:27   ` Juri Linkov
2010-08-31  1:42     ` Chong Yidong
2010-08-31 22:43       ` Juri Linkov
2010-10-30 20:59 ` Drew Adams
2010-10-31  0:23   ` Chong Yidong
2010-10-31 22:29     ` Drew Adams
2010-11-01 16:11       ` Chong Yidong
2010-11-01 17:51         ` Drew Adams
2010-11-01 18:58           ` Eli Zaretskii
2010-11-01 22:03             ` Drew Adams
2010-11-02  3:54               ` Eli Zaretskii
2010-11-01 21:31           ` Chong Yidong
2010-11-01 22:03             ` Drew Adams

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8739tyxoe5.fsf@mail.jurta.org \
    --to=juri@jurta.org \
    --cc=cyd@stupidchicken.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).