Just some quick responses, more after the week-end I hope.

On 27.09.13 14:14, Stephen Leake wrote:
> Can you use indent-region after a complete statement? We could add
> ada-indent-statement (I thought I had already). Maybe call that from
> seleton-end-hook? 

That was exactly the plan: get the region of the (syntactically
correct) text that skeleton has inserted and then indent it
(as if someone had marked it and pressed TAB).

> I'm missing something fundamental about skeleton. I don't see any
> "define-key" statements related to skeleton, so I don't know how to
> experiment. How/when is a skeleton invoked? Can you give a small
> tutorial, showing all keystrokes required to create a Hello_World
> procedure?

The (now obsolescent) standard ada-mode.el has a keymap
and uses define-key to bind keys and skeleton names,

...
  ;;  The templates, defined in ada-stmt.el

  (let ((map (make-sparse-keymap)))
    (define-key map "h"    'ada-header)
    (define-key map "\C-a" 'ada-array)
    (define-key map "b"    'ada-exception-block)
    (define-key map "d"    'ada-declare-block)
...

The names on the right are functions actually, that can
be called via M-x in the minibuffer.

For my slightly changed setup, I used M-: for evaluating, say,
(ada-stmt-place-skeleton 'ada-declare-block nil '("Block_Name"))



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

Reply via email to