Re: [BUG] ob-shell async session does not work with multiple blocks running [9.7.16 (9.7.16-ba9734 @ /nix/store/6la93ywyb1h055phgyqba7h7qay60p0m-emacs-packages-deps/share/emacs/site-lisp/elpa/org-9.7.

2025-06-09 Thread Matt
On Sun, 08 Jun 2025 11:20:32 +0200 Ihor Radchenko wrote --- > I genle ping. It has been a while this the last update in this thread. Thanks for the ping. I'll see if I can revisit it this week. -- Matt Trzcinski Emacs Org contributor (ob-shell) Learn more about Org mode

export citations in pandoc format?

2025-05-15 Thread Matt Price
I feel like I've seen a solution to this before but I can't find it. Is there a citation processor that will export citation to simple pandoc format when exporting to markdown? I need to export to a quarto-compatible (ie, pandoc-compatible) file. As always, appreciate everyone's help!

Re: quarto-like "code annotation"

2025-05-06 Thread Matt Price
Thanks Ihor, this is really helpful. On Sun, May 4, 2025 at 2:07 PM Ihor Radchenko wrote: > Matt Price writes: > > > the Quarto framework for markdown exports has a cool feature enabling > > annotation of code: > > > > https://quarto.org/docs/authoring/code-ann

quarto-like "code annotation"

2025-05-04 Thread Matt Price
Thanks so much, Matt

Re: [BUG] queuing many org babel async blocks at once blocks emacs

2025-04-02 Thread Matt
On Tue, 01 Apr 2025 00:52:25 +0200 Elle Najt wrote --- > When executing many (~100) Python or (~1000) bash source blocks > asynchronously in an org file, Emacs becomes unresponsive. This occurs > with vanilla Emacs -Q. > > It's unclear if this is a *bug* per say -- but it is a perf

Re: [BUG] ob-shell async session does not work with multiple blocks running [9.7.16 (9.7.16-ba9734 @ /nix/store/6la93ywyb1h055phgyqba7h7qay60p0m-emacs-packages-deps/share/emacs/site-lisp/elpa/org-9.7.

2024-12-19 Thread Matt
On December 19, 2024 12:24:48 AM GMT+01:00, Matt wrote: >Running from the latest commit, eebc9be7c, on Emacs on Android, I'm not able >to reproduce. > >Did I miss a change between Dec. 10 and today which fixed this? My bad. To reproduce the error, the blocks *must* be run us

Re: [BUG] ob-shell async session does not work with multiple blocks running [9.7.16 (9.7.16-ba9734 @ /nix/store/6la93ywyb1h055phgyqba7h7qay60p0m-emacs-packages-deps/share/emacs/site-lisp/elpa/org-9.7.

2024-12-18 Thread Matt
Running from the latest commit, eebc9be7c, on Emacs on Android, I'm not able to reproduce. Did I miss a change between Dec. 10 and today which fixed this?

Re: [BUG] ob-shell async session does not work with multiple blocks running [9.7.16 (9.7.16-ba9734 @ /nix/store/6la93ywyb1h055phgyqba7h7qay60p0m-emacs-packages-deps/share/emacs/site-lisp/elpa/org-9.7.

2024-12-01 Thread Matt
On Sat, 23 Nov 2024 19:43:05 +0100 Ihor Radchenko wrote --- > ParetoOptimal pareto.opti...@mailfence.com> writes: > > > Problem: Running two shell source blocks with the same session doesn't > > properly extract out results from the sentinel value relating to each > > respective so

Initial visibility documentation conflict

2024-07-31 Thread Matt M
Just wanted to recommend a fix to a conflict in documentation. (I haven't researched which is correct.) Couldn't find it reported anywhere... "When Emacs first visits an Org file, the global state is set to showeverything, i.e., all file content is visible." -- org mode manual 2.2.2 Initial v

Re: ob-shell: possibly missing initiate-session functions?

2024-06-16 Thread Matt
In your case, I suspect it's a coincidence that aliasing "org-babel-sh-initiate-session" works. A "shell" block defaults to "explicit-shell-file-name". This, I suspect, is "bash" in your case, yet may be something different on another system. The al

Re: ob-shell: async support in "shell" vs "bash"

2024-06-16 Thread Matt
-args:shell" is explicitly set to '((async . ((yes no, it seems, to quiet the linter (https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=40d1352b). For other languages, such as "org-babel-header-args:bash", it's set to nil. AFAICT, what you see are simply the default values. I'm curious, what caused you to notice this inconsistency? -- Matt Trzcinski Emacs Org contributor (ob-shell) Learn more about Org mode at https://orgmode.org Support Org development at https://liberapay.com/org-mode

Re: [DISCUSSION] The meaning of :cmdline header argument across babel backends

2024-05-20 Thread Matt
and :program-args within ob-shell. I anticipate :interpreter-args will be more involved since it will interact with 'shell-command-switch' and it'd be nice to have it also work with sessions. -- Matt Trzcinski Emacs Org contributor (ob-shell) Learn more about Org mode at https://orgmod

Re: [DISCUSSION] The meaning of :cmdline header argument across babel backends

2024-05-02 Thread Matt
On Wed, 01 May 2024 20:01:03 +0200 Ihor Radchenko wrote --- > Matt m...@excalamus.com> writes: > > > I disagree with one aspect: we shouldn't use Worg as a source of > > truth. The argument holds based on historical behavior of :cmdline. > > AFA

Re: [DISCUSSION] The meaning of :cmdline header argument across babel backends

2024-05-01 Thread Matt
27;t good yet may inspire better ones by inspiring disgust--:switches, :flags, :options, (using an "i" prefix for "interpreter") :iswitches, :iflags, :ioptions -- Matt Trzcinski Emacs Org contributor (ob-shell) Learn more about Org mode at https://orgmode.org Support Org development at https://liberapay.com/org-mode

[BUG] ob-shell: internal representation of cmdline arguments the same

2024-04-28 Thread Matt
r hand, passes through. The result is that :cmdline "1 2 3" and :cmdline 1 2 3 become indistinguishable. #+end_quote Org mode version 9.7-pre (release_9.6.27-1393-ge0f24a @ /home/ahab/Projects/org-mode/lisp/), commit e0f24a3f6 -- Matt Trzcinski Emacs Org contributor (ob-shell) Learn more about Org mode at https://orgmode.org Support Org development at https://liberapay.com/org-mode

[BUG] ob-shell: results missing leading quotes

2024-04-28 Thread Matt
: ""1"" Org mode version 9.7-pre (release_9.6.27-1393-ge0f24a @ /home/ahab/Projects/org-mode/lisp/), commit e0f24a3f6 -- Matt Trzcinski Emacs Org contributor (ob-shell) Learn more about Org mode at https://orgmode.org Support Org development at https://liberapay.com/org-mode

Re: [PATCH] Re: [BUG] ob-shell: :shebang changes interpretation of :cmdline

2024-04-27 Thread Matt
the way to do that? I recall there being some issues with Woof!. Is there something not in https://tracker.orgmode.org/howto that I should know? -- Matt Trzcinski Emacs Org contributor (ob-shell) Learn more about Org mode at https://orgmode.org Support Org development at https://liberapay.com/org-mode

Re: keeping subtree heading on export

2024-04-26 Thread Matt Price
thanks for the response, Ihor -- reply inline below: On Fri, Apr 26, 2024 at 9:45 AM Ihor Radchenko wrote: > Matt Price writes: > > > ... I need to export each individual page > > of the "book" to its own markdown page. However, jupyter-book expects to > >

keeping subtree heading on export

2024-04-24 Thread Matt Price
ning headings to their original state within the larger org document. Does anyone know of an existing exporter that already does this, from which I can steal? Or if not, how would you suggest I go about doing this? Thanks, Matt

[PATCH] Re: [BUG] ob-shell: :shebang changes interpretation of :cmdline

2024-04-21 Thread Matt
ue | cmdline call | |--++| | :cmdline 1 2 3 | "1 2 3"| bash -c "./sh-script-8GJzdG 1 2 3" | | :cmdline "1 2"

Re: #7 [[bbb:OrgMeetup]] on Wed, Apr 24, 19:00 UTC+3

2024-04-12 Thread Matt
On Wed, 10 Apr 2024 10:33:15 +0200 Ihor Radchenko wrote --- > Another OrgMeetup will be scheduled on the last Wednesday of February, > in two weeks. (Sorry, I cannot make it second Wednesday this time, and > even third.) Thanks for running this. I look forward to it :)

Re: [BUG] Prompt appears in async shell results

2024-03-29 Thread Matt
arents. -- Matt Trzcinski Emacs Org contributor (ob-shell) Learn more about Org mode at https://orgmode.org Support Org development at https://liberapay.com/org-mode

Re: [BUG] Prompt appears in async shell results

2024-03-24 Thread Matt
a chance to see the request. Cool. -- Matt Trzcinski Emacs Org contributor (ob-shell) Learn more about Org mode at https://orgmode.org Support Org development at https://liberapay.com/org-mode

Re: [BUG] Prompt appears in async shell results

2024-03-23 Thread Matt
e ready to go, barring the concern I have about being unable to test how the fix may affect non-shell languages. > On Mon, 19 Feb 2024 12:07:55 +0100 Ihor Radchenko wrote --- > > Matt m...@excalamus.com> writes: > > > > > - Split prompt filtering and input ech

Re: check.sh setup.sh, nohup.out

2024-03-23 Thread Matt
On Tue, 19 Mar 2024 21:41:05 +0100 Ihor Radchenko wrote --- > Matt m...@excalamus.com> writes: > > > Should I do as before and use 'git revert'? Or, do we want to remove them > > completely from the history? > > Yes, git revert. Rever

Re: check.sh setup.sh, nohup.out

2024-03-19 Thread Matt
hould I do as before and use 'git revert'? Or, do we want to remove them completely from the history? I would be happy to correct my mistake. However, I'm heading to bed now and unsure if I'll be able to work on this tomorrow or Thursday. -- Matt Trzcinski Emacs Org contri

bug? org-babel-comint-with-output return value type

2024-03-17 Thread Matt
trenching the design and making it harder to correct. What are people's thoughts on changing the return type of =org-babel-comint-with-output=? -- Matt Trzcinski Emacs Org contributor (ob-shell) Learn more about Org mode at https://orgmode.org Support Org development at https://liberapay.com/org-mode

Re: [BUG] Prompt appears in async shell results

2024-03-17 Thread Matt
On Mon, 19 Feb 2024 12:07:55 +0100 Ihor Radchenko wrote --- > Matt m...@excalamus.com> writes: > > > - Split prompt filtering and input echoing into two filters > > + this seems to imply a =-hook= or =-functions= type implementation > > Not necessar

Re: How to properly attribute authorship with Git (was Re: [PATCH] lisp/ob-shell.el: Also override explicit-shell-file-name)

2024-03-17 Thread Matt
On Sun, 17 Mar 2024 17:26:48 +0100 Max Nikulin wrote --- > On 17/03/2024 20:42, Matt wrote: > > On Sun, 17 Mar 2024 11:31:00 +0100 Ihor Radchenko wrote --- > > > > > > (1) revert the commit; (2) re-apply the > > > commit version

Re: How to properly attribute authorship with Git (was Re: [PATCH] lisp/ob-shell.el: Also override explicit-shell-file-name)

2024-03-17 Thread Matt
On Sun, 17 Mar 2024 11:31:00 +0100 Ihor Radchenko wrote --- > Matt m...@excalamus.com> writes: > > > First, would you like me to update the commit? If so, I will need > > guidance. The correct procedure to change the author after committing to > >

How to properly attribute authorship with Git (was Re: [PATCH] lisp/ob-shell.el: Also override explicit-shell-file-name)

2024-03-17 Thread Matt
uot;error: corrupt patch at line 10". It's not clear to me if this is an error on my end or if the patch is indeed ill-formatted. Can you confirm that the submitted patch is well-formatted? -- Matt Trzcinski Emacs Org contributor (ob-shell) Learn more about Org mode at https://orgmode.org Support Org development at https://liberapay.com/org-mode

Re: [PATCH] lisp/ob-shell.el: Also override explicit-shell-file-name

2024-03-15 Thread Matt
Finally had time to commit it. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=0e2a9524dc6da8b4d60672e85aba74076baac211 Nice catch and thanks for your contribution! -- Matt Trzcinski Emacs Org contributor (ob-shell) Learn more about Org mode at https://orgmode.org Support Org

Re: [BUG] ":sep" header argument doesn't work in ob-shell [9.6.21 ( @ /home/aragaer/.config/emacs/elpa/org-9.6.21/)]

2024-03-12 Thread Matt
claiming "better handling of table in shell scripts" So, it looks like their inclusion was intentional. Maybe someone has deeper insights? -- Matt Trzcinski Emacs Org contributor (ob-shell) Learn more about Org mode at https://orgmode.org Support Org development at https://liberapay.com/org-mode

Re: [PATCH] lisp/ob-shell.el: Also override explicit-shell-file-name

2024-03-11 Thread Matt
xplicit-shell-file-name name) > +(shell-file-name name)) > (org-babel-execute:shell body params >(put fname 'definition-name 'org-babel-shell-initialize)) > (defalias (intern (concat "org-babel-variable-assignments:" name))

Re: [BUG] ob-shell async incorrect table and value results

2024-03-08 Thread Matt
l working on "[BUG] Prompt appears in async shell results" (https://list.orgmode.org/18dbc1f273c.11687295c1395973.3345700621594100...@excalamus.com/T/#u) and will circle back to this when that's done. -- Matt Trzcinski Emacs Org contributor (ob-shell) Learn more about Org mode at https://orgmode.org Support Org development at https://liberapay.com/org-mode

[BUG] ob-shell async incorrect table and value results

2024-03-06 Thread Matt
egin_src sh :session *test* :results value echo "hello world" #+end_src #+RESULTS: : 0 #+name: async value #+begin_src sh :session *test* :results value :async t echo "hello world" #+end_src #+RESULTS: : hello world : 0 -- Matt Trzcinski Emacs Org contributor (ob-s

Re: [PATCH] doc/org-manual.org (Checkboxes): move section 'Checkboxes' from 'TODO Items' to 'Plain Lists'

2024-02-28 Thread Matt
On Wed, 28 Feb 2024 13:17:54 +0100 Ihor Radchenko wrote --- > Matt m...@excalamus.com> writes: > > > I had responded in favor here: > > https://list.orgmode.org/18d4cf138a6.10fb9c6702382826.5023996590743168...@excalamus.com/ > > Did I miss something.

Re: [PATCH] doc/org-manual.org (Checkboxes): move section 'Checkboxes' from 'TODO Items' to 'Plain Lists'

2024-02-27 Thread Matt
https://www.gnu.org/prep/standards/standards.html#Documentation [fn:2] https://www.fsf.org/licensing/gnu-press/GNU-Press-styleguide.pdf -- Matt Trzcinski Emacs Org contributor (ob-shell) Learn more about Org mode at https://orgmode.org Support Org development at https://liberapay.com/org-mode

Re: Asynchronous blocks for everything (was Re: [BUG] Unexpected result when evaluating python src block asynchronously [9.7-pre (release_9.6.17-1131-gc9ed03.dirty @ /home/yantar92/.emacs.d/straight/b

2024-02-24 Thread Matt
You're welcome and thanks for sharing your ideas. Any lack of comments from me recently is just limited time and trying to focus on maintenance. -- Matt Trzcinski Emacs Org contributor (ob-shell) Learn more about Org mode at https://orgmode.org Support Org development at https://liberapay.com/org-mode

Re: Asynchronous blocks for everything (was Re: [BUG] Unexpected result when evaluating python src block asynchronously [9.7-pre (release_9.6.17-1131-gc9ed03.dirty @ /home/yantar92/.emacs.d/straight/b

2024-02-19 Thread Matt
ated after the second)? > - on failure, Org babel sometimes uses ~org-babel-eval-error-notify~. How > will it interact with asynchronous evaluation? What if we have multiple > simultaneously arriving error notifications? > Example: try running > #+begin_src bash > idontexist > #+e

Re: Asynchronous blocks for everything (was Re: [BUG] Unexpected result when evaluating python src block asynchronously [9.7-pre (release_9.6.17-1131-gc9ed03.dirty @ /home/yantar92/.emacs.d/straight/b

2024-02-18 Thread Matt
ill need to call (setq my-org-babel-comint--async-uuid nil). The challenge I've found with Babel is figuring out how to make the changes. My current approach is to address bugs and to make changes that move us toward something like the ob-blub implementation. I wonder if it might help to d

Re: [BUG] Prompt appears in async shell results

2024-02-18 Thread Matt
g? In addition to prompt filtering and input echo filtering, ob-shell filters the =org-babel-sh-eoe-indicator=. I'm sure there's other filtering that happens on block output. Wouldn't it be nice if that were in a single place, like right before results are inserted? Please feel

Asynchronous blocks for everything (was Re: [BUG] Unexpected result when evaluating python src block asynchronously [9.7-pre (release_9.6.17-1131-gc9ed03.dirty @ /home/yantar92/.emacs.d/straight/build

2024-02-15 Thread Matt
accessibility, though, and make sure the overlay is apparent, visually and otherwise. > If that technique looks safe enough and interesting, I can prepare a set of > patches so that we can discuss it further and, maybe, add it in Org. Please do! I'm super interested. I've p

[BUG] Prompt appears in async shell results

2024-02-04 Thread Matt
ch doesn't filter results (https://git.savannah.gnu.org/cgit/emacs/org-mode.git/tree/lisp/ob-comint.el#n212). It seems to me that we should extract the filter from =org-babel-comint-with-output= and use it in both =org-babel-comint-with-output= and =org-babel-comint-async-filter=. Thoughts? -- Matt Trzcinski Emacs Org contributor (ob-shell) Learn more about Org mode at https://orgmode.org Support Org development at https://liberapay.com/org-mode

Re: Suggested manual changes - section 7.2 Special Properties

2024-01-29 Thread Matt
I should also say that I appreciate the effort and thoughtfulness you've put into this. Definite bonus points :) If I'm able to find the time to read up on this part of Org, I'd be happy to work with you further on this. -- Matt Trzcinski Emacs Org contributor (ob-shell) Learn m

Re: Suggested manual changes - section 7.2 Special Properties

2024-01-28 Thread Matt
Thank you for your suggestions. Unfortunately, I'm not yet familiar with this part of Org. Can you give a link to the Reddit thread where this was discussed? -- Matt Trzcinski Emacs Org contributor (ob-shell) Learn more about Org mode at https://orgmode.org Support Org development at 

Re: [PATCH] doc/org-manual.org: Checkboxes, add checkbox states examples

2024-01-27 Thread Matt
anything. On 2008-01-27, they were discussing results of a recent survey. I was able to find a copy from the week after the change. I didn't see anything that would have motivated the change. Here's the archived survey. It's interesting. https://web.archive.org/web/20080202

Re: Appending results from babel block

2024-01-27 Thread Matt
ng the manual, I didn't see mention of it, although I may have missed it. The behavior I see doesn't match my expectation. I would expect to see: #+RESULTS: :results: Sat Jan 27 09:11:21 PM CET 2024 Sat Jan 27 09:11:21 PM CET 2024 Sat Jan 27 09:11:21 PM CET 2024 :end: -- Matt Trzcinski Emacs Org contributor (ob-shell) Learn more about Org mode at https://orgmode.org Support Org development at https://liberapay.com/org-mode

Re: [BUG] conda doesn't work in ob-shell sessions

2024-01-27 Thread Matt
s as well. -- Matt Trzcinski Emacs Org contributor (ob-shell) Learn more about Org mode at https://orgmode.org Support Org development at https://liberapay.com/org-mode

Re: Patch to allow adjusting latex fragment display scale factor

2024-01-21 Thread Matt Huszagh
Timothy writes: > Hi Matt and Ihor, > I must admit that with the new system, I don’t see much value in accepting a > function: we now scale the previews based on a combination of the :scale > parameter and their actual LaTeX display size. Yep, we can close/cancel this patch. I ha

Re: [PATCH] ob-shell: consistent prefix

2024-01-20 Thread Matt
nt subject thread. -- Matt Trzcinski Emacs Org contributor (ob-shell) Learn more about Org mode at https://orgmode.org Support Org development at https://liberapay.com/org-mode

Backwards compatibility (was: Re: [PATCH] ob-shell: consistent prefix)

2024-01-20 Thread Matt
would make sense to refactor the =stdin= and =cmdline= parameters. -- Matt Trzcinski Emacs Org contributor (ob-shell) Learn more about Org mode at https://orgmode.org Support Org development at https://liberapay.com/org-mode

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

2024-01-19 Thread Matt Huszagh
Matt Huszagh writes: > Another minor issue I've encountered. Using different delimiters results > in images of slightly different sizes. > > For example, in a file containing: > > ``` > Using first delimiters: \(F=ma\). > > Using other delimiters: $F=ma$. > `

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

2024-01-19 Thread Matt Huszagh
than the one using \(\). Matt

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

2024-01-19 Thread Matt Huszagh
s, but I wouldn't be surprised if this breaks other things too. I hesitate to suggest alternatives because I don't know enough about your use case. But, maybe you could achieve what you want through a new org-latex-compile-async function, or add a nondefault option to org-latex-compile? Matt

Re: Patch to allow adjusting latex fragment display scale factor

2024-01-18 Thread Matt Huszagh
Hi, Bringing this back up. Ihor, I've added you to the thread directly (hope that's ok). Any thoughts? I have not yet updated it for the most recent changes to main, but I can do that. Matt On Sun, Oct 10, 2021 at 9:40 PM Matt Huszagh wrote: > > Matt Huszagh writes: >

Re: [Patch] Align baseline of latex fragments and surrounding text

2024-01-18 Thread Matt Huszagh
Ihor Radchenko writes: > Matt Huszagh writes: > >> These are nice ideas, and ones I hadn't considered. Thanks for the >> suggestions! I'll think about it a bit and may modify the patch >> accordingly. > > May I ask if you further considered changing the p

[PATCH] ob-shell: consistent prefix

2024-01-15 Thread Matt
hat the naming convention is at the "org-" level and not at the library level (for example, "ob-shell-"). A large part of my confusion, I think, was simply inconsistencies within ob-shell. It's late for me, so rather than commit in a rush, I'm posting this f

Re: ob-shell: proposal to remove "posh"

2024-01-15 Thread Matt
gt; > I'd rather keep the value in `org-babel-shell-names' though. It should > do no harm. Done https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/ -- Matt Trzcinski Emacs Org contributor (ob-shell) Learn more about Org mode at https://orgmode.org Support Org development at https://liberapay.com/org-mode

Re: ob-shell: proposal to remove "posh"

2024-01-13 Thread Matt
On Thu, 11 Jan 2024 21:30:59 +0100 Matt wrote --- > The change on August 26, 2022 should have caused a breaking error for > someone using the "Policy-compliant Ordinary SHell." The prompt for "posh" > in "org-babel-shell-set-prompt-commands&q

Re: ob-shell: proposal to remove "posh"

2024-01-12 Thread Matt
cmd.exe, although I wouldn't expect it to be 100% compatible with the > real thing. That's an interesting idea. Might be a "good enough" work around. The VM image I mentioned says, "The VM will require a minimum of 8GB of RAM and at least 70GB of disk space"

ob-shell: proposal to remove "posh"

2024-01-11 Thread Matt
. It always reduces to "it would be nice, however we lack a developer or the equipment, so sadly no." As current ob-shell maintainer, here's how I see it: I like the idea of supporting PowerShell. I like the idea of supporting cmd.exe much, much more. Both are associated with a n

Re: [PATCH v2] doc/org-manual.org (Summary): Clarify the Org markup is human-readable

2024-01-06 Thread Matt
On Sat, 06 Jan 2024 13:53:28 +0100 Ihor Radchenko wrote --- > Matt m...@excalamus.com> writes: > > > > As a non-native speaker, I have some difficulties understanding > > > "legible" meaning in this context. > > > > How does

Re: [PATCH v2] doc/org-manual.org (Summary): Clarify the Org markup is human-readable

2024-01-06 Thread Matt
On Fri, 05 Jan 2024 14:04:17 +0100 Ihor Radchenko wrote --- > Thanks for the comments! > I am attaching the next iteration of the patch. Looks good > Matt m...@excalamus.com> writes: > > > +Org Mode is an authoring tool and a to-do lists manager for GNU E

Re: Comments on Summary section of Org manual (was: [PATCH] doc/org-manual.org (Summary): Clarify the Org markup is human-readable)

2024-01-03 Thread Matt
> I am mostly neutral here, but I can see an argument why mentioning .org > extension may be useful - unlike Windows, GitHub does expect .org file > extension specifically to render Org mode files. The same goes for > non-Emacs editors that support Org markup. For example, Vim/Neovim. That's a good point. Knowing about the .org extension is useful. I don't think it hurts anything other than taking up valuable space. If we need to bump something from the first paragraph, this gets my vote. -- Matt Trzcinski Emacs Org contributor (ob-shell) Learn more about Org mode at https://orgmode.org Support Org development at https://liberapay.com/org-mode

Re: [PATCH] doc/org-manual.org (Summary): Clarify the Org markup is human-readable

2024-01-02 Thread Matt
and a to-do lists manager for GNU Emacs. +It uses a legible plain-text notation to show formatting, structure, +relationships. Anyone able to edit text can write using Org. Anyone +able to read text can view it. As an authoring tool, Org helps you write structured documents and provides exporting facilities. Org files can also be used for literate -- Matt Trzcinski Emacs Org contributor (ob-shell) Learn more about Org mode at https://orgmode.org Support Org development at https://liberapay.com/org-mode

Re: [PATCH v4] org-manual: Describe export process flow

2023-12-28 Thread Matt
On Thu, 28 Dec 2023 13:05:27 +0100 Ihor Radchenko wrote --- > See the attached. All looks good to me. -- Matt Trzcinski Emacs Org contributor (ob-shell) Learn more about Org mode at https://orgmode.org Support Org development at https://liberapay.com/org-mode

Re: [PATCH v3] org-manual: Describe export process flow

2023-12-27 Thread Matt
On Wed, 27 Dec 2023 18:05:05 +0100 Ihor Radchenko wrote --- > Matt m...@excalamus.com> writes: > > Checking ox.el, I see that the commentary says, > > > > ";; See https://orgmode.org/worg/dev/org-export-reference.html> for > > ;; more

Re: [PATCH v2] org-manual: Describe export process flow

2023-12-27 Thread Matt
e nodes with children to text, passing the nodes >themselves and their contents to the corresponding transcoders >and then to export filters (see [[*Filters]]). Add a "the": "...and then to *the* export filters (see [[*Filters]])." - Checking ox.el, I

Re: [PATCH] org-manual: Describe export process flow

2023-12-26 Thread Matt
On Tue, 26 Dec 2023 22:56:00 +0100 Matt wrote --- > I tend leave the period of the last sentence of a list. Typo. I meant to write "I tend TO leave the period OFF the last sentence of a list." That is, the item ends without a period. -- Matt Trzcinski Emacs Org co

Re: [PATCH] org-manual: Describe export process flow

2023-12-26 Thread Matt
y citation backend finalizer "Finalizer" is vague. What's its significance? Does it correspond to a function the end-user might look up? Overall, great work! For each "negative" bit of feedback, there were at least two things that deserve "positive" commen

Documentation Results of Evaluation (was Re: Documentation of hline symbol in source blocks results)

2023-12-26 Thread Matt
emporary." Each call is executed in an independent environment. State does not exist between calls. In the early-history of Babel, this was called the "functional" style. All of this relates to the ":results value" and ":results output" header arguments. This is not the first time this has been discussed: https://list.orgmode.org/orgmode/ca+a2izaziafmegpbql6qgrzrwevvlvc0duw++t4gcf3nguw...@mail.gmail.com/ Before discussing too much, maybe it would help to get a list of related terms that need clarification? - "imperative" - "functional" - "session" - "scripting" PROBLEM: non-specific requirement reference. What other languages are "like Python"? PROBLEM: redundant words PROBLEM: change of voice PROBLEM: singular form used to reference a plural (should we say "result" or "results") -- Matt Trzcinski Emacs Org contributor (ob-shell) Learn more about Org mode at https://orgmode.org Support Org development at https://liberapay.com/org-mode

Re: [PATCH] Highlight ANSI sequences in the whole buffer (was [PATCH] ANSI color on example blocks and fixed width elements)

2023-12-15 Thread Matt
On Thu, 14 Dec 2023 15:35:13 +0100 Ihor Radchenko wrote --- > Matthew, this thread might be of interest for you as the new feature is > largely aiming at the shell block output. > Feel free to jump in if you have comments on the design of the > ASCII fontification for complex shell

Re: [PATCH] [WORG] Maintenance: on the frequency of bugfix releases

2023-12-10 Thread Matt
On Sun, 10 Dec 2023 13:24:30 +0100 Ihor Radchenko wrote --- > Doing the releases too frequently will increase a chance of such bugs > crawling into ELPA releases. So, there should be at least a minimal > waiting period to get a chance to handle such problems. Thank you for explain

Re: [PATCH] [WORG] Maintenance: on the frequency of bugfix releases

2023-12-10 Thread Matt
On Sun, 10 Dec 2023 12:27:01 +0100 Ihor Radchenko wrote --- > What do you think about the attached patch? Not part of the patch, but part of the context: "you shoud *NOT*" -> "you should *NOT*" (missing the 'l') Already fixed and pushed (https://git.sr.ht/~bzg/worg/commit/a11b25608

Re: [BUG] ob-shell: :shebang changes interpretation of :cmdline

2023-12-04 Thread Matt
On Mon, 04 Dec 2023 14:55:58 +0100 Ihor Radchenko wrote --- > Matt m...@excalamus.com> writes: > > > > #+begin_src bash :cmdline 1 2 3 > > >printf "%s\n" "$1" > > > #+end_src > > > > > > #+RESU

Re: [BUG] ob-shell: :cmdline fails with single argument (was Re: [BUG] ob-shell: :shebang changes interpretation of :cmdline)

2023-11-18 Thread Matt
On Sun, 19 Nov 2023 07:57:26 +0100 Max Nikulin wrote --- > I would say that :cmdline is treated in a different way in comparison to > :var: It most definitely is. It's a completely separate process from :var.

[BUG] ob-shell: :cmdline fails with single argument (was Re: [BUG] ob-shell: :shebang changes interpretation of :cmdline)

2023-11-18 Thread Matt
On Sat, 18 Nov 2023 16:54:39 +0100 Max Nikulin wrote --- > I have faced an inconsistency with :cmdline treatment in ob-shell.el. These are sadly easy to find. If you run: #+begin_src bash :cmdline 1 echo "$1" #+end_src Then it fails with list: Wrong type argument: sequencep, 1

Re: [BUG] ob-shell: :shebang changes interpretation of :cmdline

2023-11-18 Thread Matt
On Sat, 18 Nov 2023 16:54:39 +0100 Max Nikulin wrote --- > I have faced an inconsistency with :cmdline treatment in ob-shell.el. I > expect same results in the following cases: > > #+begin_src bash :cmdline 1 2 3 >printf "%s\n" "$1" > #+end_src > > #+RESULTS: > : 1 > >

Re: bash source code block: problem after ssh commands

2023-11-18 Thread Matt
On Fri, 17 Nov 2023 23:07:57 +0100 Matt wrote --- > The second claim has nothing to do with Org Babel. I was able to confirm it > and provide the steps to reproduce. I think it would make sense to report > it upstream and let them decide if it's expected behavi

Re: Forget about "bash -c bash file.sh" (Re: bash source code block: problem after ssh commands)

2023-11-18 Thread Matt
On Sat, 18 Nov 2023 09:54:46 +0100 Bruno Barbier > But, you're right. To be safe, from now on, I'll use: > > cat /tmp/test.sh | bash -c bash It's still not clear to me if this is "what Emacs does". However, that's the best I could come up with. Evaluating the following

Re: bash source code block: problem after ssh commands

2023-11-18 Thread Matt
To clarify a previous typo I made. Everything I've written was also done using: 1. emacs -q 2. C-x b "*scratch*" 3. M-x org-mode 4. Execute #+begin_src emacs-lisp :results none (org-babel-do-load-languages 'org-babel-load-languages '((shell . t))) #+end_src This corresponds to Org mode v

Re: Forget about "bash -c bash file.sh" (Re: bash source code block: problem after ssh commands)

2023-11-18 Thread Matt
On Sat, 18 Nov 2023 09:29:56 +0100 Bruno Barbier > IIUC, what Max is saying is that you should not concentrate on > *that specific command* because that command doesn't do what you think > it does. Cool, it sounds like we're agreed (albeit for different reasons). > To reproduce,

Re: Forget about "bash -c bash file.sh" (Re: bash source code block: problem after ssh commands)

2023-11-18 Thread Matt
On Sat, 18 Nov 2023 04:11:03 +0100 Max Nikulin wrote --- > > bash -c bash /tmp/two-lines.sh > > From my point of view it was a plain mistake in attempts to simulate > the issue outside of Emacs. There is no point to concentrate on this > command. I tried to explain that it

Re: bash source code block: problem after ssh commands

2023-11-17 Thread Matt
On Fri, 17 Nov 2023 10:20:28 +0100 Ihor Radchenko wrote --- > This has nothing to do with Emacs comint and this is also not a bug in > Emacs Ihor, there were two claims made in the original report. I was referring to Claim 2. That deals with M-x shell and therefore comint-mode.

Re: bash source code block: problem after ssh commands

2023-11-16 Thread Matt
alaincochard alain.coch...@unistra.fr writes: > Yes. (So I think that explains the 'no' above.) Thank you for clarifying. > Anyway, this gives me the opportunity to come back to the question of > whether or not there is a problem with emacs itself (like some people > here thought), and if

Re: bash source code block: problem after ssh commands

2023-11-16 Thread Matt
On Thu, 16 Nov 2023 10:30:59 +0100 Ihor Radchenko wrote --- > Or we can make use of TRAMP as we usually do to access remote > environment. IMHO, it is more reliable as TRAMP takes care about > arranging all the Elisp FS interaction to work on remote system. Agreed. Also, I wasn't

Re: bash source code block: problem after ssh commands

2023-11-15 Thread Matt
On Wed, 15 Nov 2023 17:32:19 +0100 Matt wrote --- > (let ((buff "*localhost-process-buffer*")) > (switch-to-buffer >(make-comint-in-buffer > "localhost-process" > buff > "ssh" > nil > (format &qu

Re: bash source code block: problem after ssh commands

2023-11-15 Thread Matt
I was poking around, learning how sessions are started. Basically, `shell` creates the comint buffer using `make-comint-in-buffer`. What I find interesting is that `make-comint-in-buffer` can also create a comint buffer from a network stream: (let ((buff "*localhost-process-buffer*")) (sw

Re: Replace org link with footnote

2023-11-11 Thread Matt
On Sat, 11 Nov 2023 04:54:15 +0100 Max Nikulin wrote --- > https://list.orgmode.org/ugucve$12l4$1...@ciao.gmane.io Thanks for the reference. It's always good to relate associated information :)

Replace org link with footnote

2023-11-10 Thread Matt
Here's a quick hack to replace an Org link with a footnote. Maybe a fun first commit for someone would be to update `org-footnote-new` to accept optional LABEL and DEFINITION arguments that allow a footnote to be created programmatically? (defun my-replace-link-with-footnote () "Replace an o

Re: bash source code block: problem after ssh commands

2023-11-09 Thread Matt
On Thu, 09 Nov 2023 13:13:36 +0100 Ihor Radchenko wrote --- > A bigger problem is that errors *Org Babel Error > Output* are not clickable: Interesting. > So, it looks like we may need an alternative `org-babel-eval' function > that works with script files rather than input and a

Re: bash source code block: problem after ssh commands

2023-11-08 Thread Matt
On Tue, 07 Nov 2023 09:53:46 +0100 Ihor Radchenko wrote --- > Matt m...@excalamus.com> writes: > > > On Mon, 06 Nov 2023 14:32:16 +0100 Ihor Radchenko wrote --- > > > I am wondering about the possible downsides of using script approach > >

Re: bash source code block: problem after ssh commands

2023-11-06 Thread Matt
On Mon, 06 Nov 2023 14:32:16 +0100 Ihor Radchenko wrote --- > I am wondering about the possible downsides of using script approach > instead of stdin redirection. I'm curious to hear more about what you're thinking.

Re: bash source code block: problem after ssh commands

2023-11-06 Thread Matt
> > "ssh -n derp@host mycommand"). > > Yes, I use an SSH key, and yes, '-n' saves the day. Thanks. Hi Alain, I'm the supposed maintainer of ob-shell who's been missing in action for this whole discussion. I want to confirm, are you able to accomplish your task by using '-n'? Matt

Re: Maintenance status of individual Org libraries

2023-08-20 Thread Matt
On Mon, 30 Jan 2023 14:41:18 +0100 Ihor Radchenko wrote --- > The following libraries have no maintainer or author active on the list: > ob-comint, ob-core, ... I'm interested (and technically still maintainer of ob-shell). ob-comint and ob-core are both used by ob-shell, so I've lo

Re: org babel output

2023-07-03 Thread Matt
On Sat, 01 Jul 2023 05:52:42 +0200 Robert Synofzik wrote --- > Hello, > the exact same error occurs for me: > https://emacs.stackexchange.com/questions/72243/macos-org-babel-python-with-session-output-give-python-el-eval > > do you possibly have any idea on how to fix this? Just

Re: Export Documentation Confusions

2023-06-29 Thread Matt
Changes have been pushed

Re: Export Documentation Confusions

2023-06-29 Thread Matt
On Thu, 29 Jun 2023 12:24:12 +0200 Ihor Radchenko wrote --- > > - Section 13.18: Export in Foreign Buffers > > > > The section uses the term "foreign buffer" without providing a definition. > > > > Proposed solution: Change wording from "foreign buffers" to "Convert > > Region"

Export Documentation Confusions

2023-06-28 Thread Matt
In the Emacs Berlin meeting today, we noticed several items that might be improved in the manual. - Section 13.18. 1: Bare HTML may be better placed under Section 13.9 HTML Export. The information in this section appears unrelated to Exporting in non-Org buffers. In fact, the settings given

  1   2   3   4   5   6   7   8   9   10   >