all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ted Zlatanov <tzz@lifelogs.com>
To: emacs-devel@gnu.org
Subject: Re: add keyword search and display in details for list-packages
Date: Thu, 21 Nov 2013 11:09:34 -0500	[thread overview]
Message-ID: <87txf5butd.fsf@flea.lifelogs.com> (raw)
In-Reply-To: jwv1u297rha.fsf-monnier+emacs@gnu.org

On Thu, 21 Nov 2013 09:44:39 -0500 Stefan Monnier <monnier@IRO.UMontreal.CA> wrote: 

>>>> I think the Keywords should also be shown in the package description and
>>>> maybe available for filtering, WDYT?
XF> I agree.  Showing the dependencies would be useful, too.

SM> Adding dependencies in the package description sounds good, indeed.

It's already there in `describe-package-1':

#+begin_src lisp
    (setq reqs (if desc (package-desc-reqs desc)))
    (when reqs
      (insert "   " (propertize "Requires" 'font-lock-face 'bold) ": ")
      (let ((first t)
	    name vers text)
	(dolist (req reqs)
	  (setq name (car req)
		vers (cadr req)
		text (format "%s-%s" (symbol-name name)
			     (package-version-join vers)))
	  (cond (first (setq first nil))
		((>= (+ 2 (current-column) (length text))
		     (window-width))
		 (insert ",\n               "))
		(t (insert ", ")))
	  (help-insert-xref-button text 'help-package name))
	(insert "\n")))
#+end_src

It seems that the list of requirements is not making it into the
description.

>> OK.  Any objections to:
>> * adding filtering by Keywords in the packages list?

SM> OK.

>> * showing the Keywords in the packages list?

SM> Not sure how you plan to do that.

I was thinking of appending "k1,k2,..." to the description.

>> * showing the Keywords in the package description?

SM> OK.

>> ;; - should store the package's keywords in archive-contents, then
>> ;;   let the users filter the package-menu by keyword.  See
>> ;;   finder-by-keyword.
>> so it seems this will require backend work by the GNU ELPA tools to put
>> the Keywords in the package description.  Stefan, WDYT?

SM> If you want to filter by keywords, I see 3 options:
SM> - add keywords in archive-contents.
SM> - let package.el download all packages to extract keywords from them.
SM> - use a separate file alongside archive-contents.
[SM: 1 is best]

(1) works for me as well.  Do you or I need to do work on the backend
tools to make it happen?  That's the prerequisite for the other work
listed here, which I can do on my own afterwards.

>> Finally, in addition to the Keywords, is there a package category,
>> meaning a single word to describe its purpose?

SM> No, and I don't think we'll ever be able to categorize this way.

OK.

>> It might be more suitable for display in the packages list and could
>> let us set up a hierarchy in the packages list to avoid the current
>> "2500+ entries in a flat list" situation.

SM> We could just as well browse by keywords.

OK.

Ted




  reply	other threads:[~2013-11-21 16:09 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-25 10:23 Add the archive name column in the list-packages table Darren Hoo
2013-10-25 16:09 ` Glenn Morris
2013-10-25 18:27   ` Ted Zlatanov
2013-11-03 11:11     ` Ted Zlatanov
2013-11-03 14:12       ` Stefan Monnier
2013-11-04 16:12         ` Ted Zlatanov
2013-11-19  7:36           ` Xue Fuqiao
2013-11-20 21:06             ` Ted Zlatanov
2013-11-20 22:34               ` Xue Fuqiao
2013-11-21 11:09                 ` add keyword search and display in details for list-packages (was: Add the archive name column in the list-packages table) Ted Zlatanov
2013-11-21 14:44                   ` add keyword search and display in details for list-packages Stefan Monnier
2013-11-21 16:09                     ` Ted Zlatanov [this message]
2013-11-22  1:23                       ` Stefan Monnier
2013-11-22 15:13                         ` Ted Zlatanov
2013-11-23  1:49                           ` Stefan Monnier
2013-11-25 14:20                             ` Ted Zlatanov
2013-11-25 15:20                               ` Stefan Monnier
2013-11-25 15:49                                 ` Ted Zlatanov
2013-11-26  3:25                                   ` Stefan Monnier
2013-11-26 17:42                                     ` Ted Zlatanov
2013-11-26 19:26                                       ` Stefan Monnier
2013-11-26 20:00                                         ` Ted Zlatanov
2013-11-26 22:42                                           ` Dmitry Gutov
2013-11-27  1:58                                           ` Stefan Monnier
2013-11-26  3:27                                   ` Stefan Monnier
2013-11-28  0:52                                   ` Juri Linkov
2013-12-04 15:59                                     ` Ted Zlatanov
2013-12-04 19:53                                       ` Stefan Monnier
2013-12-04 21:33                                         ` Ted Zlatanov
2013-11-21 11:37               ` Add the archive name column in the list-packages table Jambunathan K
2013-11-21 14:28                 ` Ted Zlatanov
2013-11-21 14:35                   ` Jambunathan K
2013-11-21 15:59                     ` Ted Zlatanov
2013-11-21 17:58                       ` Jambunathan K
2013-11-21 19:02                         ` Ted Zlatanov
2013-11-21 19:25                           ` Drew Adams
2013-11-21 15:04                 ` Stefan Monnier
2013-10-26  1:35 ` Stefan Monnier
2013-10-26  1:50   ` Dmitry Gutov
2013-10-26  2:25     ` Stefan Monnier
2013-10-26  2:39       ` Darren Hoo

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=87txf5butd.fsf@flea.lifelogs.com \
    --to=tzz@lifelogs.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.