From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xebar Saram Subject: Re: Error: org-babel-execute-src-block: No org-babel-execute function for conf! Date: Mon, 7 Nov 2016 09:10:18 +0200 Message-ID: References: <87pom8ku9p.fsf@nicolasgoaziou.fr> <87lgwvlrc5.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1148b3486178890540b0b75a Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44789) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c3e4S-00057X-GD for emacs-orgmode@gnu.org; Mon, 07 Nov 2016 02:10:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c3e4R-0002Zq-73 for emacs-orgmode@gnu.org; Mon, 07 Nov 2016 02:10:20 -0500 Received: from mail-yb0-x22f.google.com ([2607:f8b0:4002:c09::22f]:36049) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c3e4R-0002ZS-10 for emacs-orgmode@gnu.org; Mon, 07 Nov 2016 02:10:19 -0500 Received: by mail-yb0-x22f.google.com with SMTP id v78so50519879ybe.3 for ; Sun, 06 Nov 2016 23:10:19 -0800 (PST) In-Reply-To: <87lgwvlrc5.fsf@nicolasgoaziou.fr> 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" To: Xebar Saram , org mode --001a1148b3486178890540b0b75a Content-Type: text/plain; charset=UTF-8 Hi and thx again Sorry for not being clearer. im trying to tangle not the whole file (which i think is what org-babel-tangle does) but a specific header with all sub headers associated with it (they all create one file). after reading the org documentation at the time i created this function (defun z/org-tangle-at-block () (interactive) (let ((current-prefix-arg '(16))) (call-interactively #'org-babel-tangle))) so following the previous code blocks example, I previously went to the **** main i3 conf header and then issued the function z/org-tangle-at-block which would tangle all sub header and blocks to one file ( ~/.i3/config). when i try now to run the function i get the user-error: Point is not in a source code block really appreciate your help since currently all my dotfile system is broken :) best Z On Mon, Nov 7, 2016 at 8:46 AM, Nicolas Goaziou wrote: > Hello, > > Xebar Saram writes: > > > thx Nicolas for the answer. > > > > im still having issues getting this to work > > > > here is my modified example > > > > **** main i3 conf > > :PROPERTIES: > > :ID: f17b5518-2695-4484-a958-2fc7b8aa2479 > > :header-args: :tangle ~/.i3/config > > :END: > > mod is win key and mod1 is alt key in below config > > ***** General definitions > > :PROPERTIES: > > :ID: 97fcf6e4-a81d-4fe8-badc-6a9b48668ec2 > > :END: > > > > #+BEGIN_SRC conf > > # i3 general settings > > #set variable names > > set $mod Mod4 > > # Use Mouse+$mod to drag floating windows to their wanted position > > floating_modifier $mod > > #+END_SRC > > > > > > yet when i try to tangle recursively i get: > > I don't know what is to "tangle recursively", but calling > `org-babel-tangle' on the document above succeeds here. > > Regards, > > -- > Nicolas Goaziou > --001a1148b3486178890540b0b75a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi and thx again
Sorry for not being clearer. im tryin= g to tangle not the whole file (which i think is what org-babel-tangle does= ) but a specific header with all sub headers associated with it (they all c= reate one file). after reading the org documentation at the time i created = this function

(defun z/org-tangle-at-block = =C2=A0()
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0(interactive) =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0(let ((current-prefix-arg '(16))) =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0=C2=A0
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(call-interactively #'org-babel-t= angle)))

so following the previous code blocks example, I pr= eviously =C2=A0went to the **** main i3 conf header and then issued the fun= ction =C2=A0z/org-tangle-at-block which would tangle all sub header and blo= cks to one file ( ~/.i3/config).
when i try now to run the function i g= et the

user-error: Point is not in a source code block


r= eally appreciate your help since currently all my dotfile system is broken = :)

best

Z

On Mon, Nov 7, 2016 at 8:46 AM, Nicolas Goaziou <mail@nic= olasgoaziou.fr> wrote:
Hello,

Xebar Saram <zeltakc@gmail.com&= gt; writes:

> thx Nicolas for the answer.
>
> im still having issues getting this to work
>
> here is my modified example
>
> **** main i3 conf
>=C2=A0 =C2=A0 =C2=A0 :PROPERTIES:
>=C2=A0 =C2=A0 =C2=A0 :ID:=C2=A0 =C2=A0 =C2=A0 =C2=A0f17b5518-2695-4484-= a958-2fc7b8aa2479
>=C2=A0 =C2=A0 =C2=A0 :header-args: :tangle=C2=A0 =C2=A0~/.i3/config
>=C2=A0 =C2=A0 =C2=A0 :END:
> mod is win key and mod1 is alt key in below config
> ***** General definitions
>=C2=A0 =C2=A0 =C2=A0 =C2=A0:PROPERTIES:
>=C2=A0 =C2=A0 =C2=A0 =C2=A0:ID:=C2=A0 =C2=A0 =C2=A0 =C2=A097fcf6e4-a81d= -4fe8-badc-6a9b48668ec2
>=C2=A0 =C2=A0 =C2=A0 =C2=A0:END:
>
> #+BEGIN_SRC conf
> # i3 general settings
> #set variable names
> set $mod Mod4
> # Use Mouse+$mod to drag floating windows to their wanted position
> floating_modifier $mod
> #+END_SRC
>
>
> yet when i try to tangle recursively i get:

I don't know what is to "tangle recursively", but call= ing
`org-babel-tangle' on the document above succeeds here.

Regards,

--
Nicolas Goaziou

--001a1148b3486178890540b0b75a--