Re: Docstrings and literate programming (good practices?)

2022-11-03 Thread tomas
On Thu, Nov 03, 2022 at 08:03:05PM -0700, Samuel Wales wrote: > i wonder if emacs or org has what you might call semi-literate or > etaretil docstring functions? > > for example, you have a body of non-literate elisp code, and you have > a manual. it could be redundant to describe commands and

Re: Line breaks and brackets in LaTeX export

2022-11-03 Thread Max Nikulin
On 04/11/2022 11:23, Ihor Radchenko wrote: Max Nikulin writes: Ihor Radchenko writes: These arguments mean that auto-cleaning \\[0pt] is not always safe and may be a subject of surrounding LaTeX context. I still believe that something\\[0pt]%__ORG_EXPORT__ is quite safe to remove

Re: Can someone give an init.el wherein can start customize it?

2022-11-03 Thread Ihor Radchenko
Mati writes: > Can someone give an init.el wherein can start customize it? I do not think that we can help you much here. Config highly depends on your personal preferences and choice of packages. (That's the whole point!) We are unlikely to understand what you really want to achieve just from

Re: How to center an image directly in org-mode (without exporting)

2022-11-03 Thread Ihor Radchenko
Cletip Cletip writes: > My problem is quite simple to understand: when I activate > "org-toggle-inline-images", I would like my images to be centered. Indeed, > I tried this in a org-file > > #+ATTR_ORG: :width 800 :center t > > [[file:images/anImage.png]] > > > But it obviously doesn't work.

Re: How to align all tables at once?

2022-11-03 Thread Ihor Radchenko
Jean Louis writes: > I am using Org mode for presentation and would like to use it's tables > for presentation only. > > In particular I need the function org-table-align to align the table > in presentation mode. I am not sure if I understand your use-case, but you may consider looking at 3.2

Re: Line breaks and brackets in LaTeX export

2022-11-03 Thread Ihor Radchenko
Max Nikulin writes: >> Ihor Radchenko writes: >> >>> These arguments mean that auto-cleaning \\[0pt] is not always safe and >>> may be a subject of surrounding LaTeX context. > > I still believe that > > something\\[0pt]%__ORG_EXPORT__ > > is quite safe to remove (depending on the

bug#53393: 29.0.50; org mode timestamp C-c C-c not updating day of week

2022-11-03 Thread Ihor Radchenko
Rudolf Adamkovič writes: > Ihor Radchenko writes: > >>> recently did update the day of the week but no long does > >> Fixed on main. > > Please see the attached patch with a regression test. Thanks! > +:LOGBOOK: > +CLOCK: [2022-11-03 Thu 00:00]--[2022-11-03 Thu 00:01] => 0:01 > +:END: Let's

Re: [PATCH] Ignore flaky ob-python tests

2022-11-03 Thread Ihor Radchenko
Christian Köstlin writes: > I somehow seem to remember that the async tests were also broken with > python.el (python-mode.el not installed). > at least sometimes? I only recall the underscore test. Note that I debugged the async tests with your rake builds, and I have identified that async

Re: [BUG] Post MacOS Monterey update. Error shows at start-up. error:image-type: Invalid image type 'svg' No splash screen shows [9.5.5 (release_9.5.5 @ /Applications/Emacs.app/Contents/Resources/li

2022-11-03 Thread Ihor Radchenko
Thomas Bumbera writes: > Error shows at start-up. error:image-type: Invalid image type 'svg' No > splash screen shows Thanks for reporting! It looks like the error happens only with your personal configuration. Have you tried to follow https://orgmode.org/manual/Feedback.html#Feedback and

Clarification on :results file vs. :results graphics file (was: [BUG] ob-doc-maxima.org and ob-maxima.el)

2022-11-03 Thread Ihor Radchenko
Leo Butler writes: >>> @@ -145,7 +151,7 @@ This example is from >>> [[http://maxima.sourceforge.net/maxima-gnuplot.html][a tuto >>> ,#+name: 3d-maxima >>> ,#+header: :file images/maxima-3d.png >>> ,#+header: :exports results >>> -,#+header: :results graphics >>> +,#+header: :results graphics

Re: [BUG] ob-doc-maxima.org and ob-maxima.el

2022-11-03 Thread Ihor Radchenko
Leo Butler writes: >> You basically need to evaluate the code block manually to have it >> present in the original file without a need to evaluate during export. >> >> I do not have maxima on my system. It would be welcome if you evaluate >> the code blocks with missing results manually and

Re: [BUG] ob-shell :stdin is broken on the main branch

2022-11-03 Thread Max Nikulin
On 04/11/2022 09:42, Ihor Radchenko wrote: Max Nikulin writes: #+name: lbl #+begin_example line 1 line 2 #+end_example #+begin_src bash :stdin lbl cat #+end_src Second one signals "Wrong number of arguments" at least in Emacs-26 with Org main HEAD. This is only on Emacs 26. Fixed on

Re: processing a literal example line by line in a shell source block?

2022-11-03 Thread Max Nikulin
On 03/11/2022 01:17, Greg Minshall wrote: hi. i have a text in a named #+begin_example ... #+end_example block. i would like to process this text line by line in a shell (bash, say) code block. but, it appears that the individual lines are not separated, but passed as one long string to the

Re: Docstrings and literate programming (good practices?)

2022-11-03 Thread Samuel Wales
i wonder if emacs or org has what you might call semi-literate or etaretil docstring functions? for example, you have a body of non-literate elisp code, and you have a manual. it could be redundant to describe commands and what they do and their options, if the docstrings are good. why not

Re: Org 9.6-pre and Bash sessions

2022-11-03 Thread Ihor Radchenko
Rudolf Adamkovič writes: > Ihor Radchenko writes: > >> Feel free to change it in the patch together with tests. > > Thank you for driving the discussion and for giving me the opportunity > to solve the problem (and not just temporarily, but with tests). What > do you think about the attached

Re: [BUG] ob-shell :stdin is broken on the main branch

2022-11-03 Thread Ihor Radchenko
Max Nikulin writes: > Try the following source code blocks: > > #+begin_src elisp >(require 'ob-shell) > #+end_src > > #+name: lbl > #+begin_example > line 1 > line 2 > #+end_example > > #+begin_src bash :stdin lbl >cat > #+end_src > > Second one signals "Wrong number of arguments" at

Re: processing a literal example line by line in a shell source block?

2022-11-03 Thread Greg Minshall
Ihor, > Try > > #+name: lbl > #+begin_example > line 1 > line 2 > #+end_example > > #+begin_src bash :var input=lbl :results output > echo "${input}" > #+end_src ah, the double quotes! thanks very much! cheers, Greg

bug#53393: 29.0.50; org mode timestamp C-c C-c not updating day of week

2022-11-03 Thread General discussions about Org-mode.
Ihor Radchenko writes: >> recently did update the day of the week but no long does > Fixed on main. Please see the attached patch with a regression test. Rudy >From 51f1ee245a99e30402d7fd2d069d3e223ad5c15d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rudolf=20Adamkovi=C4=8D?= Date: Thu, 3 Nov

Re: [PATCH] Ignore flaky ob-python tests

2022-11-03 Thread Christian Köstlin
Hi Ihor, I somehow seem to remember that the async tests were also broken with python.el (python-mode.el not installed). at least sometimes? or is this only the underscore test? If it's only the underscore test, I would suggest not installing python-mode for ci and ignoring the really flaky tests

Re: Docstrings and literate programming (good practices?)

2022-11-03 Thread Rudolf Adamkovič
Juan Manuel Macías writes: Hello Juan! > I can duplicate the text, but it seems to be a bit redundant, right? > So what is the best way to proceed when doing literate programming > with any language that supports docstrings? Apologies in advance if > the question is a bit silly, but I'm not a

[BUG] Post MacOS Monterey update. Error shows at start-up. error:image-type: Invalid image type 'svg' No splash screen shows [9.5.5 (release_9.5.5 @ /Applications/Emacs.app/Contents/Resources/lisp

2022-11-03 Thread Thomas Bumbera
Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See https://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org mailing list.

Re: [BUG] ob-doc-maxima.org and ob-maxima.el

2022-11-03 Thread Leo Butler
Hi Ihor, On Thu, Nov 03 2022, Ihor Radchenko wrote: > Leo Butler writes: > >> In worg's documentation of ob-maxima.el[fn:1], there are several bugs. > > Thanks for reporting! Thank you for the feedback. I will comment inline below. > >> 1. In the subsection `Inline Display of Maxima LaTeX

TIP: use svglite as device in for producing plots in R/ESS code blocks

2022-11-03 Thread Cook, Malcolm
I wanted to use svglite as the driver for producing .svg plots within org. It took a little poking around but the solution was one line: ``` (setf (alist-get :svg org-babel-R-graphics-devices ) '("svglite" "file")) ``` Of course it requires: ``` library(svglite) ``` ...to have been called

RE: org-assert-version considered harmful

2022-11-03 Thread Cook, Malcolm
>> It should not be necessary and it does not happen on my side (as you can > >> imagine, I re-compile very often). > > > > Perhap's my issue stems from the particular versions of org I was upgrading > > between and/or (earlier) poor management of multiple contending org > > versions (e.g. git

Re: [DISCUSSION] Should we deprecate python-mode.el (alternative to built-in python.el) support in ob-python? (was: [BUG] ob-python: async session evaluation does not support python-mode.el [9.6-pre (

2022-11-03 Thread Jack Kamm
Ihor Radchenko writes: > However, supporting python-mode.el integration is difficult for Org > team: neither the current ob-python maintainer nor the rest of Org team > are familiar with python-mode.el. > > The bug discussed above already shows that parts of ob-python do not > work properly with

Re: Org 9.6-pre and Bash sessions

2022-11-03 Thread Rudolf Adamkovič
Ihor Radchenko writes: > Feel free to change it in the patch together with tests. Thank you for driving the discussion and for giving me the opportunity to solve the problem (and not just temporarily, but with tests). What do you think about the attached patch? Rudy >From

[BUG] ob-shell :stdin is broken on the main branch

2022-11-03 Thread Max Nikulin
Try the following source code blocks: #+begin_src elisp (require 'ob-shell) #+end_src #+name: lbl #+begin_example line 1 line 2 #+end_example #+begin_src bash :stdin lbl cat #+end_src Second one signals "Wrong number of arguments" at least in Emacs-26 with Org main HEAD. Org bugfix

[PATCH] Re: Maxima code blocks does not work in windows revisited

2022-11-03 Thread Leo Butler
On Thu, Nov 03 2022, Max Nikulin wrote: > On 03/11/2022 17:01, Fraga, Eric wrote: >> On Thursday, 3 Nov 2022 at 09:35, Max Nikulin wrote: >>> maxima --very-quiet -r "batchload(\"c:\\Temp\\maxima-XX.max\")"$ >> Should the $ not be within the quotes? > > Does "$" have any special meaning in

Can someone give an init.el wherein can start customize it?

2022-11-03 Thread Mati
Look at mine config, but it's dirty too so copy-pasting it is not a good idea. Here are things that can be copied from it: - straight and use-package configuration - orderless - vertico - doom-modeline - three first lines with font, but you must install those two fonts if you want to use

Re: Maxima code blocks does not work in windows revisited

2022-11-03 Thread Max Nikulin
On 03/11/2022 17:01, Fraga, Eric wrote: On Thursday, 3 Nov 2022 at 09:35, Max Nikulin wrote: maxima --very-quiet -r "batchload(\"c:\\Temp\\maxima-XX.max\")"$ Should the $ not be within the quotes? Does "$" have any special meaning in cmd.exe? I do not mind that it should be inside

Re: Line breaks and brackets in LaTeX export

2022-11-03 Thread Juan Manuel Macías
Max Nikulin writes: > I have not managed to convince even the tabularray developer. And I > have not tried to find a way to reach more LaTeX developers. I think that people from the LaTeX team and the authors of the most popular packages are often very active on tex.stackexchange.com And the

Re: Line breaks and brackets in LaTeX export

2022-11-03 Thread Max Nikulin
Ihor Radchenko writes: These arguments mean that auto-cleaning \\[0pt] is not always safe and may be a subject of surrounding LaTeX context. I still believe that something\\[0pt]%__ORG_EXPORT__ is quite safe to remove (depending on the following character) and unlikely harmful if

How to center an image directly in org-mode (without exporting)

2022-11-03 Thread Cletip Cletip
Hello to all, My problem is quite simple to understand: when I activate "org-toggle-inline-images", I would like my images to be centered. Indeed, I tried this in a org-file #+ATTR_ORG: :width 800 :center t [[file:images/anImage.png]] But it obviously doesn't work. Does anyone have a tip?

Re: Init.el need just for org-mode?

2022-11-03 Thread Max Nikulin
On 03/11/2022 00:31, Renato Pontefice wrote: Init.el Need just for org -mode? Not for emacs right? No, in the init file you may adjust other Emacs settings as well https://www.gnu.org/software/emacs/manual/html_node/emacs/Init-File.html To avoid syntax errors you may use easy customization

Re: Line breaks and brackets in LaTeX export

2022-11-03 Thread Juan Manuel Macías
Ihor Radchenko writes: > These arguments mean that auto-cleaning \\[0pt] is not always safe and > may be a subject of surrounding LaTeX context. Moreover, there is no > clear alternative to \\[0pt] that is guaranteed to work. > Thus, the whole idea with cleaning up the generated LaTeX cannot be >

Re: Init.el need just for org-mode?

2022-11-03 Thread Quiliro Ordóñez
El 2022-11-02 12:31, Renato Pontefice escribió: > I’m sorry for this simply question, but I’m starting using emacs and > org-mode and I made some confusion. > > Init.el > > Need just for org -mode? Not for emacs right? Did you read the Emacs manual `C-h r' or the Org manual `C-h i d m Org Mode

Re: How to set appointment twice a week

2022-11-03 Thread Ihor Radchenko
Renato Pontefice writes: > I need to sign up my palestra appointment twice a week: > On Monday from 16 to 17:30 > On Friday from 18 to 19:30 > > For one day I use: > > ** Io palestra <2022-10-03 Mon 18:00-19:30 +1w> > > But to add the second time? Do I add a line? Or can manipulate this one

How to set appointment twice a week

2022-11-03 Thread Renato Pontefice
I need to sign up my palestra appointment twice a week: On Monday from 16 to 17:30 On Friday from 18 to 19:30 For one day I use: ** Io palestra <2022-10-03 Mon 18:00-19:30 +1w> But to add the second time? Do I add a line? Or can manipulate this one just adding the second appointment? (I

Re: [O] Maxima code blocks does not work in windows revisited

2022-11-03 Thread Mati
As Max pointed out, the latest main branch of Org should already handle Windows cmd properly without any extra patches. Did you try it? May I know the output of M-x org-version? 9.5.5-g5bc674, I just pulled it, rebuilt and works properly (without plots)

Re: Maxima code blocks does not work in windows revisited

2022-11-03 Thread Fraga, Eric
On Thursday, 3 Nov 2022 at 09:35, Max Nikulin wrote: > maxima --very-quiet -r "batchload(\"c:\\Temp\\maxima-XX.max\")"$ Should the $ not be within the quotes? -- : Eric S Fraga, with org release_9.5.5-853-g7b9d8e in Emacs 29.0.50

How to align all tables at once?

2022-11-03 Thread Jean Louis
I am using Org mode for presentation and would like to use it's tables for presentation only. In particular I need the function org-table-align to align the table in presentation mode. The Org buffer is updated with results of the below embedded functions. I can't use Org mode directly as many

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

2022-11-03 Thread Bastien Guerry
Ihor Radchenko writes: > Bastien, could you please add Daniel as the maintainer of > lisp/ob-sql.el? Done in bd468136d. Thanks Daniel! -- Bastien

RE: org-assert-version considered harmful

2022-11-03 Thread Ihor Radchenko
"Cook, Malcolm" writes: >> It should not be necessary and it does not happen on my side (as you can >> imagine, I re-compile very often). > > Perhap's my issue stems from the particular versions of org I was upgrading > between and/or (earlier) poor management of multiple contending org

Re: How to set monospace font face for org-agenda calendar?

2022-11-03 Thread Ihor Radchenko
Mati writes: > Hi. I tried to assign monospace font to calendar in org-agenda but it > looks it uses default face. How I can set it then? Change the default face. Or remap the default face only in that buffer (see https://protesilaos.com/codelog/2022-01-08-emacs-face-remap-add-relative/) Or,

Re: processing a literal example line by line in a shell source block?

2022-11-03 Thread Ihor Radchenko
Greg Minshall writes: > hi. i have a text in a named #+begin_example ... #+end_example block. > i would like to process this text line by line in a shell (bash, say) > code block. but, it appears that the individual lines are not > separated, but passed as one long string to the source block.

Re: Docstrings and literate programming (good practices?)

2022-11-03 Thread Ihor Radchenko
Juan Manuel Macías writes: >> Can you elaborate about "paragraph is exported as verbatim"? > > Sorry for the conciseness in my previous explanation. I meant something > like this: > > : foo > > is exported to LaTeX as > > \begin{verbatim} > foo > \end{verbatim} > > (and what i want is for it to

Re: [PATCH] Improve Org Babel LaTeX + Inkscape

2022-11-03 Thread Ihor Radchenko
Rudolf Adamkovič writes: > The attached two patches improve Org Babel LaTeX export to SVG using > Inkscape. See the commit messages for more details. Thank you. Thanks! Applied onto main. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=aaccbb2f987e80190cfb7ca0cb87d2546455a468

Re: @string abbreviation in bib file not honored in (basic) org-cite

2022-11-03 Thread Ihor Radchenko
Joost Kremers writes: > On Sun, Oct 30 2022, Ihor Radchenko wrote: >> May I know if there is any update on the copyright assignment situation? >> If you need any help, we can provide it. > > I have signed the form and sent it in, and I have received the counter-signed > form back from the FSF.

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

2022-11-03 Thread Ihor Radchenko
Daniel Kraus writes: >> P.S. ob-sql currently have no maintainer. Do you want to volunteer? > > Hmm, ob-sql is the the babel module I use most often. > I don't think I'll have enough time to make bigger changes etc, > but from what I know that's not necessary or expected. > I'm certainly willing

Re: [PATCH] Ignore flaky ob-python tests

2022-11-03 Thread Ihor Radchenko
Christian Köstlin writes: > With my patch the tests are still failing but the testsuite continues > to run and returns > with 0 as status code (one can see the failed test though). FYI, I am using automated scripts to run make test locally on multiple Emacs versions. 0 status code would do no

[DISCUSSION] Should we deprecate python-mode.el (alternative to built-in python.el) support in ob-python? (was: [BUG] ob-python: async session evaluation does not support python-mode.el [9.6-pre (rele

2022-11-03 Thread Ihor Radchenko
Jack Kamm writes: > I was actually planning to deprecate ob-python support for > python-mode.el, because I don't think it's worth the extra complexity & > burden to support 2 python modes. For users who prefer python-mode, I > think it would be better to have a separate ob-python-mode, perhaps

Re: [BUG] ob-doc-maxima.org and ob-maxima.el

2022-11-03 Thread Ihor Radchenko
Leo Butler writes: > In worg's documentation of ob-maxima.el[fn:1], there are several bugs. Thanks for reporting! > 1. In the subsection `Inline Display of Maxima LaTeX Output', the > results are missing. It is because source block evaluation is disabled on server side when generating WORG

Re: [PATCH][oc-csl] Improve reference parsing

2022-11-03 Thread Ihor Radchenko
András Simonyi writes: > On Wed, 2 Nov 2022 at 07:28, Ihor Radchenko wrote: > >> I do not think that CSL limitations are really limiting us. > ... > I'm not really familiar with the internals of the Org exporter but, > looking at the ox.el code, macros and babel calls are processed and >

[DISCUSSION] Default description for relative file links in odt export (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

2022-11-03 Thread Ihor Radchenko
In ODT, the ./ is _inside_ the odt archive and the current directory is "../". Then, the default description for file links is "../file", which is somewhat confusing. Should we change it and tweak the default description of relative file links in odt? This will only matter during odt export of

Re: Line breaks and brackets in LaTeX export

2022-11-03 Thread Ihor Radchenko
Max Nikulin writes: > On 02/11/2022 13:46, Ihor Radchenko wrote: >> Ihor Radchenko writes: >> >>> Should we, instead of using exact "\\[0pt]" string for line breaks, >>> define a new LaTeX command and then clean it up? This will distinguish >>> between \\[0pt] added by users explicitly and the

Re: Maxima code blocks does not work in windows revisited

2022-11-03 Thread Ihor Radchenko
Max Nikulin writes: > On 02/11/2022 11:47, Ihor Radchenko wrote: (for reference, this email is a followup of https://orgmode.org/list/ca+ikm3wqa33xp4c3pvv+f2a-gn0dbezsdx6vf2crd+37+u6...@mail.gmail.com) > > Ihor, you recently applied an alternative patch to Org main branch. > Emacs

Re: Maxima code blocks does not work in windows revisited

2022-11-03 Thread Ihor Radchenko
Max Nikulin writes: > On 02/11/2022 11:47, Ihor Radchenko wrote: (for reference, this email is a followup of https://orgmode.org/list/ca+ikm3wqa33xp4c3pvv+f2a-gn0dbezsdx6vf2crd+37+u6...@mail.gmail.com) > > Ihor, you recently applied an alternative patch to Org main branch. > Emacs