From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: problem evaluating src block on file opening Date: Fri, 25 Aug 2017 14:01:56 +0100 Message-ID: <87d17j24b9.fsf@t3610> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59902) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dlEFS-0004Zh-4a for emacs-orgmode@gnu.org; Fri, 25 Aug 2017 09:02:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dlEFO-0002j2-7N for emacs-orgmode@gnu.org; Fri, 25 Aug 2017 09:02:06 -0400 Received: from mail-db5eur01on0136.outbound.protection.outlook.com ([104.47.2.136]:13174 helo=EUR01-DB5-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dlEFN-0002i1-SJ for emacs-orgmode@gnu.org; Fri, 25 Aug 2017 09:02:02 -0400 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: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Hello, Long story short: org-babel-goto-named-src-block does not seem to work, at least since b862c24b9f or thereabouts? If I evaluate this command interactively, it sends me to a #+begin_quote line in my file! Org up to date. I haven't tried a minimal example yet but will do so if this doesn't ring any bells! I noticed the failure because I upgraded org which I had not done in a while and my startup babel blocks no longer work; these are blocks that are evaluated when I visit an org file via the following code: #+begin_src emacs-lisp (defun esf/execute-startup-block () (interactive) (org-babel-goto-named-src-block "startup") (org-babel-execute-src-block)) #+end_src The evaluation of org-babel-execute-src-block fails because the previous line did not place point at a src block! The error returned by the last line is very strange as well: ,---- | Debugger entered--Lisp error: (wrong-type-argument consp nil) | org-babel-execute-src-block() | esf/execute-startup-block() | eval((esf/execute-startup-block)) | hack-one-local-variable(eval (esf/execute-startup-block)) | hack-local-variables-apply() | hack-local-variables(no-mode) | run-mode-hooks(org-mode-hook) | org-mode() `---- Thanks, eric -- : Eric S Fraga via Emacs 26.0.50, Org release_9.0.9-796-gbae41a --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQSPXCedOQfhSlwpVw3IkZPY//z2fQUCWaAfxAAKCRDIkZPY//z2 fSIkAJ9aoCq7VXlUdRLvSPac7ycoxqNM5ACeMazws1P2paxzpbVNgHEmQQDyueU= =PW2y -----END PGP SIGNATURE----- --=-=-=--