* Org-mode shell SRC block under Windows
@ 2022-02-03 20:37 H. Dieter Wilhelm
2022-02-03 21:30 ` H. Dieter Wilhelm
2022-02-04 7:16 ` Eli Zaretskii
0 siblings, 2 replies; 14+ messages in thread
From: H. Dieter Wilhelm @ 2022-02-03 20:37 UTC (permalink / raw)
To: help-gnu-emacs
Hello
I'd like to use an MSYS or MingW shell rather than the default shell
(com) for
#+begin_src sh
echo $SHELL
#+end_src
org-babel-shell-names
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Org-mode shell SRC block under Windows
2022-02-03 20:37 Org-mode shell SRC block under Windows H. Dieter Wilhelm
@ 2022-02-03 21:30 ` H. Dieter Wilhelm
2022-02-03 22:13 ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-02-04 7:16 ` Eli Zaretskii
1 sibling, 1 reply; 14+ messages in thread
From: H. Dieter Wilhelm @ 2022-02-03 21:30 UTC (permalink / raw)
To: help-gnu-emacs
"H. Dieter Wilhelm" <dieter@duenenhof-wilhelm.de> writes:
> Hello
>
> I'd like to use an MSYS or MingW shell rather than the default shell
> (com) for
>
> #+begin_src sh
> echo $SHELL
> #+end_src
I'm very sorry, accidentally I tried to run above block in message mode
instead of org-mode and send this unfinished question!
I now have
(setq message-confirm-send t)
in my init file.
--
Dieter
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Org-mode shell SRC block under Windows
2022-02-03 21:30 ` H. Dieter Wilhelm
@ 2022-02-03 22:13 ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-02-04 12:52 ` H. Dieter Wilhelm
0 siblings, 1 reply; 14+ messages in thread
From: Emanuel Berg via Users list for the GNU Emacs text editor @ 2022-02-03 22:13 UTC (permalink / raw)
To: help-gnu-emacs
H. Dieter Wilhelm wrote:
> I now have
>
> (setq message-confirm-send t)
>
> in my init file.
Beware often such things won't work because the brain and
fingers make one thing out of the two, so before one knows it
one will hit it like it is a key binding combination to any
other, one command ...
--
underground experts united
https://dataswamp.org/~incal
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Org-mode shell SRC block under Windows
2022-02-03 20:37 Org-mode shell SRC block under Windows H. Dieter Wilhelm
2022-02-03 21:30 ` H. Dieter Wilhelm
@ 2022-02-04 7:16 ` Eli Zaretskii
2022-02-04 8:44 ` Qlisp for Quantum Computers (was: Re: Org-mode shell SRC block under Windows) Emanuel Berg via Users list for the GNU Emacs text editor
2022-02-04 13:15 ` Org-mode shell SRC block under Windows H. Dieter Wilhelm
1 sibling, 2 replies; 14+ messages in thread
From: Eli Zaretskii @ 2022-02-04 7:16 UTC (permalink / raw)
To: help-gnu-emacs
> From: "H. Dieter Wilhelm" <dieter@duenenhof-wilhelm.de>
> Date: Thu, 03 Feb 2022 21:37:25 +0100
>
> Hello
>
> I'd like to use an MSYS or MingW shell rather than the default shell
> (com) for
>
> #+begin_src sh
> echo $SHELL
> #+end_src
See explicit-shell-file-name (assuming that Org heeds that variable).
But beware: futzing with that variable might get you in trouble
elsewhere!
In general, I'd say people who publish such blocks that assume a Posix
shell are to blame, not your Emacs setup. I find such blocks
frequently posted without a lot of thought, just because it "WFM".
^ permalink raw reply [flat|nested] 14+ messages in thread
* Qlisp for Quantum Computers (was: Re: Org-mode shell SRC block under Windows)
2022-02-04 7:16 ` Eli Zaretskii
@ 2022-02-04 8:44 ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-02-04 9:14 ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-02-04 9:47 ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-02-04 13:15 ` Org-mode shell SRC block under Windows H. Dieter Wilhelm
1 sibling, 2 replies; 14+ messages in thread
From: Emanuel Berg via Users list for the GNU Emacs text editor @ 2022-02-04 8:44 UTC (permalink / raw)
To: help-gnu-emacs
Eli Zaretskii wrote:
>> #+begin_src sh
>> echo $SHELL
>> #+end_src
>
> [...] In general, I'd say people who publish such blocks
> that assume a Posix shell are to blame, not your Emacs
> setup. I find such blocks frequently posted without a lot of
> thought, just because it "WFM".
WFM = Workforce management?
<https://en.wikipedia.org/wiki/Workforce_management>
So that's why those blocks are so silly ...
Hey, don't they say enterprise software is the most
challenging software one can write?
<https://www.techinasia.com/talk/enterprise-software-hardest-software>
Don't you use VB 5.0 for that? Or Cobol ... from 1959.
Maybe CL and Elisp should add support for Quantum Computers
BTW ... I just got this to work after a lot of fiddling:
http://tph.tuwien.ac.at/~oemer/qcl.html
Now when we write 1997 and realize that the industrial epoch
finally draws to a close ... and various flavors of
"industriromantik" is all we have left:
https://www.youtube.com/watch?v=pbWLvwE8zfw
--
underground experts united
https://dataswamp.org/~incal
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Qlisp for Quantum Computers (was: Re: Org-mode shell SRC block under Windows)
2022-02-04 8:44 ` Qlisp for Quantum Computers (was: Re: Org-mode shell SRC block under Windows) Emanuel Berg via Users list for the GNU Emacs text editor
@ 2022-02-04 9:14 ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-02-04 10:05 ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-02-04 9:47 ` Emanuel Berg via Users list for the GNU Emacs text editor
1 sibling, 1 reply; 14+ messages in thread
From: Emanuel Berg via Users list for the GNU Emacs text editor @ 2022-02-04 9:14 UTC (permalink / raw)
To: help-gnu-emacs
For some reason I can't find the post [1] but it/I said, in
part:
Maybe CL and Elisp should add support for Quantum Computers
BTW ... I just got this to work after a lot of fiddling:
http://tph.tuwien.ac.at/~oemer/qcl.html
And here it is! Q-Lisp!
http://www.schloerconsulting.com/quantum-computer-q-lisp-programming-language
:)
That Qlisp (or QLISP [2]) reference was meant as a joke! (not
the footnote) But see, never underestimate CL! (not QCL)
Let's call it QL then!
So QCL is based on C, Qlisp (QLISP) is Qlisp
but Q-Lisp is based on CL ... QL! qwl!
[1] https://lists.gnu.org/archive/html/help-gnu-emacs/2022-02/msg00098.html
[2] https://www.sri.com/publication/qlisp-a-language-for-the-interactive-development-of-complex-systems/
--
underground experts united
https://dataswamp.org/~incal
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Qlisp for Quantum Computers (was: Re: Org-mode shell SRC block under Windows)
2022-02-04 8:44 ` Qlisp for Quantum Computers (was: Re: Org-mode shell SRC block under Windows) Emanuel Berg via Users list for the GNU Emacs text editor
2022-02-04 9:14 ` Emanuel Berg via Users list for the GNU Emacs text editor
@ 2022-02-04 9:47 ` Emanuel Berg via Users list for the GNU Emacs text editor
1 sibling, 0 replies; 14+ messages in thread
From: Emanuel Berg via Users list for the GNU Emacs text editor @ 2022-02-04 9:47 UTC (permalink / raw)
To: help-gnu-emacs
But they call Q-Lisp "QLisp"
The new language (QLisp) is an extension of the AI language
‘Common Lisp’ [1]
so QCL (not even Lisp) != Q-Lisp (based on CL, or as they put
it, ‘Common Lisp’) == QLisp != Qlisp == QLISP ...
Qould be qonfusing ...
[1] http://www.schloerconsulting.com/quantum-computer-q-lisp-programming-language
--
underground experts united
https://dataswamp.org/~incal
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Qlisp for Quantum Computers (was: Re: Org-mode shell SRC block under Windows)
2022-02-04 9:14 ` Emanuel Berg via Users list for the GNU Emacs text editor
@ 2022-02-04 10:05 ` Emanuel Berg via Users list for the GNU Emacs text editor
0 siblings, 0 replies; 14+ messages in thread
From: Emanuel Berg via Users list for the GNU Emacs text editor @ 2022-02-04 10:05 UTC (permalink / raw)
To: help-gnu-emacs
> And here it is! Q-Lisp!
>
> http://www.schloerconsulting.com/quantum-computer-q-lisp-programming-language
>
> :)
I still think we should do Qelisp ... and the name for qwlness
only, since it wouldn't be a new or independent language.
But the simulator OTOH ;) Maybe there is one and one can just
interface with that ...
--
underground experts united
https://dataswamp.org/~incal
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Org-mode shell SRC block under Windows
2022-02-03 22:13 ` Emanuel Berg via Users list for the GNU Emacs text editor
@ 2022-02-04 12:52 ` H. Dieter Wilhelm
2022-02-04 13:59 ` Emanuel Berg via Users list for the GNU Emacs text editor
0 siblings, 1 reply; 14+ messages in thread
From: H. Dieter Wilhelm @ 2022-02-04 12:52 UTC (permalink / raw)
To: help-gnu-emacs
Emanuel Berg via Users list for the GNU Emacs text editor
<help-gnu-emacs@gnu.org> writes:
> H. Dieter Wilhelm wrote:
>
>> I now have
>>
>> (setq message-confirm-send t)
>>
>> in my init file.
>
> Beware often such things won't work because the brain and
> fingers make one thing out of the two, so before one knows it
> one will hit it like it is a key binding combination to any
> other, one command ...
That is often true :-). But I hope for actions where you didn't intent
to send a mail it will prevent to execute the mental confusion.
Dieter
--
Best wishes
H. Dieter Wilhelm
Zwingenberg, Germany
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Org-mode shell SRC block under Windows
2022-02-04 7:16 ` Eli Zaretskii
2022-02-04 8:44 ` Qlisp for Quantum Computers (was: Re: Org-mode shell SRC block under Windows) Emanuel Berg via Users list for the GNU Emacs text editor
@ 2022-02-04 13:15 ` H. Dieter Wilhelm
2022-02-04 14:01 ` Eli Zaretskii
1 sibling, 1 reply; 14+ messages in thread
From: H. Dieter Wilhelm @ 2022-02-04 13:15 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: help-gnu-emacs
Eli Zaretskii <eliz@gnu.org> writes:
>> From: "H. Dieter Wilhelm" <dieter@duenenhof-wilhelm.de>
>> Date: Thu, 03 Feb 2022 21:37:25 +0100
>>
>> Hello
>>
>> I'd like to use an MSYS or MingW shell rather than the default shell
>> (com) for
>>
>> #+begin_src sh
>> echo $SHELL
>> #+end_src
>
> See explicit-shell-file-name (assuming that Org heeds that variable).
> But beware: futzing with that variable might get you in trouble
> elsewhere!
Yeah it seems so. That was the first idea I tried and it bit hard my
LaTeX exporting from org-mode. :-(
But I think it should be possible to specify a different shell only for
certain source blocks. Please consider the customisation variable
org-babel-shell-names => ("sh" "bash" "zsh" "fish" "csh" "ash" "dash"
"ksh" "mksh" "posh")
it is possible to modify (amend?) the list of shells but I just can't
find where and how to "define" such a new "shell".
By the way
#+begin_src shell
echo $0
#+end_src
seems to call MS com but
#+begin_src sh
echo $0
#+end_src
an MSYS2 shell /usr/bin/sh...
> In general, I'd say people who publish such blocks that assume a Posix
> shell are to blame, not your Emacs setup. I find such blocks
> frequently posted without a lot of thought, just because it "WFM".
Probably, I don't want to publish the blocks. They are intended as a
mixture of documentation for myself and automated scripting for building
Emacs.
Thank you for your interest
Dieter
--
Best wishes
H. Dieter Wilhelm
Zwingenberg, Germany
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Org-mode shell SRC block under Windows
2022-02-04 12:52 ` H. Dieter Wilhelm
@ 2022-02-04 13:59 ` Emanuel Berg via Users list for the GNU Emacs text editor
0 siblings, 0 replies; 14+ messages in thread
From: Emanuel Berg via Users list for the GNU Emacs text editor @ 2022-02-04 13:59 UTC (permalink / raw)
To: help-gnu-emacs
H. Dieter Wilhelm wrote:
>> Beware often such things won't work because the brain and
>> fingers make one thing out of the two, so before one knows
>> it one will hit it like it is a key binding combination to
>> any other, one command ...
>
> That is often true :-). But I hope for actions where you
> didn't intent to send a mail it will prevent to execute the
> mental confusion.
The intention is to produce
do thing 1
(pause for brain to think)
do thing 2 (confirm thing 1)
but your brain/body is more clever than that! I'm not always
so intelligent actually so I think I'd have to do that at
least 5 times before it would be
do thing 1 + 2
even up here.
--
underground experts united
https://dataswamp.org/~incal
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Org-mode shell SRC block under Windows
2022-02-04 13:15 ` Org-mode shell SRC block under Windows H. Dieter Wilhelm
@ 2022-02-04 14:01 ` Eli Zaretskii
2022-02-04 14:22 ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-02-04 20:22 ` H. Dieter Wilhelm
0 siblings, 2 replies; 14+ messages in thread
From: Eli Zaretskii @ 2022-02-04 14:01 UTC (permalink / raw)
To: help-gnu-emacs
> From: "H. Dieter Wilhelm" <dieter@duenenhof-wilhelm.de>
> Cc: help-gnu-emacs@gnu.org
> Date: Fri, 04 Feb 2022 14:15:08 +0100
>
> But I think it should be possible to specify a different shell only for
> certain source blocks.
Specify how? in Lisp? that's already possible, by binding
shell-file-name and shell-command-switch (assuming that the commands
use those and not hard-code stuff).
If you mean interactively, please talk to the Org folks, who are
responsible for the proliferation of these blocks -- the
implementation is in Org, AFAIU.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Org-mode shell SRC block under Windows
2022-02-04 14:01 ` Eli Zaretskii
@ 2022-02-04 14:22 ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-02-04 20:22 ` H. Dieter Wilhelm
1 sibling, 0 replies; 14+ messages in thread
From: Emanuel Berg via Users list for the GNU Emacs text editor @ 2022-02-04 14:22 UTC (permalink / raw)
To: help-gnu-emacs
Eli Zaretskii wrote:
> If you mean interactively, please talk to the Org folks, who
> are responsible for the proliferation of these blocks -- the
> implementation is in Org, AFAIU.
Don't do it or just type it ...
--
underground experts united
https://dataswamp.org/~incal
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Org-mode shell SRC block under Windows
2022-02-04 14:01 ` Eli Zaretskii
2022-02-04 14:22 ` Emanuel Berg via Users list for the GNU Emacs text editor
@ 2022-02-04 20:22 ` H. Dieter Wilhelm
1 sibling, 0 replies; 14+ messages in thread
From: H. Dieter Wilhelm @ 2022-02-04 20:22 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: help-gnu-emacs
Eli Zaretskii <eliz@gnu.org> writes:
>> From: "H. Dieter Wilhelm" <dieter@duenenhof-wilhelm.de>
>> Cc: help-gnu-emacs@gnu.org
>> Date: Fri, 04 Feb 2022 14:15:08 +0100
>>
>> But I think it should be possible to specify a different shell only for
>> certain source blocks.
>
> Specify how? in Lisp? that's already possible, by binding
> shell-file-name and shell-command-switch (assuming that the commands
> use those and not hard-code stuff).
>
> If you mean interactively, please talk to the Org folks, who are
> responsible for the proliferation of these blocks -- the
> implementation is in Org, AFAIU.
I asked the org mailing list, if the outcome will be helpful I'll report
it here.
Thanks
Dieter
--
Best wishes
H. Dieter Wilhelm
Zwingenberg, Germany
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2022-02-04 20:22 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-03 20:37 Org-mode shell SRC block under Windows H. Dieter Wilhelm
2022-02-03 21:30 ` H. Dieter Wilhelm
2022-02-03 22:13 ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-02-04 12:52 ` H. Dieter Wilhelm
2022-02-04 13:59 ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-02-04 7:16 ` Eli Zaretskii
2022-02-04 8:44 ` Qlisp for Quantum Computers (was: Re: Org-mode shell SRC block under Windows) Emanuel Berg via Users list for the GNU Emacs text editor
2022-02-04 9:14 ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-02-04 10:05 ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-02-04 9:47 ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-02-04 13:15 ` Org-mode shell SRC block under Windows H. Dieter Wilhelm
2022-02-04 14:01 ` Eli Zaretskii
2022-02-04 14:22 ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-02-04 20:22 ` H. Dieter Wilhelm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).