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: Mon, 14 Aug 2006 08:14:48 -0400 Message-ID: References: <854pwh3y55.fsf@lola.goethe.zz> <85d5b3yenv.fsf@lola.goethe.zz> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1155557716 24571 80.91.229.2 (14 Aug 2006 12:15:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 14 Aug 2006 12:15:16 +0000 (UTC) Cc: rms@gnu.org, drew.adams@oracle.com, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 14 14:15:13 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 1GCbLU-0007Kl-RQ for ged-emacs-devel@m.gmane.org; Mon, 14 Aug 2006 14:15:05 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GCbLU-0006jr-2e for ged-emacs-devel@m.gmane.org; Mon, 14 Aug 2006 08:15:04 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GCbLI-0006jc-PG for emacs-devel@gnu.org; Mon, 14 Aug 2006 08:14:52 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GCbLH-0006jQ-Sk for emacs-devel@gnu.org; Mon, 14 Aug 2006 08:14:52 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GCbLH-0006jN-Nn for emacs-devel@gnu.org; Mon, 14 Aug 2006 08:14:51 -0400 Original-Received: from [209.226.175.97] (helo=tomts40-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GCbR4-0004Xp-8N; Mon, 14 Aug 2006 08:20:50 -0400 Original-Received: from localhost ([70.55.146.213]) by tomts40-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20060814121449.VLER24981.tomts40-srv.bellnexxia.net@localhost>; Mon, 14 Aug 2006 08:14:49 -0400 Original-Received: by localhost (Postfix, from userid 20848) id E35DA826A; Mon, 14 Aug 2006 08:14:48 -0400 (EDT) Original-To: David Kastrup In-Reply-To: <85d5b3yenv.fsf@lola.goethe.zz> (David Kastrup's message of "Mon, 14 Aug 2006 09:12:04 +0200") 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:58377 Archived-At: >> For reveal-mode, we should just provide a "pre-redisplay-hook" run, >> as the name indicates, just before doing redisplay. That would >> allow reveal-mode to do the "show invisible text" even in >> query-replace and this without even changing query-replace's code. > That is a bit heavy-handed for my taste, at least for this purpose. > Such a hook would have to be global, as redisplay is not a > buffer-centric activity, and thus every function with a possible need > would have to register and unregister there, and check the state > across buffers for every redisplay. I doubt it's that hard to implement a proper pre-redisplay-hook which can be set buffer-locally. Stefan