emacs-devel
[Top][All Lists]
Advanced

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

Re: L10N & LC variables


From: Jean-Christophe Helary
Subject: Re: L10N & LC variables
Date: Sat, 27 May 2017 09:34:06 +0900

> On May 27, 2017, at 3:42, Paul Eggert <address@hidden> wrote:
> 
> On 05/26/2017 07:41 AM, Jean-Christophe Helary wrote:
>> 2005-04-14  YAMAMOTO Mitsuharu<address@hidden>
>> 
>>      * international/mule-cmds.el (set-locale-environment): On Mac OS,
>>      use preferences AppleLocale and AppleLanguages, and variable
>>      mac-system-locale for default locale.  On Mac OS Classic, use
>>      mac-system-coding-system for default coding systems.
>> But there is no further references to mac-system-locale in the other 
>> changelogs
> 
> That code was removed here:
> 
> http://git.savannah.gnu.org/cgit/emacs.git/commit/?id=9e2a2647758db83b490e2993aa31cd4607305a82
> 
> in a commit dated 2008-07-27 that removed support for Carbon. From what you 
> say, that part of the 2008 change is making life for macOS users more 
> difficult,

Interesting. It looks like the whole macOS preference settings acquisition code 
was taken from Emacs in that commit, including a lisp function written in C: 
mac-get-preference. That was quite a radical commit...

> Presumably there is a non-Carbon way to do the equivalent of the old code, 
> and if you or some other macOS expert would write it, that would remove this 
> minor glitch in the default Emacs configuration on macOS.

(shell-command "defaults read -g AppleLocale") seems to do the job well, 
although it may not be considered super elegant.

(side note: le Elisp Reference index does not seem to have an entry for 
"shell-command" although "read-shell-command" that is also defined in simple.el 
is there.)

Jean-Christophe 


reply via email to

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