From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Hansen Newsgroups: gmane.emacs.help Subject: Re: elisp q: what functions do I need to *visually* replace string foo with bar Date: Wed, 07 Feb 2007 19:43:47 +0100 Organization: disorganized Message-ID: <87abzpdd0c.fsf@localhorst.mine.nu> References: <1170864058.926740.61920@a75g2000cwd.googlegroups.com> <1170869644.562266.161910@m58g2000cwm.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1170874436 3972 80.91.229.12 (7 Feb 2007 18:53:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 7 Feb 2007 18:53:56 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Feb 07 19:53:53 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HErvU-00012Q-6F for geh-help-gnu-emacs@m.gmane.org; Wed, 07 Feb 2007 19:53:52 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HErvT-0001x0-Po for geh-help-gnu-emacs@m.gmane.org; Wed, 07 Feb 2007 13:53:51 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HErvJ-0001wu-06 for help-gnu-emacs@gnu.org; Wed, 07 Feb 2007 13:53:41 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HErvG-0001wi-I5 for help-gnu-emacs@gnu.org; Wed, 07 Feb 2007 13:53:39 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HErvG-0001wf-DW for help-gnu-emacs@gnu.org; Wed, 07 Feb 2007 13:53:38 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1HErvF-00014N-TD for help-gnu-emacs@gnu.org; Wed, 07 Feb 2007 13:53:38 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HErv8-0005b9-2A for help-gnu-emacs@gnu.org; Wed, 07 Feb 2007 19:53:30 +0100 Original-Received: from e178002091.adsl.alicedsl.de ([85.178.2.91]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 07 Feb 2007 19:53:30 +0100 Original-Received: from david.hansen by e178002091.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 07 Feb 2007 19:53:30 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: help-gnu-emacs@gnu.org Original-Lines: 19 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: e178002091.adsl.alicedsl.de Mail-Copies-To: nobody User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.93 (gnu/linux) Cancel-Lock: sha1:qQ7zSjBu7Cv7la8SBY4/f6kANcA= X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:40944 Archived-At: On 7 Feb 2007 09:34:04 -0800 rgb wrote: > Perhaps someone else has an example of putting properties onto > text under font-lock control.... > I don't have one handy. Maybe this can be extended (but not sure): http://www.emacswiki.org/cgi-bin/wiki/PrettyLambda using overlays or text-properties may be a bit complicated as you have to remove them if the text changes (though it might be hard to edit this invisible text). If the OP wants a simple solution I'd suggest using the "invisible face" method (i would prefer something like darkgrey on black). David