emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* "begin_src R :session" opens R session when file first visited
@ 2021-10-16 17:41 William Denton
  2021-10-17  3:06 ` Greg Minshall
  0 siblings, 1 reply; 4+ messages in thread
From: William Denton @ 2021-10-16 17:41 UTC (permalink / raw)
  To: emacs-orgmode

A question for R users:

I run Org from the source tree, and recently (a couple of weeks ago or so) 
something new started happening with my Org files with R source blocks:  when I 
open one up, an R session automatically starts, without me doing anything.

For example:

     #+BEGIN_SRC R :session foo
     1
     #+END_SRC

If I have that in a file, restart Emacs and visit the file, an unnamed R session 
begins right away (without a C-c C-c).  I changed "R" to "python" and 
restarted, and all was normal (i.e., nothing happened) but when I edited it to 
say "R" again, the session began as soon as I put the letter in!

I haven't changed anything in my configuration related to Org or R, and I can't 
see why this is happening.  Looking at recent commits I saw all the R 
async work, and changes made to session-related code, but I can't tell if 
there's any connection.

Are any other R users seeing this?  I admit I haven't done a full investigation, 
but I thought I'd ask.


Thanks,

Bill

--
William Denton
https://www.miskatonic.org/
Librarian, artist and licensed private investigator.
Toronto, Canada


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: "begin_src R :session" opens R session when file first visited
  2021-10-16 17:41 "begin_src R :session" opens R session when file first visited William Denton
@ 2021-10-17  3:06 ` Greg Minshall
  2021-10-17 12:04   ` Jeremie Juste
  0 siblings, 1 reply; 4+ messages in thread
From: Greg Minshall @ 2021-10-17  3:06 UTC (permalink / raw)
  To: William Denton; +Cc: emacs-orgmode

Bill,

> I run Org from the source tree, and recently (a couple of weeks ago or
> so) something new started happening with my Org files with R source
> blocks:  when I open one up, an R session automatically starts,
> without me doing anything.

i don't see that behavior.  does it do this for 'emacs -Q' (suitably
tailored to load org mode, set `org-babel-load-languages`, etc.)?

cheers, Greg


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: "begin_src R :session" opens R session when file first visited
  2021-10-17  3:06 ` Greg Minshall
@ 2021-10-17 12:04   ` Jeremie Juste
  2021-10-23 20:11     ` William Denton
  0 siblings, 1 reply; 4+ messages in thread
From: Jeremie Juste @ 2021-10-17 12:04 UTC (permalink / raw)
  To: Greg Minshall; +Cc: William Denton, emacs-orgmode

Hello William,

Many thanks for reporting your issue and many thanks to Greg for testing.

Sorry, I cannot reproduce the issue either. I don't think it is related
to async. Could you try with 'emacs -Q'?


my minimal configuration is along with emacs -Q is the following:

#+begin_src elisp
(add-to-list 'load-path (expand-file-name "~/src/gnu/org-mode/lisp") t)
(require 'org)
(add-to-list 'load-path "/home/djj/.emacs.d/elpa/ess-20200825.829")
#+end_src

My ess-version is starting to date. I'm still on ess-version: 18.10.3snapshot [elpa: 20200825.829], but I'm not aware of
any breaking changes in ESS.


Best regards,
Jeremie



On Sunday, 17 Oct 2021 at 06:06, Greg Minshall wrote:
> Bill,
>
>> I run Org from the source tree, and recently (a couple of weeks ago or
>> so) something new started happening with my Org files with R source
>> blocks:  when I open one up, an R session automatically starts,
>> without me doing anything.
>
> i don't see that behavior.  does it do this for 'emacs -Q' (suitably
> tailored to load org mode, set `org-babel-load-languages`, etc.)?
>
> cheers, Greg


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: "begin_src R :session" opens R session when file first visited
  2021-10-17 12:04   ` Jeremie Juste
@ 2021-10-23 20:11     ` William Denton
  0 siblings, 0 replies; 4+ messages in thread
From: William Denton @ 2021-10-23 20:11 UTC (permalink / raw)
  To: Jeremie Juste; +Cc: Greg Minshall, emacs-orgmode

On 17 October 2021, Jeremie Juste wrote:

> Many thanks for reporting your issue and many thanks to Greg for testing.
>
> Sorry, I cannot reproduce the issue either. I don't think it is related
> to async. Could you try with 'emacs -Q'?

Thanks to you both for testing this.  It was a problem with my own 
configuration, which, thanks to some fiddling, has now vanished.  What triggered 
the problem I can't imagine.  I have turned up a new problem that I think is 
reproducible with emacs -Q and I'll report that next.

Bill

--
William Denton
https://www.miskatonic.org/
Librarian, artist and licensed private investigator.
Toronto, Canada


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-10-23 20:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-16 17:41 "begin_src R :session" opens R session when file first visited William Denton
2021-10-17  3:06 ` Greg Minshall
2021-10-17 12:04   ` Jeremie Juste
2021-10-23 20:11     ` William Denton

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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