From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mikhail Titov Subject: Re: [babel, ess] How can I make S-RET to be multi-session friendly? Date: Thu, 23 Aug 2012 17:11:25 -0500 Message-ID: <9q0sjbd1coi.fsf@gmx.us> References: <9q01ujfoqh2.fsf@gmx.us> <87boiidil2.fsf@gmx.com> <9q0sjbuvar7.fsf@gmx.us> <87a9y214m8.fsf@gmx.com> <87y5lh6291.fsf@gmx.com> <9q0a9xxrvp7.fsf@gmx.us> <878vdhyw27.fsf@gnu.org> <9q0fw7m7dib.fsf@gmx.us> <87r4r5wpyw.fsf@gmx.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:60748) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T4fcz-0003pF-EF for emacs-orgmode@gnu.org; Thu, 23 Aug 2012 18:11:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T4fcy-0003K5-Hi for emacs-orgmode@gnu.org; Thu, 23 Aug 2012 18:11:49 -0400 Received: from mailout-us.gmx.com ([74.208.5.67]:44515) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1T4fcy-0003Jt-BR for emacs-orgmode@gnu.org; Thu, 23 Aug 2012 18:11:48 -0400 In-Reply-To: <87r4r5wpyw.fsf@gmx.com> (Eric Schulte's message of "Fri, 17 Aug 2012 08:29:32 -0600") 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eric Schulte Cc: Bastien , Andrew Young , emacs-orgmode@gnu.org Another issue I've noticed is that if I save a buffer, that was previously associated with R session, under different name in different folder, then that association is not getting reset and/or overridden by session property of Org buffer. Namely, I had dot R file that I saved in different folder as dot org one while wrapping code in babel blocks and adding session property. I did C-c C-c. I believe there is somewhere a check whether a buffer is associated or not but no check if it is associated with a proper buffer/session. Eric Schulte writes on Fri Aug 17 2012 at 09:29 : >>> >>> The `org-src-in-org-buffer' macro may be used from an edit buffer to run >>> elisp inside the code block, in the org-mode buffer of the edit buffer. >>> e.g., the following >>> >>> ;; -*- emacs-lisp -*- >>> (org-src-in-org-buffer (message "-->%S" (org-babel-get-src-block-info))) >> >> Where is org-src-in-org-buffer macro defined. Searching all dot el files >> in org folder does not show anything neither does C-h f show anything >> similar. > > (describe-function 'org-src-in-org-buffer) shows that > org-src-in-org-buffer can be found in org-src.el (line 679 in my > version). I guess it did not propagate to bzr yet :( I've checked with rev 109760. For some reason I had problems building git version on Windows a while ago and I didn't try since then. -- Mikhail