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 16:12:03 +0200 Message-ID: References: <87pom8ku9p.fsf@nicolasgoaziou.fr> <87lgwvlrc5.fsf@nicolasgoaziou.fr> <87h97jldm5.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=94eb2c0b00a6accad10540b69b26 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38730) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c3keb-0007Es-LS for emacs-orgmode@gnu.org; Mon, 07 Nov 2016 09:12:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c3kea-0005mF-F4 for emacs-orgmode@gnu.org; Mon, 07 Nov 2016 09:12:05 -0500 Received: from mail-yb0-x22b.google.com ([2607:f8b0:4002:c09::22b]:34608) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c3kea-0005ly-AJ for emacs-orgmode@gnu.org; Mon, 07 Nov 2016 09:12:04 -0500 Received: by mail-yb0-x22b.google.com with SMTP id d59so16744004ybi.1 for ; Mon, 07 Nov 2016 06:12:04 -0800 (PST) In-Reply-To: <87h97jldm5.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 --94eb2c0b00a6accad10540b69b26 Content-Type: text/plain; charset=UTF-8 got it it works now, thx so much! Z On Mon, Nov 7, 2016 at 1:43 PM, Nicolas Goaziou wrote: > Hello, > > Xebar Saram writes: > > > 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 > > I don't understand your function. What is the point of the '(16) > argument, according to your needs? From `org-babel-tangle' docstring, > > With two universal prefix arguments, only tangle blocks for the > tangle file of the block at point. > > You need to put point on a source block per above, hence the error you > obtain. > > Regards, > > -- > Nicolas Goaziou > --94eb2c0b00a6accad10540b69b26 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
got it it works now, thx so much!

Z

On Mon, N= ov 7, 2016 at 1:43 PM, Nicolas Goaziou <mail@nicolasgoaziou.fr>= ; wrote:
Hello,
Xebar Saram <zeltakc@gmail.com&= gt; writes:

> Sorry for not being clearer. im trying to tang= le 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 t= he
> 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 (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 (call-interactively #'org-babel-tangle)))
>
> so following the previous code blocks example, I previously=C2=A0 went= to the
> **** main i3 conf header and then issued the function
>=C2=A0 z/org-tangle-at-block which would tangle all sub header and bloc= ks 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

I don't understand your function. What is the point of the '= (16)
argument, according to your needs? From `org-babel-tangle' docstring,
=C2=A0 With two universal prefix arguments, only tangle blocks for the
=C2=A0 tangle file of the block at point.

You need to put point on a source block per above, hence the error you
obtain.

Regards,

--
Nicolas Goaziou

--94eb2c0b00a6accad10540b69b26--