From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#8686: 24.0.50; `re-search-backward' does not respect `search-invisible' Date: Wed, 18 May 2011 09:13:28 -0300 Message-ID: References: <8820C074BD1742AB9E87538C601A885D@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1305720857 31903 80.91.229.12 (18 May 2011 12:14:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 18 May 2011 12:14:17 +0000 (UTC) Cc: 8686@debbugs.gnu.org To: "Drew Adams" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed May 18 14:14:08 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 1QMfdf-0002Ss-6T for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 May 2011 14:14:07 +0200 Original-Received: from localhost ([::1]:49263 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QMfde-00066S-AH for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 May 2011 08:14:06 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:52972) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QMfdb-00066M-5Y for bug-gnu-emacs@gnu.org; Wed, 18 May 2011 08:14:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QMfda-0004NR-7R for bug-gnu-emacs@gnu.org; Wed, 18 May 2011 08:14:03 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54397) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QMfdZ-0004NL-VC for bug-gnu-emacs@gnu.org; Wed, 18 May 2011 08:14:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QMfdZ-000731-QF; Wed, 18 May 2011 08:14:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier 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 12:14: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.130572081927052 (code B ref 8686); Wed, 18 May 2011 12:14:01 +0000 Original-Received: (at 8686) by debbugs.gnu.org; 18 May 2011 12:13:39 +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 1QMfdC-00072E-FK for submit@debbugs.gnu.org; Wed, 18 May 2011 08:13:39 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QMfdB-000723-FR for 8686@debbugs.gnu.org; Wed, 18 May 2011 08:13:38 -0400 Original-Received: from 213-159-126-200.fibertel.com.ar ([200.126.159.213]:53694 helo=ceviche.home) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1QMfd5-0001lp-U2; Wed, 18 May 2011 08:13:32 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 46ADC66131; Wed, 18 May 2011 09:13:28 -0300 (ART) In-Reply-To: (Drew Adams's message of "Tue, 17 May 2011 19:18:31 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 18 May 2011 08:14:01 -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:46551 Archived-At: >> > 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. Stefan