[no subject]

2023-02-17 Thread Pedro Andres Aranda Gutierrez
I was playing with your file and changed the last block: #+begin_src emacs-lisp :var alist=animal_list() (mapcar #'(lambda (x) (message "mapcar %s" x)) alist) #+end_src #+RESULTS: | mapcar 10 | mapcar 34 | mapcar 103 | mapcar 97 | mapcar 122 | mapcar 101 | mapcar 108 | mapcar 108 | mapcar 101 |

Bug: code block not evaluated during export when placed in SETUPFILE [9.4 (9.4-elpa @ /home/bruno/.emacs.d/elpa/org-9.4/)]

2023-02-17 Thread Bruno BEAUFILS
In the org manual the following lines can be read about #+SETUPFILE: (emphaze is mine): » Org also parses and loads the document during normal exporting process. » Org parses the contents of this document **as if it was included** in the » buffer. It can be **another Org file**. However, when I

Org-mode meta results

2023-02-17 Thread Galaxy Being
I can't get this to play the meta game in an org-mode buffer #+begin_src emacs-lisp (defun print-elements-of-list (list) "Print each element of LIST on a line of its own." (while list (print (car list)) (setq list (cdr list #+end_src #+RESULTS: : print-elements-of-list

Re: Strange behaviour: Repeating tasks jumping in time

2023-02-17 Thread TRS-80
Alexei Gilev writes: > For repeating tasks, every once in a while I miss them. > Then I check them in my org file plus I visit git-status to find they have > been shifted. Sometimes even years (usually months). > > I haven't been able to track the source of this behaviour. Can you reproduce

Re: Template for ob- packages?

2023-02-17 Thread Leo Butler
On Thu, Feb 16 2023, Matt wrote: > On Thu, 16 Feb 2023 16:10:51 -0500 Galaxy Being wrote --- > > Is there a generic starter template for writing an ob- > package, some sort of example code? > > Yes: > https://git.sr.ht/~bzg/worg/tree/master/item/org-contrib/babel/ob-template.el > >

Re: Bug: org-latex-export-to-pdf does not remove .tex file [9.4 (9.4-elpa @ /home/bruno/.emacs.d/elpa/org-9.4/)]

