From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eduardo Ochs Subject: Using Org and eev together - problem with source blocks Date: Sat, 9 Nov 2019 23:54:26 -0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000002126260596f44cc0" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:49228) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iTcR8-0004rd-J6 for emacs-orgmode@gnu.org; Sat, 09 Nov 2019 20:54:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iTcR6-0000qM-KM for emacs-orgmode@gnu.org; Sat, 09 Nov 2019 20:54:42 -0500 Received: from mail-pg1-x52f.google.com ([2607:f8b0:4864:20::52f]:44062) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iTcR4-0000qG-Rz for emacs-orgmode@gnu.org; Sat, 09 Nov 2019 20:54:40 -0500 Received: by mail-pg1-x52f.google.com with SMTP id f19so6647872pgk.11 for ; Sat, 09 Nov 2019 17:54:38 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Org Mode , Alan Schmitt --0000000000002126260596f44cc0 Content-Type: text/plain; charset="UTF-8" Hi list, I gave a presentation about eev at the EmacsConf a few days ago, and after the conference I started to work on a tutorial to explain how to use Org and eev together... links: http://angg.twu.net/emacsconf2019.html http://angg.twu.net/LATEX/2019emacsconf-long.pdf (slides) http://www.youtube.com/watch?v=86yiRG8YJD0&t=774 (demo) http://www.youtube.com/watch?v=86yiRG8YJD0&t=956 (demo: eepitch) http://angg.twu.net/eev-intros/find-org-intro.html (eev+Org, html) http://angg.twu.net/eev-intros/find-org-intro (eev+Org, src) https://lists.gnu.org/archive/html/emacs-orgmode/2013-11/msg00124.html I am longtime Org user that only uses a few features of Org - mainly the ones here, (info "(org)Document Structure") and when I tried to explain in my tutorial how to execute org source blocks I stumbled on a behavior that I found very puzzling... I will copy the relevant code here. The section on preparation says to run these sexps, (require 'org) (require 'ob-sh) ;; or: (require 'ob-shell) (require 'ob-python) and then a bit later the tutorial has this: # (info "(org)Working With Source Code") # (info "(org)Evaluating code blocks") #+BEGIN_SRC sh seq 200 204 #+END_SRC #+BEGIN_SRC python def square (x): return x*x print(square(5)) #+END_SRC but when I run the shell block with C-c C-c I get these errors Error reading results: (user-error No table at point) Code block produced no output. and an empty "#+RESULTS:" block in Emacs24, and the right results block in some later versions of Emacs, and when I run the Python block with C-c C-c I always get a results block like this (without the indentation): #+RESULTS: : None What am I doing wrong? I expected an output of "25"... =( Thanks in advance! Eduardo Ochs http://angg.twu.net/#eev --0000000000002126260596f44cc0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi list,

I gave a presentation about eev at the Ema= csConf a few days ago, and
after the conference I started to work on a t= utorial to explain how to
use Org and eev together... links:

=C2= =A0 http://angg.twu.net/= emacsconf2019.html
=C2=A0 http://angg.twu.net/LATEX/2019emacsconf-long.pdf (sl= ides)
=C2=A0 http://www.youtube.com/watch?v=3D86yiRG8YJD0&t=3D774 (dem= o)
=C2=A0 http://www.youtube.com/watch?v=3D86yiRG8YJD0&t=3D956 (demo:= eepitch)
=C2=A0 http://angg.twu.net/eev-intros/find-org-intro.html (eev+Org, ht= ml)
=C2=A0 htt= p://angg.twu.net/eev-intros/find-org-intro =C2=A0 =C2=A0 =C2=A0(eev+Org= , src)
=C2=A0 https://lists.gnu.org/archive/html/emacs-orgmode/2= 013-11/msg00124.html

I am longtime Org user that only uses a few= features of Org - mainly
the ones here,

=C2=A0 (info "(org)= Document Structure")

and when I tried to explain in my tutorial= how to execute org source
blocks I stumbled on a behavior that I found = very puzzling... I will
copy the relevant code here. The section on prep= aration says to run
these sexps,

=C2=A0 (require 'org)
=C2= =A0 (require 'ob-sh)
=C2=A0 ;; or: (require 'ob-shell)
=C2=A0= (require 'ob-python)

and then a bit later the tutorial has this= :



# (info "(org)Working With Source Code")
# (i= nfo "(org)Evaluating code blocks")

#+BEGIN_SRC sh
seq 2= 00 204
#+END_SRC

#+BEGIN_SRC python
def square (x):
=C2=A0 = =C2=A0 return x*x

print(square(5))
#+END_SRC



but w= hen I run the shell block with C-c C-c I get these errors

=C2=A0 Err= or reading results: (user-error No table at point)
=C2=A0 Code block pro= duced no output.

and an empty "#+RESULTS:" block in Emacs2= 4, and the right results
block in some later versions of Emacs, and when= I run the Python block
with C-c C-c I always get a results block like t= his (without the
indentation):

=C2=A0 #+RESULTS:
=C2=A0 : None=

What am I doing wrong? I expected an output of "25"... = =3D(

Thanks in advance!

=C2=A0 Eduardo Ochs
=C2=A0 http://angg.twu.net/#eev

--0000000000002126260596f44cc0--