[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tags for functions

From: Juri Linkov
Subject: Re: tags for functions
Date: Wed, 28 Jan 2009 02:02:51 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (x86_64-pc-linux-gnu)

> 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 ()
@keywords keyword1, keyword2")

(defun my-copy-defun ()
@keywords keyword3, keyword4")

(let (keywordlist docstr)
   (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))))))

=> '((my-copy-defun "keyword3" "keyword4")
     (my-move-defun "keyword1" "keyword2"))

Juri Linkov

reply via email to

[Prev in Thread] Current Thread [Next in Thread]