In latex-mode many macros comes with syntax highlighting. For example:
where the argument of the command/macro
\bibitem (Fisher:99) has
I need to do something similar with my own macros. E.g., if I have the string
I need to fontify the string "argument" so the function (face-at-point) will give me the output
my-custom-face. Plus, I need to do it "temporarily". Indeed I need to do it during the running of my scripts. After that I need to restore the original face.
I'm not interested in the visual effect of the
face. I only need the function (face-at-point) to return
non nil when the pointer is on the argument of my macro.