Thankfully I found the support ticket above. How can you go 6 years without fixing this. I can only create a function if I run Execute Buffer.
You are right, this is long overdue, but we are finally in the process of addressing this issue. We hope to include this fix in the next feature version.
I will create a ticket to make sure you are notified when this is available.