all messages for Emacs-related lists mirrored at yhetil.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: Tue, 31 Aug 2010 23:39:39 +0100	[thread overview]
Message-ID: <87tymal844.fsf@mail.jurta.org> (raw)
In-Reply-To: <877hj7o9ia.fsf@stupidchicken.com> (Chong Yidong's message of "Mon, 30 Aug 2010 21:29:01 -0400")

>> It's better to have all package information in one place.
>> I suggest not to lose information that was in finder-inf.el.
>
> It's a bit problematic.  Moving the keywords into package--builtins
> necessitates a change in the archive-contents file format, which means
> incompatibility with the old elpa repository.

Does the archive-contents file format have a fixed number of fields?
Too bad.  For extensibility it would be better to reserve one field
for an alist of additional key/value pairs like

  (ediff .
    [(2 81 4) nil "a comprehensive visual interface to diff & patch"
     ((keywords . (comparing merging patching tools unix)))])

or

  (ediff
    [(2 81 4) nil "a comprehensive visual interface to diff & patch"]
    ((keywords . (comparing merging patching tools unix))))

> This scheme also forces key lookup to iterate over all packages, which
> seems inelegant.

You can create the hash table during reading of finder-inf.el.

> The scheme I came up with is to put the keywords into a hash table, also
> stored in finder-inf.el (further down in the file), which maps keywords
> to package lists.  True, this is not 100% satisfactory.

A hash table is an optimization.  I think complete information about
every package should be in the same place to help libraries to process
package information instead of relying on two separate variables
`package--builtins' (where double dashes in the variable name mean
it's an internal variable) and `finder-keywords-hash' whose different
name prefixes (`package-' and `finder-') are misleading and suggest that
they are unrelated.



  reply	other threads:[~2010-08-31 22:39 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
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 [this message]
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

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

  git send-email \
    --in-reply-to=87tymal844.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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.