From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: tags for functions Date: Wed, 28 Jan 2009 02:02:51 +0200 Organization: JURTA Message-ID: <87hc3kfgb8.fsf@jurta.org> References: <867i4pemv5.fsf@lifelogs.com> <86y6x49un4.fsf@lifelogs.com> <86ljt39ysz.fsf@lifelogs.com> <87tz7oxodr.fsf@jurta.org> <86mydd3kzv.fsf@lifelogs.com> <87pri9k64b.fsf@jurta.org> <86ljsw252p.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 1233101114 417 80.91.229.12 (28 Jan 2009 00:05:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 28 Jan 2009 00:05:14 +0000 (UTC) Cc: emacs-devel@gnu.org To: Ted Zlatanov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 28 01:06:27 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 1LRxw0-0006aM-2Z for ged-emacs-devel@m.gmane.org; Wed, 28 Jan 2009 01:05:55 +0100 Original-Received: from localhost ([127.0.0.1]:36430 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LRxuh-0003Op-Pg for ged-emacs-devel@m.gmane.org; Tue, 27 Jan 2009 19:04:15 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LRxud-0003OI-7b for emacs-devel@gnu.org; Tue, 27 Jan 2009 19:04:11 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LRxua-0003Nk-RQ for emacs-devel@gnu.org; Tue, 27 Jan 2009 19:04:10 -0500 Original-Received: from [199.232.76.173] (port=55857 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LRxua-0003Nh-M5 for emacs-devel@gnu.org; Tue, 27 Jan 2009 19:04:08 -0500 Original-Received: from relay02.kiev.sovam.com ([62.64.120.197]:53696) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LRxuZ-0005OX-Pp for emacs-devel@gnu.org; Tue, 27 Jan 2009 19:04:08 -0500 Original-Received: from [83.170.232.243] (helo=smtp.svitonline.com) by relay02.kiev.sovam.com with esmtp (Exim 4.69) (envelope-from ) id 1LRxuW-000DaI-2W; Wed, 28 Jan 2009 02:04:04 +0200 In-Reply-To: <86ljsw252p.fsf@lifelogs.com> (Ted Zlatanov's message of "Tue, 27 Jan 2009 08:31:42 -0600") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (x86_64-pc-linux-gnu) X-Scanner-Signature: 1e897a521fdb5eac39b1f944f187ca57 X-DrWeb-checked: yes X-detected-operating-system: by monty-python.gnu.org: FreeBSD 6.x (1) 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:108312 Archived-At: > JL> finder.el scans source files for keywords in comments. So we don't need > JL> finder.el with tags in doc strings because it's easy to collect tags from > JL> the `documentation' property of all function symbols. > > You've lost me. Can you please explain with code or point to relevant > code? Something like (defun my-move-defun () "Docstring. @keywords keyword1, keyword2") (defun my-copy-defun () "Docstring. @keywords keyword3, keyword4") (let (keywordlist docstr) (mapatoms (lambda (symbol) (when (and (functionp symbol) (setq docstr (documentation symbol t)) (string-match "@keywords \\(.*\\)" docstr)) (add-to-list 'keywordlist (cons symbol (split-string (match-string 1 docstr) "\\s-*,\\s-*" t)))))) keywordlist) => '((my-copy-defun "keyword3" "keyword4") (my-move-defun "keyword1" "keyword2")) -- Juri Linkov http://www.jurta.org/emacs/