emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] problem evaluating src block on file opening


From: Berry, Charles
Subject: Re: [O] problem evaluating src block on file opening
Date: Fri, 25 Aug 2017 15:42:26 +0000

> On Aug 25, 2017, at 6:01 AM, Eric S Fraga <address@hidden> wrote:
> 
> Hello,
> 
> Long story short: org-babel-goto-named-src-block does not seem to work,
> at least since b862c24b9f or thereabouts?  
> 


Confirmed on my setup. 

Here is an ECM. Always goes to the first block.

        
--8<---------------cut here---------------start------------->8---

#+BEGIN_SRC emacs-lisp
"gotcha"
#+END_SRC

#+NAME: startup
#+BEGIN_SRC emacs-lisp :results value
1
#+END_SRC

#+begin_src emacs-lisp
  (defun esf/execute-startup-block ()
    (interactive)
    (org-babel-goto-named-src-block "startup")
    (org-babel-execute-src-block))
#+end_src 
--8<---------------cut here---------------end--------------->8---


Chuck





reply via email to

[Prev in Thread] Current Thread [Next in Thread]