2

Emacs 26.1, Ido , smex,

Open scratch buffer.

C-s to find text file Here result: enter image description here

C-g

Now I want to find another text: text

Here result: enter image description here

Nice. It's work fine. But now I want to backward in search history. So I need again to search text (in minibuffer): file

How I can do this?

3

You can search backwards with C-r, and you can go backward and forward through search history with M-p and M-n respectively.

  • 1
    You might want to emphasize the last part - it's the answer to the question. I don't think OP is also asking about search direction. – Drew Oct 23 '18 at 18:10
  • When I press "M-p" or "M-n" I get message in "M-p/M-n is underfined". If I input command "previous-history-element" I get another error: "Wrong type argument: number-or-marker-p, nil" – Alexei Oct 24 '18 at 7:45
  • Does the problem persist when you run emacs -q? – DoMiNeLa10 Oct 24 '18 at 8:02
  • Yes. With "emacs -Q" I also get this error. I use Emacs 26.1 on Windows 10 (64 bit) – Alexei Oct 24 '18 at 10:37
  • Are you typing these commands in the minibuffer for isearch? – DoMiNeLa10 Oct 24 '18 at 16:55

Your Answer

By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.