From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer M Krug Subject: Re: [BUG] in org-babel-get-src-block-info when certain :header-args are set Date: Tue, 10 Feb 2015 13:22:05 +0100 Message-ID: References: <87y4o6ypa2.fsf@gmx.us> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50662) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YL9pY-0003gd-Hm for emacs-orgmode@gnu.org; Tue, 10 Feb 2015 07:22:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YL9pV-0005LQ-RS for emacs-orgmode@gnu.org; Tue, 10 Feb 2015 07:22:16 -0500 Received: from mail-wi0-f181.google.com ([209.85.212.181]:58849) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YL9pV-0005LL-LM for emacs-orgmode@gnu.org; Tue, 10 Feb 2015 07:22:13 -0500 Received: by mail-wi0-f181.google.com with SMTP id r20so8358147wiv.2 for ; Tue, 10 Feb 2015 04:22:13 -0800 (PST) Received: from Rainers-MacBook-Pro.local (arn78-1-88-186-171-7.fbx.proxad.net. [88.186.171.7]) by mx.google.com with ESMTPSA id n6sm20551760wjy.8.2015.02.10.04.22.10 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 10 Feb 2015 04:22:11 -0800 (PST) In-Reply-To: <87y4o6ypa2.fsf@gmx.us> (rasmus@gmx.us's message of "Tue, 10 Feb 2015 12:33:25 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable 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' | ........................ |=20 | 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. |=20 `---- I don't know if I could use anything else.=20 > > 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 =2D-=20 Rainer M. Krug email: Rainerkrugsde PGP: 0x0F52F982 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) iQEcBAEBAgAGBQJU2ffxAAoJENvXNx4PUvmC198H/2AuRHogB/LDt8zwuFTWQIIn Qfb0PwtkOsS8Y/JQNUlFZKQTs1qdEMn4O53FfmzJKioHv1/BlYgmGIwGRZDQjjD8 s4Ruab435lFye6a2l7WBB2Gg/sx/W3aWfx1SymkNP2d0oWnnq6fvrhEZ7CoOkGt6 rbUGiwe+VU9V9XGuac5Vamzcn8Z3EWuue2Cmbdp1jHWkcPu9zz2queMx842zYyp3 ZioET4UUY8viWc61oCDJWcQFIwUmlrtK9S0ShiuvZXqPddcyq89QS6xN3QCGEW/b zrbHmaEYb9asiVZ6v+pLvL2ymHQPJsp/NuogHMQ0Y1lo3lCVC87hLOJwUZe99co= =4Cqg -----END PGP SIGNATURE----- --=-=-=--