From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: tags for functions Date: Wed, 28 Jan 2009 01:36:03 +0100 Message-ID: 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> <87hc3kfgb8.fsf@jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1233102983 5551 80.91.229.12 (28 Jan 2009 00:36:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 28 Jan 2009 00:36:23 +0000 (UTC) Cc: Ted Zlatanov , emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 28 01:37:36 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 1LRyQt-0006oP-L3 for ged-emacs-devel@m.gmane.org; Wed, 28 Jan 2009 01:37:32 +0100 Original-Received: from localhost ([127.0.0.1]:55410 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LRyPb-0000qF-GH for ged-emacs-devel@m.gmane.org; Tue, 27 Jan 2009 19:36:11 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LRyPX-0000pz-3b for emacs-devel@gnu.org; Tue, 27 Jan 2009 19:36:07 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LRyPW-0000pl-Jm for emacs-devel@gnu.org; Tue, 27 Jan 2009 19:36:06 -0500 Original-Received: from [199.232.76.173] (port=51703 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LRyPW-0000pi-Cm for emacs-devel@gnu.org; Tue, 27 Jan 2009 19:36:06 -0500 Original-Received: from fg-out-1718.google.com ([72.14.220.155]:62137) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LRyPV-0000Ag-UP for emacs-devel@gnu.org; Tue, 27 Jan 2009 19:36:06 -0500 Original-Received: by fg-out-1718.google.com with SMTP id e12so347367fga.30 for ; Tue, 27 Jan 2009 16:36:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=do0l6/txhnDJ29s0ofzvRxwgIrc6T0QDgEa/gO+10Uw=; b=PVztpXw+NGvK2/f+9Np0lABogjfQut53mEH1+k+GKZtkfZqCFKSBjCMihm059QpNke nwn2rBSUb1yu5jyhWRSXsGIjEQEHaXFsL6ZwaiDOPry2R+ZgX3JqXCn5BOwYLLp6xTna z/G/mlJFx4S5EsMsIO6inzbM9cuC217ixdfaU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=GmA7UDh7ImyKKL9CrdUq5YUZE6R4QtjU0tLcsYYGLpnwtU/AiZ/RU6F8Dbu62oW2uM 6iOvPQ88lPoJIH4hmpR84bSFn+lqICRimUredno2NRxG19TDE/v/hZsJhqqDRHuWiSBW W5+hyM7ZTmhXunBhhOs40KoJWxYduPOaiwPHw= Original-Received: by 10.86.59.18 with SMTP id h18mr1203713fga.5.1233102963441; Tue, 27 Jan 2009 16:36:03 -0800 (PST) In-Reply-To: <87hc3kfgb8.fsf@jurta.org> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:108316 Archived-At: On Wed, Jan 28, 2009 at 1:02 AM, Juri Linkov wrote: >> 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")) 8.4 seconds (evaled) on my pc. Maybe :keywords is better?