all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "William Henney" <whenney@gmail.com>
To: Carsten Dominik <dominik@science.uva.nl>
Cc: emacs-orgmode@gnu.org
Subject: Re: buffer-locale setting of locale for day names in time-stamps
Date: Fri, 7 Sep 2007 10:03:59 -0500	[thread overview]
Message-ID: <41c818190709070803o709e48ffhebda8bc18f0d753b@mail.gmail.com> (raw)
In-Reply-To: <56d088e087670b1c523197b76df813e4@science.uva.nl>

On 9/7/07, Carsten Dominik <dominik@science.uva.nl> wrote:
>
> On Sep 7, 2007, at 2:40, William Henney wrote:

> > On 9/6/07, Bastien <bzg@altern.org> wrote:
> >> "William Henney" <whenney@gmail.com> 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

-- 

  Dr William Henney, Centro de Radioastronomía y Astrofísica,
  Universidad Nacional Autónoma de México, Campus Morelia

      reply	other threads:[~2007-09-07 15:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-06 15:39 buffer-locale setting of locale for day names in time-stamps William Henney
2007-09-06 18:42 ` Bastien
2007-09-07  0:40   ` William Henney
2007-09-07  8:04     ` Carsten Dominik
2007-09-07 15:03       ` William Henney [this message]

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

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

  git send-email \
    --in-reply-to=41c818190709070803o709e48ffhebda8bc18f0d753b@mail.gmail.com \
    --to=whenney@gmail.com \
    --cc=dominik@science.uva.nl \
    --cc=emacs-orgmode@gnu.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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.