Re: Table column formula with remote reference

2024-03-16 Thread Wu Ming
> On 15 Mar 2024, at 2:58 AM, Ihor Radchenko wrote: > > Wu Ming writes: > >>> See "Remote references" subsection. It explains that in >>> remote(NAME,REF), REF is inside the remote table. Relative and current >>> column/row is ambiguous there. >>> >>> In contrast, @# and $# are special -

Re: Table column formula with remote reference

2024-03-16 Thread Wu Ming
> On 14 Mar 2024, at 9:40 PM, Fraga, Eric wrote: > > On Thursday, 14 Mar 2024 at 09:16, Wu Ming wrote: >> Unrelated, but appeared on the same trial, noticed a cell was >> mis-calculated. [...] This made me worry about reliability of simple >> biz calculations I am trying on Org spreadsheet

Re: [BUG] Re: The orgframe construct in the Beamer exporter as a default needs a rethink

2024-03-16 Thread Leo Butler
On Sat, Mar 16 2024, Leo Butler wrote: > On Fri, Mar 15 2024, Ihor Radchenko wrote: > >> Leo Butler writes: >> Leo, may you improve the patch to avoid defining `org-beamer-frame-environment' when it is not used in all the frames? >>> >>> "all the" should be "any of" in that last

Re: [PATCH] Allow external libraries (org-roam) to supply org-id locations

2024-03-16 Thread Rick Lupton
On Wed, 13 Mar 2024, at 12:30 PM, Ihor Radchenko wrote: > I think that we can do it simpler. [...] > The idea is to use Emacs' advice machinery to allow third-party code > alter the functions stored in link parameters. I was avoiding this because I thought it was only recommended (in the elisp

Re: Things got very slow: profiler output

2024-03-16 Thread Ihor Radchenko
Bruno Cardoso writes: > On 2024-03-16, 15:56 +, Ihor Radchenko wrote: > >> Ok. >> Then, what about the latest main? > > Updated and tested again on Emacs -Q. > > org-fold-core--property-symbol-get-create 145790 0.5319647139 > 3.648...e-06 It is a few times faster. And the profiler

Re: Things got very slow: profiler output

2024-03-16 Thread Bruno Cardoso
On 2024-03-16, 15:56 +, Ihor Radchenko wrote: > Ok. > Then, what about the latest main? Updated and tested again on Emacs -Q. org-fold-core--property-symbol-get-create 145790 0.5319647139 3.648...e-06 GNU Emacs 29.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.40, cairo

Re: Things got very slow: profiler output

2024-03-16 Thread Ihor Radchenko
William Denton writes: >> Then, what about the latest main? > > I tried it, and I'm sorry to say all the same problems keep happening. > > I tried the test you mentioned here: > > https://lists.gnu.org/archive/html/emacs-orgmode/2024-03/msg00362.html > > I loaded up my big Org file and moved

Re: Things got very slow: profiler output

2024-03-16 Thread William Denton
On Saturday, March 16th, 2024 at 11:56, Ihor Radchenko wrote: > > > What if you try the following version of `org-activate-folds'? > > > ... > > > > It makes almost no difference. > > Ok. > Then, what about the latest main? I tried it, and I'm sorry to say all the same problems keep

Re: [BUG] [PATCH] org-babel-execute-buffer: Prevent executing non-code blocks [9.6.20 ( @ /home/cassou/.emacs.d/lib/org/lisp/)]

2024-03-16 Thread Damien Cassou
Ihor Radchenko writes: > Yes. You can add > #+property: header-args:text :eval no > on top of your Org file or add > (setq org-babel-default-header-args:text '((:eval . "no"))) > to your config. org is amazing! Thank you very much for all your work. -- Damien Cassou "Success is the ability

Re: Forcing tab-width to be 8 makes using Python source blocks very difficult

