Re: [PATCH] Fix ob-clojure handling source block variable's value is a org-mode table or list

2022-10-28 Thread Ihor Radchenko
"Christopher M. Miles" writes: > Any review comments about this patch? I have sent the following comment shortly after your followup: "Christopher M. Miles" writes: > + ;; variable's value is a list from org-mode passed table > or list. > +(if (listp (cdr

Re: Transclusion of SVG files in org-export?

2022-10-28 Thread Ihor Radchenko
"Zoe Piel" writes: > I use interactive SVG elements in my org notes and wish to have these > elements embedded in the HTML export. There has been previous discussion > about how SVG elements should be handled in ox-html. For my needs, neither > nor is desirable, because while they show the

Re: issue using org-export-before-parsing-hook in a src-block

2022-10-28 Thread Ihor Radchenko
John Kitchin writes: > If I run this block in an org file: > > #+BEGIN_SRC emacs-lisp > (let ((org-export-before-parsing-hook '((lambda (_backend) nil > (org-org-export-as-org)) > #+END_SRC > > I get a traceback that starts with > Debugger entered--Lisp error: (wrong-type-argument

Re: [BUG] Org mode treat tags as links

2022-10-28 Thread Ihor Radchenko
"Christopher M. Miles" writes: > I defined a custom link type "video:". > > And when I added tag "video" in tags like bellowing: > > #+begin_src org > * headline 1 :tag1:video:hello > #+end_src Note that this particular example actually contains a link. Because you forgot the closing ":" in the

Re: [BUG] ob-octave.el

2022-10-28 Thread Ihor Radchenko
Tobias Zawada writes: > Currently, evaluating the Org-mode source block > > #+NAME: bug > #+BEGIN_SRC octave :exports results > ["one"; "two"; "three"] > #+END_SRC > > gives > > #+RESULTS: bug > : ottnwheor e e > > Substituting ~fprintf~ in ~org-babel-octave-wrapper-method~ with ~fdisp~ >

Re: couldn't org-table-create-with-table\.el respect hline

2022-10-28 Thread Ihor Radchenko
Uwe Brauer writes: >>> Couldn't in the last step the hlines be respected? > >> That would not make sense. >> AFAIK, table.el has no notion of hlines. The +---+ separators in >> table.el tables mark cell boundaries, not hlines. > > It would make sense if I later want to export the final table

Re: [PATCH] Fix ob-clojure handling source block variable's value is a org-mode table or list

2022-10-28 Thread Christopher M. Miles
Any review comments about this patch? "Christopher M. Miles" writes: > [[PGP Signed Part:Undecided]] > > I bellowing example: > > #+begin_src org > ,#+NAME: ob-clojure-table-test > | a | b | c | > |---+---+---| > | 1 | 2 | 3 | > > ,#+NAME: ob-clojure-table-test-2 > | a | b | c | >

Re: when exporting to odt or html, latex equations are not exported when in soure block: BUG?

2022-10-28 Thread Ihor Radchenko
Uwe Brauer writes: > So what shall I do then? I have an org file with matlab source code and latex > formula, having the latex formula surrounded by a block as in > #+begin_src latex :results latex replace :exports results :eval t > \begin{equation} > \label{eq:windeln-29-08-22:1} > \int >

Re: [PATCH] Fix org-set-tags-command active region bug

