Hmmm, it looks like no-one answered your email. I apologize.
It is unclear to me what is going on with the stack. That message is
emitted if (semantic-active-p) is false. You can run it in any buffer
like this:
M-: (semantic-active-p) RET
It could be some piece of the build-process failed to get the
wisent-java code to load. Rebuilding the autoloads file might be a
reasonable first step.
Eric
>>> Surendra Singhi <efuzzyone@...> seems to think that:
>Hello,
> When I try to use semantic with java-mode(cc-mode 5.30.10 not JDE) on XEmacs
>I get the error with the backtrace (given below). In particular when I try to
>do "senator-minor-mode".
>I am using XEmacs 21.4.13 and cedet 1.0pre2.
>
>How can I set the buffer for parsing? In c-mode, I in fact don't need to do
>anything and the senator starts up automatically.
>
>Any help on this is appreciated. Thanks in advance.
>
>
>Debugger entered--Lisp error: (error "Buffer temp.java was not set up for parsing")
> signal(error ("Buffer temp.java was not set up for parsing"))
> cerror("Buffer %s was not set up for parsing" "temp.java")
> apply(cerror "Buffer %s was not set up for parsing" "temp.java")
> error("Buffer %s was not set up for parsing" "temp.java")
> (progn (setq senator-minor-mode nil) (error "Buffer %s was not set up for parsing" (buffer-name)))
> (if (not (and ... ...)) (progn (setq senator-minor-mode nil) (error "Buffer %s was not set up for parsing" ...)) (if (featurep ...) (easy-menu-add senator-minor-menu senator-mode-map)) (semantic-make-local-hook (quote semantic-after-toplevel-cache-change-hook)) (add-hook (quote semantic-after-toplevel-cache-change-hook) (quote senator-completion-cache-flush-fcn) nil t) (semantic-make-local-hook (quote semantic-after-partial-cache-change-hook)) (add-hook (quote semantic-after-partial-cache-change-hook) (quote senator-completion-cache-flush-fcn) nil t))
> (if senator-minor-mode (if (not ...) (progn ... ...) (if ... ...) (semantic-make-local-hook ...) (add-hook ... ... nil t) (semantic-make-local-hook ...) (add-hook ... ... nil t)) (if (featurep ...) (easy-menu-remove senator-minor-menu)) (remove-hook (quote semantic-after-toplevel-cache-change-hook) (quote senator-completion-cache-flush-fcn) t) (remove-hook (quote semantic-after-partial-cache-change-hook) (quote senator-completion-cache-flush-fcn) t) (setq senator-isearch-semantic-mode nil))
> senator-minor-mode-setup()
> (lambda (&optional arg) "Toggle senator minor mode.\nWith prefix argument ARG, turn on if positive, otherwise off. The\nminor mode can be turned on only if semantic feature is available and\nthe current buffer was set up for parsing. Return non-nil if the\nminor mode is enabled.\n\n\\{senator-mode-map}" (interactive (list ...)) (setq senator-minor-mode (if arg ... ...)) (senator-minor-mode-setup) (run-hooks (quote senator-minor-mode-hook)) (if (interactive-p) (message "Senator minor mode %sabled" ...)) (senator-mode-line-update) senator-minor-mode)(1)
> call-interactively(senator-minor-mode)
> command-execute(senator-minor-mode t)
> execute-extended-command(nil)
> call-interactively(execute-extended-command)
>
--
Eric Ludlam: zappo@..., eric@...
Home: http://www.ludlam.net Siege: http://www.siege-engine.com
Emacs: http://cedet.sourceforge.net GNU: http://www.gnu.org
|