emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug? org-babel-lob-ingest problem
@ 2010-09-19  8:58 Aidan Gauland
  2010-09-19 18:23 ` Eric Schulte
  0 siblings, 1 reply; 5+ messages in thread
From: Aidan Gauland @ 2010-09-19  8:58 UTC (permalink / raw)
  To: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 453 bytes --]

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

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Bug? org-babel-lob-ingest problem
  2010-09-19  8:58 Bug? org-babel-lob-ingest problem Aidan Gauland
@ 2010-09-19 18:23 ` Eric Schulte
  2010-09-19 23:33   ` Jambunathan K
  0 siblings, 1 reply; 5+ messages in thread
From: Eric Schulte @ 2010-09-19 18:23 UTC (permalink / raw)
  To: emacs-orgmode

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 <aidalgol@no8wireless.co.nz> 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
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Bug? org-babel-lob-ingest problem
  2010-09-19 18:23 ` Eric Schulte
@ 2010-09-19 23:33   ` Jambunathan K
  2010-09-20  3:49     ` Eric Schulte
  0 siblings, 1 reply; 5+ messages in thread
From: Jambunathan K @ 2010-09-19 23:33 UTC (permalink / raw)
  To: Eric Schulte; +Cc: emacs-orgmode

"Eric Schulte" <schulte.eric@gmail.com> 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 <aidalgol@no8wireless.co.nz> 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.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Bug? org-babel-lob-ingest problem
  2010-09-19 23:33   ` Jambunathan K
@ 2010-09-20  3:49     ` Eric Schulte
  2010-09-20  6:51       ` Jambunathan K
  0 siblings, 1 reply; 5+ messages in thread
From: Eric Schulte @ 2010-09-20  3:49 UTC (permalink / raw)
  To: Jambunathan K; +Cc: emacs-orgmode

Jambunathan K <kjambunathan@gmail.com> writes:

> "Eric Schulte" <schulte.eric@gmail.com> 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 <aidalgol@no8wireless.co.nz> 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.

Thanks -- Eric

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Bug? org-babel-lob-ingest problem
  2010-09-20  3:49     ` Eric Schulte
@ 2010-09-20  6:51       ` Jambunathan K
  0 siblings, 0 replies; 5+ messages in thread
From: Jambunathan K @ 2010-09-20  6:51 UTC (permalink / raw)
  To: Eric Schulte; +Cc: emacs-orgmode

"Eric Schulte" <schulte.eric@gmail.com> writes:

> Jambunathan K <kjambunathan@gmail.com> writes:
>
>> "Eric Schulte" <schulte.eric@gmail.com> 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 <aidalgol@no8wireless.co.nz> 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.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-09-20  6:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-19  8:58 Bug? org-babel-lob-ingest problem Aidan Gauland
2010-09-19 18:23 ` Eric Schulte
2010-09-19 23:33   ` Jambunathan K
2010-09-20  3:49     ` Eric Schulte
2010-09-20  6:51       ` Jambunathan K

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).