With ada-mode 5.0.1:

1. Create a new file, a.ads with the following contents:

package A is
   procedure Aa;
end A;

2. Do ff-find-other-file (C-c o); this creates a nice skeleton for
a.adb.  This body contains a body for procedure Aa.

3. Compile a.adb to get an .ali file.  Ignore the warnings.

4. In a.adb, comment out procedure Aa entirely (M-;).

5. Save a.adb but do not recompile.

6. In a.ads, place point anywhere and hit C-c o again.

emacs enters what looks like an infinite loop; only C-g allows you
to regain control.  The infinite loop is not reproducible if:
- the procedure Aa is deleted entirely, rather than commented out,
  in a.adb;
- the procedure Aa is renamed in a.adb;
- the package body has never been compiled before.

When you hit C-g, you can see that point has moved to the "i" of
the line "-- procedure Aa is", in the buffer for a.adb.

PS. I see that ada-mode uses the emacs bug tracking system which is
essentially the same as the Debian bug tracking system :)  Should I
report this bug there even though GNU emacs still ships by default
with ada-mode 4?

--
Ludovic Brenta.


_______________________________________________
Emacs-ada-mode mailing list
[email protected]
http://host114.hostmonster.com/mailman/listinfo/emacs-ada-mode_stephe-leake.org

Reply via email to