2022-10-28 Thread Ihor Radchenko
Alex Giorev writes: > When `org-loop-over-headlines-in-active-region' is 'start-level, the > command should loop only over the headings having the same level as the > first one, but it loops over all headings in the region. This patch fixes > the issue. Thanks for reporting and providing the

Re: Getting X selection reliably (Re: idea for capture anywhere in x)

2022-10-28 Thread Max Nikulin
On 29/10/2022 06:07, Samuel Wales wrote: i am still lost in this and it will take me a while. .. it is not a top priority for me at this time as long as the ff org-capture extension works Samuel, feel free came back with this question when you will have enough spare time and motivation to

Re: ob-clojure session support (was: ob-clojure eval error when has comment at end of code line)

2022-10-28 Thread Ihor Radchenko
Daniel Kraus writes: > Looking in the history, Christopher added session support 5 years ago, > then (3 years ago) I see Bastien also adding something with initiate-session > but > then removing all session support the following commit. > I guess something was broken and got removed but stayed

Re: [PATCH] lisp/ob-tangle.el, lisp/ob-core.el: Add strip-tangle noweb option

2022-10-28 Thread Ihor Radchenko
Daniel Ziltener writes: >> Could you please follow >> https://orgmode.org/worg/org-contribute.html#commit-messages for the >> commit log entries? > I tried to follow that. To follow it "more" I guess I have to make one > commit per file I changed? There isn't an example for multiple files, so

[BUG] Org mode treat tags as links

2022-10-28 Thread Christopher M. Miles
I defined a custom link type "video:". And when I added tag "video" in tags like bellowing: #+begin_src org * headline 1 :tag1:video:hello #+end_src It caused the tag ":video:" parsed and recognized as link. Here is the screenshot: I suppose the link parsing need to be improved. -- [

Re: [PATCH] Re: [BUG][Security] begin_src :var evaluated before the prompt to confirm execution

2022-10-28 Thread Ihor Radchenko
Max Nikulin writes: > On 28/10/2022 10:15, Ihor Radchenko wrote: >> >> See the attached tentative patch. >> I tried to balance between annoying users with query and not evaluating >> unsafe code: '-quoted lists and symbols are still evaluated without >> prompt. >> >> Let me know if you see any

Re: [PATCH v2 1/2] lisp/org-clock.el: Make switching states on clock-in/-out easier

2022-10-28 Thread Ihor Radchenko
"Samuel W. Flint" writes: > IR> Before we continue, could you please confirm if you have FSF copyright > IR> assignment? My records show that you have made two commits to Org mode > IR> previously, and they total LOC is 15, which is maximum allowed > IR> contribution that does

Re: Getting X selection reliably (Re: idea for capture anywhere in x)

2022-10-28 Thread Max Nikulin
On 29/10/2022 09:59, Ihor Radchenko wrote: Max Nikulin writes: %(org-get-x-clipboard 'PRIMARY) " :immediate-finish t) However to be at the safe side I would check if (org-get-x-clipboard 'PRIMARY) value is not nil at first. My approach to this is simply showing a popup with

Re: Org 9.6-pre and Bash sessions

2022-10-28 Thread Ihor Radchenko
Rudolf Adamkovič writes: >> I do not think that it is a good idea. Code block execution may >> involve a whole chain of blocks when expanding references. If we wipe >> the error buffer and multiple blocks are failing, some errors may go >> unnoticed by the user. > > In that case, can we prepend

[FR] Display stderr contents after executing shell blocks (even when stdout :results output is requested) (was: Org 9.6-pre and Bash sessions)

2022-10-28 Thread Ihor Radchenko
Rudolf Adamkovič writes: > Ihor Radchenko writes: > >> I do not think that it make sense to display that buffer when the code >> finishes successfully. I can see this kind of behaviour >> breaking/spamming automated scripts or export---code working in the >> past may throw error output into

Re: [PATCH] two small fixes for org-fast-tag-selection

2022-10-28 Thread Ihor Radchenko
Thanks for the patches, and sorry for the late reply. Alex Giorev writes: > - The first patch fixes the problem of TODO keywords and tags sharing keys > when they are automatically generated and when > `org-fast-tag-selection-include-todo' is set. Could you please show minimal examples that

Re: Getting X selection reliably (Re: idea for capture anywhere in x)

2022-10-28 Thread Ihor Radchenko
Samuel Wales writes: > not sure i am following everything but it seems a popup that goes away > after a very short period of time shows adequately that first contact > was made with emacs. then, including the captured text shows that > there isn't another issue? Let me elaborate. What I have

Re: incorrect indentation of new item inserted with capture template

2022-10-28 Thread Ihor Radchenko
Ian Garmaise writes: > I have had this problem for several months. > > I keep a daily journal. Each morning I add a new entry in a journal file > using a capture template. The journal file is always loaded. > On some occasions the indentation of the new entry is incorrect. > > Here's an

Re: Getting X selection reliably (Re: idea for capture anywhere in x)

2022-10-28 Thread Samuel Wales
not sure i am following everything but it seems a popup that goes away after a very short period of time shows adequately that first contact was made with emacs. then, including the captured text shows that there isn't another issue? On 10/28/22, Ihor Radchenko wrote: > Max Nikulin writes: >

Re: Getting X selection reliably (Re: idea for capture anywhere in x)

2022-10-28 Thread Ihor Radchenko
Max Nikulin writes: > %(org-get-x-clipboard 'PRIMARY) > " > :immediate-finish t) > > However to be at the safe side I would check if (org-get-x-clipboard > 'PRIMARY) value is not nil at first. My approach to this is simply showing a popup with captured heading after capture. If

Re: org-x11idle-exists-p with emacs --daemon

