Re: Noweb Function's body without evaluation

2023-03-15 Thread Ken Mankoff
Hi, I'm not sure that I understand your issue or needs from the provided examples, but I wonder if the example I provide here would be helpful. It bypasses :var an lets you inject a PROPERTY value anywhere. It is also language agnostic. You can use it to execute commands (that are set as

Re: [PATCH] lisp/ob-screen.el: Support ~:var~ header args for babel blocks

2023-03-15 Thread Ken Mankoff
Hi Ihor and Max, Just a follow-up note that I am unlikely to be able to complete this patch anytime soon. Re-alignment of priorities because my need for :var header support in Org Babel is mitigated by a different method of injecting variables into Org Babel sections: Use noweb. I find this

Noweb Function's body without evaluation

2023-03-15 Thread suarezmiguelc
Hello Org-mode community. I’m using Emacs Doom Framework, specifically: Emacs 28.2 (build 1, aarch64-apple-darwin22.3.0, Carbon Version 169 AppKit 2299.4) of 2023-02-23. I use heavily org-mode for Literate DevOps, so I have a lot of shell commands that connect through SSH and do some things

Re: Haskell code blocks

2023-03-15 Thread Bruno Barbier
Hi Ihor, Ihor Radchenko writes: > Bruno Barbier writes: > >> Sorry, I'm still working on adding a 'test-ob-haskell.el', when I have >> some spare time, but I'm unable so far to find tests that I can't >> reliably break. > > May I know if you are still working on this? > Do you need any help?

Re: [Pre-PATCH] Overhaul of the LaTeX preview system

2023-03-15 Thread Rudolf Adamkovič
Ihor Radchenko writes: > What about > > (define-fringe-bitmap > 'sand-clock > [#b > #b1001 > #b0110 > #b0110 > #b01101110 > #b0000 > #b00011000 > #b00100100 > #b0110 > #b01011010 > #b >

Re: [PATCH] org-manual.org: $n$-th is not math

2023-03-15 Thread Rudolf Adamkovič
Bummer the dash will not be supported. :( (I am super-happy with $...$, except for the dash case.) Max Nikulin writes: > Prefer =\(...\)= for + inline snippets. Fragments, not snippets. Right? > The =$...$= alternative has some restrictions and may be source of confusion. I am not a native

Re: [POLL] Proposed syntax for timestamps with time zone info (was: [FEATURE REQUEST] Timezone support in org-mode datestamps and org-agenda)

2023-03-15 Thread Max Nikulin
On 10/02/2023 10:29, Jean Louis wrote: https://icalendar.org/iCalendar-RFC-5545/3-3-5-date-time.html , | The form of date and time with UTC offset MUST NOT be used. For | example, the following is not valid for a DATE-TIME value: | | 19980119T23-0800 ;Invalid time format `

Re: Find-file using org-protocol

2023-03-15 Thread Max Nikulin
On 15/03/2023 10:41, Kai Ma wrote: I’m using org-protocol to open local files in an Emacs client. Yes, this is weird, but it is required for some Electron apps, because they do not allow calling arbitrary commands. ... It works, but there’s a minor annoyance: the buffer it opens is not

Re: [PATCH] org-manual.org: $n$-th is not math

2023-03-15 Thread Loris Bennett
Max Nikulin writes: [snip (17 lines)] > Detection of "$-" as closing math delimiters is broken since 2015 as a [snip (44 lines)] Detection of "$-" as closing math delimiters has been broken since 2015 as a -- This signature is currently under constuction.

[PATCH] org-manual.org: $n$-th is not math

2023-03-15 Thread Max Nikulin
Hi, yesterday an issue with $n$-th TeX markup was risen again. I think, the manual should not declare that it is supported. It is broken for a decade. So \(n\)-th should be suggested instead.From 6feb228a1bcc485441bab707771e6d87a3d69671 Mon Sep 17 00:00:00 2001 From: Max Nikulin Date: Wed, 15

Find-file using org-protocol

2023-03-15 Thread Kai Ma
Hi org I’m using org-protocol to open local files in an Emacs client. Yes, this is weird, but it is required for some Electron apps, because they do not allow calling arbitrary commands. This is how I do it: (use-package org-protocol :config (add-to-list 'org-protocol-protocol-alist

Re: [patch] ob-clojure: Fix results output

2023-03-15 Thread Daniel Kraus
Ihor Radchenko writes: > What will happen with users who customized `org-babel-clojure-backend' > to 'nbb in the past? They would have gotten an error. I changed it now that 'nbb backend is still allowed in a clojure source block but it will internally treated as ClojureScript. >> +(defcustom

Re: [patch] ob-clojure: Fix results output

2023-03-15 Thread Ihor Radchenko
Daniel Kraus writes: > Ups, I attached the wrong one. > Here the correct patch.. Thanks! Some more comments ;) > (defcustom org-babel-clojure-backend (cond >((executable-find "bb") 'babashka) > - ((executable-find

Re: [Pre-PATCH] Overhaul of the LaTeX preview system

2023-03-15 Thread Ihor Radchenko
Timothy writes: >>> • Org mode can keep equation numbering consistent by regenerating previews >>> as needed. >> >> This is disabled by default, right? >> But I am still seeing the numbering (see the attached) the Org text >> below. > > Correct. Numbering settings have been re-done to hopefully

Re: [Pre-PATCH] Overhaul of the LaTeX preview system

2023-03-15 Thread Ihor Radchenko
Timothy writes: >> 3. It took 20+ seconds (!!!) to generate previews in a single section in >>my large notes.org. Profile attached - org-latex-preview parses the >>whole 20Mb buffer to generate the preamble. Why? > > Because of the use of buffer info in generating the preamble, which

Re: 1 character fix to make ob-haskell compatible with table outputs

2023-03-15 Thread Ihor Radchenko
ParetoOptimalDev via "General discussions about Org-mode." writes: > For something like: > > name:tbl > #+begin_src sh > echo -e "1\t2\t3" > #+end_src > > #+RESULTS: > | 1 | 2 | 3 | > > #+begin_src haskell :var table=tbl > print table > #+end_src > > #+RESULTS: > | 1 | 2 | 3 | > > Whereas before