Re: What is a week?

2023-04-23 Thread Marcin Borkowski
On 2023-04-23, at 21:18, Ihor Radchenko wrote: > Marcin Borkowski writes: > >> Fair enough. Still, I consider this a bug in the docs (they don't say >> clearly to set :wstart 7)... > > Patches welcome! Would gladly do. Has the copyright papers requirement been lifted? -- Marcin Borkowski

Re: [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-23 Thread Ihor Radchenko
Ihor Radchenko writes: >> #+TITLE: text formula repro >> >> | Key | Value| >> |-+--| >> | A | [40, 65, 41] | >> | B | [40, 66, 41] | >> #+TBLFM: $2="$1" >> >> Here you can see that the contents of the Key column were wrapped in >> parentheses (ASCII 40 and 41) when

Re: What is a week?

2023-04-23 Thread Ihor Radchenko
Marcin Borkowski writes: > Fair enough. Still, I consider this a bug in the docs (they don't say > clearly to set :wstart 7)... Patches welcome! -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at

Re: What is a week?

2023-04-23 Thread Marcin Borkowski
On 2023-04-23, at 19:57, Ihor Radchenko wrote: > Marcin Borkowski writes: > >> Now it's Monday. I create a clock table with :wstart 1 and thisweek - >> and my clock table starts today. >> >> What is the logic behind it? > > I saw you are considering this as a bug to be fixed. >

Re: 3 times a day

2023-04-23 Thread Ihor Radchenko
Renato Pontefice writes: > ** 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 22:39 +1d> > > I mean: can I have one TODO statement I n 3 different hour at same day? No, AFAIK. At least,

Re: How to set priority of a heading with the highest one among its children

2023-04-23 Thread Ihor Radchenko
Edouard Debry writes: > But this involves org skills a bit beyond my understanding, I wonder if you > could give > me some piece of advices on how to do that : > - is there a suitable hook for this function ? No hook, but you can advice `org-priority' using :after advice. > - when in a given

Re: What is a week?

2023-04-23 Thread Ihor Radchenko
Marcin Borkowski writes: > Now it's Monday. I create a clock table with :wstart 1 and thisweek - > and my clock table starts today. > > What is the logic behind it? I saw you are considering this as a bug to be fixed. (https://mbork.pl/2023-04-22_Org_mode_clock_table_for_the_last_week) But

Re: [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-23 Thread Ihor Radchenko
Weaver Marquez writes: > Expected Behaviour: > The two code snippets below have the exact same code, except one has its > Babel name as =savefig=, which is a function name inside its code > block, and the other doesn't. > > ... > ==---== > #+name: doesnt-work Works on my side. Cannot reproduce.

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

2023-04-23 Thread Ihor Radchenko
Eugen Stan writes: > 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

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

2023-04-23 Thread General discussions about Org-mode.
Ihor Radchenko writes: > Ruijie Yu writes: > >>> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=63029 >> >> From my understanding of Eli's response, org-colview is at fault here, by >> calling `length' instead of `string-width' in >> `org-columns-add-ellipses'. Changing this function call

Re: [BUG] Org-LaTeX-export: >> and << (inside of ~code~/=verbatim=) gets exported to single monospace symbol instead of 2 monospace symbols [9.5.5 (release_9.5.5 @ /usr/share/emacs/28.2/lisp/org/)]

2023-04-23 Thread Ihor Radchenko
Max Nikulin writes: >> Maybe we can somehow use `org-latex--protect-text' in >> `org-latex--protect-texttt'. > > Unfortunately it does not cover the case of babel shortcuts like "<">. Maybe there is some suitable LaTeX command then? -- Ihor Radchenko // yantar92, Org mode contributor, Learn

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

2023-04-23 Thread Ihor Radchenko
Ruijie Yu writes: >> I recommend `org-element-timestamp-parser' for analysis. > > Thanks for pointing that out! I didn't realize it was there. Although, > I don't think I can use this function as-is, nor its internal regexps: > all the relevant tests where I used `org-test-timestamp-regexp'

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

2023-04-23 Thread Ihor Radchenko
Ruijie Yu writes: >> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=63029 > > From my understanding of Eli's response, org-colview is at fault here, by > calling `length' instead of `string-width' in > `org-columns-add-ellipses'. Changing this function call might be all it > needs to fix the

Re: [BUG] Issue when opening multiple files from multiple org-links [9.5.5 (release_9.5.5 @ /usr/share/emacs/28.2/lisp/org/)]

2023-04-23 Thread Ihor Radchenko
cro cefisso writes: > * Headline 2 > - [[~/tmp/file1.org][First file]] > - [[~/tmp/file2.org][Second file]] > ... > When the pointer is on Headline 2, if I do C-c C-o RET, then only file1.org > will open when the two files > should open. Thanks for reporting! Fixed, on bugfix.

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

2023-04-23 Thread General discussions about Org-mode.
Ihor Radchenko writes: > Ruijie Yu writes: > (format "%-5.5s |" "1234…") returns different results for different locales, causing `test-org-colview/columns-width' to break. >>> >>> What are these different results? >> >> In CJK locales such as zh_CN and ja_JA, the

Re: How to disable org-persist in a given file?

2023-04-23 Thread Gustavo Barros
On Sun, 23 Apr 2023 at 11:19, Ruijie Yu wrote: > Side track: remember that you have `always' and `ignore' in your > collection of functions. :) Somehow I wasn't aware of `always'. Thanks! Gustavo.

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

2023-04-23 Thread General discussions about Org-mode.
Ihor Radchenko writes: > Ruijie Yu via "General discussions about Org-mode." > writes: > >> Something very troublesome for me is `test-org-clock/clocktable/lang' on >> zh_CN.UTF-8. What I noticed is that when I run this test in batch mode >> (one of the two methods below), it fails: > >

Re: How to disable org-persist in a given file?

2023-04-23 Thread General discussions about Org-mode.
Gustavo Barros writes: >> You can use `org-persist-before-write-hook' to disable writing >> selectively. > > Thanks! That's the one. Though it would be nice if a variable existed > for the purpose. `(add-hook 'org-persist-before-write-hook (lambda > ( _args) t) nil t)' is not our average file

Re: How to disable org-persist in a given file?

2023-04-23 Thread Gustavo Barros
On Sun, 23 Apr 2023 at 10:51, Ihor Radchenko wrote: > We can try (string-match mounted-file-systems default-directory). > Will it work with your setup? Wouldn't that exclude a lot of legitimate use cases? Personally, I don't see an issue in this scenario of mine for Org to handle. It's an

Re: How to disable org-persist in a given file?

2023-04-23 Thread Ihor Radchenko
Gustavo Barros writes: > On Sun, 23 Apr 2023 at 07:55, Ihor Radchenko wrote: > >> Thanks for letting us know about this scenario! > > Yes, but there's little Emacs/Org can do there, I think. Once the > volume is mounted, there's no way to tell it is meant to be treated as > an encrypted file.

Re: How to disable org-persist in a given file?

2023-04-23 Thread Gustavo Barros
Hi Ihor, On Sun, 23 Apr 2023 at 07:55, Ihor Radchenko wrote: > Thanks for letting us know about this scenario! Yes, but there's little Emacs/Org can do there, I think. Once the volume is mounted, there's no way to tell it is meant to be treated as an encrypted file. With time I'm learning

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

2023-04-23 Thread Ihor Radchenko
Ruijie Yu writes: >>> (format "%-5.5s |" "1234…") >>> >>> returns different results for different locales, causing >>> `test-org-colview/columns-width' to break. >> >> What are these different results? > > In CJK locales such as zh_CN and ja_JA, the ellipsis character is > truncated, and

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

2023-04-23 Thread Ihor Radchenko
Ruijie Yu via "General discussions about Org-mode." writes: > Something very troublesome for me is `test-org-clock/clocktable/lang' on > zh_CN.UTF-8. What I noticed is that when I run this test in batch mode > (one of the two methods below), it fails: Well. Batch and non-batch modes are not

Re: Where can I find the full specification of a timestamp?

2023-04-23 Thread Ihor Radchenko
Ruijie Yu via "General discussions about Org-mode." writes: > My question is, what would the full specification of a timestamp be? > Or, phrased differently, what else am I missing, and where can I find > documentation for these optional fields? See

Re: [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-23 Thread Ihor Radchenko
"Garid Z." writes: > 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. See 16.12 Library of Babel section of Org manual. Canceled. -- Ihor Radchenko // yantar92, Org mode

Re: How to disable org-persist in a given file?

2023-04-23 Thread Ihor Radchenko
Gustavo Barros writes: > However, I do have some Org files which contain sensitive data. I'd > like to be able to disable persistence in those files. Now, some of > them are ".org.gpg" files, and I've seen the sources of `org-persist' > and noticed persistence is inhibited for them. But I also

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

2023-04-23 Thread Ihor Radchenko
Ruijie Yu via "General discussions about Org-mode." writes: > Second, `org-columns--overlay-text' has a problem where > > (format "%-5.5s |" "1234…") > > returns different results for different locales, causing > `test-org-colview/columns-width' to break. What are these different results?

Re: [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-23 Thread Ihor Radchenko
Jeff Trull writes: > 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 This is actually expected, although surprising. > I can find nothing in the documentation

[BUG] LANG=fr_FR.UTF-8 org-clock "not at timestamp"

2023-04-23 Thread General discussions about Org-mode.
Hello, I am investigating test failures with LANG=fr_FR.UTF-8 amongst some other locales. I noticed that the test `test-org-clok/org-clock-timestamps-change' in testing/lisp/test-org-clock.el around line 92 failed with "not at timestamp", which I presume reveals a genuine bug. To simplify, here

[BUG] Issue when opening multiple files from multiple org-links [9.5.5 (release_9.5.5 @ /usr/share/emacs/28.2/lisp/org/)]

2023-04-23 Thread cro cefisso
* Headline 1 - [[https://orgmode.org/][Org-Mode]] - [[https://www.gnu.org/software/emacs/][GNU Emacs]] * Headline 2 - [[~/tmp/file1.org][First file]] - [[~/tmp/file2.org][Second file]]   When the pointer is on Headline 1, if I do C-c C-o RET, then two tabs will open in my web browser. When the

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

2023-04-23 Thread Ihor Radchenko
lin Sun writes: > On Sat, Apr 22, 2023 at 12:42 PM Ihor Radchenko wrote: >> the cleanest way will be using `add-variable-watcher'. > The "add-variable-watcher" may not be able to deal with the > local/global variable `org-babel-load-languages' correctly. May you elaborate? -- Ihor Radchenko

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

2023-04-23 Thread General discussions about Org-mode.
Axel Kielhorn writes: >> 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

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

2023-04-23 Thread lin Sun
On Sat, Apr 22, 2023 at 12:42 PM Ihor Radchenko wrote: > the cleanest way will be using `add-variable-watcher'. Hi Ihor, The "add-variable-watcher" may not be able to deal with the local/global variable `org-babel-load-languages' correctly. On Sat, Apr 22, 2023 at 8:33 AM Ruijie Yu wrote: >