emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Error: org-babel-execute-src-block: No org-babel-execute function for conf!
@ 2016-11-06 13:20 Xebar Saram
  2016-11-07  0:28 ` Nicolas Goaziou
  0 siblings, 1 reply; 7+ messages in thread
From: Xebar Saram @ 2016-11-06 13:20 UTC (permalink / raw)
  To: org mode

[-- Attachment #1: Type: text/plain, Size: 1272 bytes --]

Hi all

I have my dot files in orgmode format and have been using it for a year or
so with great success. today i noticed that code block (conf blocks) that i
used to tangle recursively have stopped working and i get this error

org-babel-execute-src-block: No org-babel-execute function for conf!


this is an example of how the code block looks


*** sxhkd
    :PROPERTIES:
    :ID:       781eaed4-2ce8-49ff-9516-b84de52cfaab
    :tangle:   ~/.config/sxhkd/sxhkdrc
    :END:
https://github.com/baskerville/sxhkd
**** X system
     :PROPERTIES:
     :ID:       4a3ed3e0-fdf8-4fd1-bc2b-2ab87cae3633
     :END:
#+BEGIN_SRC conf
 ################################################################
######## X/SYSTEM
################################################################

#xkill
control+alt+super+x
xkill

#touchpad on/off
control+alt+super + t
   /home/zeltak/bin/trackpad-toggle.sh


#suspend
control+alt+super + s
 systemctl suspend


#gpaste
shift+control+Insert
       /home/zeltak/bin/roficlip.sh
#         copyq menu
#         copyq show


#brighntess
XF86MonBrightnessUp
xbacklight -inc 10 # increase screen brightness

XF86MonBrightnessDown
xbacklight -dec 10 # decrease screen brightness



#+END_SRC


any one knows whats changed with latest org?

best

Z

[-- Attachment #2: Type: text/html, Size: 2417 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Error: org-babel-execute-src-block: No org-babel-execute function for conf!
  2016-11-06 13:20 Error: org-babel-execute-src-block: No org-babel-execute function for conf! Xebar Saram
@ 2016-11-07  0:28 ` Nicolas Goaziou
  2016-11-07  6:06   ` Xebar Saram
  0 siblings, 1 reply; 7+ messages in thread
From: Nicolas Goaziou @ 2016-11-07  0:28 UTC (permalink / raw)
  To: Xebar Saram; +Cc: org mode

Hello,

Xebar Saram <zeltakc@gmail.com> writes:

> I have my dot files in orgmode format and have been using it for a year or
> so with great success. today i noticed that code block (conf blocks) that i
> used to tangle recursively have stopped working and i get this error
>
> org-babel-execute-src-block: No org-babel-execute function for conf!
>
>
> this is an example of how the code block looks
>
>
> *** sxhkd
>     :PROPERTIES:
>     :ID:       781eaed4-2ce8-49ff-9516-b84de52cfaab
>     :tangle:   ~/.config/sxhkd/sxhkdrc
>     :END:
> https://github.com/baskerville/sxhkd
> **** X system
>      :PROPERTIES:
>      :ID:       4a3ed3e0-fdf8-4fd1-bc2b-2ab87cae3633
>      :END:
>

[...]

> any one knows whats changed with latest org?

According to the release notes, "Incompatible changes" section,

  *** Old Babel header properties are no longer supported

  Using header arguments as property names is no longer possible.  As
  such, the following

  #+BEGIN_EXAMPLE
  ,* Headline
  :PROPERTIES:
  :exports: code
  :var: a=1 b=2
  :var+: c=3
  :END:
  #+END_EXAMPLE

  should be written instead

  #+BEGIN_EXAMPLE
  ,* Headline
  :PROPERTIES:
  :header-args: :exports code
  :header-args: :var a=1 b=2
  :header-args+: :var c=3
  :END:
  #+END_EXAMPLE


Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Error: org-babel-execute-src-block: No org-babel-execute function for conf!
  2016-11-07  0:28 ` Nicolas Goaziou
@ 2016-11-07  6:06   ` Xebar Saram
  2016-11-07  6:46     ` Nicolas Goaziou
  0 siblings, 1 reply; 7+ messages in thread
From: Xebar Saram @ 2016-11-07  6:06 UTC (permalink / raw)
  To: Xebar Saram, org mode

[-- Attachment #1: Type: text/plain, Size: 740 bytes --]

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:

org-babel-execute-src-block: No org-babel-execute function for conf!

is my syntax wrong?

best and thx again

Z

[-- Attachment #2: Type: text/html, Size: 1941 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Error: org-babel-execute-src-block: No org-babel-execute function for conf!
  2016-11-07  6:06   ` Xebar Saram
@ 2016-11-07  6:46     ` Nicolas Goaziou
  2016-11-07  7:10       ` Xebar Saram
  0 siblings, 1 reply; 7+ messages in thread
From: Nicolas Goaziou @ 2016-11-07  6:46 UTC (permalink / raw)
  To: Xebar Saram; +Cc: org mode

Hello,

Xebar Saram <zeltakc@gmail.com> 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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Error: org-babel-execute-src-block: No org-babel-execute function for conf!
  2016-11-07  6:46     ` Nicolas Goaziou
@ 2016-11-07  7:10       ` Xebar Saram
  2016-11-07 11:43         ` Nicolas Goaziou
  0 siblings, 1 reply; 7+ messages in thread
From: Xebar Saram @ 2016-11-07  7:10 UTC (permalink / raw)
  To: Xebar Saram, org mode

[-- Attachment #1: Type: text/plain, Size: 1917 bytes --]

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 <mail@nicolasgoaziou.fr>
wrote:

> Hello,
>
> Xebar Saram <zeltakc@gmail.com> 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
>

[-- Attachment #2: Type: text/html, Size: 2845 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Error: org-babel-execute-src-block: No org-babel-execute function for conf!
  2016-11-07  7:10       ` Xebar Saram
@ 2016-11-07 11:43         ` Nicolas Goaziou
  2016-11-07 14:12           ` Xebar Saram
  0 siblings, 1 reply; 7+ messages in thread
From: Nicolas Goaziou @ 2016-11-07 11:43 UTC (permalink / raw)
  To: Xebar Saram; +Cc: org mode

Hello,

Xebar Saram <zeltakc@gmail.com> 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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Error: org-babel-execute-src-block: No org-babel-execute function for conf!
  2016-11-07 11:43         ` Nicolas Goaziou
@ 2016-11-07 14:12           ` Xebar Saram
  0 siblings, 0 replies; 7+ messages in thread
From: Xebar Saram @ 2016-11-07 14:12 UTC (permalink / raw)
  To: Xebar Saram, org mode

[-- Attachment #1: Type: text/plain, Size: 1402 bytes --]

got it it works now, thx so much!

Z

On Mon, Nov 7, 2016 at 1:43 PM, Nicolas Goaziou <mail@nicolasgoaziou.fr>
wrote:

> Hello,
>
> Xebar Saram <zeltakc@gmail.com> 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
>

[-- Attachment #2: Type: text/html, Size: 2085 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-11-07 14:12 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-06 13:20 Error: org-babel-execute-src-block: No org-babel-execute function for conf! Xebar Saram
2016-11-07  0:28 ` Nicolas Goaziou
2016-11-07  6:06   ` Xebar Saram
2016-11-07  6:46     ` Nicolas Goaziou
2016-11-07  7:10       ` Xebar Saram
2016-11-07 11:43         ` Nicolas Goaziou
2016-11-07 14:12           ` Xebar Saram

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).