emacs-orgmode
[Top][All Lists]
Advanced

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

[Orgmode] French abbreviations for the week days (`lun.', `mar.', `mer.'


From: Sébastien Vauban
Subject: [Orgmode] French abbreviations for the week days (`lun.', `mar.', `mer.', ...)
Date: Tue, 26 Oct 2010 10:46:06 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (windows-nt)

Hi Carsten,

Carsten Dominik wrote:
> On Oct 25, 2010, at 7:30 PM, Matt Lundin wrote:
>> Eric S Fraga <address@hidden> writes:
>>> On Sun, 24 Oct 2010 17:11:34 +0200, Rainer Thiel wrote:
>>>>
>>>> * TODO Class 10:00am-12:00am
>>>> <%%(org-diary-class 10 18 2010 2 12 2011 3)>
>>>
>>> What is wrong (if you can call it that) is that the actual argument list
>>> to the org-diary-class function depends on the settings of a couple of
>>> variables: calendar-date-style and/or european-calendar-style.
>
> I have been wondering for many years: What was Edward M. Reingold thinking
> when he made this horrible decision. I mean, local dependencies when parsing
> plain text dates - I guess there is no way around it. But in a function
> call? Sequence of arguments? What?????
>
>>> As I have the former set to 'iso, in my case
>>> I need to specify dates in the Y M D order:
>>>
>>> * TODO Class 10:00am-12:00am
>>> <%%(org-diary-class 2010 10 18 2011 2 12 3)>

In the same arena, I've noticed -- since I am on a Windows computer with
French locales, that I now have Frenchized abbreviations for the dates, in the
timestamps and in the agenda.

For example:

--8<---------------cut here---------------start------------->8---
   CLOCK: [2010-10-26 mar. 09:14]--[2010-10-26 mar. 10:15] =>  1:01
--8<---------------cut here---------------end--------------->8---

where `mar.' represents `Tue' (mardi, Tuesday).

Though, I must admit that the use of French abbreviations for the *week days*
is not always done: at some point in time, Org reverts to using English week
days abbreviations. But I still don't understand when, what's the cut-off
reason for the change in behavior.

Can you help, please?

My params are:

--8<---------------cut here---------------start------------->8---
In GNU Emacs 23.1.50.1 (i386-mingw-nt5.1.2600)
 of 2009-10-14 on LENNART-69DE564 (patched)
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4) --cflags -Ic:/g/include'

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US
  value of $XMODIFIERS: nil
  locale-coding-system: cp1252
  default enable-multibyte-characters: t

Major mode: Org
--8<---------------cut here---------------end--------------->8---

and, for the sake of completeness, here is the value of two variables which
could be of interest:

#+begin_src emacs-lisp
(describe-variable 'calendar-date-style)
#+end_src

#+results:
#+begin_example
calendar-date-style is a variable defined in `calendar.el'.
Its value is iso

Documentation:
Your preferred style for writing dates.
The options are:
`american' - month/day/year
`european' - day/month/year
`iso'      - year/month/day
This affects how dates written in your diary are interpreted.
It also affects date display, as well as those calendar and diary
functions that take a date as an argument, e.g. `diary-date', by
changing the order in which the arguments are interpreted.

Setting this variable directly does not take effect (if the
calendar package is already loaded).  Rather, use either
M-x customize or the function `calendar-set-date-style'.

You can customize this variable.

This variable was introduced, or its default value was changed, in
version 23.1 of Emacs.
#+end_example

and:

#+begin_src emacs-lisp
(describe-variable 'european-calendar-style)
#+end_src

#+results:
#+begin_example
european-calendar-style is a variable defined in `calendar.el'.
Its value is nil

  This variable is obsolete since 23.1;
  use `calendar-date-style' instead.

Documentation:
Non-nil means use the European style of dates in the diary and display.
In this case, a date like 1/2/1990 would be interpreted as
February 1, 1990.  See `diary-european-date-forms' for the
default European diary date styles.

Setting this variable directly does not take effect (if the
calendar package is already loaded).  Rather, use either
M-x customize or the function `calendar-set-date-style'.

You can customize this variable.
#+end_example

Best regards,
  Seb

-- 
Sébastien Vauban




reply via email to

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