emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Sébastien Vauban" <wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org>
To: emacs-orgmode-mXXj517/zsQ@public.gmane.org
Subject: French abbreviations for the week days (`lun.', `mar.', `mer.', ...)
Date: Tue, 26 Oct 2010 10:46:06 +0200	[thread overview]
Message-ID: <80sjztnxyp.fsf_-_@mundaneum.com> (raw)
In-Reply-To: 17AE3133-267B-4750-9CA6-CC317B179295@gmail.com

Hi Carsten,

Carsten Dominik wrote:
> On Oct 25, 2010, at 7:30 PM, Matt Lundin wrote:
>> Eric S Fraga <ucecesf-hclig2XLE9Zaa/9Udqfwiw@public.gmane.org> 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


_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode-mXXj517/zsQ@public.gmane.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

  reply	other threads:[~2010-10-26  8:46 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-19 11:48 Repeating timestamps with a finish date Christopher Witte
2010-10-19 11:49 ` Christopher Witte
2010-10-21  1:31 ` Matt Lundin
2010-10-21  6:51   ` timestamp with repeater interval Eric S Fraga
     [not found]     ` <AANLkTimc5msQ188GdAG=394cH2Krvkrk3pZ7SRZOLfYp@mail.gmail.com>
2010-10-24 17:51       ` Eric S Fraga
2010-10-25 17:30         ` Matt Lundin
2010-10-26  5:22           ` Carsten Dominik
2010-10-26  8:46             ` Sébastien Vauban [this message]
2010-12-21  9:24               ` French abbreviations for the week days (`lun.', `mar.', `mer.', ...) Sébastien Vauban
2010-10-26  8:13           ` timestamp with repeater interval Eric S Fraga
  -- strict thread matches above, loose matches on Subject: below --
2010-10-18 16:17 Rainer Thiel
2010-10-18 16:52 ` Greg Troxel
2010-10-18 17:49 ` Eric S Fraga
     [not found]   ` <AANLkTikXibUsDeJ3oECL1enGF7yWscjFxwZYJNZj=dZJ@mail.gmail.com>
2010-10-19  8:13     ` Eric S Fraga
2010-10-19 22:16       ` Rainer Thiel

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.orgmode.org/

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

  git send-email \
    --in-reply-to=80sjztnxyp.fsf_-_@mundaneum.com \
    --to=wxhgmqzgwmuf-genee64ty+gs+fvcfc7uqw@public.gmane.org \
    --cc=emacs-orgmode-mXXj517/zsQ@public.gmane.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/org-mode.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).