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

2023-03-23 Thread Rudolf Adamkovič
Ihor Radchenko writes: > $-based economy employs 25$-like prices. Gotcha! I think I am fully convinced now. :) Rudy -- "Mathematics takes us still further from what is human into the region of absolute necessity, to which not only the actual world, but every possible world, must conform."

Re: [PATCH] Add tests for ob-haskell (GHCi)

2023-03-23 Thread ParetoOptimalDev
I forgot to mention you can also set the prompt as well to something simple like `:set prompt "> "`. > Ihor Radchenko writes: > >> Part of the problem is that haskell-mode appears to use non-standard >> prompt: >> >> comint-prompt-regexp: ^[[:alnum:].*_() |λ]*> \|^λ?> >> Output: ghci| ghci|

Re: [PATCH] Add tests for ob-haskell (GHCi)

2023-03-23 Thread ParetoOptimalDev
Ihor Radchenko writes: > Part of the problem is that haskell-mode appears to use non-standard > prompt: > > comint-prompt-regexp: ^[[:alnum:].*_() |λ]*> \|^λ?> > Output: ghci| ghci| ghci| ghci| ghci| 6 > > Note "|". You can fix this by sending `set :prompt-cont ""`. Here is a demonstration:

Re: [PATCH] Async evaluation in ob-shell

2023-03-23 Thread Matt
On Thu, 23 Mar 2023 07:48:44 -0400 Ihor Radchenko wrote --- > May you also document this new feature in ORG-NEWS and in > https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-shell.html ? Done.

Re: orgmode website contributions to translations? -- Was: It's possible, to translate the org-mode website into Spanish?

2023-03-23 Thread Bastien Guerry
Ihor Radchenko writes: > The main issue with non-English translations is maintenance. As you > noticed, English and non-English pages are already out of sync. Anyone willing to help with orgmode.org website can get access to the https://git.sr.ht/~bzg/orgweb repository and help with

Re: [ANN] Looking for new maintainers for ox-html.el

