TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy

TEAM-ADA@LISTSERV.ACM.ORG

Options: Use Classic View

Use Monospaced Font
Show Text Part by Default
Condense Mail Headers

Topic: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Sender: "Team Ada: Ada Advocacy Issues (83 & 95)" <[log in to unmask]>
From: Matthew Heaney <[log in to unmask]>
Date: Sat, 23 Jan 1999 19:35:15 -0800
In-Reply-To: Daniel Wengelin's message of "Sat, 16 Jan 1999 16:45:06 +0100"
Reply-To: Matthew Heaney <[log in to unmask]>
Parts/Attachments: text/plain (26 lines)
Daniel Wengelin <[log in to unmask]> writes:

> I have downloaded Emacs 20.2.1 and emacs-ada-mode 2.23.
>
> I am having problems with the Xref function. When I try to Goto Declaration of
> something, I often get the message "file C doesn't exist". It appears as if it
> only runs into trouble when the file the declaration is in has been prefixed
> with a full path by gnatf. I even get the feeling that the C in the above statement
> is the disk, as in C: (I edited the .xrb file and found that I could set it to W or anything)

I find that by changing the regex to include a colon, it successully
parses the dir/filename string preceeded by a diskname and colon.

(re-search-backward "^\\(%%\\|--\\) \\([a-zA-Z0-9\\:\\._/\\-]+\\)"
                                                 ^^^

(You have to escape the colon with a pair of backslashes.  I'm not sure
why, since Info is telling me a colon is not a metacharacter.)

Take a peek in the xref file.  Are the filenames always preceeded by a
(capital letter) diskname and colon?  If so, then the following regex
will work too:

(re-search-backward "^\\(%%\\|--\\) \\([A-Z]:[a-zA-Z0-9\\._/\\-]+\\)"
                                       ^^^^^^

ATOM RSS1 RSS2