From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#8686: 24.0.50; `re-search-backward' does not respect `search-invisible' Date: Thu, 28 Apr 2016 06:51:51 -0700 (PDT) Message-ID: References: <87k2jiovq2.fsf@gnus.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1461851604 16831 80.91.229.3 (28 Apr 2016 13:53:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 28 Apr 2016 13:53:24 +0000 (UTC) Cc: 8686@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 28 15:53:11 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1avmNR-00029x-VY for geb-bug-gnu-emacs@m.gmane.org; Thu, 28 Apr 2016 15:53:10 +0200 Original-Received: from localhost ([::1]:49312 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avmNR-0003Zr-Cq for geb-bug-gnu-emacs@m.gmane.org; Thu, 28 Apr 2016 09:53:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47050) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avmNN-0003WU-St for bug-gnu-emacs@gnu.org; Thu, 28 Apr 2016 09:53:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1avmNK-0007vU-EG for bug-gnu-emacs@gnu.org; Thu, 28 Apr 2016 09:53:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:39384) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avmNK-0007vQ-BG for bug-gnu-emacs@gnu.org; Thu, 28 Apr 2016 09:53:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1avmNK-0006Ie-6H for bug-gnu-emacs@gnu.org; Thu, 28 Apr 2016 09:53:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 28 Apr 2016 13:53:02 +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: notabug Original-Received: via spool by 8686-submit@debbugs.gnu.org id=B8686.146185152524152 (code B ref 8686); Thu, 28 Apr 2016 13:53:02 +0000 Original-Received: (at 8686) by debbugs.gnu.org; 28 Apr 2016 13:52:05 +0000 Original-Received: from localhost ([127.0.0.1]:51721 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1avmMP-0006HU-Ba for submit@debbugs.gnu.org; Thu, 28 Apr 2016 09:52:05 -0400 Original-Received: from userp1040.oracle.com ([156.151.31.81]:48073) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1avmMN-0006Gz-D9 for 8686@debbugs.gnu.org; Thu, 28 Apr 2016 09:52:03 -0400 Original-Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u3SDpuR2018951 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 28 Apr 2016 13:51:57 GMT Original-Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserv0021.oracle.com (8.13.8/8.13.8) with ESMTP id u3SDpsSB020938 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 28 Apr 2016 13:51:56 GMT Original-Received: from abhmp0005.oracle.com (abhmp0005.oracle.com [141.146.116.11]) by userv0121.oracle.com (8.13.8/8.13.8) with ESMTP id u3SDprNR020449; Thu, 28 Apr 2016 13:51:53 GMT In-Reply-To: <87k2jiovq2.fsf@gnus.org> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6744.5000 (x86)] X-Source-IP: aserv0021.oracle.com [141.146.126.233] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:117062 Archived-At: > > My impression is that `re-search-backward' and `*-forward' do not > > respect `search-invisible'. This makes it difficult if not impossible > > to use them in code to not find matches in hidden text. Why would this > > variable be respected only in the Isearch Lisp code? What am I missing= ? >=20 > Well, `search-invisible' is documented as only applying to interactive > searches: >=20 > ---- >=20 > search-invisible is a variable defined in 'isearch.el'. > Its value is 'open' >=20 > Documentation: > If t incremental search/query-replace can match hidden text. > A nil value means don't match invisible text. >=20 > ---- >=20 > If you want code not to match invisible text, you have to make your code > check for the visibility. Closing. I don't think this is correct. Did you check whether it truly works only for interactive use? It is a general test, used in multiple places now (including `perform-replace').