From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,2beee871357c199d X-Google-Attributes: gid103376,public From: "David W. Glessner" Subject: Re: need editor Date: 1999/09/13 Message-ID: <37DD36DB.8EEE5FD5@collins.rockwell.com>#1/1 X-Deja-AN: 524561948 Content-Transfer-Encoding: 7bit References: <37d005ee.0@10.1.254.4> <37D54437.3D9108C5@res.raytheon.com> <7r67hm$mi2@hobbes.crc.com> <7r77qd$i23$1@nnrp1.deja.com> <37D975A7.9BBA26DC@collins.rockwell.com> <7rilqp$dmf$1@nnrp1.deja.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Rockwell Collins Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 1999-09-13T00:00:00+00:00 List-Id: Emmanuel Briot wrote: > > "David W. Glessner" wrote: > > > Rational's Apex provides an emacs/ada-mode combination with > > similar functionality. It looks like they modified emacs 19.30 > > and an older ada-mode to work somewhat seemlessly with the rest > > of the Apex tools. There are a few quirks, but I find it much, > > much nicer than the standard Apex editor. I especially like > > the "Show Usage" function. > > Could you explain a bit more what the "show usage" function is about ? > It would be interesting to see if we can put it in the official ada-mode > distribution, if it is not already there. > What the FSF ada-mode currently has is a "goto references" function, > to show where an identifier/variable/subprogram is referenced and used > all other your project. Is the "Show usage" function the same kind > of things, or does it show how the function should be used ?? It sounds like Apex's "show usage" is similar to your ada-mode's "goto references", assuming that an identifier comprises at least type names, package names, record components, and enumeration literals. It also handles renaming. For example, in the following snippet, "show usage" for package xyzzy highlights three items: with Xyzzy; -- Xyzzy package Aaa is package X renames Xyzzy; -- Xyzzy A : X.Some_Type; -- X end Aaa; Based on the ada-mode web page, I was under the impression that ada-mode only allowed jumping to the declaration or body of an entity, which is quite limited when compared with a full "goto references". Perhaps the web page needs to be updated? I'll give the latest ada-mode a try. -- David