From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.help Subject: Re: emacs coding system Date: Sat, 13 Nov 2004 12:28:51 +0100 Message-ID: References: <10pb0p079trkm5c@corp.supernews.com> Reply-To: Reiner Steib NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1100345534 25041 80.91.229.6 (13 Nov 2004 11:32:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 13 Nov 2004 11:32:14 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Nov 13 12:32:05 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CSw8T-0006wl-00 for ; Sat, 13 Nov 2004 12:32:05 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CSwH4-000622-9C for geh-help-gnu-emacs@m.gmane.org; Sat, 13 Nov 2004 06:40:58 -0500 Original-Newsgroups: gnu.emacs.help X-Face: .*T0'iU(sujq_j9\J>-d4fg; N/1++U#U$_5ii6k.=|"-n'?5O:Hyz&wi'-!I~,}7~GgT=0S /&-R5sbkNy5+Xo1y{Tw2KKxi@Xh"g@]Qc|.U<*]WDd)qvGowFDvfU1F]{EDho:7P0@|oOD=Bc{K4?> WP68K[Mx:}=`ZT'6g4'f+g?;`vri2!)xGy}3:=l'(/Cea0l4lo^H5#@/Z3ev Mail-Copies-To: nobody User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:JjfO8D/vkmvW2vraPL0bHtC9IGE= Original-NNTP-Posting-Host: dialin-145-254-250-079.arcor-ip.net Original-X-Trace: news.uni-ulm.de 1100345436 145.254.250.79 (13 Nov 2004 12:30:36 +0100) Original-Lines: 63 X-Authenticated-User: rsteib Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!newsfeed.news2me.com!newsfeed.icl.net!newsfeed00.sul.t-online.de!t-online.de!inka.de!rz.uni-karlsruhe.de!news.uni-ulm.de!marauder.physik.uni-ulm.de!not-for-mail Original-Xref: shelby.stanford.edu gnu.emacs.help:126552 Original-To: help-gnu-emacs@gnu.org 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: main.gmane.org gmane.emacs.help:21946 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:21946 On Sat, Nov 13 2004, Edward Casey wrote: > "Reiner Steib" wrote... [...] >> (set-language-environment "UTF-8") if you use Emacs 21.3 or CVS Emacs. >> Probably you can also use `prefer-coding-system' and friends, see the >> manual for details: >> >> (info "(emacs)Recognize Coding") >> (info "(emacs)Language Environments") [...] > I. > What's the difference between (set-language-environment "UTF-8") and > putting something like form below in .emacs? : > > (custom-set-variables > '(case-fold-search t) > '(current-language-environment "UTF-8") How about reading the manual node that I have posted above? ;-) Both methods are equivalent: ,----[ (info "(emacs)Language Environments") ] | To select a language environment, you can customize the variable | `current-language-environment' or use the command `M-x | set-language-environment'. It makes no difference which buffer is | current when you use this command, because the effects apply globally to | the Emacs session. `---- > '(default-input-method "latin-4-postfix")) [...] > I want to add upper and lower case y with macron to the > \leim\quail\latin-post.el code. [...] The code points are U+0232 and > U+0233 AFAIK, the input methods are not well documented. But it should work like this: --8<---------------cut here---------------start------------->8--- (when (and (load "quail/latin-post" t) ;; side effect: also change the default input method: (setq default-input-method "latin-4-postfix")) (quail-defrule "Y-" (decode-char 'ucs #x0232) "latin-4-postfix") (quail-defrule "y-" (decode-char 'ucs #x0233) "latin-4-postfix")) --8<---------------cut here---------------end--------------->8--- Let's test it: `Y -' ==> Ȳ, and `y -' ==> ȳ. Seem to work for me. BTW: Using the TeX input method, you can get the characters with `\ = Y' and `\ = y'. > but I don't know how to insert these characters into the lisp code. The thread with the subject "Unicode literals" in comp.emacs might also be of interest for you: http://groups.google.com/groups?rnum=1&threadm=m2lld7o3mh.fsf@seki.fr Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/