Am 28.03.2014 um 11:54 schrieb Ludovic Brenta <[email protected]>:

> 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.
> 

(I don't have a binding for C-c o, but do for C-c C-o,
ada-find-other-file. A version conflict maybe, somewhere?)

FWIW, ff-find-other-file, on first invocation, rejects;
(*Messages*):
Working...
ff-list-replace-env-vars: Wrong type argument: stringp, nil

Debugging (some bytes have been made missing):
red--entering a function:
* ff-list-replace-env-vars((nil))
* ff-find-the-other-file(nil)
* #[(&optional in-other-window ignore-include) 
 [...] 2 ("/Applications/Emacs.app/Contents/Resources/lisp/find-file.elc" . 
6098) "P"] nil)
* ff-find-other-file(nil)
  call-interactively(ff-find-other-file record nil)
  command-execute(ff-find-other-file record)
  execute-extended-command(nil "ff-find-other-file")
  [...]

The list on top will lead to the command error, because it
tries a string-match.

After compiling a.ads, I get a skeleton file that Emacs says needs
to be reread from disk. The argument to ff-list-replace-env-vars
now was ("."), not (nil):

Debugger entered--entering a function:
* ff-list-replace-env-vars(("."))
* ff-find-the-other-file(nil)


> 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.
> 

ff-find-other-file not works as expected.



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

Reply via email to