Re: org code and error catching

2023-05-15 Thread Michael Heerdegen
Ihor Radchenko writes: > In my attempts, the tests started failing for no obvious reason. > Just from changing `condition-case' to `condition-case-unless-debug'. > > Though I did not investigate if it happened for every atomic change. Hmm - mine gave a different result: I cloned the org-mode

Formulas on table cells containing '$'

2023-05-15 Thread Jeff Trull
While investigating an error executing a table formula I discovered that cells containing '$' cause column references to be executed even when no attempt is made to evaluate cell contents as code. Here's a simple example: #+TITLE: demonstrate strange error in currency column | 3/1/2023 |

Re: link to magnet URL in org-mode?

2023-05-15 Thread Max Nikulin
On 15/05/2023 19:55, Guillaume MULLER wrote: I maintain a list of links in an org-file. I wanted to export it as HTML file for a colleague, but I got the following error:   Unable to resolve link: "magnet:?xt=urn:..." What would be the correct way of linking to a magnet link in an org-mode

[PATCH v3.1] Re: Improve the performance of `org-set-tags-command` on large `org-tag-alist`

2023-05-15 Thread Christopher M. Miles
"Christopher M. Miles" writes: > [[PGP Signed Part:Undecided]] > > Ihor Radchenko writes: > >> "Christopher M. Miles" writes: >> You are almost there. Just run your code only when (lentgh> fulltable 26). Of course, 26 should be a defcustom rather than a hard-coded

Re: [PATCH] org-crypt-decrypt-entry: Apply initial visibility upon decryption

2023-05-15 Thread Christopher M. Miles
No objection -- [ stardiviner ] I try to make every word tell the meaning that I want to express without misunderstanding. Blog: https://stardiviner.github.io/ IRC(libera.chat, freenode): stardiviner, Matrix: stardiviner GPG: F09F650D7D674819892591401B5DF1C95AE89AC3 signature.asc

Re: Interest in an Org video meetup?

2023-05-15 Thread Sacha Chua
I'll let Amin Bandali know. Thanks for everyone's patience! On Mon, May 15, 2023, 11:20 Ihor Radchenko wrote: > Russell Adams writes: > > > I was given an account on https://bbb.emacsverse.org/, and trying to > > use it today I get a certificate expired error that cannot be ignored. > > > > I

Re: Interest in an Org video meetup?

2023-05-15 Thread Ihor Radchenko
Russell Adams writes: > I was given an account on https://bbb.emacsverse.org/, and trying to > use it today I get a certificate expired error that cannot be ignored. > > I was hoping to test it to setup a Saturday video session. > > Any ideas? I am also seeing the same error. Looks like they

Re: How to filter a clock table by property value?

2023-05-15 Thread Marcin Borkowski
On 2023-05-08, at 17:30, Ihor Radchenko wrote: > Marcin Borkowski writes: > >> #+BEGIN: clocktable :match "property=\"value\"" >> #+END > > "+property=\"value\"" > > I just tried #+BEGIN: clocktable :scope subtree :match "+ID=\"Organization\"" > and it worked. Thanks! Still didn't work, it

Re: Interest in an Org video meetup?

2023-05-15 Thread Russell Adams
On Wed, Apr 26, 2023 at 04:13:47PM -0500, Corwin Brust wrote: > On Wed, Apr 26, 2023 at 9:31 AM Matt wrote: > > > > FSF associate members have access to a FSF hosted Jitsi instance. I'm an > > FSF associate member and could host it using that if I'm able to make the > > time. > > > > We can

[PATCH v3] Re: Improve the performance of `org-set-tags-command` on large `org-tag-alist`

2023-05-15 Thread Christopher M. Miles
Ihor Radchenko writes: > "Christopher M. Miles" writes: > >>> You are almost there. >>> Just run your code only when (lentgh> fulltable 26). >>> >>> Of course, 26 should be a defcustom rather than a hard-coded constant. >>> And do the same for `org-fast-todo-selection'. >> >> Ok, I added

Re: [PATCH] add a function to only refresh inline images under current headline instead of global buffer

2023-05-15 Thread Christopher M. Miles
Ihor Radchenko writes: > "Christopher M. Miles" writes: > >> The `org-redisplay-inline-images' will refresh whole buffer inline >> images. When the buffer is a big Org file, and not all inline images are >> display already by default (still image file links under fold status). >> Invoking

Re: [BUG] Some Org mode files require org-macs.el more than once

2023-05-15 Thread Ihor Radchenko
Niall Dooley writes: > Reviewing some Org files I noted the following files require org-macs.el more > than once: > ... > The additional require seems redundant to my ignorant self. I appreciate this > should cause no issue but is there a reason why such lines are > duplicated? To emphasize

[BUG] Some Org mode files require org-macs.el more than once

2023-05-15 Thread Niall Dooley
Reviewing some Org files I noted the following files require org-macs.el more than once: - ob.el - ob-python.el - org-fold.el There are likely others too. The additional require seems redundant to my ignorant self. I appreciate this should cause no issue but is there a reason why such lines

