emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* executing org-table TBLFM form changes (resets) language settings
@ 2018-01-25 13:30 Rainer Stengele
  2018-01-25 19:27 ` Nick Dokos
  0 siblings, 1 reply; 9+ messages in thread
From: Rainer Stengele @ 2018-01-25 13:30 UTC (permalink / raw)
  To: emacs-orgmode

All,

My current-language-environment is "German".
Having an Org table with a TBLFM attached:

| IM Startzeit          | IM Endezeit           | Stunden | delta(x,16) | Anm. |
|-----------------------+-----------------------+---------+-------------+------|
| [2018-01-22 Mo 19:30] | [2018-01-23 Di 14:30] |   19.00 |        3.00 |      |
|                       |                       |         |             |      |
#+TBLFM: $3=24*(date(<$2>)-date(<$1>)); %.2f::$4=$3-16.0; %.2f

entering a new timestamp correctly inserts German dayname abbrevs: ("Do", German for "Thu", English):

| IM Startzeit          | IM Endezeit           | Stunden | delta(x,16) | Anm. |
|-----------------------+-----------------------+---------+-------------+------|
| [2018-01-22 Mo 19:30] | [2018-01-23 Di 14:30] |   19.00 |        3.00 |      |
| [2018-01-25 Do 14:19] |                       |         |             |      |
#+TBLFM: $3=24*(date(<$2>)-date(<$1>)); %.2f::$4=$3-16.0; %.2f

Executing the TBLFM line with C-c C-c changes (resets) the language environment to English.

Now inserting a timestamp inserts "Thu" instead of "Do", that is it uses the English day name abbrevs:

| IM Startzeit          | IM Endezeit           |      Stunden |  delta(x,16) | Anm. |
|-----------------------+-----------------------+--------------+--------------+------|
| [2018-01-22 Mo 19:30] | [2018-01-23 Di 14:30] |        19.00 |         3.00 |      |
| [2018-01-25 Thu 14:21]|                       |              |              |      |
#+TBLFM: $3=24*(date(<$2>)-date(<$1>)); %.2f::$4=$3-16.0; %.2f

Believe me it took me some time to find out what action in Emacs changes the whole lang environment.

Is that a bug or is there a language setting in the TBLFM form?

Thanks for any hint.

Regards,
Rainer

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2018-03-05 14:39 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-25 13:30 executing org-table TBLFM form changes (resets) language settings Rainer Stengele
2018-01-25 19:27 ` Nick Dokos
2018-01-26  9:46   ` Rainer Stengele
2018-01-29  7:49     ` Rainer Stengele
2018-01-30 19:45       ` Rainer Stengele
2018-01-30 21:07         ` Nicolas Goaziou
2018-01-31  9:45           ` Rainer Stengele
2018-01-31 11:08             ` Nicolas Goaziou
2018-03-05 14:39               ` Rainer Stengele

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).