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

2022-09-26 Thread Juan Manuel Macías
Ihor Radchenko writes: > What I have in mind is to modify `org-export-read-attribute' directly. > Then, we can call `org-export-read-attribute' in `org-export-data'; > resolve the refs in the template (re-use code from > `org-babel-ref-resolve' and `org-babel-parse-multiple-vars'); do normal > exp

Re: org-assert-version considered harmful

2022-09-26 Thread Ihor Radchenko
Bastien writes: > Still, "Org mode version 9.6-pre (...)" is more accurate IMO. Ok. Pushed the patch + version change onto main. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=c29d3e997d703f6bf14db559e351729cc25e4f26 https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?i

Re: org-assert-version considered harmful

2022-09-26 Thread Ihor Radchenko
Bastien writes: > Ihor Radchenko writes: > >> Then, I am inclined towards easing the version check to (org-version) >> instead of (org-git-version). > > FWIW strong +1 here. Done now. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=73f25bba8ffb9fe434486832c6acb98794dd2e69 Note t

Re: [BUG] Face attribute customization is ignored [9.5.5 (9.5.5-gbe2246 @ /home/dav/.emacs.d/straight/build/org/)]

2022-09-26 Thread David Vicente
On 25/09/22 04:29, Ihor Radchenko wrote: If you want to be really safe, try setting the :extend face property in org-font-lock-set-keywords-hook or in org-mode-hook. Yep, I was using org-mode-hook to be safe before filling this bug report. Thanks!

Should page break (^L) work as paragraph element separator and be included into Org syntax? (was: [BUG] org-fill-paragraph doesn't handle ^L correctly [9.5.4 (release_9.5.4-19-g4dff42 @ /home/matt/Cod

2022-09-26 Thread Ihor Radchenko
Matt Beshara writes: > ‘org-fill-paragraph’ does not correctly handle ^L characters > (a.k.a. form feed, C-q C-l). It should treat them as paragraph > separating whitespace, but instead treats them as any other > character which would appear in normal text. Here is an example > to demonstra

Extract toc from org file

2022-09-26 Thread reza
Hi list Is there a way to extract a toc from an org file e.g: #+INCLUDE: myfile.org :toc only I want to assemble the toc's from several files into one file and there seems to be no easy way to do this. Best, Reza OpenPGP_0xC375C6AF05125C52.asc Description: application/pgp-keys OpenPGP

Re: [BUG] org-create-file-search-functions and description [9.5.5 (release_9.5.5 @ /usr/share/emacs/29.0.50/lisp/org/)]

2022-09-26 Thread Ihor Radchenko
Magnus Therning writes: > The documenation on org-create-file-search-functions contains this > piece of text > > A function in this hook may also use setq to set the variable > description to provide a suggestion for the descriptive text to > be used for this link when it gets inserted i

Re: [BUG] org-create-file-search-functions and description [9.5.5 (release_9.5.5 @ /usr/share/emacs/29.0.50/lisp/org/)]

2022-09-26 Thread Magnus Therning
Ihor Radchenko writes: Magnus Therning writes: The documenation on org-create-file-search-functions contains this piece of text A function in this hook may also use setq to set the variable description to provide a suggestion for the descriptive text to be used for this link when

Re: [BUG] org-auto-repeat-maybe: error "Can’t expand minibuffer to full frame" and missing log note

2022-09-26 Thread Ihor Radchenko
Bhavin Gandhi writes: > I'm attaching the patch for the current approach we discussed in this > thread. I have tried basic operations like taking note on state change, > and have tried with recurring entries which need more than 10 cycles to > be marked as done (original bug report). > > As I was

Re: refresh not working for org-mode from git

2022-09-26 Thread Ihor Radchenko
Colin Baxter writes: > The solution is to use `make autoloads'. I suppose that should have been > obvious to me at the beginning. After git pull (`+' in vc-dir) the > working recipe is: FYI, the versions checks are less strict now to work around some Emacs limitations. See https://list.orgmode.

Syntax highlighting for julia source blocks

2022-09-26 Thread reza
Hi list When exporting to html, syntax highlighting is automatically applied to exported python source blocks (syntax elements get a span element applied). But this does not work for julia source code blocks. Is this just not implemented or do I miss something? Cheers, Reza OpenPGP_0xC375C6A

Re: emacs really slow when inserting a new source code block

2022-09-26 Thread Luca Ferrari
On Mon, Sep 26, 2022 at 6:41 AM Ihor Radchenko wrote: > Thanks for reporting! > May you > 1. M-x profiler-start cpu > 2. Move/paste/edit your source block > 3. M-x profiler-report > 4. M-x profiler-report-write-profile and share the resulting file here Apparently I'm not able to get the profil

Re: Should page break (^L) work as paragraph element separator and be included into Org syntax? (was: [BUG] org-fill-paragraph doesn't handle ^L correctly [9.5.4 (release_9.5.4-19-g4dff42 @ /home/matt

2022-09-26 Thread Matt Beshara
^L is not a part of Org specification for paragraph separators. According to https://orgmode.org/worg/dev/org-syntax.html#Paragraphs, paragraph boundaries should either be empty lines, or beginning of other Org elements. Fair enough. If the consensus from others is that ^L should be recogni

Re: Extract toc from org file

2022-09-26 Thread Max Nikulin
On 26/09/2022 18:53, reza wrote: Is there a way to extract a toc from an org file e.g: #+INCLUDE: myfile.org :toc only I want to assemble the toc's from several files into one file and there seems to be no easy way to do this. Likely `org-element-map' allows to extract headings. There

Re: emacs really slow when inserting a new source code block

2022-09-26 Thread Ihor Radchenko
Luca Ferrari writes: > On Mon, Sep 26, 2022 at 6:41 AM Ihor Radchenko wrote: >> Thanks for reporting! >> May you >> 1. M-x profiler-start cpu >> 2. Move/paste/edit your source block >> 3. M-x profiler-report >> 4. M-x profiler-report-write-profile and share the resulting file here > > Apparen

Re: Syntax highlighting for julia source blocks

2022-09-26 Thread reza
On 9/26/22 17:15, Fraga, Eric wrote: > On Monday, 26 Sep 2022 at 14:09, reza wrote: >> When exporting to html, syntax highlighting is automatically applied to >> exported python source blocks (syntax elements get a span element >> applied). But this does not work for julia source code blocks. Is th

Re: Syntax highlighting for julia source blocks

2022-09-26 Thread Fraga, Eric
On Monday, 26 Sep 2022 at 14:09, reza wrote: > When exporting to html, syntax highlighting is automatically applied to > exported python source blocks (syntax elements get a span element > applied). But this does not work for julia source code blocks. Is this > just not implemented or do I miss som

Re: Syntax highlighting for julia source blocks

2022-09-26 Thread reza
On 9/26/22 17:15, Fraga, Eric wrote: > On Monday, 26 Sep 2022 at 14:09, reza wrote: >> When exporting to html, syntax highlighting is automatically applied to >> exported python source blocks (syntax elements get a span element >> applied). But this does not work for julia source code blocks. Is th

Re: [BUG] org-create-file-search-functions and description [9.5.5 (release_9.5.5 @ /usr/share/emacs/29.0.50/lisp/org/)]

2022-09-26 Thread Max Nikulin
On 26/09/2022 19:12, Ihor Radchenko wrote: Magnus Therning writes: The documenation on org-create-file-search-functions contains this piece of text A function in this hook may also use setq to set the variable description to provide a suggestion for the descriptive text to be used for

Re: Extract toc from org file

2022-09-26 Thread Juan Manuel Macías
reza writes: > Is there a way to extract a toc from an org file e.g: > > #+INCLUDE: myfile.org :toc only > > I want to assemble the toc's from several files into one file and there > seems to be no easy way to do this. Maybe the org-make-toc package can help you with what you're looking for:

Re: IM dev discussions?

2022-09-26 Thread Hendursaga
Payas Relekar writes: > Admittedly I am yet to try it, but it can also provide filtering to mute > particular categories so they don't clutter your mailbox :) > > Replying to discourse notification emails has worked well in my experience, > and there are apparently ways to create new posts by s

Re: Extract toc from org file

2022-09-26 Thread Max Nikulin
On 26/09/2022 22:21, Max Nikulin wrote: On 26/09/2022 18:53, reza wrote: Is there a way to extract a toc from an org file e.g:   #+INCLUDE: myfile.org :toc only I want to assemble the toc's from several files into one file and there seems to be no easy way to do this. Likely `org-elemen

Re: Should page break (^L) work as paragraph element separator and be included into Org syntax? (was: [BUG] org-fill-paragraph doesn't handle ^L correctly [9.5.4 (release_9.5.4-19-g4dff42 @ /home/matt

2022-09-26 Thread Max Nikulin
On 26/09/2022 18:39, Ihor Radchenko wrote: Should we add page break (^L) to our syntax? It sounds like a reasonable addition for a text-based markup. I do not have strong opinion. It is a control character while I prefer explicit markup and printable characters or commands in such case. On t

Re: [PATCH] ob-clojure.el: Add support for babashka and nbb backend

2022-09-26 Thread Daniel Kraus
Hi! Bastien writes: > Applied in main as 764642f5, thanks a lot and sorry for the delay. > > I also added you to https://orgmode.org/worg/contributors.html. Thank you very much :) > Would you consider taking over the maintainance of ob-clojure.el? I think I would. What does this exactly entai

Re: on picking diary-style timestamps or normal timestamps when adding agenda entries (was: [BUG] org-agenda-list takes 4m compared to 27 that took 15 seconds [9.5.2 (release_9.5.2-25-gaf6f12 @ /usr/s

2022-09-26 Thread andrés ramírez
Hi. Ihor. > "Ihor" == Ihor Radchenko writes: [...] --8<---cut here---start->8--- ** PE etiro.espiritual {collaborator.family} :DAVID: :PROPERTIES: :CATEGORY: da.santi :END: <2022-09-24 Sat 9:00-11:00> --8<---cut here---end-

Confused about what the COMMENT keyword means

2022-09-26 Thread Alain . Cochard
Hello. I have the file: * COMMENT foo #+EXPORT_FILE_NAME: foo.pdf #+TITLE: foot fofoo * bar #+EXPORT_FILE_NAME: bar.pdf #+TITLE: bart babar If I do 'C-c e l p', the file 'foo.pdf' is created from the 'foo.tex' file. The content is bar'ish, though, as I expect. By cont

Compiling a C++ source block

2022-09-26 Thread Roger Mason
Hello, I wish to compile & run this source block in org-mode: #+name: gnc_cav #+header: :includes #+header: :libs -L/usr/local/lib -lginac -lcln #+header: :flags -std=c++17 #+header: :namespaces std GiNaC # #+header: :var table= #+header: :var job="vectors" :var vol=113.13115406160385926 :var

Re: Compiling a C++ source block

2022-09-26 Thread tbanelwebmin
You may try: #+header: :includes '("" "") Also, you have this commented line: # #+header: :var table= It seems to break the #+header: chain Just remove it. By the way, to figure out future compilation problems, you may click on the error:

Re: Should page break (^L) work as paragraph element separator and be included into Org syntax? (was: [BUG] org-fill-paragraph doesn't handle ^L correctly [9.5.4 (release_9.5.4-19-g4dff42 @ /home/matt

2022-09-26 Thread Tim Cross
Max Nikulin writes: > On 26/09/2022 18:39, Ihor Radchenko wrote: >> Should we add page break (^L) to our syntax? It sounds like a reasonable >> addition for a text-based markup. > > I do not have strong opinion. It is a control character while I prefer > explicit markup and > printable charact

Please add support for dlangs packagemanager to ob-C.el

2022-09-26 Thread Christian Köstlin
Please see the patch comment. I reworked my original patch to fit into the TINYPATCH category. Kind regards, Christian 0001-lisp-ob-C.el-Support-dub-dependencies-for-dlang.patch Description: Binary data

Re: Extract toc from org file

2022-09-26 Thread Ihor Radchenko
reza writes: > Hi list > > Is there a way to extract a toc from an org file e.g: > > #+INCLUDE: myfile.org :toc only > > I want to assemble the toc's from several files into one file and there > seems to be no easy way to do this. I presume that you are attempting to export multiple org fi

Re: [BUG] org-create-file-search-functions and description [9.5.5 (release_9.5.5 @ /usr/share/emacs/29.0.50/lisp/org/)]

2022-09-26 Thread Ihor Radchenko
Max Nikulin writes: >> Thus, we may as well take this opportunity and allow >> `org-create-file-search-functions' to return a cons cell >> ("search term" . "description"). This will not require unintuitive >> global variables. > > There is the `org-store-link-plist' variable used by :store functi

[BUG] org-store-link-functions advertizes that the first non-nil return value is used, but it is not how org-store-link handles it (was: [BUG] org-create-file-search-functions and description [9.5.5 (

2022-09-26 Thread Ihor Radchenko
Max Nikulin writes: > There is the `org-store-link-plist' variable used by :store functions > from `org-link-parameters' but not by the > `org-create-file-search-functions' hook. Maybe it is enough to add Reading through `org-store-link-functions' docstring and `org-store-link' code, I noticed

Re: Syntax highlighting for julia source blocks

2022-09-26 Thread Ihor Radchenko
reza writes: > Looks like I was missing `julia-mode', but still after installation, no > syntax highlighting for julia source code blocks... Can you please provide an example file and exact steps you did to export it? See https://orgmode.org/manual/Feedback.html -- Ihor Radchenko, Org mode co

org exported pdf files

2022-09-26 Thread Jude DaShiell
can these files include the language attribute like what happens in microsoft word? If yes, and the contents are text that would go a long way to making those pdf files screen-reader accessible. Jude "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please

Re: Confused about what the COMMENT keyword means

2022-09-26 Thread Ihor Radchenko
alain.coch...@unistra.fr writes: > Hello. I have the file: > >* COMMENT foo >#+EXPORT_FILE_NAME: foo.pdf >#+TITLE: foot >fofoo >* bar >#+EXPORT_FILE_NAME: bar.pdf >#+TITLE: bart >babar #+EXPORT_FILE_NAME is an in-buffer export setting with global effect. According

Re: [PATCH] ob-clojure.el: Add support for babashka and nbb backend

2022-09-26 Thread Ihor Radchenko
Daniel Kraus writes: >> Would you consider taking over the maintainance of ob-clojure.el? > > I think I would. What does this exactly entail? > Should I subscribe to https://updates.orgmode.org/ or something? We have some info in https://orgmode.org/worg/org-maintenance.html#org37c7d5d Ideally,

Re: on picking diary-style timestamps or normal timestamps when adding agenda entries (was: [BUG] org-agenda-list takes 4m compared to 27 that took 15 seconds [9.5.2 (release_9.5.2-25-gaf6f12 @ /usr/s

2022-09-26 Thread Ihor Radchenko
andrés ramírez writes: > --8<---cut here---start->8--- > ** PE etiro.espiritual {collaborator.family} :DAVID: > :PROPERTIES: > :CATEGORY: da.santi > :END: > <2022-09-24 Sat 9:00-11:00> > --8<---cut here---end--->8--- > > That

Re: org exported pdf files

2022-09-26 Thread Ihor Radchenko
Jude DaShiell writes: > can these files include the language attribute like what happens in > microsoft word? AFAIK, yes. See org-latex-hyperref-template > If yes, and the contents are text that would go a long > way to making those pdf files screen-reader accessible. Have you tried Org-export

Re: on picking diary-style timestamps or normal timestamps when adding agenda entries

2022-09-26 Thread andrés ramírez
Hi. Ihor. > "Ihor" == Ihor Radchenko writes: [...] Ihor> Not at all. You can as well do --8<---cut here---start->8--- * PE :PROPERTIES: :CATEGORY: da.santi :END: ** <2022-09-24 Sat 9:00-11:00> etiro.espiritual {collaborator.family} :DAVID: ** <2022-

Re: org exported pdf files

2022-09-26 Thread Jude DaShiell
Jude "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author, 1940) . On Tue, 27 Sep 2022, Ihor Radchenko wrote: > Jude DaShiell writes: > > > can these files include the language attribute like what happens

Re: on picking diary-style timestamps or normal timestamps when adding agenda entries

2022-09-26 Thread Ihor Radchenko
andrés ramírez writes: > --8<---cut here---start->8--- > * PE > :PROPERTIES: > :CATEGORY: da.santi > :END: > ** <2022-09-24 Sat 9:00-11:00> etiro.espiritual {collaborator.family} :DAVID: > ** <2022-09-27 Tue> Another entry to be displayed in agenda. It inherits

Re: org exported pdf files

2022-09-26 Thread Ihor Radchenko
Jude DaShiell writes: >> Have you tried Org-exported pdfs on screen-reader? >> (I haven't, so I am curious to see if there are any improvements we can >> make in this area). >> > Not yet, but that will be on my list. Is that latex template > automatically used by orgmode when doing a pdf export

Re: org exported pdf files

2022-09-26 Thread Jude DaShiell
Having examined 13.10.2, with the polyglossia package installed and accessible to orgmode putting set-language into the right place would default to English and other languages would need to specify their language for a pdf export. On Linux I have espeak-ng running as default and I run orca as nec

Re: org exported pdf files

2022-09-26 Thread Ihor Radchenko
Jude DaShiell writes: > Having examined 13.10.2, with the polyglossia package installed and > accessible to orgmode putting set-language into the right place would > default to English and other languages would need to specify their > language for a pdf export. The default can be changed in your

Re: Should page break (^L) work as paragraph element separator and be included into Org syntax? (was: [BUG] org-fill-paragraph doesn't handle ^L correctly [9.5.4 (release_9.5.4-19-g4dff42 @ /home/matt

2022-09-26 Thread Robert Klein
On Tue, 27 Sep 2022 01:10:49 +1000 Matt Beshara wrote: > > ^L is not a part of Org specification for paragraph separators. > > According to > > https://orgmode.org/worg/dev/org-syntax.html#Paragraphs, > > paragraph boundaries should either be empty lines, or beginning > > of other > > Org eleme