From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Berry, Charles" Subject: Re: problem evaluating src block on file opening Date: Fri, 25 Aug 2017 15:42:26 +0000 Message-ID: <9E10731C-D1AC-4EE9-AA0F-4839D70AE165@ucsd.edu> References: <87d17j24b9.fsf@t3610> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60206) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dlGkl-0001CH-89 for emacs-orgmode@gnu.org; Fri, 25 Aug 2017 11:42:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dlGkg-0005he-9T for emacs-orgmode@gnu.org; Fri, 25 Aug 2017 11:42:35 -0400 Received: from iport-acv8-out.ucsd.edu ([132.239.0.21]:1828) by eggs.gnu.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.71) (envelope-from ) id 1dlGkf-0005gR-Tl for emacs-orgmode@gnu.org; Fri, 25 Aug 2017 11:42:30 -0400 In-Reply-To: <87d17j24b9.fsf@t3610> Content-Language: en-US Content-ID: <3D50298659EA214EBD92D0AB131E7233@AD.UCSD.EDU> 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: Eric S Fraga Cc: org-mode mailing list > On Aug 25, 2017, at 6:01 AM, Eric S Fraga wrote: >=20 > Hello, >=20 > Long story short: org-babel-goto-named-src-block does not seem to work, > at least since b862c24b9f or thereabouts? =20 >=20 Confirmed on my setup.=20 Here is an ECM. Always goes to the first block. =09 --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=20 --8<---------------cut here---------------end--------------->8--- Chuck