Re: [DRAFT PATCH v3] Decouple LANG= and testing (was: Test failure due to LANG)

2023-04-22 Thread Axel Kielhorn
> Am 23.04.2023 um 03:47 schrieb Ruijie Yu via General discussions about > Org-mode. : > > > Ruijie Yu via "General discussions about Org-mode." > writes: > >> Axel Kielhorn writes: >> >>> With this patch I get: >>> FAILED test-org-clock/clock-drawer-dwim arrayp >>> FAILED

Where can I find the full specification of a timestamp?

2023-04-22 Thread General discussions about Org-mode.
Hello, In the process of trying to fix all non-default-locale-related test failures, I ran into a weird-looking timestamp somewhere around testing/lisp/test-org.el:5969, in test `test-org/deadline': <2021-07-20 -1d> I couldn't find relevant information from the info page on the first try (by

Re: [DRAFT PATCH v3] Decouple LANG= and testing (was: Test failure due to LANG)

2023-04-22 Thread General discussions about Org-mode.
Ruijie Yu via "General discussions about Org-mode." writes: > Axel Kielhorn writes: > >> With this patch I get: >>FAILED test-org-clock/clock-drawer-dwim arrayp >>FAILED test-org-clok/org-clock-timestamps-change arrayp >> >> Axel > > Thanks for testing. Will take a look tomorrow.

Re: [orgweb/zh-CN] [DRAFT PATCH v7] Tentative zh-CN translation

2023-04-22 Thread General discussions about Org-mode.
Ihor Radchenko writes: > Ruijie Yu writes: > >>> May I know why you use comment here and in similar places? This >>> @@comment:...@@ thing is a bit of a hack as it is actually representing >>> inline export snippet to non-existent "comment" export backend. >>> >>> I am not sure why this has

[BUG] RFE: Including src-blocks from different files when tangling the code [9.5.5 (release_9.5.5 @ /usr/share/emacs/28.2/lisp/org/)]

2023-04-22 Thread Garid Z.
I have following Request for Enhancement: Write src-block in separate org-file(s), and when time comes to tangle use all those src-blocks using some sort of reference. In other words, take a look at following an example:

How to disable org-persist in a given file?

2023-04-22 Thread Gustavo Barros
Hi All, this is more of a question really. I moved recently to the new pretest version of Emacs and thus got the 9.6 version of Org. And after that I started to notice some saving by `org-persist' going on, and indeed I have a new associated "~/.cache/org-persist/" directory. However, I do have

Re: Why am I being told to use "straight.el"?

2023-04-22 Thread Colin Baxter
> Max Nikulin writes: > On 22/04/2023 14:51, Colin Baxter wrote: >>> Max Nikulin writes: >> > On 21/04/2023 23:17, Colin Baxter wrote: >> > emacs -Q -l org-agenda Only message and scratch buffers >> present. > C-h e to check messages, but since errors or warnings

3 times a day

2023-04-22 Thread Renato Pontefice
Hi, I’m wondering how (and if it is possible) to have in one statement my 3 shoot a day, like this (that are in three separete statement): ** TODO composto I 4 granuli<2023-04-18 Tue 08:38 +1d> ** TODO composto I 4 granuli<2023-04-18 Tue 16:38 +1d> ** TODO composto I 4 granuli<2023-04-18 Tue

Re: Test failure due to LANG