[PATCH v2] Re: [PATCH] add a function to only refresh inline images under current headline instead of global buffer

2023-05-15 Thread Christopher M. Miles
Ihor Radchenko writes: > "Christopher M. Miles" writes: > >> The `org-redisplay-inline-images' will refresh whole buffer inline >> images. When the buffer is a big Org file, and not all inline images are >> display already by default (still image file links under fold status). >> Invoking

[POLL] ob-C: Should we allow saving compiled src block to specified binary excecutable? (was: [RFC/PATCH] naming src/bin files in ob-C.el)

2023-05-15 Thread Ihor Radchenko
Leo Butler writes: >> I am not sure how I feel about such side effects of evaluation. >> Is there any other babel backend that is doing something similar? > > ob-java.el deals with it by using a :dir header; if non-nil, the > compiled files are placed in that directory instead of >

Re: [PATCH] org-crypt-decrypt-entry: Apply initial visibility upon decryption

2023-05-15 Thread Ihor Radchenko
Ihor Radchenko writes: > I'd like to propose applying initial visibility to the freshly decrypted > headings. IMHO, it makes much more sense by default compared to showing > all the text unfolded, including property drawers. > > Any objections? Applied, onto main.

Re: [PATCH v2] Re: Improve the performance of `org-set-tags-command` on large `org-tag-alist`

2023-05-15 Thread Ihor Radchenko
"Christopher M. Miles" writes: >> I do not think that we need to care about the value of >> `org-use-fast-tag-selection'. Instead, just >> >> 1. If the total number of tags does not exceed >>`org-fast-tag-selection-maximum-tags', display them all. >> 2. If the total number of tags is

link to magnet URL in org-mode?

2023-05-15 Thread Guillaume MULLER
Hello, I maintain a list of links in an org-file. I wanted to export it as HTML file for a colleague, but I got the following error: Unable to resolve link: "magnet:?xt=urn:..." What would be the correct way of linking to a magnet link in an org-mode file ? Thanks in advance -- Guillaume

Re: [PATCH v2] Re: Improve the performance of `org-set-tags-command` on large `org-tag-alist`

2023-05-15 Thread Christopher M. Miles
Ihor Radchenko writes: > "Christopher M. Miles" writes: > >>> You are almost there. >>> Just run your code only when (lentgh> fulltable 26). >>> >>> Of course, 26 should be a defcustom rather than a hard-coded constant. >>> And do the same for `org-fast-todo-selection'. >> >> Ok, I added

Re: [RFC/PATCH] naming src/bin files in ob-C.el

2023-05-15 Thread Leo Butler
On Mon, May 15 2023, Ihor Radchenko wrote: > Leo Butler writes: > >> On the other hand, I don't see any sense in producing a link to the >> binary file. Org can't do anything with that link, so the user would >> need to write something like ":results file :file /path/to :wrap >> comment". That

org-element tutorial?

2023-05-15 Thread bvchgvbt
Hi, Does anyone know of a good tutorial on using org-element? I'm finding the documentation hard to grok. Alternatively, given a doc like * TODO No ** Uninteresting - item 1 - item 2 * NEXT My thing SCHEDULED: <2023-05-16 Tue .+1d> :PROPERTIES: :STYLE: habit :LAST_REPEAT:

Re: [RFC/PATCH] naming src/bin files in ob-C.el

2023-05-15 Thread Ihor Radchenko
Leo Butler writes: > Ok, stopping after 1 seems reasonable when the code block is meant to > produce just the executable. But, your suggestion would mean that the > code block can *only* produce an executable file. Maybe that is ok, but > since the current semantics allow something like > >

Re: New note not included in org-element-parse-buffer result

2023-05-15 Thread bvchgvbt
> "Ihor Radchenko" wrote: > bvchg...@mail.com writes: > > > am finding that the note that I insert when the state change > > is logged is not present in the result of a call to > > (org-element-parse-buffer). > > The note might indeed not yet be inside the Org buffer. > `org-add-log-setup'

Re: [PATCH] add a function to only refresh inline images under current headline instead of global buffer

2023-05-15 Thread Ihor Radchenko
"Christopher M. Miles" writes: > The `org-redisplay-inline-images' will refresh whole buffer inline > images. When the buffer is a big Org file, and not all inline images are > display already by default (still image file links under fold status). > Invoking `org-redisplay-inline-images' will

Re: [PATCH v2] Re: Improve the performance of `org-set-tags-command` on large `org-tag-alist`

2023-05-15 Thread Ihor Radchenko
"Christopher M. Miles" writes: >> You are almost there. >> Just run your code only when (lentgh> fulltable 26). >> >> Of course, 26 should be a defcustom rather than a hard-coded constant. >> And do the same for `org-fast-todo-selection'. > > Ok, I added defcustom option, and add cl-case

Re: org code and error catching

2023-05-15 Thread Ihor Radchenko
Michael Heerdegen writes: > Ihor Radchenko writes: > >> This is a good idea, except that `condition-case-unless-debug' has >> non-obvious side effects that interfere with ERT (Org testing system). > > What side effects are these? In my attempts, the tests started failing for no obvious reason.