From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer M Krug Subject: [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 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]:41109) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLAzr-0007cg-OM for emacs-orgmode@gnu.org; Tue, 10 Feb 2015 08:37:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YLAzm-00088k-Lb for emacs-orgmode@gnu.org; Tue, 10 Feb 2015 08:36:59 -0500 Received: from mail-wg0-f51.google.com ([74.125.82.51]:45498) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLAzm-00088Y-Fh for emacs-orgmode@gnu.org; Tue, 10 Feb 2015 08:36:54 -0500 Received: by mail-wg0-f51.google.com with SMTP id y19so500678wgg.10 for ; Tue, 10 Feb 2015 05:36:53 -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 fo17sm20810708wjc.19.2015.02.10.05.36.51 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 10 Feb 2015 05:36:52 -0800 (PST) In-Reply-To: (Rainer M. Krug's message of "Tue, 10 Feb 2015 13:22:05 +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 To: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable 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 writes: > 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) iQEcBAEBAgAGBQJU2glxAAoJENvXNx4PUvmC2I0H/1Lt2MUIT5SUO1U1M4xpOZYX y+pn6lGQ/NX7sTjnYdYK6x6qHq1zKU4+tll1euALeIYsClAOSVPLmb/7gFo1ZFjc y1wMGe55Il13ngpJ/yefNRV5Dh//G34/vBjklJqzdh1l1v01Onp0uJb97uZeqIQy m6n4gKDIdOYlwNRJbqrrv0EPAyHXgiJslCE5EHMA3Bt7xuczCvPw0koKpWQJPQ0u Ca4CtlGkuPN38jnXLdAgeptogqcrvxUvlQsSZa+wtuFz2df8ZnYP9q8cweOa42uV x7+TjQEiREZRalMNhE8mBvL1VEww1jrEph84YIAXF2GKizd0/zFHPQX3pALiK4o= =/XpK -----END PGP SIGNATURE----- --=-=-=--