From mboxrd@z Thu Jan 1 00:00:00 1970 From: "William Henney" Subject: Re: buffer-locale setting of locale for day names in time-stamps Date: Fri, 7 Sep 2007 10:03:59 -0500 Message-ID: <41c818190709070803o709e48ffhebda8bc18f0d753b@mail.gmail.com> References: <41c818190709060839k1b8e8447m7e8e9e514c17a6c6@mail.gmail.com> <87lkbjmy9z.fsf@bzg.ath.cx> <41c818190709061740m617d0a0ax733abee670dd33df@mail.gmail.com> <56d088e087670b1c523197b76df813e4@science.uva.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ITfNL-0002Oq-5p for emacs-orgmode@gnu.org; Fri, 07 Sep 2007 11:04:03 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ITfNK-0002NY-1L for emacs-orgmode@gnu.org; Fri, 07 Sep 2007 11:04:02 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ITfNJ-0002NI-LI for emacs-orgmode@gnu.org; Fri, 07 Sep 2007 11:04:01 -0400 Received: from an-out-0708.google.com ([209.85.132.242]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1ITfNJ-0003Ej-3A for emacs-orgmode@gnu.org; Fri, 07 Sep 2007 11:04:01 -0400 Received: by an-out-0708.google.com with SMTP id c25so69416ana for ; Fri, 07 Sep 2007 08:04:00 -0700 (PDT) In-Reply-To: <56d088e087670b1c523197b76df813e4@science.uva.nl> Content-Disposition: inline List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Carsten Dominik Cc: emacs-orgmode@gnu.org On 9/7/07, Carsten Dominik wrote: > > On Sep 7, 2007, at 2:40, William Henney wrote: > > On 9/6/07, Bastien wrote: > >> "William Henney" writes: > >> > >>> Is there any way to have buffer-local (or file-local) setting of the > >>> locale. > >> > >> What about the #+LANGUAGE option? > >> > > > > Yes, I use this option. However, this value is not respected by the > > time-stamps, which are implemented using format-time-string (a > > built-in emacs function, written in C) > > I believe this has to do with the LANG and LC_TIME environment > variables, > but I don't know exactly what you have to set them to. > OK, I think I now have a working solution. I have tracked it down to the variable system-time-locale. However, this is a global variable, so you have to put (make-variable-buffer-local 'system-time-locale) in your .emacs. Then, you can put something like this at the bottom of an org file: * COMMENT local variables for this file # Local Variables: # system-time-locale: "es_MX.ISO8859-1" # End: which will set the locale for that file only. After editing the local variables, you have to do M-x normal-mode to set them for your current session. Thanks to Bastien and Carsten for your suggestions. Will --=20 Dr William Henney, Centro de Radioastronom=EDa y Astrof=EDsica, Universidad Nacional Aut=F3noma de M=E9xico, Campus Morelia