2023-03-23 Thread Bastien Guerry
Ihor Radchenko writes: > "Dr. Arne Babenhauserheide" writes: > >> Ihor Radchenko writes: >> >>> I have been informed that our current ox-html maintainer will no longer >>> able to perform his duties in full extent. > > [ This was actually not accurate - TEC, the current ox-html maintainer, >

Remove "shell" as a supported Babel language within ob-shell.el (was Re: [SUGGESTION] ob-shell async result output should not contains shell prompt)

2023-03-23 Thread Matt
> Matt m...@excalamus.com> writes: > > > Is there a reason you're using "shell" instead of one of the shells listed > > in `org-babel-shell-names'? I'm still curious why you're using "shell". I want to know if it's something you're using for a specific reason. There's no wrong answer! I

Re: [SUGGESTION] ob-shell async result output should not contains shell prompt

2023-03-23 Thread Matt
On Thu, 23 Mar 2023 07:12:29 -0400 Christopher M. Miles wrote --- > #+begin_src bash :session "*ob-shell-bash*" :async t > sleep 30 > echo "hello, world" > #+end_src > > #+RESULTS[(2023-03-23 19:14:15) 23f9ad130f7a1268e21821c6baaea2b057c70d3e]: > : org_babel_sh_prompt> hello,

Ability to add logo to HTML export

2023-03-23 Thread Vladimir Alexiev
Some projects have a logo, which one may want to add to the beginning of a HTML document. Eg like this (before authors and Title): [image: image.png] Right now I have to resort to a bad kludge to do that: a local variable in the org file: #+comment: -*- org-html-preamble: "Author: %a(%e)Date:

Re: [RFC] Limit inline image width by default (was: feature request: easy embedding of images)

2023-03-23 Thread Christopher M. Miles
This is an acceptable solution for large width image. I propose this RFC too. -- [ stardiviner ] I try to make every word tell the meaning that I want to express without misunderstanding. Blog: https://stardiviner.github.io/ IRC(libera.chat, freenode): stardiviner, Matrix: stardiviner GPG:

Re: [PATCH] Make predicates non-interactive

2023-03-23 Thread Max Nikulin
On 23/03/2023 11:22, Aaron L. Zeng wrote: +++ b/lisp/org.el ... @@ -15475,7 +15474,6 @@ If Org mode thinks that point is actually inside an embedded LaTeX environment, return t when the environment is math or let `texmathp' do its job otherwise. `\\[org-cdlatex-mode-map]'" -

Re: [RFC] Limit inline image width by default (was: feature request: easy embedding of images)

2023-03-23 Thread General discussions about Org-mode.
Small nit, in case you are about to install it. > +It the actual width is too wide, limit it according to > +~org-image-max-width~. "It" -> "If". -- Best, RY

Re: [fr] allow overriding the likely unintended consequence of org-export-with-tasks

2023-03-23 Thread Ihor Radchenko
Samuel Wales writes: > when org-export-with-tasks is set to nil, tasks will not be exported, > but non-task entries will. > > you can make non-exported todo items and notes about your exported text. > > * REF this is the top level of the subtree > *** NOTE this is just a note and should not be

Re: org-ctags land grab

2023-03-23 Thread Max Nikulin
On 23/03/2023 17:49, Ihor Radchenko wrote: Nick Dokos writes: It is off until org-ctags is loaded. *When* it is loaded, it runs `(org-ctags-enable)' and the behavior changes. Sure. This is not by itself a big deal. A number of Elisp libraries, including built-in Emacs libraries are loaded

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

[RFC] Limit inline image width by default (was: feature request: easy embedding of images)

2023-03-23 Thread Ihor Radchenko
Alexis Gallagher writes: > • the image is automatically resized to maintain aspect ratio and > fit horizontally with a civilized margin, so that I can resize my emacs > window without the image disappearing or swamping the other content. We cannot automatically resize images in

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

2023-03-23 Thread Daniel Kraus
Ihor Radchenko writes: >> Or rather something like: >> >> (defun ob-clojure-eval-with-cider (expanded _params cljs-p) >> "Evaluate EXPANDED code block using cider. >> When CLJS-P is non-nil, use a cljs connection instead of clj. >> The PARAMS from Babel are not used in this function." > > I

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

2023-03-23 Thread Ihor Radchenko
Rudolf Adamkovič writes: > Thank you so much for taking the time to explain the problem to me; I > now understand it much better! That said, if the heuristic is > >$ ...MATH... $- > > then `$3 or =$5' to `$3-$5' would not cause any troubles, right? What > common, real-world use-case

Re: [PATCH] Make predicates non-interactive

2023-03-23 Thread Ihor Radchenko
"Aaron L. Zeng" writes: > Predicates like `org-first-sibling-p' are no use when called > interactively, and should not appear in the M-x prompt. > > TINYCHANGE > --- > lisp/org.el | 3 --- > 1 file changed, 3 deletions(-) Thanks! Applied, onto main. I added appropriate CHANGELOG entries to the

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

2023-03-23 Thread Ihor Radchenko
Daniel Kraus writes: > Ihor Radchenko writes: > >> Now, the docstring appears to be a bit confusing: >> >> (defun ob-clojure-eval-with-cider (expanded _params cljs-p) >> "Evaluate EXPANDED code block with PARAMS using cider. >> When CLJS-P is non-nil, use a cljs connection instead of clj."

Re: [PATCH] Async evaluation in ob-shell

2023-03-23 Thread Ihor Radchenko
Matt writes: > diff --git a/lisp/ob-shell.el b/lisp/ob-shell.el > index 9e7b45a89..eab8ea935 100644 > --- a/lisp/ob-shell.el > +++ b/lisp/ob-shell.el > @@ -269,12 +269,22 @@ var of the same value." > (set-marker comint-last-output-start (point)) > (get-buffer

Re: [PATCH] org-user-idle-seconds: Add support for logind

2023-03-23 Thread Ihor Radchenko
Nathaniel Nicandro writes: > From 1cc887d1378839c3322c93ebb5a524499b8d3073 Mon Sep 17 00:00:00 2001 > From: Nathaniel Nicandro > Date: Wed, 22 Mar 2023 14:54:57 -0500 > Subject: [PATCH] lisp/org-clock.el: Add support for logind Thanks! Applied, onto main. I added a changelog entry for

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

2023-03-23 Thread Daniel Kraus
Ihor Radchenko writes: > Now, the docstring appears to be a bit confusing: > > (defun ob-clojure-eval-with-cider (expanded _params cljs-p) > "Evaluate EXPANDED code block with PARAMS using cider. > When CLJS-P is non-nil, use a cljs connection instead of clj." > > It would be useful to

Re: [SUGGESTION] ob-shell async result output should not contains shell prompt

2023-03-23 Thread Christopher M. Miles
Matt writes: > On Wed, 22 Mar 2023 23:25:50 -0400 Christopher M. Miles wrote --- > > > > The ob-shell async result output contains the shell prompt. I think it > > should not be captured. > > > > #+begin_src shell :session "test2" :async t > > sleep 30 > > echo "hello, world"

Re: [BUG] Agenda not sorting by priority THEN todo state (todo state ignored) [9.6.1 (9.6.1-??-fe92a3c @ /Users/polofsson/.emacs.d/.local/straight/build-28.2/org/)]

2023-03-23 Thread Ihor Radchenko
Samuel Wales writes: > perhaps we could have 2 names: one for the priority cookie setting and > one for whatever the agenda does. This is a good idea. Thanks! See the attached fix making use of Samuel's suggestion. >From d6881c39c91beabdc0bfb29d6dc8a81202a84e40 Mon Sep 17 00:00:00 2001

Re: org-ctags land grab

2023-03-23 Thread Ihor Radchenko
Nick Dokos writes: >> It is off by default. > > It is off until org-ctags is loaded. *When* it is loaded, it runs > `(org-ctags-enable)' and the behavior changes. Sure. This is not by itself a big deal. A number of Elisp libraries, including built-in Emacs libraries are loaded with side

Re: [PATCH] Add tests for ob-haskell (GHCi)

2023-03-23 Thread Ihor Radchenko
Bruno Barbier writes: > +(ert-deftest ob-haskell/let-multilines-1 () > + "Local definitions on multiple lines." > + :expected-result :failed > + (should (equal 6 (test-ob-haskell-ghci "" " > +:{ > + let { x=2 > + ; y=3 > + } > + in x*y > +:} > +" Part of the problem is that

Re: Friendly exchange of thoughts: citations and LaTeX

2023-03-23 Thread Fraga, Eric
Pedro, maybe start by showing an example of where \jobname does not work with org while working with LaTeX directly? I have never used this LaTeX command and know nothing about it. Secondly, what is the problem with bibliography file names being expanded? eric -- : Eric S Fraga, with org