From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: [babel, ess] How can I make S-RET to be multi-session friendly? Date: Fri, 10 Aug 2012 06:42:17 -0600 Message-ID: <87boiidil2.fsf@gmx.com> References: <9q01ujfoqh2.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:41169) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SzoYz-000246-U5 for emacs-orgmode@gnu.org; Fri, 10 Aug 2012 08:43:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SzoYx-0005JJ-EV for emacs-orgmode@gnu.org; Fri, 10 Aug 2012 08:43:37 -0400 Received: from mailout-us.gmx.com ([74.208.5.67]:50964 helo=mailout-us.mail.com) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1SzoYx-0005Is-7A for emacs-orgmode@gnu.org; Fri, 10 Aug 2012 08:43:35 -0400 In-Reply-To: <9q01ujfoqh2.fsf@gmx.us> (Mikhail Titov's message of "Thu, 09 Aug 2012 13:44:09 -0500") 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: Mikhail Titov Cc: emacs-orgmode@gnu.org Mikhail Titov writes: > 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? > I'm not sure what you mean by "reuse". All of the information for how to set header arguments in available at (info "(org) Using header arguments") > > 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. > Yes, the order of precedence is system-level < buffer/subtree-level < language-level < code-block-level > > ,----[ snippet from dot emacs ] > | (setq org-babel-default-header-args:R > | '((:results . "output") (:session . "*R*"))) > `---- > Given that (:session . "*R*") will be used by default you could simply remove it from your custom setting for org-babel-default-header-args. Best, > > 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/ -- Eric Schulte http://cs.unm.edu/~eschulte