Re: [PATCH] ob-sql: Respect database param when using dbconnection

2022-10-31 Thread Daniel Kraus
Hi, sorry for replying to a 2 year old thread. Attached is a new patch with the change from Kyle and I also added a news entry. Not sure if the text for the news entry is any good, or if there should be an example etc. Feedback welcome. Otherwise, the patch itself is not much and I use it daily.

Re: org-sbe recent changes?

2022-10-31 Thread Alan Schmitt
Hello, On 2022-10-31 01:24, Ihor Radchenko writes: > May you simplify your example to demonstrate the problem reproducibly > (not only on your system with your files)? > See https://orgmode.org/manual/Feedback.html#Feedback Of course, sorry I did not do it. Here is a minimal example: #+name: f

Re: Option that prevents Org to add \lstset{language=⟨language⟩,...} when code blocks are exported to LaTeX

2022-10-31 Thread Ihor Radchenko
Ihor Radchenko writes: > Denis Bitouzé writes: > >> Otherwise, all the options specified by `\lstset` can be applied as an >> option of the `lstlisting` environment: >> >> ┌ >> │ \begin{lstlisting}[language=⟨language⟩,...] >> └ > > This should be the safest and the least verbose. >

Re: org table proposal: merge and split cells in org-tables

2022-10-31 Thread Ihor Radchenko
Jean Louis writes: >> I am sorry, but this looks unreadable. I would avoid re-using such >> syntax ideas. > > You have got an extreme reference on what can be done. Other people > and other projects have faced same issues as you are facing in Org > mode, and have resolved it. To understand anythi

Re: LIterate programming with calc (help)

2022-10-31 Thread Ihor Radchenko
Ypo writes: > Would it be something like this? > > #+begin_src calc >   a = 300 m >   b = 300 m >   Area = a*b >   cost = 1 ($/m^2) >   A*c > > #+end_src I looked into ob-calc and it looks like the way to define variables is via :var header argument. Other than that, ob-calc simply does wh

Re: indent-tabs-mode in org

2022-10-31 Thread Bastien Guerry
Hi Daniel and Ihor, Daniel Kraus writes: > So that clarifies it for me and I do NOT indent with tabs in the > future :) We can progressively replace tab chars with spaces, thus re-indenting correctly all files in the repository. The Emacs convention is to *not* commit space-only changes as the

Re: LIterate programming with calc (help)

2022-10-31 Thread Fraga, Eric
On Monday, 31 Oct 2022 at 09:23, Ihor Radchenko wrote: > I looked into ob-calc and it looks like the way to define variables is > via :var header argument. Indeed. Something like :var a="300 m" does work. > I guess that the main problem is that calc is tightly integrated with > interactive comma

Re: One thing each 3 days but maximum 10

2022-10-31 Thread Quiliro Ordóñez
El 2022-10-30 23:57, Jean Louis escribió: > * Renato Pontefice [2022-10-30 19:11]: >> I have to take a pill each 3 days, but for max 10 times. >> So I set a TODO pill >2022-10-28 +3d> and each 3 days my calendar tell me >> that I have to take the pill. But is possible to say 1/10; 2/10; 3/10 etc?

Re: [off-topic] E-readers and Org-Mode

2022-10-31 Thread Juan Manuel Macías
Max Nikulin writes: > P.S. Concerning free PDF annotation tool, I have not tested if it is > convenient and available on Android, but Firefox-106 release notes > have the following entry: > >> It is now possible to edit PDFs: including writing text, drawing, > and adding signatures. > > Almost c

Re: [correction]

2022-10-31 Thread Juan Manuel Macías
Uwe Brauer writes: > I see, thanks. Last most likely trivial question, where, in which file > does filetags save the relevant information, i.e tags I haven't looked at the code, but I imagine that the information is stored in the variables I mentioned before, when you use a controlled vocabulary

Re: [correction]

2022-10-31 Thread Uwe Brauer
>>> "JMM" == Juan Manuel Macías writes: > Uwe Brauer writes: >> I see, thanks. Last most likely trivial question, where, in which file >> does filetags save the relevant information, i.e tags > I haven't looked at the code, but I imagine that the information is > stored in the variables I mentio

RE: org-assert-version considered harmful

