When I search in the text, I type C-s, then type the word, then type C-s again and again, the cursor go forward to next locations of found words. The problem is, once I go to next word, I could not edit the search word in the mini buffer at the button, if I press Backspace, it goes to the previous found word in the text, but not deleting the last letter in the search word at the bottom. How can I get back to edit the word when doing the search?
Emacs also offers a simple, or nonincremental, search. To use a more straightforward search, type C-s RETURN or select Search from the Search menu. Type the search string, press RETURN, and Emacs begins the search. Simply press C-s again to repeat the search.
The principal search command in Emacs is incremental: it begins searching as soon as you type the first character of the search string. As you type in the search string, Emacs shows you where the string (as you have typed it so far) would be found.
To search backwards, use C-r ( isearch-backward ) instead of C-s to start the search. A backward search finds matches that end before the starting point, just as a forward search finds matches that begin after it.
The Emacs search command is different from the search commands of most editors, in that it is "incremental". This means that the search happens while you type in the string to search for. The command to initiate a search is C-s for forward search, and C-r for reverse search.
You can use M-e
at any time during Isearch to edit the search string. When done editing, just resume searching (e.g., with C-s
).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With