2024-03-16 Thread Rudi C
Thanks, I don't have any problems now, so we can consider this closed. On Sat, Mar 16, 2024 at 2:32 PM Ihor Radchenko wrote: > Rudi C writes: > > > ... runs `evil-shift-right`, which > > indents the selected region by the `evil-shift-width` amount. > > `evil-shift-width` is set based on

Re: Things got very slow: profiler output

2024-03-16 Thread Ihor Radchenko
Bruno Cardoso writes: > On 2024-03-16, 08:56 +, Ihor Radchenko wrote: > >> Bruno Cardoso writes: >> >> What if you try the following version of `org-activate-folds'? >> ... > > It makes almost no difference. Ok. Then, what about the latest main? -- Ihor Radchenko // yantar92, Org mode

Re: `:export' attribute?: Re: Experimental public branch for inline special blocks

2024-03-16 Thread Max Nikulin
On 15/03/2024 23:26, Juan Manuel Macías wrote: Tomorrow I will make a new commit with your code. An update with a couple of bugs fixed. Now it is possible to specify different export rules for a backend and all its derivatives: (ignore (pp (let ((rules

Re: Things got very slow: profiler output

2024-03-16 Thread Bruno Cardoso
On 2024-03-16, 08:56 +, Ihor Radchenko wrote: > Bruno Cardoso writes: > > What if you try the following version of `org-activate-folds'? > > (defun org-activate-folds (limit) > "Arrange trailing newlines after folds to inherit face before the fold." > (let ((next-unfolded-newline

Re: [BUG] Re: The orgframe construct in the Beamer exporter as a default needs a rethink

2024-03-16 Thread Leo Butler
On Fri, Mar 15 2024, Ihor Radchenko wrote: > Leo Butler writes: > >>> Leo, may you improve the patch to avoid defining >>> `org-beamer-frame-environment' when it is not used in all the frames? >> >> "all the" should be "any of" in that last sentence. > > Indeed. > >> How about the attached

Re: [PATCH] Estonian translation in org-export-dictionary

2024-03-16 Thread Ihor Radchenko
Jan Zavitski writes: > Submitting a patch to improve on Estonian translation in > org-export-dictionary. Thanks! Applied, onto bugfix. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=c5ede5321 You are now listed as an Org contributor. https://git.sr.ht/~bzg/worg/commit/c1450566

[PATCH] Estonian translation in org-export-dictionary

2024-03-16 Thread Jan Zavitski
Submitting a patch to improve on Estonian translation in org-export-dictionary. Jan --- emacs/lisp/org/ox.el 2024-03-16 01:14:08.103053052 +0200 +++ ox.el 2024-03-16 01:29:47.269460615 +0200 @@ -6025,6 +6025,7 @@ ("cs" :default "Pokračování z předchozí strany") ("de" :default

Re: [PATCH] Add support for tables in Calc src block :var

2024-03-16 Thread Visuwesh
[சனி மார்ச் 16, 2024] Ihor Radchenko wrote: > Visuwesh writes: > >> Subject: [PATCH] ob-calc.el: Add support for tables in Calc source block :var > > Thanks! > Applied, onto main. > I modified the patch to enable ob-calc tests by default. >

Re: Suggestion for org-agenda-list: pre-open org-agenda-files

2024-03-16 Thread John Wiegley
Understood, I just haven’t had the time to dig into this. I’ll let you know once I find out. John On Sat, Mar 16, 2024, at 12:46 AM, Ihor Radchenko wrote: > Ihor Radchenko writes: > >> Ihor Radchenko writes: >> >>> So, may you dig a bit further and check why `org-agenda-prepare' is not >>>

Re: The org--math-p advice around texmathp

2024-03-16 Thread Tony Zorman
On Sat, Mar 16 2024 10:07, Ihor Radchenko wrote: > In Org mode, there is a significant difference between \alpha and > \(\alpha\). The former is natively fontified (with `org-pretty-entities' > set to t) and natively exported to HTML/ASCII/ODT/etc. In contrast, > \(\alpha\) is very generic and Org

Re: [PATCH] Add support for tables in Calc src block :var

2024-03-16 Thread Ihor Radchenko
Visuwesh writes: > Subject: [PATCH] ob-calc.el: Add support for tables in Calc source block :var Thanks! Applied, onto main. I modified the patch to enable ob-calc tests by default. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=89b0773c3 >> Would you mind using

Re: [BUG] [PATCH] org-babel-execute-buffer: Prevent executing non-code blocks [9.6.20 ( @ /home/cassou/.emacs.d/lib/org/lisp/)]

2024-03-16 Thread Ihor Radchenko
Damien Cassou writes: > If I understand correctly, you are saying that it is better to let the > command crash as soon as possible instead of letting it execute > potentially problematic code because some previous block has not been > executed. I think it makes perfect sense. I'm now convinced

Re: [PATCH] Add support for tables in Calc src block :var

2024-03-16 Thread Visuwesh
[சனி மார்ச் 16, 2024] Ihor Radchenko wrote: > Visuwesh writes: > >> Attached patch adds support for passing tables as matrices (or vector) >> to a Calc source block through the :var parameter. There might be a >> better way to do it than manually construct the data structure expected >> by Calc

Re: Principled Handling of Breaking Changes

2024-03-16 Thread Ihor Radchenko
Rudi C writes: >> what other breaking changes caused problems for you? > > I remember these three: > > - `tab-width` > - fontification in example blocks ( > https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=9daad41cc) > - `org-fold-core-style` changing to `text-properties` (from

Re: [BUG] org-babel-execute-subtree removes all overlays (org-fold-save-outline-visibility) [9.7-pre, gfb61e8]

2024-03-16 Thread Bruno Barbier
Ihor Radchenko writes: > > Thanks for reporting! > Fixed, on bugfix and main. > https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=8b73c8b98 > https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=712ef988c It now works. Thanks Ihor! > -- > Ihor Radchenko //

Re: Forcing tab-width to be 8 makes using Python source blocks very difficult

2024-03-16 Thread Ihor Radchenko
Rudi C writes: > ... runs `evil-shift-right`, which > indents the selected region by the `evil-shift-width` amount. > `evil-shift-width` is set based on `tab-width`. Are you sure? I am looking at https://github.com/emacs-evil/evil/blob/master/evil-vars.el#L175 and it appears that

Re: Principled Handling of Breaking Changes

2024-03-16 Thread Rudi C
> what other breaking changes caused problems for you? I remember these three: - `tab-width` - fontification in example blocks ( https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=9daad41cc) - `org-fold-core-style` changing to `text-properties` (from `overlays`) broke custom code I

Re: [BUG] [PATCH] org-babel-execute-buffer: Prevent executing non-code blocks [9.6.20 ( @ /home/cassou/.emacs.d/lib/org/lisp/)]

2024-03-16 Thread Damien Cassou
Hi Ihor, Ihor Radchenko writes: > For example, consider > > #+begin_src bash > mkdir foo > #+end_src > > #+begin_src emacs-lisp > (write-file "foo/result") > #+end_src > > The second block relies upon side effects of the first block. > However, if ob-shell is not loaded, with your patch, the

Re: Forcing tab-width to be 8 makes using Python source blocks very difficult

2024-03-16 Thread Rudi C
`evil-org->` doesn't matter per se. It runs `evil-shift-right`, which indents the selected region by the `evil-shift-width` amount. `evil-shift-width` is set based on `tab-width`. I solved this specific problem by overriding `evil-shift-width` using a timer in an org-mode hook. The delay

Re: Reproducible work with natively compiled Emacs

2024-03-16 Thread Ihor Radchenko
Pedro Andres Aranda Gutierrez writes: >> Do I understand correctly that the reason you implemented cleaneln make >> target is working around issues with make test/make repro? >> > Yes, that's one of the reasons. And, also because when I set > native.comp-eln-cache-path, > anything that is not

Re: Principled Handling of Breaking Changes

2024-03-16 Thread Ihor Radchenko
Rudi C writes: > The recent upgrades to Org mode have been a source of great frustration for > me. Many of the configurations I had previously set up stopped working as > intended, and it took me several days to properly identify the issues, > debug them, and find suitable workarounds. Apart

Re: [PATCH] lisp/ob-shell.el: Also override explicit-shell-file-name

2024-03-16 Thread Ihor Radchenko
Matt writes: > Finally had time to commit it. > > https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=0e2a9524dc6da8b4d60672e85aba74076baac211 Thanks! I notice that you changed the commit author and only referenced Aaron in Submitted By: metadata. For future, we prefer keeping

Re: The org--math-p advice around texmathp

2024-03-16 Thread Ihor Radchenko
Tony Zorman writes: >> For example, something like \alpha is a valid Org mode entity. >> Without `org--math-p' advice, if you do "`a" in Org buffer with >> org-cdlatex-mode, you will see $\alpha$ inserted. With the advice, just >> \alpha will be inserted. > ... > > For example, I would think

Re: [PATCH] Add support for tables in Calc src block :var

2024-03-16 Thread Ihor Radchenko
Visuwesh writes: > Attached patch adds support for passing tables as matrices (or vector) > to a Calc source block through the :var parameter. There might be a > better way to do it than manually construct the data structure expected > by Calc for a matrix but given that it rarely sees changes

Re: Forcing tab-width to be 8 makes using Python source blocks very difficult

2024-03-16 Thread Ihor Radchenko
Rudi C writes: > Recently, a breaking change has been introduced in Org mode that sets the > default tab-width to 8 spaces ( > https://list.orgmode.org/orgmode/8734y5d2gs.fsf@localhost/). This change > has made using Python source blocks in Org mode challenging, as operations > like `evil-org->`

Re: [BUG] org-babel-execute-subtree removes all overlays (org-fold-save-outline-visibility) [9.7-pre, gfb61e8]

2024-03-16 Thread Ihor Radchenko
Bruno Barbier writes: > Org removes all overlays when calling org-babel-execute-subtree. > ... > After investigation, it seems that any use of > `org-save-outline-visibility' will call: > > (org-fold-core-region START END nil) > ^^^ > > which will, indeed,

Re: Things got very slow: profiler output

2024-03-16 Thread Ihor Radchenko
Bruno Cardoso writes: > My call count is in fact higher: > > org-fold-core--property-symbol-get-create 196278 3.2828460320 > 1.672...e-05 Makes sense. What if you try the following version of `org-activate-folds'? (defun org-activate-folds (limit) "Arrange trailing newlines after

Re: [FR] 'org-columns-next-allowed-value' for 'summary-checkbox'es functions should have 'intermediate state' '[-]'

2024-03-16 Thread Ihor Radchenko
Sławomir Grochowski writes: > Thank you for asking. > Yes, I would be interested. > I will prepare a patch. May I know if you had a chance to work on this? -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at

Re: Suggestion for org-agenda-list: pre-open org-agenda-files

2024-03-16 Thread Ihor Radchenko
Ihor Radchenko writes: > Ihor Radchenko writes: > >> So, may you dig a bit further and check why `org-agenda-prepare' is not >> opening the agenda files? > > A gentle ping :) Canceled. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at .

Re: Reproducible work with natively compiled Emacs

2024-03-16 Thread Pedro Andres Aranda Gutierrez
Hi Ihor, Answer inline... On Fri, 15 Mar 2024 at 18:08, Ihor Radchenko wrote: > Pedro Andres Aranda Gutierrez writes: > > > I have added the eln version to the patch... > > > > Best, /PA > > PS: Just as an example, I recompiled master today and the version number > > for eln changed, so the