[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#8686: 24.0.50; `re-search-backward' does not respect `search-invisib

From: Stefan Monnier
Subject: bug#8686: 24.0.50; `re-search-backward' does not respect `search-invisible'
Date: Tue, 17 May 2011 21:51:30 -0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

> Question: What is the simplest way, from Lisp, to get the "low-level
> C" search functions to optionally respect/ignore hidden text?

Something like

  (while (and (re-search-forward blabla)
              (invisible-p (point)))

The same idea can be used with syntax-ppss to skip over matches that are
inside comments/strings.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]