Re: [BUG] org-agenda-list takes 4m compared to 27 that took 15 seconds [9.5.2 (release_9.5.2-25-gaf6f12 @ /usr/share/emacs/28.1/lisp/org/)]

2022-09-20 Thread Ihor Radchenko
andrés ramírez writes: > Ihor> This does not make sense. According to your profiler, you are > still using an older > Ihor> version of org-in-src-block-p function. Can you please make sure > that no obsolete .elc > Ihor> files are present in the Org distribution? (you can run

Re: svg file from tikz picture

2022-09-20 Thread Edouard Debry
Hi, I had this very same question to produce svg from latex src blocks. First, consider this example : #+HEADER: :file test1.png #+HEADER: :exports results #+HEADER: :results output silent graphics file #+HEADER: :fit yes :noweb yes :headers '("\\usepackage{tikz}"

Re: [PATCH] Fixing refile cache use for org-goto in indirect buffers.

2022-09-20 Thread Max Nikulin
On 20/09/2022 19:44, Yuchen Pei wrote: Thanks for the reply. On Mon 2022-09-19 22:48:34 +0700, Max Nikulin wrote: On 19/09/2022 12:16, Yuchen Pei wrote: To reprod: - make sure the org-refile-targets generates a big enough list where the refile cache makes a difference - visit an org file

strange errors with org-element-cache-reset and jit-lock-function void-variable org-element-citation-prefix-re

2022-09-20 Thread Daniel Ortmann
Hmmm ... While trying to investigate one bug I have run into another odd one: * emacs version: GNU Emacs 29.0.50 (build 23, x86_64-pc-linux-gnu, GTK+ Version 3.22.30, cairo version 1.15.12) of 2022-09-20 * org version: Org mode version 9.5.5 (release_9.5.5-804-gf1a197 @

Re: Re [Patch] Pre-/postpend arbitrary LaTeX code to a section

2022-09-20 Thread Juan Manuel Macías
Ihor Radchenko writes: >> Can it be extended to add properties to a >> #BEGIN_example >> #END_example >> snippet? > > Didn't we conclude that wrapping blocks during LaTeX export should be > done via special blocks? (This question has been raised multiple times, > I am unsure if you are referring

Re: [Patch] Pre-/postpend arbitrary LaTeX code to a section

2022-09-20 Thread Juan Manuel Macías
Ihor Radchenko writes: > I do not like this idea. > Please remember that headlines may be exported as parts, sections, > subsections, list items, or paragraphs depending on the headline level. > Arbitrary pre/post commands may unexpectedly break things during export. I don't see why, if the user

Re: [PATCH] [BUG] org.el: Fix first call of `org-paste-subtree'

2022-09-20 Thread Max Nikulin
On 20/09/2022 20:16, Ihor Radchenko wrote: Max Nikulin writes: When REMOVE is non-nil, remove the subtree from the clipboard." (interactive "P") - (setq tree (or tree (and kill-ring (current-kill 0 + (setq tree (or tree (current-kill 0))) (unless (org-kill-is-subtree-p tree)

Re: Org mode links: Open a PDF file at a given page and highlight a given string

2022-09-20 Thread Max Nikulin
On 20/09/2022 18:54, Ihor Radchenko wrote: Max Nikulin writes: Currently I believe that instead of injecting up to 6 entries into `org-file-apps' for various combinations of page, anchor, and search pattern, it is better to add single record with function handler. Notice that the approach

[no subject]

2022-09-20 Thread Joshua Honeycutt
To: emacs-orgmode@gnu.org Subject: Bug: org-html-example-block can produce multiple class attributes [9.4 (9.4-dist @ /usr/share/emacs/site-lisp/elpa/org-9.4/)] From: Joshua Honeycutt --text follows this line-- Emacs : GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.24, cairo

RE: You can now support Org-mode through https://liberapay.com/org-mode/

2022-09-20 Thread Cook, Malcolm
Thanks for all you do – donation forthcoming! From: Emacs-orgmode On Behalf Of Bastien Sent: Saturday, September 17, 2022 3:32 AM To: emacs-orgmode@gnu.org Subject: You can now support Org-mode through https://liberapay.com/org-mode/ CAUTION: This email is from an External Source. Please use

Re: [BUG] org-agenda-list takes 4m compared to 27 that took 15 seconds [9.5.2 (release_9.5.2-25-gaf6f12 @ /usr/share/emacs/28.1/lisp/org/)]

2022-09-20 Thread Ihor Radchenko
andrés ramírez writes: > Ihor> Can you please try again with the newest Org? > > Done (f1a1974). There is NO improvement. It still takes 33s. > ... > JIC: I am attaching a new profiler report. This does not make sense. According to your profiler, you are still using an older version of

Re: FR: support hard-newlines [9.5.5 (release_9.5.5 @ /home/viz/lib/ports/emacs/lisp/org/)]

2022-09-20 Thread Ihor Radchenko
Visuwesh writes: >> All in all, I feel that fully respecting `use-hard-newlines' in Org is >> not a good idea. We can do it partially (for filling), but I am afraid >> that it may create some confusion. > > I am not sure what you mean by confusion here: those who have > `use-hard-newlines'

Re: FR: support hard-newlines [9.5.5 (release_9.5.5 @ /home/viz/lib/ports/emacs/lisp/org/)]

2022-09-20 Thread Visuwesh
[செவ்வாய் செப்டம்பர் 20, 2022] Ihor Radchenko wrote: >>> All in all, I feel that fully respecting `use-hard-newlines' in Org is >>> not a good idea. We can do it partially (for filling), but I am afraid >>> that it may create some confusion. >> >> I am not sure what you mean by confusion here:

Re: [Patch] Pre-/postpend arbitrary LaTeX code to a section

2022-09-20 Thread Ihor Radchenko
Juan Manuel Macías writes: > I don't know if the following scenario usually appears in the workflow > of other Org users as well. Otherwise, I think this patch could be > ignored. > > In my workflow I often need to pre- or postpend some LaTeX code > immediately before or after a section.

Re: [PATCH] [BUG] org.el: Fix first call of `org-paste-subtree'

2022-09-20 Thread Ihor Radchenko
Max Nikulin writes: > When REMOVE is non-nil, remove the subtree from the clipboard." >(interactive "P") > - (setq tree (or tree (and kill-ring (current-kill 0 > + (setq tree (or tree (current-kill 0))) >(unless (org-kill-is-subtree-p tree) The main problem the old code solves is

Re: [PATCH] Updated patch, fixed data structure for table

2022-09-20 Thread Ihor Radchenko
"Christopher M. Miles" writes: > + ;; variable's value is a list from org-mode passed table > or list. > +(if (listp (cdr (car vars))) > + (format "(let [%s]\n%s)" > + (mapconcat > +

Re: Re [Patch] Pre-/postpend arbitrary LaTeX code to a section

2022-09-20 Thread Ihor Radchenko
Pedro Andres Aranda Gutierrez writes: > Can it be extended to add properties to a > #BEGIN_example > #END_example > snippet? Didn't we conclude that wrapping blocks during LaTeX export should be done via special blocks? (This question has been raised multiple times, I am unsure if you are

Re: IM dev discussions? (was: orgmode.org welcome page says to install via MELPA but as writing, this cannot be done)

2022-09-20 Thread Russell Adams
On Tue, Sep 20, 2022 at 05:22:50PM +0800, Ihor Radchenko wrote: > The problem with the list is that emails often have ~minutes overheads. > It sometimes takes unnecessary extra time to discuss small > clarifications on list. > > I am wondering if we could create a common Org dev matrix room for

Re: FR: support hard-newlines [9.5.5 (release_9.5.5 @ /home/viz/lib/ports/emacs/lisp/org/)]

2022-09-20 Thread Visuwesh
[செவ்வாய் செப்டம்பர் 20, 2022] Ihor Radchenko wrote: >> 1. When you want to end a line with a link and continue text in the >>next line. You don't care about the export since it will be >>taken care of properly. >> 2. When reflowing text with inline latex in them. You

Re: [PATCH] Fixing refile cache use for org-goto in indirect buffers.

2022-09-20 Thread Yuchen Pei
Thanks for the reply. On Mon 2022-09-19 22:48:34 +0700, Max Nikulin wrote: > On 19/09/2022 12:16, Yuchen Pei wrote: >> To reprod: >> - make sure the org-refile-targets generates a big enough list where >>the refile cache makes a difference >> - visit an org file in org-refile-targets >> - M-x

Re: FR: support hard-newlines [9.5.5 (release_9.5.5 @ /home/viz/lib/ports/emacs/lisp/org/)]

2022-09-20 Thread Ihor Radchenko
Visuwesh writes: > Hard-newlines [1] are an excellent way to inform Emacs to stop refilling > lines. In a way, this serves a similar purpose to org's \\ but with a > major difference being that hard-newlines are not saved to file. There > are several cases where this is the desired behaviour:

Re: Org mode links: Open a PDF file at a given page and highlight a given string

2022-09-20 Thread Ihor Radchenko
Max Nikulin writes: > Currently I believe that instead of injecting up to 6 entries into > `org-file-apps' for various combinations of page, anchor, and search > pattern, it is better to add single record with function handler. Notice > that the approach presented above is not affected by the

Re: [BUG] org-agenda-list takes 4m compared to 27 that took 15 seconds [9.5.2 (release_9.5.2-25-gaf6f12 @ /usr/share/emacs/28.1/lisp/org/)]

2022-09-20 Thread Ihor Radchenko
andrés ramírez writes: > Ihor> Please try again on the latest main. > > Now it is taking 33s vs 22s from emacs-27 on a cold-boot. Thanks for providing more profiling data. I just pushed yet another performance improvement onto main.

Re: [PATCH v6] New: auto display inline images under subtree when `org-cycle'.

2022-09-20 Thread Christopher M. Miles
I checked out your patch, it's fine to me. Should be fine to apply. Ihor Radchenko writes: > "Christopher M. Miles" writes: > >> Ok, I will submit the first patch of new property at first. If you're >> going to implement this cycling inline image display feature, >> that's great! > > The

Re: svg file from tikz picture

2022-09-20 Thread reza
By setting (setq org-babel-latex-preamble (lambda (_) "\\documentclass[preview]{standalone}\n") the tikz file svg generation does run fine. Obviously the part \\def\\pgfsysdriver{pgfsys-tex4ht.def} inside `org-babel-latex-preamble` does not play well with the svg generation. When

Re: [BUG] Info JS does not work [9.5.3 (release_9.5.3-467-g2bd34e @ /Users/salutis/src/org-mode/lisp/)]

2022-09-20 Thread Ihor Radchenko
Bastien writes: >> Also, having an actual mirror in sr.ht means that we may set up automatic >> tests. WDYT about this idea? > > Tests are useful if they prevent contributors from changing the code > in a way that break them: this must happen before pushing changes to > the bugfix or main

Re: [BUG] Info JS does not work [9.5.3 (release_9.5.3-467-g2bd34e @ /Users/salutis/src/org-mode/lisp/)]

2022-09-20 Thread Bastien
Ihor Radchenko writes: > Thanks! Should we then add an information about mirror to orgmode.org > (or, at least, to WORG)? On Worg, sure. > Also, having an actual mirror in sr.ht means that we may set up automatic > tests. WDYT about this idea? Tests are useful if they prevent contributors

Re: Org donations page statement: explain where the donations are coming to? (was: Fwd: Re: Typo in info pages)

2022-09-20 Thread Ihor Radchenko
Ihor Radchenko writes: >> I didn't want to disrespect you in any way. I am still glad that I made >> the contribution, and I know that money is not the motivation for the >> good development (I tried to be generous, nevertheless). However, may be >> it would be wise to add that link >>

IM dev discussions? (was: orgmode.org welcome page says to install via MELPA but as writing, this cannot be done)

2022-09-20 Thread Ihor Radchenko
Bastien writes: > Timothy writes: > >> The whole top banner has become a bit messy, IMO. I’ll have a go at cleaning >> it >> up later today. > > As discussed on Matrix, please go ahead -- for future suggestions on > the website, it's fine to discuss them on this list. The problem with the

Re: contrib - ol-todo

2022-09-20 Thread Ihor Radchenko
Tyler Grinn writes: > I've built this small package which registers a todo type link: > > [[todo:~/projects.org::#my-todo][My todo]] > > And it is displayed like this: > > My todo > > Where DONE is the actual todo keyword on the target heading. The keyword > on the link and target stay in sync,

Re: [PATCH] Add org-babel-tangle-finished hook

2022-09-20 Thread Ihor Radchenko
Timothy writes: > +(defcustom org-babel-tangle-finished-hook nil > + "Hook run at the very end of `org-babel-tangle'. > +In this way, it is the counterpart to `org-babel-pre-tangle-hook'." > + :group 'org-babel > + :package-version '(Org . "9.6") > + :type 'hook) I'd also mention the active

Re: [BUG] Info JS does not work [9.5.3 (release_9.5.3-467-g2bd34e @ /Users/salutis/src/org-mode/lisp/)]

2022-09-20 Thread Ihor Radchenko
Bastien writes: > FWIW, I just set this up: the org-mode.git Savannah repository is > now mirrored to git.sr.ht and github.com every day at 1am CET. Thanks! Should we then add an information about mirror to orgmode.org (or, at least, to WORG)? Also, having an actual mirror in sr.ht means that

Re: Properly handle defaults in org-set-property

2022-09-20 Thread Ihor Radchenko
Janek F writes: > As discussed in > https://emacs.stackexchange.com/questions/71774/pass-default-value-to-org-set-property/71777, > providing a default to org-set-property does not always work. > > It calls `org-read-property-value`, which only uses the supplied default > value if it can

Re: [PATCH] Babel evaluation: location and timing information

2022-09-20 Thread Ihor Radchenko
Timothy writes: > - (message "executing %s code block%s..." > + (message "executing %s %s %s..." >(capitalize lang) > + (pcase (org-element-type (org-element-at-point)) > + ('src-block "code block") > +

Re: Org donations page statement: explain where the donations are coming to? (was: Fwd: Re: Typo in info pages)

2022-09-20 Thread Ihor Radchenko
Ihor Radchenko writes: >> I didn't want to disrespect you in any way. I am still glad that I made >> the contribution, and I know that money is not the motivation for the >> good development (I tried to be generous, nevertheless). However, may be >> it would be wise to add that link >>

Re: [BUG] org-paste-subtree inserts empty line above paste

2022-09-20 Thread Ihor Radchenko
Felix Wiemuth writes: > Any idea what the reason could be? Could it be any configuration that > leads to this? Or is it probably a bug in spacemacs and I should post > the issue there? If you do not see the issue using the same version of Org spacemacs uses but without spacemacs or your

Re: orgmode.org welcome page says to install via MELPA but as writing, this cannot be done

2022-09-20 Thread Bastien
Timothy writes: > The whole top banner has become a bit messy, IMO. I’ll have a go at cleaning > it > up later today. As discussed on Matrix, please go ahead -- for future suggestions on the website, it's fine to discuss them on this list. Thanks a lot ! -- Bastien

[PATCH v6] Re: [PATCH 5] New: auto display inline images under subtree when `org-cycle'.

2022-09-20 Thread Ihor Radchenko
"Christopher M. Miles" writes: > Ok, I will submit the first patch of new property at first. If you're > going to implement this cycling inline image display feature, > that's great! The changes to the manual are confusing after exporting. Note that #+vindex: org-image-actual-width will not be