I'd like to insert (programmatically) some text right after the point (without moving it). I came up with this:
(save-excursion (insert "my text"))
It seems to work. Is it a good way to do what I want? E.g., are there situations where this could break? (Other than those where insert would break anyway, like read-only buffers.) Is it different from what would more experienced Elisp hackers do?
Yes, that is the most idiomatic way of inserting text after point that I know of. save-excursion is very resilient to changes in the buffer, so it is the preferred way to do destructive editing. The only place you're likely to run into issues is where you would have issues with insert itself, such as buffers where some text is read-only.
insertis the way to go.