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: Thu, 22 Jan 2009 08:20:05 -0600 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <86tz7ra0dm.fsf@lifelogs.com> References: <867i4pemv5.fsf@lifelogs.com> <86y6x49un4.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 1232633967 22425 80.91.229.12 (22 Jan 2009 14:19:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 22 Jan 2009 14:19:27 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 22 15:20:40 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 1LQ0Q9-0000sZ-DZ for ged-emacs-devel@m.gmane.org; Thu, 22 Jan 2009 15:20:37 +0100 Original-Received: from localhost ([127.0.0.1]:34703 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LQ0Or-0007nJ-Qf for ged-emacs-devel@m.gmane.org; Thu, 22 Jan 2009 09:19:17 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LQ0Ol-0007n3-Jy for emacs-devel@gnu.org; Thu, 22 Jan 2009 09:19:11 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LQ0Oj-0007mO-0Z for emacs-devel@gnu.org; Thu, 22 Jan 2009 09:19:10 -0500 Original-Received: from [199.232.76.173] (port=52070 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LQ0Oi-0007mL-Tg for emacs-devel@gnu.org; Thu, 22 Jan 2009 09:19:08 -0500 Original-Received: from main.gmane.org ([80.91.229.2]:54031 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 1LQ0Oi-0000fc-3x for emacs-devel@gnu.org; Thu, 22 Jan 2009 09:19:08 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LQ0Oa-0005o7-MB for emacs-devel@gnu.org; Thu, 22 Jan 2009 14:19:00 +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 ; Thu, 22 Jan 2009 14:19:00 +0000 Original-Received: from tzz by 38.98.147.130 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 22 Jan 2009 14:19:00 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 37 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:G7zoWz2QDh0/tScDtE/0qkMHddA= 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:108086 Archived-At: On Wed, 21 Jan 2009 23:13:47 +0100 Lennart Borgman wrote: LB> On Wed, Jan 21, 2009 at 11:11 PM, Ted Zlatanov wrote: 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: LB> I meant something like LB> (defun my-move-defun () LB> "docstring" LB> :tags '(move) LB> ...) OK (I misunderstood you originally but it's not worth explaining :) Let's go with (defun my-move-defun () "docstring" :keywords '(move) ...) to be consistent with "Keywords" in the package headers and other places. (defun) would need some small changes at the C level to handle this, but my question was whether I should use the symbol's plist to store the keywords, or a global hashtable for speed or something else. It seems like the symbol plist is the best place logically; are there any issues with walking the whole namespace to find tags? I don't want this to be slow. Ted