emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: set-language-environment


From: Peter Dyballa
Subject: Re: set-language-environment
Date: Fri, 4 Aug 2006 14:07:33 +0200


Am 04.08.2006 um 13:10 schrieb Kenichi Handa:

Emacs is in German language environment and the default
coding system is set to iso-8859-15.

Definitely not in my copy of GNU Emacs 22.0.50:

In GNU Emacs 22.0.50.1 (powerpc-apple-darwin8.7.0, X toolkit, Xaw3d scroll bars)
of 2006-08-03 on Latsche
X server distributor `The XFree86 Project, Inc', version 11.0.40400000
configured using `configure '--without-carbon' '--with-x' '--without- sound' '--without-pop' '--with-xpm' '--with-jpeg' '--with-tiff' '-- with-gif' '--with-png' '--enable-locallisppath=/Library/Application Support/Emacs/calendar22:/Library/Application Support/Emacs/preview:/ Library/Application Support/Emacs/auctex/images:/Library/Application Support/Emacs/auctex:/Library/Application Support/Emacs' 'CFLAGS=- ggdb -pipe -fPIC -mcpu=7450 -fast -mtune=7450 -mpim-altivec -ftree- vectorize -fomit-frame-pointer -foptimize-register-move -fcprop- registers -frename-registers -freorder-blocks -fpeephole -fno- crossjumping' 'CPPFLAGS=-no-cpp-precomp -I/usr/include/openssl -I/usr/ local/include -I/sw/include' 'LDFLAGS=-dead_strip -L/usr/X11R6/lib -L/ usr/local/lib -L/sw/lib/ncurses -L/sw/lib''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: de_DE.UTF-8
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: de_DE.UTF-8
  locale-coding-system: utf-8
  default-enable-multibyte-characters: t

Major mode: Fundamental

Minor modes in effect:
  TeX-PDF-mode: t
  shell-dirtrack-mode: t
  display-time-mode: t
  desktop-save-mode: t
  tooltip-mode: t
  tool-bar-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Having in .emacs

        (set-language-environment       'German)

*scratch*, *Messages*, *mail*, dired buffers ... have a modeline starting with

        -1:

which does not stand for ISO 8859-15. '0' stands stands for ISO 8859-15. And relying on LC_CTYPE or LANG, as usual, I get utf-8 encoded buffers, just as I wish and prefer.


When I first used this statement I thought that GNU Emacs would set a few things 'right,' and prefer German man pages, too, or messages/ tool tips/comand output/holidays/calendar would come in German. It took a long time for me to understand that this particular statement was resetting what I had prepared with shell environment variables.

Could be set-language-environment is an obsolete function now that GNU Emacs understands LC_ALL or LANG ...

--
Greetings

  Pete

Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us. -- Bill Watterson, in his comic strip Calvin and Hobbes







reply via email to

[Prev in Thread] Current Thread [Next in Thread]