Question regarding org-babel-eval and ob-erlang

2024-08-24 Thread Zelphir Kaltstahl
Hello! I have questions regarding `org-babel-eval'. Does `org-babel-eval' take into account the `PATH' or `exec-path' variables, when searching for executables/binaries to run source blocks? More specifically in my experiments with `ob-erlang' it seems not to pick up/find binaries, which are

Bug in sorting headings according to priority

2023-12-16 Thread Zelphir Kaltstahl
Hello Org-mode users! I have observed a mini bug over some time now: When I sort headings in org mode according to their priority (C-c ^ p), sometimes the last heading (lowest priority) will not get its own line, but will be put in one line with the second last heading, making it no longer a s

Re: [PATCH] lisp/ob-scheme.el

2023-04-29 Thread Zelphir Kaltstahl
On 4/25/23 14:28, Ihor Radchenko wrote: Zelphir Kaltstahl writes: Subject: [PATCH] org-babel-expand-body:scheme: define header arg vars using define Applied, onto main, adding TINYCHANGE cookie and newline between variable definitions and body. https://git.savannah.gnu.org/cgit/emacs/org

Re: org mode table alignment issue with CJK characters

2023-03-25 Thread Zelphir Kaltstahl
On 3/25/23 18:55, Ihor Radchenko wrote: Zelphir Kaltstahl writes: My settings for org mode regarding fonts/faces are: ... It may be tricky to get the scaling right sometimes. I use the following: ;; Credit for the suggestion about `face-font-rescale-alist': @viz:okash.it (Matrix)

Re: [PATCH] lisp/ob-scheme.el

2023-03-25 Thread Zelphir Kaltstahl
signing copyright of that patch to FSF, but probably the paperwork would be way overblown for such a small change. I will simply add the "TINYCHANGE" then. -- repositories:https://notabug.org/ZelphirKaltstahl From 51b299aa18e882681dd681acb51c9cb1b44f3b4e Mon Sep 17 00:00:00 2001 From: Z

Re: org mode table alignment issue with CJK characters

2023-03-25 Thread Zelphir Kaltstahl
On 3/23/23 15:44, Zelphir Kaltstahl wrote: Hello org mode users! I recently looked into getting org mode tables to properly align cell borders and table border, when using Chinese characters in them. I found out, that there is valign mode [1] and was happy with it for a few days. But then

org mode table alignment issue with CJK characters

2023-03-23 Thread Zelphir Kaltstahl
Hello org mode users! I recently looked into getting org mode tables to properly align cell borders and table border, when using Chinese characters in them. I found out, that there is valign mode [1] and was happy with it for a few days. But then I opened a document with lots of tables and so

[PATCH] lisp/ob-scheme.el

2023-03-19 Thread Zelphir Kaltstahl
On 3/11/23 10:58, Ihor Radchenko wrote: Zelphir Kaltstahl writes: The issue is not with defining via (define ...) inside a (let ...) in Guile. It is about importing macros at the time, when the body of the (let ...) is already evaluated, which is at a later phase than macro expansion. By

Re: [BUG] Inconsistent global/local :var assignments in ob-* for lisps and non-lisps (was: org-babel guile source block bug in handling multiple values)

2023-03-11 Thread Zelphir Kaltstahl
On 3/11/23 10:58, Ihor Radchenko wrote: Zelphir Kaltstahl writes: The issue is not with defining via (define ...) inside a (let ...) in Guile. It is about importing macros at the time, when the body of the (let ...) is already evaluated, which is at a later phase than macro expansion. By

Re: org-babel guile source block bug in handling multiple values

2023-03-10 Thread Zelphir Kaltstahl
On 3/9/23 14:11, Ihor Radchenko wrote: Zelphir Kaltstahl writes: OK, to wrap up (ha!), I want to ask: (q1) What is a rationale, if any, behind the let-wrapping? It makes sense in ob-emacs-lisp to not litter global Emacs state. In other ob-* lisp backends, I am not sure. I am CCing Daniel

Re: org-babel guile source block bug in handling multiple values

2023-03-10 Thread Zelphir Kaltstahl
On 3/9/23 14:10, Ihor Radchenko wrote: Zelphir Kaltstahl writes: START #+name: python-imports #+begin_src python :python /usr/bin/python3 :results output replace drawer :var x=4 import math y = math.sqrt(x) # print(y) #+end_src #+name: python-usage #+begin_src python :python /usr

Re: [BUG] Inconsistent global/local :var assignments in ob-* for lisps and non-lisps (was: org-babel guile source block bug in handling multiple values)

2023-03-10 Thread Zelphir Kaltstahl
On 3/9/23 14:04, Ihor Radchenko wrote: Zelphir Kaltstahl writes: I am not sure (let ...) is a correct wrapper for noweb included source blocks. What, if I write a (define ...) in my source block and want to use that source block via noweb in another source block? Expected behavior I think

Re: org-babel guile source block bug in handling multiple values

2023-03-08 Thread Zelphir Kaltstahl
On 3/8/23 20:38, Bruno Barbier wrote: Hi Zelphir, Zelphir Kaltstahl writes: On 3/7/23 20:52, Bruno Barbier wrote: Also thanks for the idea with sessions + separate import source block. I thought that should work, but apparently that also has the same error, when running for the first time

Re: org-babel guile source block bug in handling multiple values

2023-03-07 Thread Zelphir Kaltstahl
On 3/7/23 20:52, Bruno Barbier wrote: Zelphir Kaltstahl writes: If org merely wraps in a `let`, it should not notice any of the multiple values business, because that is something done internally in `let-values`. The "let", to define the org variables, ends up putting the "

Re: org-babel guile source block bug in handling multiple values

2023-03-07 Thread Zelphir Kaltstahl
On 3/7/23 20:52, Bruno Barbier wrote: Zelphir Kaltstahl writes: If org merely wraps in a `let`, it should not notice any of the multiple values business, because that is something done internally in `let-values`. The "let", to define the org variables, ends up putting the "

Re: org-babel guile source block bug in handling multiple values

2023-03-07 Thread Zelphir Kaltstahl
On 3/7/23 15:36, Ihor Radchenko wrote: Zelphir Kaltstahl writes: * Multiple values involving =:var= variables #+begin_src scheme :eval query-export :results output replace drawer :var x=1 :var y=2 (import (except (rnrs base) error vector-map) (only (guile) lambda

org-babel guile source block bug in handling multiple values

2023-03-07 Thread Zelphir Kaltstahl
Hello Org users! I think I found a bug in how org-babel works with at least GNU Guile source blocks. I could not reproduce this for example with a racket source block, because somehow there is no ob-racket and I think I would need that. I could try other Schemes like maybe Chicken, if there is

Re: Problem with org-babel and geiser

2022-03-22 Thread Zelphir Kaltstahl
Hello Rudy! On 3/22/22 21:51, Rudolf Adamkovič wrote: Zelphir Kaltstahl writes: Hello Zelphir! At some point something changed, I think, […] In Geiser or in Org? I use Geiser for work heavily and it works like magic. I ask because if the problem resides in Geiser, we could report a new

Re: Re: Problem with org-babel and geiser

2022-03-18 Thread Zelphir Kaltstahl
Hello Rudy! On 3/18/22 17:00, emacs-orgmode-requ...@gnu.org wrote: Today, I needed to use Scheme with Org (9.5.2-24-g668205), and I found that the #+RESULTS: always come back empty. Oh, well! I use Guile and have everything configured correctly. Has anyone merged the patch discussed in this t

Re: Library of Babel usage of other programming languages than elisp

2021-08-11 Thread Zelphir Kaltstahl
Hello Arne! Thanks for that. Do you happen to have an example, in which you are passing arguments to a procedure? Regards, Zelphir On 8/10/21 7:49 AM, Dr. Arne Babenhauserheide wrote: > Zelphir Kaltstahl writes: > >> I have repeatedly tried to use another programming language th

Re: Library of Babel usage of other programming languages than elisp

2021-08-09 Thread Zelphir Kaltstahl
Hi Greg! On 8/9/21 5:23 PM, Greg Minshall wrote: > Zelphir, > > actually... > > Everybody, > > i have an awkwardness about not being clear of the meaning of "Library > of Babel". my sense is it a collection of "subroutines". > > in my typical use of Org mode for programming, all my code blocks ar

Re: Library of Babel usage of other programming languages than elisp

2021-08-09 Thread Zelphir Kaltstahl
ry: Export Framework for Org Mode Required by: ob-async-20200921.205 Other versions: 9.4.6 (gnu). END Thank you, Zelphir On 8/9/21 5:11 PM, Eric S Fraga wrote: > On Monday, 9 Aug 2021 at 14:25, Zelphir Kaltstahl wrote: >> the call in this case can be in the same document. I c

Re: Library of Babel usage of other programming languages than elisp

2021-08-09 Thread Zelphir Kaltstahl
Fraga wrote: > On Monday, 9 Aug 2021 at 12:52, Zelphir Kaltstahl wrote: >> I have repeatedly tried to use another programming language than elisp >> for writing source blocks in org-mode, which I intended to use as >> functions inside org-mode spreadsheets. So far without success

Library of Babel usage of other programming languages than elisp

2021-08-09 Thread Zelphir Kaltstahl
Hello Org-mode users! I have repeatedly tried to use another programming language than elisp for writing source blocks in org-mode, which I intended to use as functions inside org-mode spreadsheets. So far without success. Here is my latest attempt: START #+HEADER: :var dt1="uninitiali

Re: org source block execute not working correctly with GNU Guile source block?

2021-03-14 Thread Zelphir Kaltstahl
Ah, I am sorry, I forgot to include basic information: Emacs installed via GNU Guix: GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.24, cairo version 1.16.0) Org: org, 9.3, built-in On 3/14/21 4:28 PM, Zelphir Kaltstahl wrote: > > Hello! > > I have an org-mode

org source block execute not working correctly with GNU Guile source block?

2021-03-14 Thread Zelphir Kaltstahl
Hello! I have an org-mode spreadsheet, in which I calculate durations from timestamps like "[2021-03-14 Sun 03:50]" for example. Recently I saw, that using org-sbe (org source block execute) in combination with the :var header argument can be used to run arbitrary code for calculating values to pu

Re: org-mode export toggle checkboxes

2020-12-27 Thread Zelphir Kaltstahl
Thanks for that! Going to try it soon : ) On 12/4/20 7:10 AM, Kyle Meyer wrote: > Zelphir Kaltstahl writes: > >> Hello Emacs and Org-Mode Users, >> >> I have a question regarding the export options of org-mode. >> >> Is there a way to toggle, whether checkb

org-mode export toggle checkboxes

2020-11-16 Thread Zelphir Kaltstahl
Hello Emacs and Org-Mode Users, I have a question regarding the export options of org-mode. Is there a way to toggle, whether checkboxes are exported to markdown and plain text (ASCII buffer / file)? I did not find any on https://orgmode.org/manual/Export-Settings.html and so far I tried the foll