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: utf8 char display in buffer Date: Tue, 09 Jun 2009 08:03:57 -0500 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1244554977 26269 80.91.229.12 (9 Jun 2009 13:42:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 9 Jun 2009 13:42:57 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 09 15:42:55 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 1ME1bL-00070T-2F for geh-help-gnu-emacs@m.gmane.org; Tue, 09 Jun 2009 15:42:55 +0200 Original-Received: from localhost ([127.0.0.1]:48433 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ME1bK-0003nw-Gt for geh-help-gnu-emacs@m.gmane.org; Tue, 09 Jun 2009 09:42:54 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!newsfeed.news2me.com!nx01.iad01.newshosting.com!newshosting.com!216.196.98.140.MISMATCH!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!backlog2.nntp.dca.giganews.com!nntp.sysmatrix.net!news.sysmatrix.net.POSTED!not-for-mail Original-NNTP-Posting-Date: Tue, 09 Jun 2009 08:03:24 -0500 User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) Original-Newsgroups: gnu.emacs.help In-Reply-To: Original-Lines: 61 X-Usenet-Provider: http://www.giganews.com Original-NNTP-Posting-Host: 12.73.133.71 Original-X-Trace: sv3-V1MvOlVm8UtVxu9rP6aFYt/fKNlCx2z2Tc971ChnYnHLVEuaBdx15T1Sdk6J4Kdg296Nuh0HnATcb6r!fHCzs+0N+xWCU2p4n83jY4q+OhjzYiDGBdjtQXohKVYhQEDhoAJQv7ayR2k1OheL/1Rkc/sfCfqx!TriVFz/taqezS6UImMmuAuSUBvpPYw== 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 X-Original-Bytes: 3091 Original-Xref: news.stanford.edu gnu.emacs.help:169858 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:65089 Archived-At: ken wrote: > On 06/08/2009 04:43 PM B. T. Raven wrote: >> ken wrote: >>> Hey, group, >>> >>> I already use a few utf8 characters in emacs (and in web pages), but >>> recently needed to use a couple more. One is an 'a' with a horizontal >>> line above it, the other an 'i' with a horizontal line above it. How do I >>> input these into a buffer? >>> >>> >>> tia, >>> ken >>> >> C-x ret C-\ latin-4-postfix >> >> then a,e,i,o,u followed by hyphen generate macroned vowels >> >> If you don't want all these then you could just put something like this >> in .emacs >> >> (global-set-key "\C-ca" (lambda () (interactive) (insert ?ā ))) >> (global-set-key "\C-ci" (lambda () (interactive) (insert ?ī ))) >> >> assuming you have these C-c combos free. >> >> Ed > > Fantastic! But... when I save and close the buffer and then open it up > again, in place of the beautiful and correct characters, there are > little boxes. After you see then correctly in the buffer do: C-x ret c utf-8 then C-x C-s Now next time you load that file it should appear correctly. ā and ī are not in iso-8859-1 and so you must use a more comprehensive coding system. > > I tried using ‘C-x C-m c utf-8 RET’ prior to 'C-x C-f filename'... but > no joy. Same no-go with 'C-x C-m c mule-utf-8 RET'. > > The fact that these non-English characters display properly in the > buffer initially tells me that I have the requisite fonts installed. So > what little connection is emacs not making (and how do I tell it to make > that connection)? If you use utf-8 a lot you can put ;; -*- coding: utf-8[;] -*- into the first line of the file. I don't know whether that sem in brackets is needed or not. > > Thanks, all. > >