emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ob-shell intentions and paperwork (was Bash results broken?)


From: Matt
Subject: Re: ob-shell intentions and paperwork (was Bash results broken?)
Date: Sun, 01 Jan 2023 18:55:14 -0500
User-agent: Zoho Mail

 ---- On Sat, 31 Dec 2022 09:31:16 -0500  Ihor Radchenko  wrote --- 
 > Matt matt@excalamus.com> writes:
 > 
 > > I've backed out the `require' change and adjusted everything else based on 
 > > your feedback.  There is a separate patch for each refactor that created a 
 > > new test.   The remaining refactors are in a single patch.  I was also 
 > > able to resolve the issue I had with inserting the test name for the 
 > > session (the "yes" string in `test-ob-shell/session').
 > 
 > Thanks!
 > 
 > I can see that you still prefer to use `string-join' for Org body.
 > Why not a bare string?

Because I often program in Python where double quoted strings typically don't 
span lines.  One of the original tests had the string "#+BEGIN_SRC sh :results 
list\necho 1\necho 2\necho 3\n#+END_SRC" in it (that is, used newline 
characters instead of inserting new lines), so my brain assumed strings Emacs 
Lisp behaved similarly to Python.  Silly brain :)  Thanks for continuing to 
follow up on that.

I've updated the patches to use bare strings.

If this set of patches look good, I can push them to main.

Attachment: 0001-test-ob-shell.el-Split-test-ob-shell-dont-error-on-e.patch
Description: Binary data

Attachment: 0002-test-ob-shell.el-Refactor-test-ob-shell-session.patch
Description: Binary data

Attachment: 0003-test-ob-shell.el-Refactor-ob-shell-generic-uses-no-a.patch
Description: Binary data

Attachment: 0004-Refactor-ob-shell-bash-uses-assoc-arrays.patch
Description: Binary data

Attachment: 0005-test-ob-shell.el-Refactor-test-names-and-kill-test-b.patch
Description: Binary data

Attachment: 0006-ob-shell-test.org-Remove-ob-shell-test.org.patch
Description: Binary data

Attachment: 0007-test-ob-shell.el-Organize-tests.patch
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]