From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mikhail Titov Subject: [babel, ess] How can I make S-RET to be multi-session friendly? Date: Thu, 09 Aug 2012 13:44:09 -0500 Message-ID: <9q01ujfoqh2.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:41325) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SzYKK-0003aI-AB for emacs-orgmode@gnu.org; Thu, 09 Aug 2012 15:23:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SzYKI-0006KR-3w for emacs-orgmode@gnu.org; Thu, 09 Aug 2012 15:23:24 -0400 Received: from mailout-us.gmx.com ([74.208.5.67]:52715 helo=mailout-us.mail.com) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1SzYKH-0006Jn-Sw for emacs-orgmode@gnu.org; Thu, 09 Aug 2012 15:23:22 -0400 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: emacs-orgmode@gnu.org Hello! There is a wonderful post[1] on how to make S-RET to do handy things in ESS mode. However I often find myself working on several Org documents from different folders. It is quite inconvenient to change a directory in =*R*= buffer each time I work on different document. Is there a neat way to somehow reuse Org mode property =session= that I set buffer wide? Also for some reason #+PROPERTY: session *Rsomename* does not override session name set in =org-babel-default-header-args:R= even after =C-c C-c= on it when I re-evaluate babel code block with =C-c C-c= on code block, while explicit block header =:session *Rsomename*= makes difference. ,----[ snippet from dot emacs ] | (setq org-babel-default-header-args:R | '((:results . "output") (:session . "*R*"))) `---- I'm running Org-mode version 7.8.10 (release_7.8.10-658-g451191.dirty) Footnotes: [1] http://www.kieranhealy.org/blog/archives/2009/10/12/make-shift-enter-do-a-lot-in-ess/ -- Mikhail