2022-10-31 Thread Cook, Malcolm
Hello, I found this recent thread researching why my strategy for staying abreast with org head had started failing with invalid-function "org-assert-version" My strategy had been to build org initially with ` cd ~/.emacs.d && git clone https://git.savannah.gnu.org/git/emacs/org-mode.git &&

Re: [BUG] ox-odt file: links are not pointing to the real files (was: [BUG] ox-odt fails for org-id links (e.g., from org-roam v2) [9.5.2 (9.5.2-gfbff08 @ /home/moritz/.emacs.d/elpa/27.2/develop/org-9

2022-10-31 Thread Max Nikulin
On 31/10/2022 13:13, Ihor Radchenko wrote: You are right. file.odt is a virtual folder representing ZIP container, so relative links to external files should be prefixed with "../". Thanks for checking! See the attached tentative patch. -(org-export-file-uri raw-path)) +

Re: [correction]

2022-10-31 Thread Juan Manuel Macías
Uwe Brauer writes: >- "_&&_" seems to be ok but I am not entirely sure about it "&&" will give you trouble if you manipulate the file in a shell, because it will be understood as the '&&' operator. You would have to use escape characters. Maybe "@@" or "%%" are safer choices. Look at thi

Re: [correction]

2022-10-31 Thread Uwe Brauer
>>> "JMM" == Juan Manuel Macías writes: > Uwe Brauer writes: >> - "_&&_" seems to be ok but I am not entirely sure about it > "&&" will give you trouble if you manipulate the file in a shell, > because it will be understood as the '&&' operator. You would have to > use escape characters. > Mayb

Re: [correction]

2022-10-31 Thread Juan Manuel Macías
Uwe Brauer writes: > %% does not work for auctex, so I think I try @@, I hope it does not collide > with anything fancy.. You can also set a text string, like _ftags_, and to hide it when you're in Dired, add a function to the dired-mode-hook that displays an overlay instead of that string,

Re: [correction]

2022-10-31 Thread Uwe Brauer
>>> "JMM" == Juan Manuel Macías writes: > Uwe Brauer writes: >> %% does not work for auctex, so I think I try @@, I hope it does not collide >> with anything fancy.. > You can also set a text string, like _ftags_, and to hide it when you're > in Dired, add a function to the dired-mode-hook

Re: [correction]

2022-10-31 Thread Uwe Brauer
>>> "JMM" == Juan Manuel Macías writes: > Uwe Brauer writes: >> %% does not work for auctex, so I think I try @@, I hope it does not collide >> with anything fancy.. > You can also set a text string, like _ftags_, and to hide it when you're > in Dired, add a function to the dired-mode-hook

Re: [correction]

2022-10-31 Thread Juan Manuel Macías
Uwe Brauer writes: > Still gets displayed as > my-auctex-init_ftag_emacs.el > > What do I miss? You're right, sorry. I'm afraid I was too hasty and the code from the other message, as I put it, will never work :-). You can test how it looks, however, if you evaluate the function in a dired buff

Re: [correction]

2022-10-31 Thread Uwe Brauer
>>> "JMM" == Juan Manuel Macías writes: > Uwe Brauer writes: >> Still gets displayed as >> my-auctex-init_ftag_emacs.el >> >> What do I miss? > You're right, sorry. I'm afraid I was too hasty and the code from the > other message, as I put it, will never work :-). > You can test how it looks,

How to set folder where to find files to look for Agenda

2022-10-31 Thread Renato Pontefice
Hi, With this expression on my init.el, I would set that Agenda view, looks for this folder and sub folder that reside on a cloud to look for informarion that need to be shown on Agenda view. (setq org-agenda-files '( "\Volumes\renato07" ))

Something don't work

2022-10-31 Thread Renato Pontefice
I have done this line on my renato.org file: ** TODO prova di domenica <2022-10-31 Mon 19:35> So for today at 19:35 I should have an entry in agenda. Isn’t it? But, If I press C-a a I receive this agenda: Week-agenda (W44): Monday 31 October 2022 W44 Tuesday 1 November 2022 Wednesday

Re: [PATCH v2] lisp/ob-plantuml.el: Insert results in buffer

2022-10-31 Thread Joseph Turner
No worries!! Have a good day :) On October 30, 2022 11:02:18 PM PDT, Ihor Radchenko wrote: >Ihor Radchenko writes: > >>> Good catch! I will submit a v3 patch. >> >> Did you have a chance to work on the patch? > >Oops. I missed that you did and I even merged it. :facepalm: >Sorry for the noise.

Re: [External] : RE: org-assert-version considered harmful

2022-10-31 Thread Daniel Ortmann
Malcolm, I also ran into troubles which are similar, apparently due to mixed org-mode versions; we've got to load org-mode before emacs tries to do it for us or we get mixed stuff. My resolution was to load the org-mode path first in my init.el file and then require org: (add-to-list 'lo

RE: [External] : RE: org-assert-version considered harmful

2022-10-31 Thread Cook, Malcolm
> Malcolm, > I also ran into troubles which are similar, apparently due to mixed org-mode > versions; we've got to load org-mode before emacs tries to do it for us or we > get mixed stuff. Thanks Daniel, yes, I understand the need to load org early, and am sure that my approach succeeds in doin

Re: [correction]

2022-10-31 Thread Juan Manuel Macías
Uwe Brauer writes: > Don't worry, for the moment _@@  is fine for me I think with font-lock-add-keywords it should work. I have put another overlay on the tags, so that they are seen inside a box, separated by ":". (defun overlay-dired-filetags (&optional lim) (when (re-search-forward "\

Re: org-assert-version considered harmful

2022-10-31 Thread Tim Cross
"Cook, Malcolm" writes: > Hello, > > I found this recent thread researching why my strategy for staying abreast > with org head had started failing with invalid-function > "org-assert-version" > > My strategy had been to build org initially with > > ` cd ~/.emacs.d && git clone > https://git.

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

