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

2024-05-20 Thread Matt
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://orgmode.org Support Org

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. > > AFAIU, W

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

2024-05-01 Thread Matt
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
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
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 &g

keeping subtree heading on export

2024-04-24 Thread Matt Price
o 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
+| | :cmdline 1 2 3 | "1 2 3"| bash -c "./sh-script-8GJzdG 1 2 3" | | :cmdline "1 2" 3"| "\"1 2\" 3"| bash -c "./sh-script-8GJzdG \&

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
ave 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
are 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 filteri

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. Reverted https:

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

2024-03-19 Thread Matt
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 contributor (ob-shell) Learn more ab

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

2024-03-17 Thread Matt
ect. 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 nece

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
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
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
ame) > +(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)) > -- > 2.42.0 Thank you

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

2024-03-08 Thread Matt
uot;[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
w.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
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 > #+end_src Are these open questions for the `org

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
nt--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 discuss the core ideas and use a minimal re

Re: [BUG] Prompt appears in async shell results

2024-02-18 Thread Matt
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 free to provide feedback and s

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
f 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 put a lot of thought into how we might make Babel async by default. I'm excited to see your interest

[BUG] Prompt appears in async shell results

2024-02-04 Thread Matt
cs/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
hould 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 more about Org mode a

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 https

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

2024-01-27 Thread Matt
1-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/20080202231951/https://orgmode.org/survey.h

Re: Appending results from babel block

2024-01-27 Thread Matt
ave 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
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$. > ``` &g

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

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

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

2024-01-19 Thread Matt Huszagh
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: > > &g

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 patch? Hey

[PATCH] ob-shell: consistent prefix

2024-01-15 Thread Matt
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 for review/comment. The t

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

2024-01-15 Thread Matt
t; > 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
xe, 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". XD -- Matt

ob-shell: proposal to remove "posh"

2024-01-11 Thread Matt
he idea of supporting cmd.exe much, much more. Both are associated with a non-free system. Providing support (even partially) for non-free systems is good because it provides an opportunity to teach people about software freedom. AFAIKT, both PowerShell and cmd are MIT licensed: - https://github

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

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
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
rmatting, 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
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 see that the commentary

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
zer" 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" comments. I saw no spelling errors, you wrote out abbreviations (AST)

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

2023-12-26 Thread Matt
uot;: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

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

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

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,

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 behavior.

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

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

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*"))

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

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

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

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

Re: Reintroduction and Questions

2023-06-25 Thread Matt
On Sun, 25 Jun 2023 18:07:34 +0200 Ihor Radchenko wrote --- > Be warned though that Woof! is not yet stable (see > https://git.sr.ht/~bzg/woof and https://lists.sr.ht/~bzg/woof). Thanks for the warning. To verify my understanding, the mailing list is the "source of truth" for

Reintroduction and Questions

2023-06-25 Thread Matt
Hello again! I'm slowly settling in after moving to Germany and hoping to get back into maintenance. As the FSF disclaimer is still being worked out with my employer, I'm hesitant to begin non-trivial code contributions. Until then, I'm hoping to do things that don't require attribution,

Re: Interest in an Org video meetup?

2023-05-06 Thread Matt
Thoughts on dates and times?

Re: ob-shell sessions will send final echo '...' as input key sequence when previous command reads input interactively (was: [Need Help] Error to evaluate "mpv" command in inline src block)

2023-05-02 Thread Matt
(1) ";" may not work in some shells; (2) may > contain multiple lines, leading to the same issue. > > Matt, maybe you have some ideas about this edge case? I have no other ideas within the current ob-shell implementation. As for modifications, I have the following thoughts

Re: Interest in an Org video meetup?

2023-04-27 Thread Matt
On Wed, 26 Apr 2023 17:13:47 -0400 Corwin Brust wrote --- > On Wed, Apr 26, 2023 at 9:31 AM Matt m...@excalamus.com> wrote: > > > > FSF associate members have access to a FSF hosted Jitsi instance. I'm an > > FSF associate member and could host it using

Re: Interest in an Org video meetup?

2023-04-26 Thread Matt
> > On Oct 6, 2022, at 9:20 AM, Russell Adams rlad...@adamsinfoserv.com> wrote: > > Would there be any interest in a monthly 1-2 hour long ad-hoc screen > > sharing and video discussion for Org-mode? > > > > I'm offering to schedule and moderate the first few events. I'd > > propose a

Re: [PATCH] Async evaluation in ob-shell

2023-04-17 Thread Matt
On Mon, 17 Apr 2023 14:53:18 -0400 Ihor Radchenko wrote --- > Matt m...@excalamus.com> writes: > > > > A small note on the WORG page: it may be more natural to use :async yes > > > rather than :async t. Both are viable - in fact, anything other than

Re: [PATCH] Async evaluation in ob-shell

2023-04-17 Thread Matt
On Fri, 24 Mar 2023 05:11:38 -0400 Ihor Radchenko wrote --- > Matt m...@excalamus.com> writes: > > > On Thu, 23 Mar 2023 07:48:44 -0400 Ihor Radchenko wrote --- > > > May you also document this new feature in ORG-NEWS and in > > > htt

Re: [BUG] No font lock in src blocks for shells in org-babel-shell-names (was Re: Font lock for org-babel shell scripts?)

2023-04-17 Thread Matt
On Fri, 07 Apr 2023 11:29:59 -0400 Matt wrote --- > > On Tue, 04 Apr 2023 08:30:34 -0400 Ihor Radchenko wrote --- > > > See the attached tentative patch. > > After applying the patch, I get the following error when trying to load > Ema

Re: [BUG] No font lock in src blocks for shells in org-babel-shell-names (was Re: Font lock for org-babel shell scripts?)

2023-04-07 Thread Matt
On Tue, 04 Apr 2023 08:30:34 -0400 Ihor Radchenko wrote --- > See the attached tentative patch. After applying the patch, I get the following error when trying to load Emacs: Warning (comp): /home/ahab/Projects/org-mode/lisp/org.el: Error: Symbol's value as variable is void

Re: [BUG] No font lock in src blocks for shells in org-babel-shell-names (was Re: Font lock for org-babel shell scripts?)

2023-04-01 Thread Matt
On Thu, 30 Mar 2023 04:55:32 -0400 Ihor Radchenko wrote --- > Matt m...@excalamus.com> writes: > > > I think this approach will work fine. I tried examples for each shell > > type and keywords like if/then/else and function names are highlighted. > >

  1   2   3   4   5   6   7   8   9   10   >