From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: TomSW Newsgroups: gmane.emacs.help Subject: Re: Are abbrevs for this? Date: Thu, 11 Jun 2009 00:53:07 -0700 (PDT) Organization: http://groups.google.com Message-ID: <21f4fcb3-2935-4034-8508-9d1dcc128487@m19g2000yqk.googlegroups.com> References: <183b9113-69f1-45a2-8bec-a3fbdae5e92f@d38g2000prn.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1244710093 894 80.91.229.12 (11 Jun 2009 08:48:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 11 Jun 2009 08:48:13 +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 10:48:11 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 1MEfx8-0005JZ-TS for geh-help-gnu-emacs@m.gmane.org; Thu, 11 Jun 2009 10:48:07 +0200 Original-Received: from localhost ([127.0.0.1]:42651 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MEfx8-0000jc-DC for geh-help-gnu-emacs@m.gmane.org; Thu, 11 Jun 2009 04:48:06 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!news.glorb.com!news2.glorb.com!transit3.readnews.com!news-out.readnews.com!news-xxxfer.readnews.com!postnews.google.com!m19g2000yqk.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help,comp.emacs Original-Lines: 26 Original-NNTP-Posting-Host: 84.193.194.195 Original-X-Trace: posting.google.com 1244706788 22995 127.0.0.1 (11 Jun 2009 07:53:08 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 11 Jun 2009 07:53:08 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: m19g2000yqk.googlegroups.com; posting-host=84.193.194.195; posting-account=gXCEPAoAAACaHNwa63AHlGuSCIcCahgr User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.10) Gecko/2009042523 Ubuntu/9.04 (jaunty) Firefox/3.0.10, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:169918 comp.emacs:98236 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:65153 Archived-At: On Jun 11, 1:53=A0am, Xah Lee wrote: > On Jun 10, 6:53 am, "Paulo J. Matos" wrote: > > > Hi all, > > > I am developing =A0a new major mode for a new specification language > > 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. > > 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. regards, Tom SW