From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: Todays exercise of sanity (or does "see" really match "not"?) Date: Tue, 22 Mar 2005 13:57:52 +0900 Message-ID: References: <200503211349.j2LDnxX12741@raven.dms.auburn.edu> Reply-To: snogglethorpe@gmail.com, miles@gnu.org NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1111467858 21983 80.91.229.2 (22 Mar 2005 05:04:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 22 Mar 2005 05:04:18 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Mar 22 06:04:18 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DDbYr-0005HA-7H for ged-emacs-devel@m.gmane.org; Tue, 22 Mar 2005 06:04:13 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DDbq5-0001rO-G1 for ged-emacs-devel@m.gmane.org; Tue, 22 Mar 2005 00:22:01 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DDbnB-0000ZJ-Km for emacs-devel@gnu.org; Tue, 22 Mar 2005 00:19:02 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DDbn2-0000Sa-1x for emacs-devel@gnu.org; Tue, 22 Mar 2005 00:18:55 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DDbmx-0000Pk-CU for emacs-devel@gnu.org; Tue, 22 Mar 2005 00:18:47 -0500 Original-Received: from [64.233.184.204] (helo=wproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DDbSi-00029u-CF for emacs-devel@gnu.org; Mon, 21 Mar 2005 23:57:52 -0500 Original-Received: by wproxy.gmail.com with SMTP id 40so452109wri for ; Mon, 21 Mar 2005 20:57:52 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=CUBlXbjErDr7ZNdBc1TDKxuHws7dNwdJ8lXxkkSt4jb9uuuWcGm7e9j+BxwP2N9mWzPbbto5KwsQrdTsmBqG7hev5r+um4f1QhjEWM98M3pFGG2t6i0skmmhb7u4a09FieBmYN9plQf/SCO97FzAJYvx9H/+yOAi32D8J89MaXI= Original-Received: by 10.54.19.20 with SMTP id 20mr2549wrs; Mon, 21 Mar 2005 20:57:52 -0800 (PST) Original-Received: by 10.54.19.70 with HTTP; Mon, 21 Mar 2005 20:57:52 -0800 (PST) Original-To: Drew Adams In-Reply-To: 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 X-MailScanner-To: ged-emacs-devel@m.gmane.org Xref: news.gmane.org gmane.emacs.devel:34942 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:34942 On Mon, 21 Mar 2005 15:20:34 -0800, Drew Adams wrote: > In reply to David's point about preview-latex needing to search and find the > meta-text: I agree that programs need to be able to find meta-text. The > point is to separate such meta-text from the content - or at least be _able_ > to separate/distinguish it. In most modes, at least, Info-search should not > find strings that are in meta-text (if this is not to difficult to fix). How about a text/overlay property that says what text to use for i-searching instead of the underlying text? Then the mode itself (or whoever added the corresponding display/invisible property) could make exactly the right decision -- e.g. David would add the underlying text, but info mode could add the text shown by the display property. Something like: (overlay-put ov 'isearch-text "This is the search text") (overlay-put ov 'display (some-bit-map)) [I assume an implementation of this would be rather inefficient, because the text wouldn't be in the buffer and the regexp search primitives work directly on the buffer-gap data structures -- but I assume these cases are relatively rare, and doesn't the isearch-invisible hack have to deal with similar cases anyway?] -Miles -- Do not taunt Happy Fun Ball.