From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Error: org-babel-execute-src-block: No org-babel-execute function for conf! Date: Mon, 07 Nov 2016 12:43:14 +0100 Message-ID: <87h97jldm5.fsf@nicolasgoaziou.fr> References: <87pom8ku9p.fsf@nicolasgoaziou.fr> <87lgwvlrc5.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47747) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c3iKY-0002I6-Ud for emacs-orgmode@gnu.org; Mon, 07 Nov 2016 06:43:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c3iKX-0005pT-Si for emacs-orgmode@gnu.org; Mon, 07 Nov 2016 06:43:14 -0500 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:60729) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c3iKX-0005p3-MQ for emacs-orgmode@gnu.org; Mon, 07 Nov 2016 06:43:13 -0500 In-Reply-To: (Xebar Saram's message of "Mon, 7 Nov 2016 09:10:18 +0200") 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 Cc: org mode 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