2023-02-17 Thread Bruno BEAUFILS
On Fri, Feb 17, 2023 at 01:30:37PM +, Ihor Radchenko wrote: > Even if we used exit code, what would it achieve? Knowing if the compilation went well (0 as exit status) or not (anything different than 0). > You can do it in batch as well. See `org-sbe'. I did not know this macro. Thank's to

Re: [BUG] [9.6 (9.6-??-971eb6885 @ /home/abucz/.emacs.d/.local/straight/build-28.2/org/)]

2023-02-17 Thread Ihor Radchenko
[ Adding Org mailing list back to CC to let other users see the discussion. Please, use reply all when replying to emails on mailing list, unless you really want to reply privately. ] Matthew Czuba writes: > How can I provide you with the answer that you’re looking for? If you’ll > direct

Re: New Org (from main) and slow clocking

2023-02-17 Thread Marcin Borkowski
On 2023-02-17, at 19:14, Ihor Radchenko wrote: > Marcin Borkowski writes: > >>> Another thing you can try is setting org-element--cache-self-verify to >>> nil. >> >> That did help indeed. Should I make it nil in my init.el? > > You can, as long as you do not see warnings from Org about >

Re: [PATCH] [FR] Fontifying src-blocks with no language specified

2023-02-17 Thread carsten
Ihor Radchenko skrev den 2023-02-17 13:20: cars...@kragelund.me writes: Fontifying src-blocks with a missing language would allow being able to theme src-blocks without having the unthemed text of languages fallback to whatever color the src-blocks are set to. I envision this could be done

Re: [Bug] 'org-font-lock-extra-keywords' appear next to the parent heading when its subtree is folded.

2023-02-17 Thread Ihor Radchenko
Philipp Kiefer writes: > Here's what I did: > > 1. Downloaded org-cycle.el and org-fold-core.el via the link you sent > 2. Verified those are the correct files (found the changes in the files > that were highlighted in green on the git page) > 3. Copied both files over the ones in my >

Re: Unicode problem with export of literal contents

2023-02-17 Thread Ihor Radchenko
Jens Lechtenboerger writes: > I was afraid you would say so. To me, this is a breaking change. It is not a breaking change. It is Org's change revealing issues with your files. If you need to edit or act upon that part of the file, you could see the same problem. > Also, when I call

Re: New Org (from main) and slow clocking

2023-02-17 Thread Ihor Radchenko
Marcin Borkowski writes: >> Another thing you can try is setting org-element--cache-self-verify to >> nil. > > That did help indeed. Should I make it nil in my init.el? You can, as long as you do not see warnings from Org about org-element-cache. This variable is enabling extra consistency

Re: Bug: org-latex-export-to-pdf does not remove .tex file [9.4 (9.4-elpa @ /home/bruno/.emacs.d/elpa/org-9.4/)]

2023-02-17 Thread Ihor Radchenko
Jean Louis writes: >> Even if we used exit code, what would it achieve? > > - user wants PDF file > > - with exit code other but zero there will be no PDF file How so? Not in general, but only for certain values of org-latex-pdf-process. > - display error or move user straight to LaTeX file to

Re: [Bug] 'org-font-lock-extra-keywords' appear next to the parent heading when its subtree is folded.

2023-02-17 Thread Philipp Kiefer
Thanks a lot for looking into that, Ihor. However, I wasn't able to fix the bug here. Very likely, I did not "install" the fix correctly as I'm not sure how to go about it - or else it's not a complete fix yet. Here's what I did: 1. Downloaded org-cycle.el and org-fold-core.el via the link

Re: Unicode problem with export of literal contents

2023-02-17 Thread Bruno Barbier
Jens Lechtenboerger writes: > So, maybe my question is: Must text be decoded for Org mode from now on? Yes. Since forever. Emacs must know how to read/write from/to files and what text to display to you. Org is just relying on Emacs for that part. Bruno

Re: Unicode problem with export of literal contents

2023-02-17 Thread Bruno Barbier
Jens Lechtenboerger writes: > On 2023-02-17, Ihor Radchenko wrote: > >> Jens Lechtenboerger writes: >> > >> Not a bug. You need to fix your files with improper encoding. > > The file has the proper encoding. I insert literally on purpose as > stated above. IIUC, the file has the proper

Re: Template for ob- packages?

2023-02-17 Thread Galaxy Being
Yes, I'll try to have a look. My Emacs gig so far has been user/power user and "investigator" of Babel languages. Right now I'm on Prolog. I'll learn some of ob-prolog's capabilities first. On Thu, Feb 16, 2023 at 3:16 PM Matt wrote: > > On Thu, 16 Feb 2023 16:10:51 -0500 Galaxy Being

Re: Unicode problem with export of literal contents

2023-02-17 Thread Jens Lechtenboerger
On 2023-02-17, Ihor Radchenko wrote: > Jens Lechtenboerger writes: > >> With Org 9.6.1 from Emacs master, I get the following warning, and I >> am asked to select a coding system: >> >>> These default coding systems were tried to encode the following >>> problematic characters in the buffer ‘

Re: New Org (from main) and slow clocking

2023-02-17 Thread Marcin Borkowski
On 2023-02-17, at 14:32, Ihor Radchenko wrote: > Marcin Borkowski writes: > >>> Do you have org-element-use-cache set to nil? >> >> No, should I? > > You should not. But, when it is nil (not default), things will be slow > in your scenario. > > Another thing you can try is setting

Re: Not all reftex commands within latex block generate appropriate message

2023-02-17 Thread Alain . Cochard
alain.coch...@unistra.fr writes on Fri 17 Feb 2023 07:49: > I have sent a message to bug-auc...@gnu.org. I got answers. See this thread: https://lists.gnu.org/archive/html/bug-auctex/2023-02/threads.html#00035 -- EOST (École et Observatoire des Sciences de la Terre) ITE (Institut Terre &

Re: [BUG] org-indent and display text property not preserving column when moving

2023-02-17 Thread Darius Foo
Ihor Radchenko wrote: > Thanks for reporting! > It is unlikely an Org bug. Rather Emacs bug. > May you report it to Emacs devs via M-x report-emacs-bug? Thanks! I narrowed it down further to just calls to add-text-properties. Will do that.

Re: [PATCH] Fix some emacs-30 byte-compile warnings

2023-02-17 Thread Robert Pluim
> On Fri, 17 Feb 2023 14:08:04 +, Ihor Radchenko > said: Ihor> Robert Pluim writes: Ihor> 3 unexpected results: Ihor> FAILED test-org-table/copy-field Ihor> FAILED test-org-table/references/mode-string-N Ihor> FAILED test-org-table/references/mode-string-none

Re: Bug: org-latex-export-to-pdf does not remove .tex file [9.4 (9.4-elpa @ /home/bruno/.emacs.d/elpa/org-9.4/)]

2023-02-17 Thread Jean Louis
* Ihor Radchenko [2023-02-17 16:32]: > Bruno BEAUFILS writes: > > > On Fri, Feb 17, 2023 at 10:55:34AM +, Ihor Radchenko wrote: > >> > How so? > >> > >> latexmk -interaction=nonstopmode > > > > Still do not get the problem. I though that the exit code of the > > underlying process was used

Re: [PATCH] Provide a uniform way to inform users about missing third-party packages

2023-02-17 Thread Ihor Radchenko
Ihor Radchenko writes: > Subject: [PATCH] Provide a uniform way to inform users about missing > third-party packages Applied, onto main. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=fe92a3ced -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at

Re: [PATCH] Fix some emacs-30 byte-compile warnings

2023-02-17 Thread Ihor Radchenko
Robert Pluim writes: > Ihor> 3 unexpected results: > Ihor>FAILED test-org-table/copy-field > Ihor>FAILED test-org-table/references/mode-string-N > Ihor>FAILED test-org-table/references/mode-string-none > > Hmm, at least the first one is because the code in the 't'

Re: New Org (from main) and slow clocking

2023-02-17 Thread Ihor Radchenko
Marcin Borkowski writes: >> Do you have org-element-use-cache set to nil? > > No, should I? You should not. But, when it is nil (not default), things will be slow in your scenario. Another thing you can try is setting org-element--cache-self-verify to nil. If it does not help either, please

Re: Bug: org-latex-export-to-pdf does not remove .tex file [9.4 (9.4-elpa @ /home/bruno/.emacs.d/elpa/org-9.4/)]

2023-02-17 Thread Ihor Radchenko
Bruno BEAUFILS writes: > On Fri, Feb 17, 2023 at 10:55:34AM +, Ihor Radchenko wrote: >> > How so? >> >> latexmk -interaction=nonstopmode > > Still do not get the problem. I though that the exit code of the > underlying process was used but after having try to understand some of > the

Re: Use custom preamble from tex file for latex export

2023-02-17 Thread Ihor Radchenko
reza writes: >> Two possibilities: >> >> 1. Put file-local variable >> 2. Create an "Empty" class with empty documentclass statement >> and then #+LATEX_CLASS: Empty #+LATEX_HEADER: \input{...} >> > > Sorry for my noobish questions: > > 1. How do I put file-local variables in my org file?

Re: New Org (from main) and slow clocking

2023-02-17 Thread Marcin Borkowski
On 2023-02-17, at 13:02, Ihor Radchenko wrote: > Marcin Borkowski writes: > >> I have just updated my Org (from the main branch, Org mode version >> 9.6.1, release_9.6.1-253-g74eb0f), and I noticed an issue with clocking. >> I have an "ongoing" task which already accumulated 7000+ clock

Re: Bug: org-latex-export-to-pdf does not remove .tex file [9.4 (9.4-elpa @ /home/bruno/.emacs.d/elpa/org-9.4/)]

2023-02-17 Thread Bruno BEAUFILS
On Fri, Feb 17, 2023 at 10:55:34AM +, Ihor Radchenko wrote: > > How so? > > latexmk -interaction=nonstopmode Still do not get the problem. I though that the exit code of the underlying process was used but after having try to understand some of the ox-latel.el I discover that it seems to be

Re: Use custom preamble from tex file for latex export

2023-02-17 Thread reza
> Two possibilities: > > 1. Put file-local variable > 2. Create an "Empty" class with empty documentclass statement > and then #+LATEX_CLASS: Empty #+LATEX_HEADER: \input{...} > Sorry for my noobish questions: 1. How do I put file-local variables in my org file? 2. Is it possible to do

Re: Use custom preamble from tex file for latex export

2023-02-17 Thread Fraga, Eric
On Friday, 17 Feb 2023 at 13:08, reza wrote: > Is there a way to extend org-latex-classes inside my org file, so I can > keep using C-c C-e l l (export to latex)? Yes, should be possible. Check out info manual: (emacs) File Variables -- : Eric S Fraga, with org release_9.6.1-250-ge6353d in

Re: Use custom preamble from tex file for latex export

2023-02-17 Thread Ihor Radchenko
reza writes: >> The full org alternative is to customise org-latex-classes with all the >> LaTeX preamble you want or need. This is what I do. > > Is there a way to extend org-latex-classes inside my org file, so I can > keep using C-c C-e l l (export to latex)? Two possibilities: 1. Put

Re: Use custom preamble from tex file for latex export

2023-02-17 Thread reza
> The full org alternative is to customise org-latex-classes with all the > LaTeX preamble you want or need. This is what I do. Is there a way to extend org-latex-classes inside my org file, so I can keep using C-c C-e l l (export to latex)? OpenPGP_0xC375C6AF05125C52.asc Description:

Re: Cannot expand macros through included org file

2023-02-17 Thread reza
> report_2019.org: > > #+TITLE: Report 2019 > #+property: header-args :var year=2019 > > #+INCLUDE: "template.org" :lines "2-" > > template.org: > > #+TITLE: Report > > * My headline > > #+begin_src emacs-lisp :exports both :results value :eval yes > year > #+end_src > > #+BEGIN_SRC bash >

Re: Cannot expand macros through included org file

2023-02-17 Thread Ihor Radchenko
reza writes: >> It works, but Org does not include variable assignments to exported code >> by default. See org-babel-exp-code-template. The assignment would be >> done if you execute the blocks though. > > So I have to set this variable to true? Check out the docstring. v

Re: [PATCH] ox-texinfo: Fix invalid syntax in Texinfo version detection code

2023-02-17 Thread Ihor Radchenko
Ihor Radchenko writes: >> All right, I added the 'require' to both files. Better? > > Thanks! > Applied, onto bugfix. > https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=99c8ed09f The tests are failing on older Emacs. https://builds.sr.ht/~bzg/job/942040

Re: Use custom preamble from tex file for latex export

2023-02-17 Thread Fraga, Eric
On Friday, 17 Feb 2023 at 12:38, reza wrote: > Thanks for the idea, will test this, but I fear this will collide with > the latex class provided by org? Well, you could have just the documentclass line removed from the preamble and define an org latex class appropriately. There's always going to

Re: Use custom preamble from tex file for latex export

2023-02-17 Thread reza
> #+latex_header: \input{preamble} Thanks for the idea, will test this, but I fear this will collide with the latex class provided by org? OpenPGP_0xC375C6AF05125C52.asc Description: application/pgp-keys OpenPGP_signature Description: PGP signature

[PATCH] [FR] Fontifying src-blocks with no language specified

2023-02-17 Thread Ihor Radchenko
cars...@kragelund.me writes: > Fontifying src-blocks with a missing language would allow being able to > theme src-blocks without having the unthemed text of languages fallback > to whatever color the src-blocks are set to. > I envision this could be done with an empty string in >

Re: New Org (from main) and slow clocking

2023-02-17 Thread Ihor Radchenko
Marcin Borkowski writes: > I have just updated my Org (from the main branch, Org mode version > 9.6.1, release_9.6.1-253-g74eb0f), and I noticed an issue with clocking. > I have an "ongoing" task which already accumulated 7000+ clock entries, > and clocking in takes close to 90 seconds. It was

Re: [Bug] 'org-font-lock-extra-keywords' appear next to the parent heading when its subtree is folded.

2023-02-17 Thread Ihor Radchenko
Philipp Kiefer writes: > I can reproduce with this minimal init.el using Emacs GNU Emacs 27.2 > (build 1, x86_64-w64-mingw32) >  of 2021-03-26 and Org mode version 9.6.1: Thanks for the reproducer! It is rather an edge case. Fixed, on main.

Re: [BUG] Recurrent error about timer running Pomodoro extension. [9.6 (9.6-??-bed47b4 @ /home/bill/.emacs.d/.local/straight/build-28.1/org/)]

2023-02-17 Thread Ihor Radchenko
Bill McKelvie writes: > I was running a Pomodoro timer from my professional development log and > kept getting an error. Emacs would slow down so that there would be a > delay between pressing a key and the character appearing on screen. > Shutting down and restarting helps for a while but

Re: [BUG] org-indent and display text property not preserving column when moving

2023-02-17 Thread Ihor Radchenko
Darius Foo writes: > Here is an org file to try it on. With the cursor on x, pressing up moves > it to y instead of a, and pressing down moves it back to x. It seems like > the amount moved depends on the indentation added by org-indent: with point > on z, pressing up moves it to w. > > * h1

Re: [BUG] [9.6 (9.6-??-971eb6885 @ /home/abucz/.emacs.d/.local/straight/build-28.2/org/)]

2023-02-17 Thread Ihor Radchenko
Matthew Czuba writes: > I attempted a find and replace on the latest doom emacs (highlighted a > large block of text, then SPC: replace-string, then entered the string > ’s as input for replacement and single apostrophe ' as the > desired output). The following error was thrown: Thanks for

Re: Timestamp and timestamp range definitions

2023-02-17 Thread Ihor Radchenko
Ilya Chernyshov writes: > Subject: [PATCH] org-manual.org: Update timestamp and timerange definitions > Thanks! Applied, onto main. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=715f74db3 -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at

Re: (org-icalendar-combine-agenda-files t) prints byte code

2023-02-17 Thread Ihor Radchenko
Robert Jäschke writes: > (Likely since) After upgrading emacs from 27.1 to 28.2 and org mode from > 9.4.0 to 9.5.2 (i.e., from Debian stable to testing), > org-icalendar-combine-agenda-files prints strange output when called > (via cron) as follows: > emacsclient --eval

Re: Unicode problem with export of literal contents

2023-02-17 Thread Ihor Radchenko
Jens Lechtenboerger writes: > With Org 9.6.1 from Emacs master, I get the following warning, and I > am asked to select a coding system: > >> These default coding systems were tried to encode the following >> problematic characters in the buffer ‘ *temp*’: >> ... > > With previous Org versions,

(org-icalendar-combine-agenda-files t) prints byte code

2023-02-17 Thread Robert Jäschke
Hi all, (Likely since) After upgrading emacs from 27.1 to 28.2 and org mode from 9.4.0 to 9.5.2 (i.e., from Debian stable to testing), org-icalendar-combine-agenda-files prints strange output when called (via cron) as follows: emacsclient --eval "(org-icalendar-combine-agenda-files t)" When

Re: Bug: org-latex-export-to-pdf does not remove .tex file [9.4 (9.4-elpa @ /home/bruno/.emacs.d/elpa/org-9.4/)]

2023-02-17 Thread Ihor Radchenko
Bruno BEAUFILS writes: > On Wed, Feb 15, 2023 at 08:37:51PM +, Ihor Radchenko wrote: >> The problem with LaTeX export is that it is not always possible to know >> if the process truly finished without errors or not. > > How so? latexmk -interaction=nonstopmode >> Meanwhile, you can tweak

Re: [PATCH] Async evaluation in ob-shell

2023-02-17 Thread Ihor Radchenko
Matt writes: > > Doesn't (while ... (sleep-for ...)) work? > > I'm afraid I don't follow what you mean. What I mean is: 1. Execute src block asynchronously 2. Run (while ... (sleep-for ...)) until the result appears (up to threshold seconds) 3. Check the result as usual or fail the test

Re: [PATCH] ox-texinfo: Fix invalid syntax in Texinfo version detection code

2023-02-17 Thread Ihor Radchenko
Rudolf Adamkovič writes: > All right, I added the 'require' to both files. Better? Thanks! Applied, onto bugfix. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=99c8ed09f -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at .

Re: Use custom preamble from tex file for latex export

2023-02-17 Thread Fraga, Eric
Let me try again (I first response wrong). The following may work: #+latex_header: \input{preamble} -- : Eric S Fraga, with org release_9.6.1-250-ge6353d in Emacs 30.0.50

Re: Use custom preamble from tex file for latex export

2023-02-17 Thread Fraga, Eric
You probably want "input" and not "include" in my suggestion. -- : Eric S Fraga, with org release_9.6.1-250-ge6353d in Emacs 30.0.50

Re: How to export org-agenda to ICS to show in iCal

2023-02-17 Thread Ihor Radchenko
Alexei Gilev writes: > For months I have been wanting to be able to export my scheduled tasks to > ICS to be able to see it it iCal, which is very visually pleasing and > easier for me to grasp my agenda. Plus, I can see it in the context of my > work tasks, which i don't have in orgmode. In

Re: Use custom preamble from tex file for latex export

2023-02-17 Thread Fraga, Eric
Maybe (untested) #+latex_header: \include(preamble) (maybe with .tex in the file name but probably not needed) -- : Eric S Fraga, with org release_9.6.1-250-ge6353d in Emacs 30.0.50

Strange behaviour: Repeating tasks jumping in time

2023-02-17 Thread Alexei Gilev
Dear all, Has anybody experienced this strange and annoying behaviour? For repeating tasks, every once in a while I miss them. Then I check them in my org file plus I visit git-status to find they have been shifted. Sometimes even years (usually months). I haven't been able to track the source

Use custom preamble from tex file for latex export

2023-02-17 Thread reza
Hi List Normally when exporting to latex one can set org headers to control the latex class and additional packages. I have now a tex file with the corresponding latex class and packages I normally use for my documents. Is there a way to use this tex file directly in org mode, without having