[O] [BUG] in org-babel-get-src-block-info when certain :header-args are set
Hi --8---cut here---start-8--- #+PROPERTY: header-args :tangle-mode (identity #o444) * Initial plottings #+begin_src R plot(1) #+end_src --8---cut here---end---8--- 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). , | Debugger entered--Lisp error: (wrong-type-argument sequencep 292) | #[(it) G\301V\207 [it 0] 2](292) | org-babel-view-src-block-info() | call-interactively(org-babel-view-src-block-info nil nil) | command-execute(org-babel-view-src-block-info) | Debugger entered--Lisp error: (wrong-type-argument sequencep 292) | #[(it) G\301V\207 [it 0] 2](292) | org-babel-view-src-block-info() | call-interactively(org-babel-view-src-block-info nil nil) | command-execute(org-babel-view-src-block-info) ` , | Org-mode version 8.3beta (release_8.3beta-798-g528b90 @/Users/rainerkrug/.emacs.d/org-mode/lisp/) | GNU Emacs 24.4.1 (x86_64-apple-darwin14.0.0, Carbon Version 157 AppKit 1343.16) of 2015-02-02 on Rainers-MacBook-Pro-4.local ` reproduced without configuration. Cheers, Rainer -- Rainer M. Krug email: Raineratkrugsdotde PGP: 0x0F52F982 signature.asc Description: PGP signature
Re: [O] [BUG] in org-babel-get-src-block-info when certain :header-args are set
Rainer M Krug rai...@krugs.de 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? 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. #+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 -- . . . The proofs are technical in nature and provides no real understanding
Re: [O] [BUG] in org-babel-get-src-block-info when certain :header-args are set
Rasmus ras...@gmx.us writes: Rainer M Krug rai...@krugs.de 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: Raineratkrugsdotde PGP: 0x0F52F982 signature.asc Description: PGP signature