unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Kenichi Handa <handa@m17n.org>
Cc: emacs-devel@gnu.org
Subject: Re: per-buffer language environments
Date: Mon, 13 Dec 2010 13:47:31 +0200	[thread overview]
Message-ID: <838vztj3n0.fsf@gnu.org> (raw)
In-Reply-To: <tl7oc8q14yv.fsf@m17n.org>

> From: Kenichi Handa <handa@m17n.org>
> Cc: eliz@gnu.org, emacs-devel@gnu.org
> Date: Mon, 13 Dec 2010 16:56:08 +0900
> 
> In article <20101212.072550.527160732.wl@gnu.org>, Werner LEMBERG <wl@gnu.org> writes:
> > > But font selection is just one part of the language environment.  Are
> > > there any other aspects of the language environment that would make
> > > sense to have on per-buffer basis?
> 
> > For CJK language environments, I'm not aware of other aspects, but
> > probably Ken'ichi-san knows more.
> 
> * Which input method to turn on by C-\.
> 
> * Which coding system to use on writing when the current
>   buffer contains a character that can't be encoded by
>   buffer-file-coding-system.
> 
> * Which coding systems have higher priority when inserting a
>   file in the current buffer.

I could understand how the font selection and the default input method
are related to the language, but what do encodings have to do with
that?  The preferred encoding is generally an attribute of a locale,
not of a language.  The fact that we mix them is because Emacs had
language environments before it had locale environments.

It's high time to make the distinction, IMO.  The language environment
should be derived from the language(s) of the text we are editing, and
is internal to Emacs, in the sense that it is defined by internal
Emacs logic for its purposes.  The locale environment is derived from
the environment outside Emacs, and expresses the preferences of the
outside world.

> * The locale of the program invoked by shell-command-on-region.

This is _definitely_ not related to the language.  It may be the case
that to force an external program DTRT for a certain language, you
need to set some LC_* variable in the environment of that program, but
that's an implementation detail, IMO.




  parent reply	other threads:[~2010-12-13 11:47 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-11 15:25 per-buffer language environments Werner LEMBERG
2010-12-11 19:00 ` Eli Zaretskii
2010-12-12  6:25   ` Werner LEMBERG
2010-12-13  7:56     ` Kenichi Handa
2010-12-13  9:27       ` Werner LEMBERG
2010-12-13 10:59         ` Kenichi Handa
2010-12-13 12:15           ` Werner LEMBERG
2010-12-13 11:47       ` Eli Zaretskii [this message]
2010-12-14 11:38         ` Stephen J. Turnbull
2010-12-14 15:14           ` Eli Zaretskii
2010-12-15  4:51             ` Stephen J. Turnbull
2010-12-15  6:47               ` Eli Zaretskii
2010-12-15  7:45                 ` Werner LEMBERG
2010-12-16 21:10                 ` Stephen J. Turnbull
2010-12-17 11:51                   ` Eli Zaretskii
2010-12-18  6:29                     ` Werner LEMBERG
2010-12-18  9:30                     ` Stephen J. Turnbull
2010-12-21 18:39                       ` Eli Zaretskii
2010-12-21 21:16                       ` Werner LEMBERG
2010-12-22  6:52                         ` Stephen J. Turnbull
2010-12-22  7:42                           ` Werner LEMBERG
2010-12-17  0:51                 ` Kenichi Handa
2010-12-17  2:48                   ` Stephen J. Turnbull
2010-12-17 11:05                   ` Eli Zaretskii
2010-12-18 17:03       ` Per Starbäck
2010-12-19 13:54         ` Stefan Monnier
2010-12-19 21:05           ` Dimitri Fontaine

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=838vztj3n0.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=handa@m17n.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).