From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kevin Foley Subject: Babel Edit Code Whole Session Context Date: Sun, 24 Jun 2018 10:50:30 -0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000007ba1a1056f646426" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51605) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fX6Lz-0001yc-6I for emacs-orgmode@gnu.org; Sun, 24 Jun 2018 10:51:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fX6Ly-00089Z-Az for emacs-orgmode@gnu.org; Sun, 24 Jun 2018 10:50:59 -0400 Received: from mail-oi0-x22c.google.com ([2607:f8b0:4003:c06::22c]:46147) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fX6Ly-000899-51 for emacs-orgmode@gnu.org; Sun, 24 Jun 2018 10:50:58 -0400 Received: by mail-oi0-x22c.google.com with SMTP id h79-v6so10174187oig.13 for ; Sun, 24 Jun 2018 07:50:57 -0700 (PDT) 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: emacs-orgmode@gnu.org --0000000000007ba1a1056f646426 Content-Type: text/plain; charset="UTF-8" Is there anyway to edit a source code block with the context of all other source code blocks in the same session? Specifically when working with Python I'd like features like company to be able to use the rest of the code in the session. For example consider the following org file: #+begin_src python :tangle yes :session my_session var = 'variable' var_upper = var. #+end_src #+begin_src python :tangle yes :session my_session var_lower = var. #+end_src If I call `org-edit-src-code` on the first block and move the point to after the dot in "var." and call `elpy-company-backend` I get suggestions of all methods associated with strings in Python. However if I do the same in the second code block I get the message "No completion found". Is there any solution to this issue? -- Thanks, Kevin Foley --0000000000007ba1a1056f646426 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Is there anyway to edit a source code block with the conte= xt of all other source code blocks in the same session?=C2=A0 Specifically = when working with Python I'd like features like company to be able to u= se the rest of the code in the session.

For example cons= ider the following org file:

#+begin_src pyth= on :tangle yes :session my_session
=C2=A0 var =3D 'variable&#= 39;

=C2=A0 var_upper =3D var.
#+end_src<= /div>

#+begin_src python :tangle yes :session my_session=
=C2=A0 var_lower =3D var.
#+end_src

If I call `org-edit-src-code` on the first block and move= the point to after the dot in "var." and call `elpy-company-back= end` I get suggestions of all methods associated with strings in Python.=C2= =A0 However if I do the same in the second code block I get the message &qu= ot;No completion found".

Is there any solutio= n to this issue?=C2=A0=C2=A0

--
Thanks,
Kevin Foley
--0000000000007ba1a1056f646426--