2022-10-28 Thread Ihor Radchenko
Julien Cubizolles writes: > Ihor Radchenko writes: > >> Does the attached patch work for you? > > Yes it does, thanks. Thanks for testing! Applied onto main. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=a51bb2c448bab7665667471aa227e3e25dbbdced > Also, org-user-idle-seconds

Re: Line breaks and brackets in LaTeX export

2022-10-28 Thread Ihor Radchenko
Ihor Radchenko writes: > Then [0pt] should it be. At least for now, before we have a cleaner > solution. > > See the attached patch. Applied onto main. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=b93a61af9c93d21c56cf883630e52f36076e40bd I will look into filtering out

Re: Getting X selection reliably (Re: idea for capture anywhere in x)

2022-10-28 Thread Samuel Wales
i am still lost in this and it will take me a while. although it would be great to have everywhere, such as in emacs also with r click, it is not a top priority for me at this time as long as the ff org-capture extension works [i wrote the original when it did not work for me] beecuse ff is the

Re: Org 9.6-pre and Bash sessions

2022-10-28 Thread Rudolf Adamkovič
Ihor Radchenko writes: > I do not think that it make sense to display that buffer when the code > finishes successfully. I can see this kind of behaviour > breaking/spamming automated scripts or export---code working in the > past may throw error output into unsuspecting users. But the exit

Re: Org mode, Org Mode, Org-mode or Org-Mode?

2022-10-28 Thread Ihor Radchenko
Marcin Borkowski writes: > What is the "official" version? I found at least two spelling on > orgmode.org... If we look into doc/Documentation_Standards.org: - Prefer "Org mode" to "Org-mode" or "org-mode". This is simply because it reflects an existing convention in

Re: org-x11idle-exists-p with emacs --daemon

