From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.help Subject: Re: Getting minor mode to read word Date: Thu, 18 Nov 2010 15:11:40 +0100 Message-ID: References: <86wroalpht.fsf@pm18pc01.europe.root.pri> <86sjyylo61.fsf@pm18pc01.europe.root.pri> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: dough.gmane.org 1290089564 3338 80.91.229.12 (18 Nov 2010 14:12:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 18 Nov 2010 14:12:44 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "Paulo J. Matos" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 18 15:12:40 2010 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.69) (envelope-from ) id 1PJ5E8-0001lJ-MP for geh-help-gnu-emacs@m.gmane.org; Thu, 18 Nov 2010 15:12:40 +0100 Original-Received: from localhost ([127.0.0.1]:53974 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PJ5E8-0006Ic-1P for geh-help-gnu-emacs@m.gmane.org; Thu, 18 Nov 2010 09:12:40 -0500 Original-Received: from [140.186.70.92] (port=54726 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PJ5DY-0006HK-E7 for help-gnu-emacs@gnu.org; Thu, 18 Nov 2010 09:12:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PJ5DX-0003L0-GR for help-gnu-emacs@gnu.org; Thu, 18 Nov 2010 09:12:04 -0500 Original-Received: from mail-ew0-f41.google.com ([209.85.215.41]:54442) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PJ5DX-0003Kl-BD for help-gnu-emacs@gnu.org; Thu, 18 Nov 2010 09:12:03 -0500 Original-Received: by ewy25 with SMTP id 25so1918426ewy.0 for ; Thu, 18 Nov 2010 06:12:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type; bh=tEI0pM6hTh2H18M5ozxgbWYAI5C1ECGauFDhViAa+RQ=; b=oJvDjosBzghFvc2wK7jL+Ldx+ZbvrIE68TrmnNV/jIeg8U7IA9XqSPt3c408sK3fc4 /q/3zt0Dh/KsPnmeccEqvL4r4gzdCTzyn71ZLE1O6sdWbrz7faY3oNvjsZM/2y7aDKKT 31wmKc5rNGRWs/G+FMpcOxpoKi8t33Zd9NX34= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=mgO/qCqMomIpgKB6owP0mS0su1XCPpgIyDFIH8P4dFNhvjbB/jRNCUzz+4qHUlBQtA JcAbdT8bWC0YwXfM6MLdWwKjWpN2hCH155q7tlDdPW/vb4Nj7ssXMiqDsB5O4x6IaAmS Zr9SES/RA4glksE++VtASyMeHPkv3QRjQO6yE= Original-Received: by 10.213.34.142 with SMTP id l14mr2293983ebd.84.1290089522289; Thu, 18 Nov 2010 06:12:02 -0800 (PST) Original-Received: by 10.213.22.135 with HTTP; Thu, 18 Nov 2010 06:11:40 -0800 (PST) In-Reply-To: <86sjyylo61.fsf@pm18pc01.europe.root.pri> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:75402 Archived-At: On Thu, Nov 18, 2010 at 3:08 PM, Paulo J. Matos wrote: > Lennart Borgman writes: > >> >> Look at font lock keywords. >> > > Thanks for the tip. I thought that font lock was only used for > highlighting of text previously. From > http://www.gnu.org/software/emacs/manual/html_node/elisp/Search_002dbased-Fontification.html#Search_002dbased-Fontification > > it seems that I might be able to attach a function to transform the > matched text. Forgot: There is some code for things similar to this in for example mlinks.el in nXhtml.