2023-04-22 Thread Max Nikulin
On 22/04/2023 21:40, Axel Kielhorn wrote: (with-environment-variables (("LC_TIME" "de_DE.UTF-8")) (format-time-string "%A“)) Still results in „Saturday“ when I start emacs from a shell with LANG=C. Changing environment variable while process is running is not enough. There is a dedicated

Re: Why am I being told to use "straight.el"?

2023-04-22 Thread Max Nikulin
On 22/04/2023 14:51, Colin Baxter wrote: Max Nikulin writes: > On 21/04/2023 23:17, Colin Baxter wrote: > emacs -Q -l org-agenda Only message and scratch buffers present. C-h e to check messages, but since errors or warnings buffer does not appear it should be OK. >>

Re: [orgweb/zh-CN] [DRAFT PATCH v7] Tentative zh-CN translation

2023-04-22 Thread Ihor Radchenko
Ruijie Yu writes: >> May I know why you use comment here and in similar places? This >> @@comment:...@@ thing is a bit of a hack as it is actually representing >> inline export snippet to non-existent "comment" export backend. >> >> I am not sure why this has been even added originally. > > I

Re: [DRAFT PATCH v2] Decouple LANG= and testing (was: Test failure due to LANG)

2023-04-22 Thread General discussions about Org-mode.
Axel Kielhorn writes: >> Am 22.04.2023 um 15:01 schrieb Ruijie Yu via General discussions about >> Org-mode. : >> >> >> Ruijie Yu via "General discussions about Org-mode." >> writes: >> >>> Ruijie Yu via "General discussions about Org-mode." >>> writes: >>> Ruijie Yu via "General

Re: [orgweb/zh-CN] [DRAFT PATCH v7] Tentative zh-CN translation

2023-04-22 Thread General discussions about Org-mode.
Ihor Radchenko writes: > Ruijie Yu writes: > >> Anyways, attached at the end of this message are all the commits in >> master..v7. As usual, it is also available on >> https://git.sr.ht/~ruijieyu/orgweb/log/translate/zh-CN--v7. > > Thanks! > >> Subject: [PATCH 04/16] Update preamble files

Re: [DRAFT PATCH v2] Decouple LANG= and testing (was: Test failure due to LANG)

2023-04-22 Thread Axel Kielhorn
> Am 22.04.2023 um 15:01 schrieb Ruijie Yu via General discussions about > Org-mode. : > > > Ruijie Yu via "General discussions about Org-mode." > writes: > >> Ruijie Yu via "General discussions about Org-mode." >> writes: >> >>> Ruijie Yu via "General discussions about Org-mode."

Re: [DRAFT PATCH v2] Decouple LANG= and testing (was: Test failure due to LANG)

2023-04-22 Thread General discussions about Org-mode.
Ruijie Yu writes: > Here is an updated patch (replacing the first iteration). This should > hopefully fix both test failures that Axel found. Once this is > confirmed good, I will look at the test failures of the other languages > to see what I can do. > > [2. text/x-patch; >

Re: Test failure due to LANG

2023-04-22 Thread Axel Kielhorn
> Am 22.04.2023 um 16:21 schrieb Max Nikulin : > > On 22/04/2023 19:35, Ihor Radchenko wrote: >> Axel Kielhorn writes: >>> "* Foo\n:LOGBOOK:\nCLOCK: [2022-11-03 Thu 06:00]--[2022-11-03 Thu 06:01] => >>> 0:01\n:END:\n" #( >>> "* Foo\n:LOGBOOK:\nCLOCK: [2022-11-03 Do 06:00]--[2022-11-03 Do

Re: Test failure due to LANG

2023-04-22 Thread Axel Kielhorn
> Am 22.04.2023 um 14:35 schrieb Ihor Radchenko : > > > (with-environment-variables (("LANG" "de")) > (format-time-string "%A")) > (with-environment-variables (("LANG" "en")) > (format-time-string "%A“)) When I start Emacs from a shell with LANG=de I get „Samstag“ in both cases. When I

Re: Test failure due to LANG

2023-04-22 Thread Ihor Radchenko
Max Nikulin writes: >> (with-environment-variables (("LANG" "de")) >>(format-time-string "%A")) >> (with-environment-variables (("LANG" "en")) >>(format-time-string "%A")) > > ("LC_TIME" "de_DE.UTF-8") > > Since it is related to dates or even "LC_ALL". E.g. Ubuntu installer may >

Re: Test failure due to LANG

2023-04-22 Thread Axel Kielhorn
> Am 22.04.2023 um 14:37 schrieb Ruijie Yu : > > > > Axel, does this patch fix test-org-clock/clock-drawer-dwim on your > system? > > <0001-testing-lisp-test-org-clock.el.patch> Yes it does, thanks. Axel

Re: [orgweb/zh-CN] [DRAFT PATCH v7] Tentative zh-CN translation

2023-04-22 Thread Ihor Radchenko
Ruijie Yu writes: > Anyways, attached at the end of this message are all the commits in > master..v7. As usual, it is also available on > https://git.sr.ht/~ruijieyu/orgweb/log/translate/zh-CN--v7. Thanks! > Subject: [PATCH 04/16] Update preamble files >... > -- ja ] > +- ja >

[BUG] text cell contents have extra parentheses when used in formulas [9.6.4 ( @ /home/jet/.config/emacs/elpa/org-9.6.4/)]

2023-04-22 Thread Jeff Trull
Expectation: when using cell contents as strings in a formula, the strings should contain exactly the cell's text contents Actual: the resulting string is wrapped in parentheses I can find nothing in the documentation that suggests this is expected, and it is quite unintuitive if you want to

Re: Test failure due to LANG

2023-04-22 Thread Max Nikulin
On 22/04/2023 19:35, Ihor Radchenko wrote: Axel Kielhorn writes: "* Foo\n:LOGBOOK:\nCLOCK: [2022-11-03 Thu 06:00]--[2022-11-03 Thu 06:01] => 0:01\n:END:\n" #( "* Foo\n:LOGBOOK:\nCLOCK: [2022-11-03 Do 06:00]--[2022-11-03 Do 06:01] => 0:01\n:END:\n" (with-environment-variables (("LANG"

Re: [BUG] org-latex-packages-alist type specification [9.6.3 (release_9.6.3-2-gf2949d @ /usr/local/share/emacs/29.0.90/lisp/org/)]

2023-04-22 Thread Gustavo Barros
On Sat, 22 Apr 2023 at 10:27, Ihor Radchenko wrote: > > Ruijie Yu writes: > > > Subject: [PATCH] * lisp/org.el org-latex-packages-alist: fixed type > > definition > > Applied, onto bugfix. > https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=14dccff8b Thank you all!

Re: [BUG] org-latex-packages-alist type specification [9.6.3 (release_9.6.3-2-gf2949d @ /usr/local/share/emacs/29.0.90/lisp/org/)]

2023-04-22 Thread Ihor Radchenko
Ruijie Yu writes: > Subject: [PATCH] * lisp/org.el org-latex-packages-alist: fixed type definition Applied, onto bugfix. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=14dccff8b -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at

Re: [BUG] org-latex-packages-alist type specification [9.6.3 (release_9.6.3-2-gf2949d @ /usr/local/share/emacs/29.0.90/lisp/org/)]

2023-04-22 Thread Ihor Radchenko
Bastien Guerry writes: > I confirm the FSF copyright assignment is okay. Recorded: https://git.sr.ht/~bzg/worg/commit/2c5757dd -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at ,

[DRAFT PATCH v2] Decouple LANG= and testing (was: Test failure due to LANG)

2023-04-22 Thread General discussions about Org-mode.
Ruijie Yu via "General discussions about Org-mode." writes: > Ruijie Yu via "General discussions about Org-mode." > writes: > >> Ruijie Yu via "General discussions about Org-mode." >> writes: >> >>> Axel Kielhorn writes: >>> Hello! I’m building org with LANG=de. As a

Re: Test failure due to LANG

2023-04-22 Thread General discussions about Org-mode.
Ihor Radchenko writes: > Axel Kielhorn writes: > >> I’m building org with LANG=de. >> As a result I get two failed tests: >> >> ... >> "* Foo\n:LOGBOOK:\nCLOCK: [2022-11-03 Thu 06:00]--[2022-11-03 Thu 06:01] => >> 0:01\n:END:\n" #( >> "* Foo\n:LOGBOOK:\nCLOCK: [2022-11-03 Do

Re: [PATCH] before emit an error message, try to load the babel language

2023-04-22 Thread Ihor Radchenko
lin Sun writes: > Before the error message, the patch will give a try to load the > associated babel language. > > Why does the language exist in the `lang org-babel-load-languages' but > not be loaded? > Because the `org-babel-load-languages' are defined as a customer > variable with :set

Re: Test failure due to LANG

2023-04-22 Thread General discussions about Org-mode.
Ruijie Yu via "General discussions about Org-mode." writes: > Ruijie Yu via "General discussions about Org-mode." > writes: > >> Axel Kielhorn writes: >> >>> Hello! >>> >>> I’m building org with LANG=de. >>> As a result I get two failed tests: >> >> Reproducible using "LANG=zh_CN.UTF-8".

Re: [PATCH] ox.el: Customize org-export-dispatch options

2023-04-22 Thread Ihor Radchenko
Jim Wisniewski writes: > On Thu, Apr 20, 2023 at 4:46 AM Ihor Radchenko wrote: > >> Thanks! Let us know when FSF replies with a countersignature. > > Just got it back today. Thanks for the update! Bastien, may you confirm? -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about

Re: Test failure due to LANG

2023-04-22 Thread Ihor Radchenko
Axel Kielhorn writes: > I’m building org with LANG=de. > As a result I get two failed tests: > > ... > "* Foo\n:LOGBOOK:\nCLOCK: [2022-11-03 Thu 06:00]--[2022-11-03 Thu 06:01] => > 0:01\n:END:\n" #( > "* Foo\n:LOGBOOK:\nCLOCK: [2022-11-03 Do 06:00]--[2022-11-03 Do 06:01] => > 0:01\n:END:\n"

Re: orgtable to latex export \hline[0pt] why?

2023-04-22 Thread Ihor Radchenko
Uwe Brauer writes: > I could modify that function, but again what is the purpose of the [0pt] See https://list.orgmode.org/orgmode/cao12v+wb18nan0fudpaen94ghdt_2nbdjtc4u7n4w3hazba...@mail.gmail.com/ Also, note `org-latex-line-break-safe'. -- Ihor Radchenko // yantar92, Org mode contributor,

Re: orgtable to latex export \hline[0pt] why?

2023-04-22 Thread Uwe Brauer
>>> "IR" == Ihor Radchenko writes: > Uwe Brauer writes: >> After pulling the latest org mode, the following table >> >> Is exported to latex as >> ... >> \begin{center} >> \begin{tabular}{r} >> Ej1A & Ej1B & EjC & E2A1 & E2B & E2C & E2D & E2E & Total\\ \hline[0pt] >> \hline > I am

Re: orgtable to latex export \hline[0pt] why?

2023-04-22 Thread Ihor Radchenko
Uwe Brauer writes: > After pulling the latest org mode, the following table > > Is exported to latex as > ... > \begin{center} > \begin{tabular}{r} > Ej1A & Ej1B & EjC & E2A1 & E2B & E2C & E2D & E2E & Total\\ \hline[0pt] > \hline I am seeing \begin{center} \begin{tabular}{r}

Re: Test failure due to LANG

2023-04-22 Thread General discussions about Org-mode.
Ruijie Yu via "General discussions about Org-mode." writes: > Axel Kielhorn writes: > >> Hello! >> >> I’m building org with LANG=de. >> As a result I get two failed tests: > > Reproducible using "LANG=zh_CN.UTF-8". In fact, I got more failed tests > in my testing. I think the OP's two test

Re: Test failure due to LANG

2023-04-22 Thread General discussions about Org-mode.
Axel Kielhorn writes: > Hello! > > I’m building org with LANG=de. > As a result I get two failed tests: Reproducible using "LANG=zh_CN.UTF-8". In fact, I got more failed tests in my testing. I think the OP's two test failures are due to hardcoded English expected result, whereas the

Re: [PATCH] Add make target to ease creating reproducers and testing them

2023-04-22 Thread Max Nikulin
On 22/07/2022 20:37, Ihor Radchenko wrote: Ihor Radchenko writes: I propose a new make target: make repro It will run the commands we already suggest, but without a need to create minimal file, pass all that arguments to emacs, etc Applied onto main via b713b9afa. I have realized that the

Re: [PATCH] before emit an error message, try to load the babel language

2023-04-22 Thread General discussions about Org-mode.
lin Sun writes: > Hi, > The function `org-babel-execute-src-block' will emit an error message > if the language is not loaded. > > Before the error message, the patch will give a try to load the > associated babel language. > > Why does the language exist in the `lang org-babel-load-languages'

org-mode export to html fails for unknown link types - telephone links

2023-04-22 Thread Eugen Stan
Hi, I am building my wedding page with org mode. Yay!. I tried to add telephone links so people can click on the link and it will do something useful. I used this markup [[tel:(+40)55-555-555][(+40)55-555-555]] to produce something like (+40)55-555-555 . However It failed because the tel:

[BUG] Babel Noweb and python name clashing [9.6.1 (9.6.1-??-fe92a3ced @ /var/home/kwalerie/.emacs.d/.local/straight/build-27.1/org/)]

2023-04-22 Thread Weaver Marquez
Following the Worg documentation for python babel linked [[here][https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-python.html]], I had a lot of trouble with the =savefig= related examples. Expected Behaviour: The two code snippets below have the exact same code, except one has its

Re: Why am I being told to use "straight.el"?

2023-04-22 Thread Colin Baxter
> Max Nikulin writes: > On 21/04/2023 23:17, Colin Baxter wrote: >> I will address the other points in your reply the next time I >> update org-mode. In the meantime, I can answer some of your other >> questions immediately. > Thanks for info. I have asked for org git

[PATCH] before emit an error message, try to load the babel language

2023-04-22 Thread lin Sun
Hi, The function `org-babel-execute-src-block' will emit an error message if the language is not loaded. Before the error message, the patch will give a try to load the associated babel language. Why does the language exist in the `lang org-babel-load-languages' but not be loaded? Because the

Test failure due to LANG

2023-04-22 Thread Axel Kielhorn
Hello! I’m building org with LANG=de. As a result I get two failed tests: FAILED test-org-clock/clock-drawer-dwim ((should (equal "* Foo\n:LOGBOOK:\nCLOCK: [2022-11-03 Thu 06:00]--[2022-11-03 Thu 06:01] => 0:01\n:END:\n" (org-test-with-temp-text "* Foo\n:LOGBOOK:\nCLOCK: [2022-11-03 ???