From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: how to control isearch for invisible text Date: Sat, 12 Aug 2006 20:28:24 -0400 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1155428930 5919 80.91.229.2 (13 Aug 2006 00:28:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 13 Aug 2006 00:28:50 +0000 (UTC) Cc: Emacs-Devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 13 02:28:48 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 1GC3qO-0007mZ-A4 for ged-emacs-devel@m.gmane.org; Sun, 13 Aug 2006 02:28:44 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GC3qN-0004x2-B3 for ged-emacs-devel@m.gmane.org; Sat, 12 Aug 2006 20:28:43 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GC3q7-0004uU-70 for emacs-devel@gnu.org; Sat, 12 Aug 2006 20:28:27 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GC3q5-0004s9-Uo for emacs-devel@gnu.org; Sat, 12 Aug 2006 20:28:26 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GC3q5-0004s1-NI for emacs-devel@gnu.org; Sat, 12 Aug 2006 20:28:25 -0400 Original-Received: from [209.226.175.4] (helo=tomts16-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GC3vY-0004U2-Qm for emacs-devel@gnu.org; Sat, 12 Aug 2006 20:34:05 -0400 Original-Received: from localhost ([70.55.140.231]) by tomts16-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20060813002824.JKNM27612.tomts16-srv.bellnexxia.net@localhost>; Sat, 12 Aug 2006 20:28:24 -0400 Original-Received: by localhost (Postfix, from userid 20848) id 2482482DB; Sat, 12 Aug 2006 20:28:24 -0400 (EDT) Original-To: "Drew Adams" In-Reply-To: (Drew Adams's message of "Sat, 12 Aug 2006 10:09:44 -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:58347 Archived-At: > - documenting `isearch-invisible' in the Emacs manual? > - and the Elisp manual? > - creating a toggle for it? > - having `occur' and `query-replace' respect the option? I think `occur' always makes things visible because it copies text and overlays are not copied along, so the invisibility gets lost. I do think query-replace should be improved to open invisible text just like isearch does. > Also, I'm curious why the treatment of an `invisible' text-property value of > `isearch-open-invisible' is limited to overlays. Why shouldn't the same > behavior hold for the property if applied directly to text (that is, without > an overlay)? I'm not exactly sure why isearch does it like that, but reveal-mode (which does something similar, tho not restricted to isearch) does the same for the reason that it's simpler and that text-properties tend to be used for different circumstances. E.g. overlays are used for things like outline.el or folding.el whereas invisible text-properties seem to be limited to smaller extents which are never-ever meant to be shown to the user. Stefan