emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] [FIXED] Re: [BUG] in org-babel-get-src-block-info when certain :head


From: Rainer M Krug
Subject: [O] [FIXED] Re: [BUG] in org-babel-get-src-block-info when certain :header-args are set
Date: Tue, 10 Feb 2015 14:36:45 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (darwin)

Update:

The problem occurs whenever a property value is a number.

so

,----
| #+PROPERTY: header-args  :tangle-mode 292
`----

also produces the error.

Fix included in other patch.

Rainer


Rainer M Krug <address@hidden> writes:

> Rasmus <address@hidden> writes:
>
>> Rainer M Krug <address@hidden> writes:
>>
>>> #+PROPERTY: header-args  :tangle-mode (identity #o444)
>>>
>>> * Initial plottings
>>> #+begin_src R
>>> plot(1)
>>> #+end_src
>>>
>>> When calling org-babel-view-src-block-info (C-c C-v C-i) on the code
>>> block above, I get the error below.
>>>
>>> I don't have the slightest clue what this means or how it can be fixed,
>>> but it caused by the call to (identity #o444).
>>
>> Is #o444 significant to you?
>
> Well - it is more or less straight out of the org manual:
>
> ,----
> | 14.8.2.24 `:tangle-mode'
> | ........................
> | 
> | The `tangle-mode' header argument controls the permission set on tangled
> | files.  The value of this header argument will be passed to
> | `set-file-modes'.  For example, to set a tangled file as read only use
> | `:tangle-mode (identity #o444)', or to set a tangled file as executable
> | use `:tangle-mode (identity #o755)'.  Blocks with `shebang' (*Note
> | shebang::) header arguments will automatically be made executable unless
> | the `tangle-mode' header argument is also used.  The behavior is
> | undefined if multiple code blocks with different values for the
> | `tangle-mode' header argument are tangled to the same file.
> | 
> `----
>
> I don't know if I could use anything else. 
>
>>
>> I guess you could use, or maybe a lambda that combines #o444 whatever it
>> means with your src.  I have no clue what #o444 means or :tangle-mode and
>> I never heard of org-babel-view-src-block-info so take it with a grain of
>> salt.
>
> org-babel-view-src-block-info : Bound to C-c C-v C-i by default (?).
>
> ,----
> | Display information on the current source block.
> | This includes header arguments, language and name, and is largely
> | a window into the `org-babel-get-src-block-info' function.
> `----
>
> Very useful as I have found out recently.
>
>>
>> #+PROPERTY: header-args  :tangle-mode (lambda (src) (identity src))
>>
>> * Initial plottings
>> #+begin_src R
>>   plot(1)
>> #+end_src
>>
>> Or
>>
>> #+PROPERTY: header-args  :tangle-mode identity src
>>
>> * Initial plottings
>> #+begin_src R
>>   plot(1)
>> #+end_src

-- 
Rainer M. Krug
email: Rainer<at>krugs<dot>de
PGP: 0x0F52F982

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]