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: Tue, 17 May 2011 17:38:43 -0700 Message-ID: <8820C074BD1742AB9E87538C601A885D@us.oracle.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1305679213 24937 80.91.229.12 (18 May 2011 00:40:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 18 May 2011 00:40:13 +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 02:40:09 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 1QMUo4-0003Zc-VZ for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 May 2011 02:40:09 +0200 Original-Received: from localhost ([::1]:53306 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QMUo4-0004DE-9J for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 May 2011 20:40:08 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:51251) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QMUo1-0004Br-2u for bug-gnu-emacs@gnu.org; Tue, 17 May 2011 20:40:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QMUo0-00034G-18 for bug-gnu-emacs@gnu.org; Tue, 17 May 2011 20:40:04 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:50066) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QMUnz-00033z-UE for bug-gnu-emacs@gnu.org; Tue, 17 May 2011 20:40:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QMUnz-0006VC-75; Tue, 17 May 2011 20:40:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Drew Adams" 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 00:40: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: Original-Received: via spool by 8686-submit@debbugs.gnu.org id=B8686.130567914524928 (code B ref 8686); Wed, 18 May 2011 00:40:02 +0000 Original-Received: (at 8686) by debbugs.gnu.org; 18 May 2011 00:39:05 +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 1QMUn3-0006U1-77 for submit@debbugs.gnu.org; Tue, 17 May 2011 20:39:05 -0400 Original-Received: from rcsinet10.oracle.com ([148.87.113.121]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QMUn0-0006TX-I0 for 8686@debbugs.gnu.org; Tue, 17 May 2011 20:39:03 -0400 Original-Received: from rtcsinet21.oracle.com (rtcsinet21.oracle.com [66.248.204.29]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id p4I0cshC005342 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 18 May 2011 00:38:56 GMT Original-Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by rtcsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id p4I0cr5A020254 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 18 May 2011 00:38:54 GMT Original-Received: from abhmt020.oracle.com (abhmt020.oracle.com [141.146.116.29]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id p4I0clTk001813; Tue, 17 May 2011 19:38:47 -0500 Original-Received: from dradamslap1 (/10.159.53.11) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 17 May 2011 17:38:46 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: AcwU71hqugtCHFn2SpuTKbDYtD7rqwAAwdcQ X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6090 X-Source-IP: rtcsinet21.oracle.com [66.248.204.29] X-CT-RefId: str=0001.0A090204.4DD31520.00A8:SCFSTAT5015188,ss=1,fgs=0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 17 May 2011 20:40:03 -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:46533 Archived-At: > > My impression is that `re-search-backward' and `*-forward' do not > > respect `search-invisible'. > > These are low-level C functions, whereas search-invisible is > implemented on top in Elisp and is a Customization variable > rather than a variable for use by Elisp code. Well, yes. In a sense that is precisely what this bug report is about. There should be a simple way in Lisp to direct the search functions to ignore or see hidden text. It should be enough to bind some variable for the relevant context/duration. And BTW, there is already Lisp code that binds `search-invisible' - in isearch.el itself! It is just as kosher for other Lisp code to act similarly. If lazy highlighting can bind it for its own purposes, so can other code that uses or adapts search functions. Also BTW, the variable is named `search-invisible', not `isearch-invisible' (unlike, e.g., `isearch-open-invisible'). Presumably it is not only for incremental search, or even interactive search. Question: What is the simplest way, from Lisp, to get the "low-level C" search functions to optionally respect/ignore hidden text? Should Lisp programmers be required to reproduce the entire invisibility-respecting scaffolding created in isearch.el (or equivalent)? How about having a single, standard infrastructure provided by Emacs?