Книга: Learning GNU Emacs, 3rd Edition
3.1.2 Simple Searches
3.1.2 Simple Searches
Emacs also offers a simple, or nonincremental, search. To use a more straightforward search, type C-s Enter. Type the search string, press Enter, and Emacs begins the search. Simply press C-s again to repeat the search. To start a nonincremental search backwards through the file, press C-r Enter. Again, you type the search string and press Enter to begin the search.
The search icon on the toolbar (a magnifying glass over paper) and the Edit ? Search ? String Forward option run the same kind of a search. The prompt is slightly different. C-s Enter prompts you with Search:
in the minibuffer while the toolbar icon and the menu option prompt with Search for string:
. This is a minor difference; the searches are virtually identical otherwise.
Table 3-2 summarizes the simple search commands.
Table 3-2. Simple search commands
Keystrokes | Action |
---|---|
C-s Enter searchstring Enter Edit ? Search ? String Forward |
Start nonincremental search forward. |
C-s | Repeat search forward. |
C-r Enter searchstring Enter Edit ? Search ? String Backwards |
Start nonincremental search backward. |
C-r | Repeat search backward. |
- 3.1 Different Kinds of Searches
- Листинг 10.1. (simpleid.c) Отображение идентификаторов пользователя и группы
- Searches
- The Simplest Windows Program
- A Simple Perl Program
- Searches for a String in Input with grep
- Using a Simple Script to Automate Tasks
- 9.10. Building a Simple File System
- CHAPTER 6 Simple PIC18 Projects
- A Simple ncpmount Example
- A Simple Rule Pattern Example
- Creating partitions and simple volumes