On 24 Jul 2014, at 19:47, WAROQUIERS Philippe 
<[email protected]> wrote:

> (note that the above 2 blocking problems mean that nice
> features of the new ada-mode are not looked at: users are all
> almost directly abandoning the new ada-mode once the performance
> and no indentation while typing problems are encountered).

That’s a huge mode marketing problem indeed: first impression
means lack of familiar behavior. To cope with this, I wonder if
the mode could have some special backwards-looking function
that does the right thing, and simply at that, and is electrically
bound to ENTER?
  It would remember the current point (marked * below), and then
look backwards for something that's reliably expanded (marked ^).
Then, it could add a good skeleton after the saved point.

   procedure Type_ahead (A : T) is ENTER
                                  *
(SAVE *)
(MOVE-BACKWARDS-TO ^)

   procedure Type_ahead (A : T) is ENTER
                       ^

(INS-SKEL-AFTER *)

   procedure Type_ahead (A : T)
   is
   begin
   end Type_before_you_structure;

This should fix the first impression problem and let users
type in the usual fashion. 

In the long run, if the parser is reasonably well informed
about what could be type “now”, then it might show a menu
like many other IDEs. This guide should make editing programs
a lot more intuitive (in this guided sense).

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

Reply via email to