How would I be able to mark a specific occurrence of a searched phrase? In other words, I can use incremental search to search for a phrase, but would like to be able to mark that phrase once I found it. I don't believe this is already implemented into emacs but would be simple to do if I was able to retrieve the location of the searched word in elisp.
Below, you can see that highlighted is the result of searching for the word "buffer." In pink, is the occurrence the cursor is currently on. I would like to edit this word directly. Currently, this can only be done by stopping search, which causes the cursor to position itself at the beginning of "buffer", and then I would need to use ctrl-space to set mark and move forward a word to mark "buffer". This is relatively simple to do for a word, but tedious if I searched for a phrase (which needs to be edited) such as "is for notes" in this example.
RET
during search, the search will quit with the point at that last location. Then proceed with highlighting as you would do.RET
).