2022-10-31 Thread Ihor Radchenko
Ihor Radchenko writes: > Max Nikulin writes: > >>> The main problem the old code solves is working around user error when >>> kill-ring is empty. We do not really want to err in such cases; just >>> handle empty kill ring specially. >> >> From my point of view "kill ring is empty" user error cl

Re: Line breaks and brackets in LaTeX export

2022-10-31 Thread Ihor Radchenko
Max Nikulin writes: > On 22/10/2022 12:15, Ihor Radchenko wrote: >> as long as the next line does not match >> "^[ \t]*\\[" > > Verse package defines \\! and \\>. > > The only precaution that search pattern should ignore \\\[0pt]\] that is > a display equation "0pt]" Can you please elaborate?

Re: [PATCH] ob-sql: Respect database param when using dbconnection

2022-10-31 Thread Ihor Radchenko
Daniel Kraus writes: > Hi, > > sorry for replying to a 2 year old thread. > Attached is a new patch with the change from Kyle and > I also added a news entry. > Not sure if the text for the news entry is any good, > or if there should be an example etc. > Feedback welcome. > > Otherwise, the patc

Re: ob-lilypond.el doesn't generate midi files

2022-10-31 Thread Ihor Radchenko
Jonathan Gregory writes: >> Yep, that's it. Modified ob-lilypond.el and recompiled it. >> Timidity works as helper, couldn't get vlc to work. Maybe the >> file ending should be modifiable via org-babel-lilypond-commands >> as well, or make ob-lilypond.el look for *.mid or *.midi. I'm >> prett

Re: org-sbe recent changes?

2022-10-31 Thread Ihor Radchenko
Alan Schmitt writes: > Of course, sorry I did not do it. Here is a minimal example: > > #+name: foo > #+begin_src emacs-lisp > 3 > #+end_src > > | Name | Test | > |---+--| > | Hello | | > #+TBLFM: @2$2..@>$2='(org-sbe foo) > > > When I evaluate the formula, I get #ERROR instead of 3

[BUG] ob-python: async session evaluation does not support python-mode.el [9.6-pre (release_9.5.5-2661-g2d040b.dirty @ /home/yantar92/.emacs.d/straight/build/org/)]

2022-10-31 Thread Ihor Radchenko
Hi, Commit 53fd5b774 introduced async session support in Python src blocks: ob-comint.el, ob-python.el: Async session evaluation Adds functionality to ob-comint.el to implement async session eval on a per-language basis. Adds a reference implementation for ob-python. However, async evaluation

Re: [BUG] ox-odt file: links are not pointing to the real files (was: [BUG] ox-odt fails for org-id links (e.g., from org-roam v2) [9.5.2 (9.5.2-gfbff08 @ /home/moritz/.emacs.d/elpa/27.2/develop/org-9

2022-10-31 Thread Ihor Radchenko
Max Nikulin writes: > [[file:~/examples/org/odt-id/file-b.org]] link is exported as > ./file:///home/user/examples/org/odt-id/file-b.org Thanks! See the attached new version of the patch. >From 8ee8528366bbf31ed8510f005e032176711d15b9 Mon Sep 17 00:00:00 2001 Message-Id: <8ee8528366bbf31ed8510

org-export: How to handle links to the exported file? (was: [BUG] ox-odt file: links are not pointing to the real files (was: [BUG] ox-odt fails for org-id links (e.g., from org-roam v2) [9.5.2 (9.5.2

2022-10-31 Thread Ihor Radchenko
TLDR: If we have and Org file with a link point to the same Org file, how should we export it? Max Nikulin writes: > A couple of other notes. > > In HTML top or #top works as a link to the beginning of > the document. I am curious if ODF has a similar feature. I mean ID at > the top of the s

Re: [BUG] ox-odt file: links are not pointing to the real files (was: [BUG] ox-odt fails for org-id links (e.g., from org-roam v2) [9.5.2 (9.5.2-gfbff08 @ /home/moritz/.emacs.d/elpa/27.2/develop/org-9

2022-10-31 Thread Ihor Radchenko
Max Nikulin writes: > It seems org-id.el should be extended to handle some features common to > all formats such as custom suffix instead of ".org" Could you please elaborate? -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org

RE: org-assert-version considered harmful

2022-10-31 Thread Ihor Radchenko
"Cook, Malcolm" writes: > Then, when I occasionally wished to update org, I would > > `cd ~/.emacs.d/org-mode && git pull && make autoloads && make` > > Recently I started getting errors invalid-function "org-assert-version". > > Upon cursory reading of this thread I guessed that I could fix them

Re: How to set folder where to find files to look for Agenda

2022-10-31 Thread Ihor Radchenko
Renato Pontefice writes: > With this expression on my init.el, I would set that Agenda view, looks for > this folder and sub folder that reside on a cloud to look for informarion > that need to be shown on Agenda view. > > (setq org-agenda-files > '( "

Re: Something don't work

2022-10-31 Thread Ihor Radchenko
Renato Pontefice writes: > I’m wondering: where do my init.el must reside to let emacs read it? > Because on my Mac, I have on .emacs.d folder an nit.el here > Users//.emacs.d/ nit.el or init.el? Try M-: (find-file user-init-file) It should go to the init file Emacs is using. > With t