Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Predicate to filter hits of Isearch and replace commands. Isearch hits that don’t satisfy the predicate will be skipped.
0
votes
Implementing a version of "how-many" function, sensitive to isearch-filter-predicate
To solve the issue of recursively redefining re-search-forward, I thought of creating a copy of the function to use for defining re-search-forward-ifp.
Edit. I rewrote my code like this:
;; I need a c …
0
votes
1
answer
41
views
Implementing a version of "how-many" function, sensitive to isearch-filter-predicate
I want to build a version of the how-many function that is sensitive to isearch-filter-predicate.
To achieve this, I had to first build a version of re-search-forward that obeys isearch-filter-predica …
2
votes
1
answer
178
views
Perform-replace only on text (no comments, no math) in latex-mode?
I need to write some Emacs-Lisp code that uses the perform-replace function, limiting its range of action only on text (ignoring comments, in-line math and math ambients) on LaTeX documents (in latex- …
0
votes
0
answers
39
views
Why don't `occur`, `search-forward*` and `string-match*` respect `isearch-filter-predicate`?
If I consult the definition of isearch-filter-predicate, I find:
Predicate to filter hits of Isearch and replace commands. Isearch hits
that don’t satisfy the predicate will be skipped.
Over the yea …
1
vote
Accepted
How to perform query-replace excluding LaTeX math?
If you don't need to discriminate between in-line mathematics and mathematical environments, you can simply use texmathp. You don't need to install AUCTeX, but you can retrieve the texmathp.el file fr …
0
votes
How to perform query-replace inside mathematical expressions in latex
Here: https://emacs.stackexchange.com/a/80544/15606, I have proposed a solution that should also adapt to this case.
This should address some of the issues highlighted in the comments to JeanPierre's …
0
votes
1
answer
72
views
texmathp in isearch-filter-predicate breaks query-replace's match highlighting
I tried to use texmathp with iserch-filter-predicate to let query-replace function skipping maths in my LaTeX code.
I wrote this code:
(defun skip-math (beg end)
"Return nil if some text BEG to EN …
0
votes
Accepted
texmathp in isearch-filter-predicate breaks query-replace's match highlighting
I found that the texmathp function alters the match-data so I solved wrapping the while loop in my function (modified following Drew's suggestions) with the save-match-data macro:
(defun skip-math (b …
1
vote
How to perform incremental search inside math environments in tex/latex documents
I have written a function to temporarily set the value of isearch-filter-predicate (it works with query-replace* functions too):
;; From AUCTeX, but it works as a standalone too:
(require 'texmathp)
…
2
votes
1
answer
174
views
Add multiple predicates to isearch-filter-predicate
I wrote a set of predicates to filter matches in my ìsearch-* and query-replace* routines. I also wrote a macro to bind the isearch-filter-predicate variable to multiple predicates:
(defmacro with-if …
1
vote
2
answers
55
views
How to create an independent copy of a function's definition?
I want to create a modified copy of re-search-forward and advise this copy to be sensitive to isearch-filter-predicate. I tried:
(defun make-search-sensitive-to-ifpmod-advice (orig-fun &rest args)
" …