GNU bug report logs - #8686
24.0.50; `re-search-backward' does not respect `search-invisible'

Previous Next

Package: emacs;

Reported by: "Drew Adams" <drew.adams <at> oracle.com>

Date: Tue, 17 May 2011 22:10:03 UTC

Severity: wishlist

Tags: notabug

Found in version 24.0.50

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #23 received at 8686 <at> debbugs.gnu.org (full text, mbox):

From: Lennart Borgman <lennart.borgman <at> gmail.com>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: Stefan Monnier <monnier <at> iro.umontreal.ca>, 8686 <at> debbugs.gnu.org
Subject: Re: bug#8686: 24.0.50;
	`re-search-backward' does not respect `search-invisible'
Date: Wed, 18 May 2011 11:57:23 +0200
On Wed, May 18, 2011 at 4:18 AM, Drew Adams <drew.adams <at> oracle.com> wrote:
>> > 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.
>
> Yes, but why not have this built into the search functions themselves, just as
> is done for isearch?  That was the point/suggestion.

Which also was the point of my suggestions...




This bug report was last modified 9 years and 24 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.