From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "B. T. Raven" Newsgroups: gmane.emacs.help Subject: Re: abbreviations for Unicode Date: Mon, 23 Feb 2009 00:56:10 -0600 Message-ID: <1N2dnTV90r0a1T_UnZ2dnUVZ_u-dnZ2d@sysmatrix.net> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1235374850 8011 80.91.229.12 (23 Feb 2009 07:40:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 23 Feb 2009 07:40:50 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Feb 23 08:42:07 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 1LbVRw-0003Mh-Kb for geh-help-gnu-emacs@m.gmane.org; Mon, 23 Feb 2009 08:42:00 +0100 Original-Received: from localhost ([127.0.0.1]:53479 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LbVQc-0004Qo-4C for geh-help-gnu-emacs@m.gmane.org; Mon, 23 Feb 2009 02:40:38 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news2.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.sysmatrix.net!news.sysmatrix.net.POSTED!not-for-mail Original-NNTP-Posting-Date: Mon, 23 Feb 2009 00:56:07 -0600 User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) Original-Newsgroups: gnu.emacs.help In-Reply-To: Original-Lines: 31 X-Usenet-Provider: http://www.giganews.com Original-NNTP-Posting-Host: 12.73.129.156 Original-X-Trace: sv3-BxT5Pm4mYrQV4xuTvWDHUnFuYp60L0ymGFel3feW+afGWBz7UDA2CWLxSDsKpsotcUkUAWDLFeNP5zq!tIW+CbiSETlrCBH1Ix8sCps+mSAXXA8+9OkN8uked8gV34XFtvSQqT3iSmESLqLuX6bcgtuZB+Tx!UIlkuZlkxvDF8kO5TUCdHIyFoH3+89s= Original-X-Complaints-To: abuse@sysmatrix.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.39 Original-Xref: news.stanford.edu gnu.emacs.help:166969 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:62277 Archived-At: Dale Gerdemann wrote: > I've been editing files with lots of Unicode characters and I thought > I might save time by using abbreviations for certain hard to type > characters (I'm using Mule input methods for the easier stuff). > Everything works okay when I edit the .abbrev_defs file myself, but > the character encoding gets all screwed up when I let Emacs do the > editing. That is, if I use C-x a g to interactively define an > abbreviation, then this will work only for the current session. When I > quit, I'm prompted with the question whether I want to save > the .abbrev_defs file and if I say 'yes', then all the definitions I > have are destroyed. > > I'm using GNU Emacs 22.2.1 on Ubuntu 8.10 with LANG=en_US.UTF-8 > > And btw, I'm mostly very happy with Unicode support in Emacs. My > problem here is really in the category of minor annoyances. But I > would like to fix it. > After you have all the abbrevs set up the way you want them go into the *Abbrevs* buffer and run: C-x ret f utf-8 This should cause ;;-*-coding: emacs-mule;-*- to be prepended to the .abbrev_defs file when you do: M-x write-abbrev-file You can call your abbrevs file something else if you want; .abbrev_defs is the default or you could have many abbrev files if you needed them for some reason. Ed