From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: Bug? org-babel-lob-ingest problem Date: Mon, 20 Sep 2010 12:21:50 +0530 Message-ID: <81tylkoqk9.fsf@gmail.com> References: <20100919085838.GA7050@dimension8.tehua.net> <871v8pfllo.fsf@gmail.com> <814odlpauc.fsf@gmail.com> <871v8pdqha.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=60430 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OxaEO-0000JZ-IV for emacs-orgmode@gnu.org; Mon, 20 Sep 2010 02:52:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OxaEM-00040a-KO for emacs-orgmode@gnu.org; Mon, 20 Sep 2010 02:52:04 -0400 Received: from mail-iw0-f169.google.com ([209.85.214.169]:50501) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OxaEM-00040V-CR for emacs-orgmode@gnu.org; Mon, 20 Sep 2010 02:52:02 -0400 Received: by iwn33 with SMTP id 33so6544182iwn.0 for ; Sun, 19 Sep 2010 23:52:01 -0700 (PDT) In-Reply-To: <871v8pdqha.fsf@gmail.com> (Eric Schulte's message of "Sun, 19 Sep 2010 21:49:05 -0600") 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: Eric Schulte Cc: emacs-orgmode@gnu.org "Eric Schulte" writes: > Jambunathan K writes: > >> "Eric Schulte" writes: >> >>> Hi Aidan, >>> >>> This is not a bug, this is the expected behavior of >>> org-babel-lob-ingest, if you would like a file to always be loaded into >>> your library of babel, then you can add the call to org-babel-lob-ingest >>> to your .emacs initialization file. >>> >>> Best -- Eric >>> >>> Aidan Gauland writes: >>> >>>> Calling org-babel-lob-ingest on a file with code blocks seems to work >>>> only for the current Emacs session, and doesn't seem to affect the >>>> variable org-babel-lob-files. If I quit and restart Emacs, it's as if >>>> I never loaded a file with org-babel-lob-ingest. Also I see >>>> "(mismatch)" next to the "State" button for org-babel-lob-files in >>>> Customize. >>>> >>>> Like this... >>>> State: STANDARD. (mismatch) >>>> >>>> Have I found a bug, or am I doing something wrong? >>>> >>>> --Aidan >> >> I believe OP is requesting that org-babel-lob-ingest do a >> (customize-save-variable 'org-babel-lob-files ...). >> >> Think of Org keystrokes 'C-c [' and 'C-c ]' that allows easy >> customization of org-agenda-files. >> >> I think keystrokes 'C-c C-v [' and 'C-c C-c ]' would be a good default >> candidate for ingesting and ejecting lob files from Babel environment. >> >> Jambunathan K. > > Ah, > > that sounds like a very good idea, and I like the proposed key bindings. > This will probably come in the form of org-babel-lob-add and > org-babel-lob-remove functions, and a new org-babel-lob-files variable. > > I've placed this on the Babel task list. > > Now I just need to figure out how to load up these files when Org-mode > is first initialized. The simplest solution may be to ask the user to > place a call to org-babel-lob-initialize or somesuch in their .emacs > file. That 'sounds' like a new #+STARTUP directive to me ... ,----[ C-h v org-startup-options RET ] | org-startup-options is a variable defined in `org.el'. | | Documentation: | Variable associated with STARTUP options for org-mode. | Each element is a list of three items: The startup options as written | in the #+STARTUP line, the corresponding variable, and the value to | set this variable to if the option is found. An optional forth element PUSH | means to push this value onto the list in the variable. `---- Jambunathan K.