2022-10-28 Thread Julien Cubizolles
Ihor Radchenko writes: > Does the attached patch work for you? Yes it does, thanks. Also, org-user-idle-seconds uses (eq window-system 'x) which according to its docstring should be replaced by (display-graphic-p). I've tested the change and it's working, with the added advantage that it works

Re: Org mode, Org Mode, Org-mode or Org-Mode?

2022-10-28 Thread Kaushal Modi
On Fri, Oct 28, 2022, 4:25 PM Marcin Borkowski wrote: > What is the "official" version? I found at least two spelling on > orgmode.org... > > TIA, > Here's my personal take on that topic: https://scripter.co/how-do-i-write-org-mode/ >

Re: [PATCH] Fix ob-clojure handling source block variable's value is a org-mode table or list

2022-10-28 Thread Daniel Kraus
Bastien writes: > Daniel Kraus writes: >> I would set it to (and (executable-find "bb") 'babashka) so it's still nil >> when babashka is installed? > (You mean "not installed", right?) Of course. >> Or we could even test more available backends like >> >> (cond >> ((executable-find "bb")

Re: Org mode, Org Mode, Org-mode or Org-Mode?

2022-10-28 Thread Juan Manuel Macías
Marcin Borkowski writes: > What is the "official" version? I found at least two spelling on > orgmode.org... Interesting question. When I don't write carelessly I try to write "Org Mode", but it's more out of habit. The wikipedia entry says "Org-mode". The Google entry for orgmode.org says "Org

Org mode, Org Mode, Org-mode or Org-Mode?

2022-10-28 Thread Marcin Borkowski
What is the "official" version? I found at least two spelling on orgmode.org... TIA, -- Marcin Borkowski http://mbork.pl

Re: Still prob the I cannot solve....

2022-10-28 Thread Bruno Barbier
Renato Pontefice writes: > > So, now I’m sure about what what file are executed. But unsure what could be > the prob! .. > What does they means? Like Ihor told you in your other thread, you have a mistake in your init.el. Maybe somebody could help you if you show us your init.el. The problem

Re: [PATCH] Re: [BUG][Security] begin_src :var evaluated before the prompt to confirm execution

2022-10-28 Thread Max Nikulin
On 28/10/2022 10:15, Ihor Radchenko wrote: See the attached tentative patch. I tried to balance between annoying users with query and not evaluating unsafe code: '-quoted lists and symbols are still evaluated without prompt. Let me know if you see any potential issues. If I got it right, it

Still prob the I cannot solve....

2022-10-28 Thread Renato Pontefice
When I start emacs, now I receive this messages: Warning (initialization): An error occurred while loading ‘/Users/renatopontefice/.emacs.d/init.el’: Symbol's value as variable is void: Enable To ensure normal operation, you should investigate and remove the

Re: Getting X selection reliably (Re: idea for capture anywhere in x)

2022-10-28 Thread Max Nikulin
On 28/10/2022 15:39, Dr. Arne Babenhauserheide wrote: Max Nikulin writes: Then you should always have an X11 Emacs frame, maybe behind other windows This sounds like a tray application. Do you know whether something like that already exitst (mark one frame as system tray entry)? I was

Re: [PATCH v2 1/2] lisp/org-clock.el: Make switching states on clock-in/-out easier

2022-10-28 Thread Samuel W. Flint
> Ihor Radchenko writes: IR> "Samuel W. Flint" writes: >> * lisp/org-clock.el (org-clock-in-switch-to-state, >> org-clock-out-switch-to-state): Allow >> `org-clock-{in,out}-switch-to-state` to be an alist of >> current/next-state pairs. >> >> (org-clock-in,

Re: couldn't org-table-create-with-table\.el respect hline

2022-10-28 Thread Uwe Brauer
>>> "IR" == Ihor Radchenko writes: > Uwe Brauer writes: >> I start with >> >> >> >> | Example | Text| Dates| other | >> |-+-+--+-| >> | this| comment | <2022-01-28 vie> | nothing | >> >> >> That is converted to >> >> >> >>

Re: when exporting to odt or html, latex equations are not exported when in soure block: BUG?

2022-10-28 Thread Uwe Brauer
>>> "IR" == Ihor Radchenko writes: > Uwe Brauer writes: >> Hi >> >> I run a relative recent GNU Emacs and org master, however please >> consider the following example: >> >> When exporting to html or odt (using dvipng in both cases) the first set >> of equations in the source block are

Re: org roam database not available

2022-10-28 Thread Fraga, Eric
On Friday, 28 Oct 2022 at 13:32, Ihor Radchenko wrote: > Looking into the code, I'd expect such message when SQLite compilation > fails. Try to run (emacsql-sqlite-compile 2) directly. The errors should > become visible then. Thank you. This was very helpful. The backtrace on failure told me

Re: org roam database not available

2022-10-28 Thread Ihor Radchenko
"Fraga, Eric" writes: > anybody else experiencing any problem with org roam, specifically > getting the following error message? > > , > | emacsql-sqlite-ensure-binary: No EmacSQL SQLite binary available, aborting > ` > > I have re-installed emacs-sqlite from MELPA but it doesn't build

Re: Org 9.6-pre and Bash sessions

2022-10-28 Thread Ihor Radchenko
Rudolf Adamkovič writes: >>> 1. ob-shell/error-output-after-success >>> >>>We seem to trash error output, such as warnings, on success. I >>>think we should not do this. Now, on the execution of "echo X >>>&>2", Org says "Code block produced no output." But that does >>>hold

org roam database not available

2022-10-28 Thread Fraga, Eric
Hello all, anybody else experiencing any problem with org roam, specifically getting the following error message? , | emacsql-sqlite-ensure-binary: No EmacSQL SQLite binary available, aborting ` I have re-installed emacs-sqlite from MELPA but it doesn't build the database executable.

Re: Org 9.6-pre and Bash sessions

2022-10-28 Thread Rudolf Adamkovič
Ihor Radchenko writes: >> 1. ob-shell/error-output-after-success >> >>We seem to trash error output, such as warnings, on success. I >>think we should not do this. Now, on the execution of "echo X >>&>2", Org says "Code block produced no output." But that does >>hold true.

Re: Error on opening emacs

2022-10-28 Thread Ihor Radchenko
Renato Pontefice writes: > When I run emacs, I receive the following error: > Warning (initialization): An error occurred while loading > ‘/Users/renatopontefice/.emacs.d/init.el’: > > Symbol's value as variable is void: Enable There is something wrong (most likely, some stray text) inside

Re: Hoe cs Idetect wich emacs is links on my dock?

2022-10-28 Thread Ihor Radchenko
Renato Pontefice writes: > But now I don’t know wich emacs run on my emac. I would find wich on is > because I would substitute the init.el of the present emacs, with the one > I’ve customized it this time > How can I retrive the right emacs I use? If you have an Emacs running, you can

Error on opening emacs

2022-10-28 Thread Renato Pontefice
When I run emacs, I receive the following error: Warning (initialization): An error occurred while loading ‘/Users/renatopontefice/.emacs.d/init.el’: Symbol's value as variable is void: Enable To ensure normal operation, you should investigate and remove the cause of the error in your

Hoe cs Idetect wich emacs is links on my dock?

2022-10-28 Thread Renato Pontefice
Hi, With the prob I have had yesterday, I’ve deleted emacs and reinstall (brew… But now I don’t know wich emacs run on my emac. I would find wich on is because I would substitute the init.el of the present emacs, with the one I’ve customized it this time How can I retrive the right emacs I

Re: [PATCH] Fix ob-clojure handling source block variable's value is a org-mode table or list

2022-10-28 Thread Bastien
Hi Daniel, Daniel Kraus writes: > I would set it to (and (executable-find "bb") 'babashka) so it's still nil > when babashka is installed? (You mean "not installed", right?) > Or we could even test more available backends like > > (cond > ((executable-find "bb") 'babashka) >

Re: ob-clojure session support

2022-10-28 Thread Bastien Guerry
Hi Daniel, Daniel Kraus writes: > Does anyone remember what's the status of ob-clojure session > support? I'm randomly connected for the next days so I won't risk a reply here, I hope others can help. -- Bastien

Re: [PATCH] Fix ob-clojure handling source block variable's value is a org-mode table or list

2022-10-28 Thread Daniel Kraus
Hi! Bastien Guerry writes: > For now `org-babel-clojure-backend' is nil. > > I suggest to set it to babashka by default: babashka is stable and > well established now, it is by far the most efficient way to run > Clojure code. Also, it is particularily suitable for Babel use. > > What do you

ob-clojure session support (was: ob-clojure eval error when has comment at end of code line)

2022-10-28 Thread Daniel Kraus
Ihor Radchenko writes: > make test BTEST_POST="-L /path/to/cider.el" BTEST_OB_LANGUAGES="clojure" > BTEST_RE="ob-clojure" > > Note that our tests demand cider executable and library. > Testing with external libraries is a bit manual. Thanks. I think cider is falsely required in the test. It

Re: Error opening an .org file

2022-10-28 Thread Tim Cross
Juan Manuel Macías writes: > Renato Pontefice writes: > >> I’ve edited and commented all the lines of it. And The error >> persist. So (was you told)maybe the error is not of init.el >> But I’m unable to run emacs from termnal. >> How can I do? >> I’m in

Re: Getting X selection reliably (Re: idea for capture anywhere in x)

2022-10-28 Thread Dr. Arne Babenhauserheide
Max Nikulin writes: > Then you should always have an X11 Emacs frame, maybe behind other > windows This sounds like a tray application. Do you know whether something like that already exitst (mark one frame as system tray entry)? Code the other way round (emacs *as* system tray) seems to

Re: [PATCH] Fix ob-clojure handling source block variable's value is a org-mode table or list

2022-10-28 Thread Bastien Guerry
Hi Daniel, Daniel Kraus writes: > Just in case you want to play around with Clojure, installing > babashka (https://github.com/babashka/babashka) is a single binary > and very simple to install. For now `org-babel-clojure-backend' is nil. I suggest to set it to babashka by default: babashka

Re: Tikz ugly hack

2022-10-28 Thread edgar
On 2022-10-26 09:58, Fraga, Eric wrote: I wonder if, instead of a new LaTeX command you create a new environment which you can then invoke using org special blocks? For instance, #+begin_BoundingBox #+attr_latex: :height 1cm [[image file]] #+end_BoundingBox --- snip 8< --- Oh, I don't

Re: bug#58774: 29.0.50; [WISH]: Let us make EWW browse WWW Org files correctly

2022-10-28 Thread Dr. Arne Babenhauserheide
Ihor Radchenko writes: > "Dr. Arne Babenhauserheide" writes: > >> One idea that could work well is to add an explicit allow-list >> trusted-sources-to-allow-unsafe-modes with entries of domain and >> path-prefix where people can add trusted sources. >> >> If for example my server were

Re: [PATCH] lisp/ob-tangle.el, lisp/ob-core.el: Add strip-tangle noweb option

2022-10-28 Thread Daniel Ziltener
Am 28.10.22 um 04:19 schrieb Ihor Radchenko: dzilte...@lyrion.ch writes: From: Daniel Ziltener * ob-tangle.el, ob-core.el, test-ob-tangle.el, org-manual.org: Add a "strip-tangle" noweb option to strip the noweb tags when tangling, but keep and expand them otherwise. Thanks for the patch!

Re: [BUG][Security] begin_src :var evaluated before the prompt to confirm execution

2022-10-28 Thread Jean Louis
* Ihor Radchenko [2022-10-28 06:19]: > Jean Louis writes: > > > * Max Nikulin [2022-10-27 06:21]: > >> Expected result: > >> No code from the Org buffer and linked files is executed prior to > >> confirmation from the user. > > > > Should that be or is it a general policy for Org mode? > >