From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: how to control isearch for invisible text Date: Sat, 12 Aug 2006 23:34:45 +0200 Message-ID: <85ejvl4ozu.fsf@lola.goethe.zz> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1155418524 17099 80.91.229.2 (12 Aug 2006 21:35:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 12 Aug 2006 21:35:24 +0000 (UTC) Cc: Emacs-Devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Aug 12 23:35:23 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GC18S-0008AJ-60 for ged-emacs-devel@m.gmane.org; Sat, 12 Aug 2006 23:35:12 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GC18R-0007dF-MV for ged-emacs-devel@m.gmane.org; Sat, 12 Aug 2006 17:35:11 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GC18F-0007ct-2L for emacs-devel@gnu.org; Sat, 12 Aug 2006 17:34:59 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GC18E-0007ch-IS for emacs-devel@gnu.org; Sat, 12 Aug 2006 17:34:58 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GC18E-0007ce-Ej for emacs-devel@gnu.org; Sat, 12 Aug 2006 17:34:58 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GC1Df-0001QD-U5 for emacs-devel@gnu.org; Sat, 12 Aug 2006 17:40:36 -0400 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1GC18D-0005Ec-Lz; Sat, 12 Aug 2006 17:34:57 -0400 Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id C3DA21C4D3AD; Sat, 12 Aug 2006 23:34:45 +0200 (CEST) Original-To: "Drew Adams" In-Reply-To: (Drew Adams's message of "Sat, 12 Aug 2006 14:17:25 -0700") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:58336 Archived-At: "Drew Adams" writes: > > There is no implementation difficulty. It is not useful > > to search for text that is not part of the visible buffer > > and can't become so without changing its properties. > > > > You're just repeating here that you don't see the > > usefulness. I ask why it wouldn't be useful, and you answer > > only "It is not useful." > > You are arguing for an invasive change. Please describe a > concrete actual situation you have encountered where it would > actually be useful. Up to now, you just provided generic > handwaving. > > OK, so the argument is, after all, that this is not easy to > implement. We don't implement things because they are easy. We implement them when they are useful. > I have no "actual situation". I was searching through a buffer that > had some invisible text (as an overlay), and I wanted to know if > there was an isearch option for finding it - that's all. You > answered "yes" - thank you. > > I suggested documenting that option better and making it a toggle in > `isearch'. You said it shouldn't be documented better, it shouldn't > be a user option after all, and, a fortiori, it shouldn't be toggled > in `isearch'. What was it that rendered the text invisible in the first place? I know search-invisible since preview-latex has to deal with it (actually, it is just the XEmacs port, since the Emacs port works with display properties instead). The mode was responsible for hiding stuff away, and consequently it was also responsible for letting them show up. Since the behavior of isearch needed fixing, I had to check in the source file, anyway. The details were complicated enough that it would have needed quite long and complicated explanations in the Elisp manual, for material that would get checked in the code, anyway. This is my contact with search-invisible. Now could you please explain what mode rendered parts of your text invisible so that one can get an idea whether a global user option makes sense in connection with that? > I do hope the user option `search-invisible' 1) remains a user > option, 2) gets better documented, as it seems useful, and 3) gets > an associated toggle in `isearch'. Would you please present an actual example where this would be useful? -- David Kastrup, Kriemhildstr. 15, 44793 Bochum