Thank you for your reply.
If (semantic-fetch-tags) works, does it mean that semantic is
properly activated for the buffer?
I add (add-hook 'clojure-mode-hook 'wisent-clojure-default-setup) to
set it up, which seems to work.
(cons 'clojure-mode 'wisent-clojure-default-setup))
Nonetheless the speedbar does not display anything for my buffer. Can
it be that I have some junk in my generated tags or that they are
On Sun, Nov 25, 2012 at 9:25 PM, Eric M. Ludlam <eric@...> wrote:
> On 11/21/2012 09:18 AM, kototama kototama wrote:
>> I have package/variable/function tags generation working for Clojure
>> (here https://github.com/kototama/clojure-semantic).
>> However when I call M-x speedbar it doesn't display the functions
>> defined in the Clojure file. (semantic-fetch-tags) works fine, as well
>> as semantic-complete-jump.
>> I looked at the other language implementations but I can't find
>> exactly what is missing to get the speedbar working.
>> Can somebody indicate me what I should implement?
> With the version of Semantic in Emacs, and in CEDET/bzr, new language
> support needs to be referenced from: semantic-new-buffer-setup-functions,
> perhaps like this:
> (add-to-list 'semantic-new-buffer-setup-functions
> (cons 'clojure-mode 'wisent-clojure-default-setup))
> and that will force semantic to initialize in that buffer.
> Once that setup is done, speedbar should know to use the tags for that
> You should also look in lisp/cedet/semantic/bovine/el.el for the Emacs lisp
> version. The parser is completely different, but you will see a bunch of
> setup calls, like this one:
> (defvar-mode-local emacs-lisp-mode semantic-symbol->name-assoc-list
> (type . "Types")
> (variable . "Variables")
> (function . "Defuns")
> (include . "Requires")
> (package . "Provides")
> Some you might want to make special for clojure, others perhaps not.
> Good Luck