Rasmus writes: > Rainer M Krug 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: Rainerkrugsde PGP: 0x0F52F982