From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Albinus Subject: Re: Local variables and babel Date: Tue, 14 Jan 2014 21:38:45 +0100 Message-ID: <87ha96ti22.fsf@gmx.de> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42321) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3AlE-000220-Tp for emacs-orgmode@gnu.org; Tue, 14 Jan 2014 15:39:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W3Al8-0000Lr-KC for emacs-orgmode@gnu.org; Tue, 14 Jan 2014 15:38:56 -0500 Received: from mout.gmx.net ([212.227.15.15]:56934) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3Al8-0000Il-AK for emacs-orgmode@gnu.org; Tue, 14 Jan 2014 15:38:50 -0500 Received: from detlef.gmx.de ([93.209.82.251]) by mail.gmx.com (mrgmx102) with ESMTPS (Nemesis) id 0MXmpv-1VpCue1xZP-00Wr0L for ; Tue, 14 Jan 2014 21:38:48 +0100 In-Reply-To: (Thomas S. Dye's message of "Tue, 14 Jan 2014 09:25:58 -1000") 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: "Thomas S. Dye" Cc: Org-mode tsd@tsdye.com (Thomas S. Dye) writes: > Aloha all, Hi, > This led me to try to incorporate some of the file-specific setup steps > into the local variables as well. For instance, in a file where I'm > working with Common Lisp source code blocks and a graph library, I have > this: > > # eval: (slime) > # eval: (org-sbe "graph-setup") > > What I've found is that the graph-setup doesn't have any effect on the > Common Lisp environment when run this way. It works fine if, after slime > is up and running, I go to the graph-setup source code block and > evaluate it with C-c C-c. > > I'm guessing that I might be running into a concurrency problem here, > such that the local variable evaluation of graph-setup is taking place > before slime has finished setting itself up (which takes many seconds on > my machine). > > I am well beyond my programming abilities here and would like to have > opinions on whether this approach is potentially workable and, if so, > how it might be implemented. I don't know slime, but usual there are hooks where you could add your code to run once a package (like slime) has finished its initialization. Look for such a hook in slime, and add the call to graph-setup there. > All the best, > Tom Best regards, Michael.