From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Leha Subject: Re: [babel] feature request: automatically connect source code block to its session Date: Fri, 25 Mar 2011 14:17:42 +0100 Message-ID: <4D8C95F6.5040304@med.uni-goettingen.de> References: <4D861AEF.2040806@med.uni-goettingen.de> <87ei5ya672.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha1; boundary="------------ms090402060901030901060204" Return-path: Received: from [140.186.70.92] (port=60848 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q36th-00067Y-R7 for emacs-orgmode@gnu.org; Fri, 25 Mar 2011 09:17:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q36tg-0007zM-M0 for emacs-orgmode@gnu.org; Fri, 25 Mar 2011 09:17:49 -0400 Received: from mail2-ext.be-mrz.med.uni-goettingen.de ([134.76.124.179]:28507 helo=mail2-ext.med.uni-goettingen.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q36tf-0007yi-AC for emacs-orgmode@gnu.org; Fri, 25 Mar 2011 09:17:48 -0400 Received: from vpn-2045.gwdg.de ([134.76.2.45]:34552) by mail2-ext.med.uni-goettingen.de with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1Q36ta-0001Tf-1n for emacs-orgmode@gnu.org; Fri, 25 Mar 2011 14:17:42 +0100 In-Reply-To: <87ei5ya672.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org This is a cryptographically signed message in MIME format. --------------ms090402060901030901060204 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable Hi Eric, thanks for looking into this! Unfortunately, I do not know the setup here. But I asked on the ess mailing list and got an answer from Stephen Eglen: "I think you want to set ess-local-process-name given by the :session argument in the .org buffer when the temp buffer is opened by C-c '." I hope that is the information you need. Regards, Andreas Am 23.03.2011 04:00, schrieb Eric Schulte: > This seems reasonable, >=20 > Do you know how ESS associates a code buffer with a session (i.e. is > there some buffer-local variable which holds the session name)? >=20 > With this information in hand it shouldn't be difficult to expand the > C-' behavior for R s.t. it automatically associates the resulting > Org-Src buffer with the proper R session. >=20 > Good idea. Best -- Eric >=20 > Andreas Leha writes: >=20 >> Hi all, >> >> I have a feature request (if what I want is not already possible, that= is). >> >> Could a source code block, which has the :session header argument, be >> associated with its session as soon as C-' is pressed? >> >> The background to this question is, that all ess support functionality= >> for R (r-autoyas, autocomplete-R, and ess-eldoc) need an associated R >> session. They start to function only as soon as the first line of the= >> code block is evaluated, which associates the source buffer with its >> session. >> The autocomplete-R even fails to load without an associated R session >> (byte-code: Language mode `R-mode' fails with: "Symbol nil may not be >> buffer-local") >> and this way cuts the connection to org, such that C-' becomes undefin= ed. >> >> Regards, >> Andreas >=20 --------------ms090402060901030901060204 Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIUqTCC BCEwggMJoAMCAQICAgDHMA0GCSqGSIb3DQEBBQUAMHExCzAJBgNVBAYTAkRFMRwwGgYDVQQK ExNEZXV0c2NoZSBUZWxla29tIEFHMR8wHQYDVQQLExZULVRlbGVTZWMgVHJ1c3QgQ2VudGVy MSMwIQYDVQQDExpEZXV0c2NoZSBUZWxla29tIFJvb3QgQ0EgMjAeFw0wNjEyMTkxMDI5MDBa Fw0xOTA2MzAyMzU5MDBaMFoxCzAJBgNVBAYTAkRFMRMwEQYDVQQKEwpERk4tVmVyZWluMRAw DgYDVQQLEwdERk4tUEt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