Questions tagged [search]
Questions about search mechanics inside of Emacs.
319 questions
0 votes
1 answer
120 views
How to search for string with specific initial and final delimiter but not containing a particular substring?
In a very long text, I'd like to search for strings with the following properties: Starts with (let's say) #. Ends with (let's say) @. Does not contain # or @. Does not contain the substring (let's ...
3 votes
2 answers
142 views
How to disable backspace acting as reverse search?
To reproduce, press C-s, fill in a search string which occurs more than once in the rest of the file, then press C-s again. At this point I would expect backspace to delete the last character of the ...
1 vote
1 answer
142 views
TAB character in regular expression Isearch
I can't find TAB characters with the regular expression \t. When I press C-M-s followed by \t, Emacs only finds characters t. I'm working with version 28.2 on macOS Monterey.
2 votes
0 answers
66 views
How can I find identical regions in a buffer?
If I have a file like this foo bar bat hukarz foo bar bat , then I would like to be made aware that there is one region that is identical to another region foo bar bat The reason is that I have have ...
-1 votes
1 answer
40 views
Searching for the nearest space or bracket - can it be more general?
I grep Common Lisp code base and extract usage of the symbol I am interested in analysing. Then I copy it to scratchpad to clean up the grep. I know of sorting lines and removing duplicates, but ...
0 votes
2 answers
222 views
Using a grep like function in lisp
I have a file, and I want to search if a given file has a string. I want to call that function from an elisp function. AFAIK, all the grep family of functions open a new buffer. I only need to know if ...
1 vote
3 answers
358 views
Emacs org-mode: how to create link to a certain search agenda?
In 'Emacs org-mode' i can create links to headings and other things where I want to jump quickly. How can I create a link in 'Emacs org-mode' which opens a certain search agenda? At the moment I have ...
0 votes
0 answers
52 views
Regexp searches that repeatedly cover expressions
I'm just going through an old Latex-text I've written and wanted to use regexp-replace to make any pair of brackets containing at least one other pair of brackets into a \left(.*\right)-expression. ...