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: tags for functions Date: Wed, 21 Jan 2009 16:11:43 -0600 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <86y6x49un4.fsf@lifelogs.com> References: <867i4pemv5.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1232575863 18729 80.91.229.12 (21 Jan 2009 22:11:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 21 Jan 2009 22:11:03 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 21 23:12:16 2009 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.50) id 1LPlIx-0002VU-Fb for ged-emacs-devel@m.gmane.org; Wed, 21 Jan 2009 23:12:11 +0100 Original-Received: from localhost ([127.0.0.1]:46131 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LPlHg-0004F3-6A for ged-emacs-devel@m.gmane.org; Wed, 21 Jan 2009 17:10:52 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LPlHa-0004Af-HU for emacs-devel@gnu.org; Wed, 21 Jan 2009 17:10:46 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LPlHX-00042e-PP for emacs-devel@gnu.org; Wed, 21 Jan 2009 17:10:45 -0500 Original-Received: from [199.232.76.173] (port=56295 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LPlHX-000424-BF for emacs-devel@gnu.org; Wed, 21 Jan 2009 17:10:43 -0500 Original-Received: from main.gmane.org ([80.91.229.2]:58162 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LPlHX-0001cF-0K for emacs-devel@gnu.org; Wed, 21 Jan 2009 17:10:43 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LPlHT-0001iz-5I for emacs-devel@gnu.org; Wed, 21 Jan 2009 22:10:39 +0000 Original-Received: from 38.98.147.130 ([38.98.147.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 21 Jan 2009 22:10:39 +0000 Original-Received: from tzz by 38.98.147.130 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 21 Jan 2009 22:10:39 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 52 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 38.98.147.130 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" User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:vqmv+wpKL1jxPHWp6LJHPM+g86k= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:108055 Archived-At: On Tue, 20 Jan 2009 21:44:29 +0100 Lennart Borgman wrote: LB> On Tue, Jan 20, 2009 at 9:36 PM, Ted Zlatanov wrote: >> Ted Z wrote in comp.emacs and gnu.emacs.help: >>> I agree this would be useful. It's best done with tags IMO, rather >>> than explicitly listing the related functions. For example, motion >>> commands should be tagged "motion" and then every command with that >>> tag can automatically list every motion command. The key is that the >>> extra work is in classification, not in tediously listing every >>> command's peers. >>> >>> Tags I could use: motion, file, coding-system, menu, buffer, process >>> >>> Each package should probably tag its commands with the package name. >>> >>> Short tags are not always descriptive enough, but long tags get >>> unpleasantly verbose so the real art is in balancing between the two. >>> >>> Anything more hierarchical than tags is painful to manage in the long run. >> >> A tangential discussion about the inconsistent naming of motion commands >> led me to the proposal above. >> >> I think it would be a nice addition to Emacs. I did a search and didn't >> find prior relevant discussions. >> >> Every package with a comment stating Keywords: at the beginning could >> automatically give those keywords as tags to its functions. That would >> probably be 50% or less of the total needed tags, but it's an easy >> start. LB> I think the idea is nice, but maybe keywords should be used (like in LB> defcustom etc) for the implementation? "Keywords" is an OK name for the concept; "tags" is the same thing logically but we should stick with what's normal for Emacs Lisp. What's important is to: 1) build a list of command keywords quickly (using each package's Keywords?) 2) refine the keywords into a simple taxonomy that is not too big nor too small. The first question I have is, how to associate keywords with a function? Should I use the symbol-plist? Then I can walk the namespace, find all functions, and display their tags. That will let me construct a taxonomy proposal. Thanks Ted