I recently set up the visual-regexp-steroids package to try it out. The one major sticking point so far has been that when I terminate the search by typing a cursor motion command (typically M-< or C-a), the cursor is just left where it is; I have to type the command a second time to make it work.

Looking at the source for both visual-regexp and visual-regexp-steroids, I don't find any configurable option for this behavior. I also don't find any relevant issues filed against either package's Github page.

Is there any way to get the usual Emacs exit-search behavior when using visual-regexp or visual-regexp-steroids?


Here's what I tried just now:

I deleted ~/.emacs, started Emacs, and opened a file. I evaluated (require 'package) and (require 'visual-regexp-steroids), then typed M-xvr/isearch-forward and typed some keys that matched some text present in the file. Then when I pressed M-<, the search stopped, but the cursor was left at the end of the matching text.

  • Works fine for me. Have you tried with emacs -q?
    – nega
    Commented May 13, 2019 at 18:40
  • @nega I tried that and just added more details to the questions describing what happened.
    – Sean
    Commented May 14, 2019 at 18:08
  • Sorry, I misread your original question. The behavior I'm getting is exactly as you describe. I'd send this as a feature request to the authors.
    – nega
    Commented May 15, 2019 at 15:08


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.