From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Maurizio Vitale Newsgroups: gmane.emacs.help Subject: Re: Are abbrevs for this? Date: Thu, 11 Jun 2009 08:18:50 -0400 Organization: Polymath Solutions, Inc. Message-ID: <873aa7gdzp.fsf@cuma.polymath-solutions.lan> References: <11b141710906100653n5a621140i89de0d50ffac41c1@mail.gmail.com> <874oun7esq.fsf@cuma.polymath-solutions.lan> <11b141710906110443l53adbd6ep7d2e9d0f8d1b5da3@mail.gmail.com> Reply-To: maurizio.vitale@polymath-solutions.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1244723432 7495 80.91.229.12 (11 Jun 2009 12:30:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 11 Jun 2009 12:30:32 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jun 11 14:30:29 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 1MEjQJ-0007qe-RY for geh-help-gnu-emacs@m.gmane.org; Thu, 11 Jun 2009 14:30:28 +0200 Original-Received: from localhost ([127.0.0.1]:51044 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MEjQI-0004c6-Vx for geh-help-gnu-emacs@m.gmane.org; Thu, 11 Jun 2009 08:30:27 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MEjPZ-0004Pw-Mr for help-gnu-emacs@gnu.org; Thu, 11 Jun 2009 08:29:41 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MEjPV-0004Nd-Gh for help-gnu-emacs@gnu.org; Thu, 11 Jun 2009 08:29:41 -0400 Original-Received: from [199.232.76.173] (port=59955 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MEjPV-0004NV-9h for help-gnu-emacs@gnu.org; Thu, 11 Jun 2009 08:29:37 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:36035 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MEjPU-0005t0-Q5 for help-gnu-emacs@gnu.org; Thu, 11 Jun 2009 08:29:37 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1MEjPS-0003zp-Su for help-gnu-emacs@gnu.org; Thu, 11 Jun 2009 12:29:35 +0000 Original-Received: from pool-151-201-55-90.pitt.east.verizon.net ([151.201.55.90]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 11 Jun 2009 12:29:34 +0000 Original-Received: from maurizio.vitale by pool-151-201-55-90.pitt.east.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 11 Jun 2009 12:29:34 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 40 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: pool-151-201-55-90.pitt.east.verizon.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:dGPXGm4kKtwtML9wfqjTe8M+274= X-detected-operating-system: by monty-python.gnu.org: GNU/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:65162 Archived-At: >>>>> "Paulo" == Paulo J Matos writes: Paulo> On Thu, Jun 11, 2009 at 2:13 AM, Maurizio Paulo> Vitale wrote: >>>>>>> "Paulo" == Paulo J Matos writes: >> >>    Paulo> Hi all, I am developing a new major mode for a new   >>  Paulo> specification language which uses a lot of unicode >> symbols    Paulo> but it also has an ascii notation.  Like some >> scheme modes    Paulo> convert the lambda keyword into the greek >> lambda letter, I    Paulo> have a table of keywords that would >> like them to be changed    Paulo> into unicode symbols. >> >>    Paulo> Can I use abbrevs for this? >> >> Possibly, but take a look at Tuareg, a mode for editing Ocaml. >> They do replace keyword with unicode symbols, but they offer the >> capability of rather seamlessly editing the original keyword. Paulo> This is the kind of thing Tom mentioned, right? Yes, although I'm not familiar with the Haskell mode implementation. You know have two modes to get "inspiration" from. I'd really follow this route rather than inserting unicode into the source code: some users may use non-unicode aware editors, at times you may want to use Unix commands (grep, sed, awk) that may not know of unicode, etc... Cheers, Maurizio -- Paulo Jorge Matos - pocmatos at gmail.com Paulo> http://www.pmatos.net -- Maurizio Vitale Polymath Solutions