Stephen Leake <[email protected]> writes: > Georg Bauhaus <[email protected]> writes: > >>> Am 02.06.2015 um 13:11 schrieb Georg Bauhaus <[email protected]>: >>> >>> When I wanted Emacs (24.5.1; mode version 5.1.8) to make me a body >>> of a task, (C-c C-b), >> >> Ah, C-c C-e works better. > > Hmm. I'd rather it complained that ";" is not a recognized skeleton. But > good enough. > >> Still C-c C-b has partial documentation >> that suggests it could be used here, indirectly at >> (defvar ada-goto-declaration-start > > That's a stretch; the doc string for ada-make-subprogram-body clearly > says "subprogram". You have to read the code to see > ada-goto-declaration-start; that's cheating :). > > I think the best solution is to have ada-make-subprogram-body throw an > error if it's not on a _subprogram_ spec, and recommend C-x C-e in the > error message. > > Eventually we should obsolete ada-make-subprogram-body in favor of the > skeleton. But I'm still kind of attached to it; it was one of my > earliest Emacs hacks :).
but ada-goto-declaration-start also fails in the full task body, so that needs to be fixed, which may fix ada-make-subprogram-body (which will then have to be renamed :). -- -- Stephe _______________________________________________ Emacs-ada-mode mailing list [email protected] http://host114.hostmonster.com/mailman/listinfo/emacs-ada-mode_stephe-leake.org
