Open a scratch buffer, paste the following an evaluate it:
(insert (propertize "hello" 'insert-in-front-hooks (list (lambda (&rest unused) (message "test")))))
Typing characters on either side of the resulting "hello" text won't cause the test message to display. According to the documentation it should, so I assume I'm doing something wrong. What gives? I've also tried
'insert-behind-hook and it doesn't appear to fire either.
Emacs version 24.4.1. Tested with -Q as well.