emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Berry, Charles" <ccberry@ucsd.edu>
To: Eric S Fraga <ucecesf@ucl.ac.uk>
Cc: org-mode mailing list <emacs-orgmode@gnu.org>
Subject: Re: problem evaluating src block on file opening
Date: Fri, 25 Aug 2017 15:42:26 +0000	[thread overview]
Message-ID: <9E10731C-D1AC-4EE9-AA0F-4839D70AE165@ucsd.edu> (raw)
In-Reply-To: <87d17j24b9.fsf@t3610>


> On Aug 25, 2017, at 6:01 AM, Eric S Fraga <ucecesf@ucl.ac.uk> 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	other threads:[~2017-08-25 15:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-25 13:01 problem evaluating src block on file opening Eric S Fraga
2017-08-25 15:42 ` Berry, Charles [this message]
2017-08-25 20:01   ` Nicolas Goaziou
2017-08-26  8:44     ` Eric S Fraga

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9E10731C-D1AC-4EE9-AA0F-4839D70AE165@ucsd.edu \
    --to=ccberry@ucsd.edu \
    --cc=emacs-orgmode@gnu.org \
    --cc=ucecesf@ucl.ac.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).