Selection owner couldn’t convert: STRING

2022-08-27 Thread Sharon Kimble
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 I've found a problem with Imenu and org-mode, and the error report says - = Selection owner couldn’t convert: STRING Error in menu-bar-update-hook (imenu-update-menubar): (wrong-type-argument char-or-string-p nil) = And its lo

bug#50514: 28.0.50; org inline call to python src block req C-g to break

2022-08-27 Thread Lars Ingebrigtsen
Ihor Radchenko writes: > Lars Ingebrigtsen writes: > >> The bug on the Emacs side was fixed by Augusto's patch, I think, but >> there's a remaining problem in ob-python, so I'm reassigning this bug >> report to org-mode. > > Could you please elaborate what the problem is? > There have been multi

Re: Selection owner couldn’t convert: STRING

2022-08-27 Thread Ihor Radchenko
Sharon Kimble writes: > I've found a problem with Imenu and org-mode, and the error report says - > > = > Selection owner couldn’t convert: STRING > Error in menu-bar-update-hook (imenu-update-menubar): (wrong-type-argument > char-or-string-p nil) > = Are you able to reproduce s

bug#50514: 28.0.50; org inline call to python src block req C-g to break

2022-08-27 Thread Ihor Radchenko
Lars Ingebrigtsen writes: >> Could you please elaborate what the problem is? >> There have been multiple issues in this thread and the one previously >> reported to Org ML is solved on Emacs side. > > It's this bit: > >> So I found if I extend the sleep-for in ob-python from 10 ms to 90 ms, >> my

[PATCH] org.el: Fix percent substitutions in `org-open-file'

2022-08-27 Thread Max Nikulin
On 21/03/2021 19:36, Maxim Nikulin wrote: On 13/02/2021 11:38, Kyle Meyer wrote: +(defun org--open-file-format-spec (format specification) +  (with-temp-buffer +    (insert format) +    (goto-char (point-min)) +    (while (search-forward "%" nil t) +  (cond ((eq (char-after) ?%) +   

bug#50514: 28.0.50; org inline call to python src block req C-g to break

2022-08-27 Thread Barton, Mark
On Aug 27, 2022, at 7:11 AM, Ihor Radchenko mailto:yanta...@gmail.com>> wrote: --- lisp/ob-python.el | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lisp/ob-python.el b/lisp/ob-python.el index 932aca08e..2ad907bd8 100644 --- a/lisp/ob-python.el +++ b/lisp/ob-python.el

bug#50514: 28.0.50; org inline call to python src block req C-g to break

2022-08-27 Thread Mark Barton
> On Aug 27, 2022, at 11:59 AM, Barton, Mark wrote: > >  > >> On Aug 27, 2022, at 7:11 AM, Ihor Radchenko wrote: >> >> --- >> lisp/ob-python.el | 8 >> 1 file changed, 4 insertions(+), 4 deletions(-) >> >> diff --git a/lisp/ob-python.el b/lisp/ob-python.el >> index 932aca08e..2ad9

bug#50514: 28.0.50; org inline call to python src block req C-g to break

2022-08-27 Thread Barton, Mark
I will work on getting more details this weekend. It looked like the buffer passed to org-babel-comint-wait-for-output was missing the "earmuffs". I tried adding the earmuffs with the org function for that but although I got passed that error, I messed up my python session and the following pyt

bug#50514: 28.0.50; org inline call to python src block req C-g to break

2022-08-27 Thread Ihor Radchenko
"Barton, Mark" writes: > I tried something that was suggested last September 14th by Augusto Stoffel. > I had not tried it because changing the sleep from 10 to 90 was my workaround. > One thing that might work is to block until the shell is ready with something > like > > (run-python) >

bug#50514: 28.0.50; org inline call to python src block req C-g to break

2022-08-27 Thread Barton, Mark
On Aug 27, 2022, at 6:30 PM, Ihor Radchenko mailto:yanta...@gmail.com>> wrote: * lisp/ob-python.el (org-babel-python-initiate-session-by-key): Do not rely on 10ms delay to initialize Python. Wait until python process is initialized using `org-babel-comint-wait-for-output'. --- lisp/ob-python.e

bug#50514: 28.0.50; org inline call to python src block req C-g to break

2022-08-27 Thread Ihor Radchenko
"Barton, Mark" writes: > Do we need to worry about the note about not appropriate for large blocks of > code or does that not apply in this case with the way you implemented it. > (org-babel-comint-wait-for-output BUFFER) > > Wait until output arrives from BUFFER. > Note: this is only safe when

Re: [BUG] org babel python execute from local buffer to remote session [9.5.4 (9.5.4-ge0b05b @ /home/moutsopoulosg/.emacs.d/elpa/org-9.5.4/)]

2022-08-27 Thread Ihor Radchenko
George Moutsopoulos writes: > Hi all. I often need to run some code on a remote ssh session, because > only there I can access a database and the environment is hard to > replicate, while I want to keep the code I run on my local machine. > > The remote session is initialised with run-python afte

Re: Improve the docstring for 'org-html-mathjax-options'

2022-08-27 Thread Ihor Radchenko
> Subject: [PATCH] Fix incorrectly documented MathJax options I am going through some old bug reports and there was another related report about this docstring. Rudolf, since you are probably more familiar with MathJax, may you please take a look at the report below and tell us if the suggestions

Re: [BUG] Manual links to MathJax documentation [9.5.1 (release_9.5.1-11-g96d91b @ /emacs-28.0.90/lisp/org/)]

2022-08-27 Thread Ihor Radchenko
Y. E. via "General discussions about Org-mode." writes: > I noticed the links in the footnotes 131 and 132 are broken at > https://orgmode.org/manual/Math-formatting-in-HTML-export.html > > I suppose the following links may be used instead: > 131: http://docs.mathjax.org/en/v2.7-latest/tex.html >