From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.bugs Subject: bug#8686: 24.0.50; `re-search-backward' does not respect `search-invisible' Date: Wed, 18 May 2011 15:12:04 +0200 Message-ID: References: <8820C074BD1742AB9E87538C601A885D@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: dough.gmane.org 1305724391 20820 80.91.229.12 (18 May 2011 13:13:11 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 18 May 2011 13:13:11 +0000 (UTC) Cc: 8686@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed May 18 15:13:06 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QMgYk-0008IM-8b for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 May 2011 15:13:06 +0200 Original-Received: from localhost ([::1]:40685 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QMgYj-0003et-N6 for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 May 2011 09:13:05 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:58478) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QMgYh-0003en-Kr for bug-gnu-emacs@gnu.org; Wed, 18 May 2011 09:13:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QMgYg-0006ZH-DZ for bug-gnu-emacs@gnu.org; Wed, 18 May 2011 09:13:03 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33141) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QMgYg-0006ZC-C2 for bug-gnu-emacs@gnu.org; Wed, 18 May 2011 09:13:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QMgYg-0008VR-0Y; Wed, 18 May 2011 09:13:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lennart Borgman Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 18 May 2011 13:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8686 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 8686-submit@debbugs.gnu.org id=B8686.130572435332658 (code B ref 8686); Wed, 18 May 2011 13:13:01 +0000 Original-Received: (at 8686) by debbugs.gnu.org; 18 May 2011 13:12:33 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QMgYD-0008Uh-0P for submit@debbugs.gnu.org; Wed, 18 May 2011 09:12:33 -0400 Original-Received: from mail-ey0-f172.google.com ([209.85.215.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QMgYA-0008UP-6I for 8686@debbugs.gnu.org; Wed, 18 May 2011 09:12:30 -0400 Original-Received: by eye13 with SMTP id 13so491405eye.3 for <8686@debbugs.gnu.org>; Wed, 18 May 2011 06:12:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=G+ryZhcrmlVeI9DttSKbQxPzixHeZVkYOrpLdbFrIF0=; b=FGfIYyOU3iREEC/BOLzDdxzpoffGeGgazDSx7Kpu1E55Unu9E7m8ETgVDYUCK38VbL Ch5y82WNLAPaozXsidFHNVlqlR2J6iY9P7+Lp1a9oQRNFGM0mzT4Jt7P/rqL9HLQKwLU eTtAw2rmuKO6UA5GIMyUSGkPegvyEoMRrRqEQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=AseCeH303GwNrtCCNa7WQ7/yRsMrz+X3KJ7DefvBAfahCKXxTQjVDzlvwIFk98KCMV VLg4bGu2gc+9uFobWvtOorQkDUhpIVMSOFb+oN3PIYTG+arledI7d5be0+4axQt2OxoD Q9NBSRu3cupmWnRT3kicETylgQdvKTf86gV84= Original-Received: by 10.213.106.200 with SMTP id y8mr666001ebo.67.1305724344142; Wed, 18 May 2011 06:12:24 -0700 (PDT) Original-Received: by 10.213.7.6 with HTTP; Wed, 18 May 2011 06:12:04 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 18 May 2011 09:13:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:46553 Archived-At: On Wed, May 18, 2011 at 2:13 PM, Stefan Monnier 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? > > Because I'd rather that the low-level functions do one thing and one > thing well. (Of course my suggestion with minor modes was not for the low level functions.)