If your proposed syntax is to add the statement "_AUTO_;" everywhere, that's not so very different from adding a call to to your do_me() sub everywhere in the first place. Replace "do_me()" with your sub named "_AUTO_()" and then the intent is even clearer, with no syntax change needed.
The only difference is if you're existing the autoaction block to be a complicated set of statements or a call to "do_me(with,many,arguments)", which I agree becomes a bit more annoying to replicate everywhere.
On Thu Jul 11 12:03:06 2019, chrispitude@gmail.com wrote:
Show quoted text> Another more self-documenting syntax (which I think I prefer now)
> would be to substitute the autoaction for a magic keyword, *if* it
> exists (which maintains compatibility if it doesn't):
>
> <autoaction: {do_me(); 1;}>
> word1: m{\w+} {do_me_instead(); 1;}
> word2: m{\w+} {do_me_first(); _AUTO_; 1;}
> word3: m{\w+} {_AUTO_; do_me_last(); 1;}