From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.devel Subject: Re: add keyword search and display in details for list-packages Date: Thu, 21 Nov 2013 11:09:34 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87txf5butd.fsf@flea.lifelogs.com> References: <87wql1w6io.fsf@flea.lifelogs.com> <87r4axu4dm.fsf@flea.lifelogs.com> <87k3gorvs4.fsf@flea.lifelogs.com> <87eh6adbqr.fsf@flea.lifelogs.com> <87a9gyc8pp.fsf_-_@flea.lifelogs.com> Reply-To: emacs-devel@gnu.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1385050150 3438 80.91.229.3 (21 Nov 2013 16:09:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 21 Nov 2013 16:09:10 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 21 17:09:11 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VjWoV-0005F6-5U for ged-emacs-devel@m.gmane.org; Thu, 21 Nov 2013 17:09:07 +0100 Original-Received: from localhost ([::1]:33943 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VjWoU-0000bI-Nh for ged-emacs-devel@m.gmane.org; Thu, 21 Nov 2013 11:09:06 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53549) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VjWoM-0000UV-GK for emacs-devel@gnu.org; Thu, 21 Nov 2013 11:09:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VjWoG-0000zq-HZ for emacs-devel@gnu.org; Thu, 21 Nov 2013 11:08:58 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:39556) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VjWoG-0000yg-Ae for emacs-devel@gnu.org; Thu, 21 Nov 2013 11:08:52 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VjWoF-00056t-S6 for emacs-devel@gnu.org; Thu, 21 Nov 2013 17:08:51 +0100 Original-Received: from c-98-229-61-72.hsd1.ma.comcast.net ([98.229.61.72]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 21 Nov 2013 17:08:51 +0100 Original-Received: from tzz by c-98-229-61-72.hsd1.ma.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 21 Nov 2013 17:08:51 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 80 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-98-229-61-72.hsd1.ma.comcast.net X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Mail-Copies-To: never User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux) Cancel-Lock: sha1:2vBeIfoBGcxOtxkk4FJralMEM94= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:165489 Archived-At: On Thu, 21 Nov 2013 09:44:39 -0500 Stefan Monnier 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