From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Paulo J. Matos" Newsgroups: gmane.emacs.help Subject: Re: Are abbrevs for this? Date: Thu, 11 Jun 2009 12:42:38 +0100 Message-ID: <11b141710906110442x6d62839er5e3fe84fb916d2ff@mail.gmail.com> References: <183b9113-69f1-45a2-8bec-a3fbdae5e92f@d38g2000prn.googlegroups.com> <21f4fcb3-2935-4034-8508-9d1dcc128487@m19g2000yqk.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1244720675 31545 80.91.229.12 (11 Jun 2009 11:44:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 11 Jun 2009 11:44:35 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: TomSW Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jun 11 13:44:33 2009 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 1MEihs-0003OO-Uw for geh-help-gnu-emacs@m.gmane.org; Thu, 11 Jun 2009 13:44:33 +0200 Original-Received: from localhost ([127.0.0.1]:48016 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MEihs-00066U-73 for geh-help-gnu-emacs@m.gmane.org; Thu, 11 Jun 2009 07:44:32 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MEigU-0005Ok-Be for help-gnu-emacs@gnu.org; Thu, 11 Jun 2009 07:43:06 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MEigP-0005H0-Df for help-gnu-emacs@gnu.org; Thu, 11 Jun 2009 07:43:05 -0400 Original-Received: from [199.232.76.173] (port=34497 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MEigN-0005Ge-LE for help-gnu-emacs@gnu.org; Thu, 11 Jun 2009 07:43:00 -0400 Original-Received: from mail-bw0-f209.google.com ([209.85.218.209]:38960) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MEigN-0005eA-8N for help-gnu-emacs@gnu.org; Thu, 11 Jun 2009 07:42:59 -0400 Original-Received: by bwz5 with SMTP id 5so1389967bwz.42 for ; Thu, 11 Jun 2009 04:42:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=Dyg2ClQ71YE8jMkoDrycWXX75h4d20/YZulZLNi3KZY=; b=CbcZTR9PLF7LfZ0xrMhp3gmOT3ec0qY9Z/B8GecxG33RdzcaUTa2JKcI5O4Y3nGfYm JnI2/m7+SNvS9PAGFsWApNNjSWCNxEMvklMkUfoL0nh2aDr8XirKgZzY7I9rvkTCtzAy lZb2XZ1YFexb4JXMd9xKwtV/MORfgv+REx7mM= 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:content-transfer-encoding; b=G0VO8veDBLZvPbGepuV3/T4g5ht9lzvKNOeGd+d/FUKF78BUhLDXCTvDGEJT8Wy5wR W9GfdRs444YN+7+0wMwPKv04rNe8KqYaxey0u7F74XPtYFiG8YDX4t/0rZ0OsZOy4aKV OArJIfxCe89ubDCq7FtEeNpK2V6UOGrWwHWYs= Original-Received: by 10.103.226.20 with SMTP id d20mr575553mur.104.1244720578075; Thu, 11 Jun 2009 04:42:58 -0700 (PDT) In-Reply-To: <21f4fcb3-2935-4034-8508-9d1dcc128487@m19g2000yqk.googlegroups.com> X-detected-operating-system: by monty-python.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:65159 Archived-At: On Thu, Jun 11, 2009 at 8:53 AM, TomSW wrote: > On Jun 11, 1:53=C2=A0am, Xah Lee wrote: >> On Jun 10, 6:53 am, "Paulo J. Matos" wrote: >> >> > Hi all, >> >> > I am developing =C2=A0a new major mode for a new specification languag= e >> > which uses a lot of unicode symbols but it also has an ascii notation. >> > Like some scheme modes convert the lambda keyword into the greek >> > lambda letter, I have a table of keywords that would like them to be >> > changed into unicode symbols. > > If the scheme modes are anything like pretty-haskell, they don't > actually convert the text, they use font-lock to disguise "lambda" as > the greek letter - the source code itself doesn't change. > That's the approach I need... >> > Can I use abbrevs for this? > > Yes, if you want to replace the ascii notation with the unicode > symbols in the source code. If that is the case then the notation > sounds more like a set of conventional abbreviations than a part of > the language, in which case it would be nice to permit users to > customise the abbreviations; if in fact the ascii notation is part of > the language then the font-lock approach might work. > Can you ref any example doing that? Would the haskell-mode be the thing to look at? Cheers, Paulo Matos > regards, > Tom SW > --=20 Paulo Jorge Matos - pocmatos at gmail.com http://www.pmatos.net