How to search back in emacs shell?

I like emacs shells, but for people using the gnome shell (like me) there is confusion. Reverse search does not work the same. Cr searches in the buffer, and not in the command history, and Mr searches in the command history, but when pressed, switches between direct and regular searches twice, i.e. does not search for a previous match in team history. So how to do this?

Change The shell I was looking for when I wrote this is what you get with the Mx shell , I did not know that there are other shells in emacs. See https://plus.google.com/112537550357635435516/posts/Wgpk2mH6hQh

+7
source share
2 answers

Type Mr, find something, and then press Cr to repeat the same search in the command history.

+10
source

Press Mr , then write something, then press Cr as many times as necessary.

+3
source