>>> "Matthew Rossmiller" <matt@...> seems to think that:
>I've been using semantic for a couple of days and am still smiling...
>
>I'm using cygwin on XP with emacs 21.2.1 (semantic is 2.0pre3, speedbar is
>1.0pre3)
>
>I can semantic-complete-jump and senator-jump and they seem to work pretty
>much as advertised.
>However, when I try to use the jump function on the speedbar I get the
>following message:
>
> find-file-noselect: Wrong type argument: stringp, nil
>
>I get the same thing whether I hit RET or mouse-2
Is this with the 'Analyze' mode for speedbar?
I tried to replicate, and got errors on local variables. Does that
sound right?
Local variables loose their file information so this makes some sense
to me.
Attached see a work-around in semantic-sb.el. Technically, I think I
should probably fix the local-variable reader to attach :filename
information when the tags are unlinked from the buffer.
I've got some hacks there to do the same thing, but I think they need
some work.
I'll hang onto some of these changes till I can get 'em right.
>Senator completions from the speedbar work normally, so it doesn't appear to
>be a general speedbar problem.
>
>Any suggestions?
>
>Also, is anyone working or thinking about working on Ada language support?
>I might be willing to lend a hand in that area if no-one's got it finished
>already ;)
[ ... ]
I know of no-one working on Ada at this time. If there is a grammar
for it, then it should be straight forward to convert it to a wisent
grammar.
There are two options for writing a grammar for Ada. One is to do
what David did for the full-java parser, and parse everything. This
has the best future potential. Alternatively, you could write a lexer
that knows how to skip over code bodies in Ada, thus only writing a
parser for declarative parts of the language.
Eric
*** semantic-sb.el 30 Sep 2005 16:21:06 -0400 1.56
--- semantic-sb.el 30 Mar 2006 07:11:10 -0500
***************
*** 1,6 ****
;;; semantic-sb.el --- Semantic tag display for speedbar
! ;;; Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 Eric M. Ludlam
;; Author: Eric M. Ludlam <zappo@...>
;; Keywords: syntax
--- 1,6 ----
;;; semantic-sb.el --- Semantic tag display for speedbar
! ;;; Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Eric M. Ludlam
;; Author: Eric M. Ludlam <zappo@...>
;; Keywords: syntax
***************
*** 304,310 ****
(dframe-select-attached-frame speedbar-frame)
(run-hooks 'speedbar-before-visiting-tag-hook)
(select-frame f))
! (speedbar-find-file-in-frame file)
(save-excursion (speedbar-stealthy-updates))
(semantic-go-to-tag token parent)
(switch-to-buffer (current-buffer))
--- 304,315 ----
(dframe-select-attached-frame speedbar-frame)
(run-hooks 'speedbar-before-visiting-tag-hook)
(select-frame f))
! (if file
! ;; Sometimes the file may not exist for local variable.
! ;; guess hat this tag is in the current file.
! (speedbar-find-file-in-frame file)
! ;; Jump to the attached frame.
! (dframe-select-attached-frame speedbar-frame))
(save-excursion (speedbar-stealthy-updates))
(semantic-go-to-tag token parent)
(switch-to-buffer (current-buffer))
--
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
|