Skip to main content
added 429 characters in body
Source Link
phils
  • 53.1k
  • 3
  • 84
  • 127

Your question is unclear.

If I copy this exact same string and invoke isearch-forward-regexp Emacs does not find the dates.

What do you mean by that?

Isearch doesn't automatically search for the last string you copied.

If you mean (and this is my best guess) that you typed C-M-sC-y then that's doing a regexp-quote on the copied text to search for it verbatim (but you would see this in the modified regexp shown in the minibuffer).

If it's not that, then tell us specifically what you are doing (give exact keystrokes), what you are expecting, and what's actually happening?


Edit: The comments confirm that the above guess was accurate, so the solution is as follows...

Rather than doing this: C-M-sC-y (which results in the pasted text being passed through regexp-quote)

Instead, do this: C-M-sM-eC-yRET

I.e.: Call isearch-edit-string to edit the search pattern in the minibuffer and then yank the copied text.

Your question is unclear.

If I copy this exact same string and invoke isearch-forward-regexp Emacs does not find the dates.

What do you mean by that?

Isearch doesn't automatically search for the last string you copied.

If you mean (and this is my best guess) that you typed C-M-sC-y then that's doing a regexp-quote on the copied text to search for it verbatim (but you would see this in the modified regexp shown in the minibuffer).

If it's not that, then tell us specifically what you are doing (give exact keystrokes), what you are expecting, and what's actually happening?

Your question is unclear.

If I copy this exact same string and invoke isearch-forward-regexp Emacs does not find the dates.

What do you mean by that?

Isearch doesn't automatically search for the last string you copied.

If you mean (and this is my best guess) that you typed C-M-sC-y then that's doing a regexp-quote on the copied text to search for it verbatim (but you would see this in the modified regexp shown in the minibuffer).

If it's not that, then tell us specifically what you are doing (give exact keystrokes), what you are expecting, and what's actually happening?


Edit: The comments confirm that the above guess was accurate, so the solution is as follows...

Rather than doing this: C-M-sC-y (which results in the pasted text being passed through regexp-quote)

Instead, do this: C-M-sM-eC-yRET

I.e.: Call isearch-edit-string to edit the search pattern in the minibuffer and then yank the copied text.

Source Link
phils
  • 53.1k
  • 3
  • 84
  • 127

Your question is unclear.

If I copy this exact same string and invoke isearch-forward-regexp Emacs does not find the dates.

What do you mean by that?

Isearch doesn't automatically search for the last string you copied.

If you mean (and this is my best guess) that you typed C-M-sC-y then that's doing a regexp-quote on the copied text to search for it verbatim (but you would see this in the modified regexp shown in the minibuffer).

If it's not that, then tell us specifically what you are doing (give exact keystrokes), what you are expecting, and what's actually happening?