[Top][All Lists]

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

[O] problem evaluating src block on file opening

From: Eric S Fraga
Subject: [O] problem evaluating src block on file opening
Date: Fri, 25 Aug 2017 14:01:56 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)


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 ()
    (org-babel-goto-named-src-block "startup")

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()


: Eric S Fraga via Emacs 26.0.50, Org release_9.0.9-796-gbae41a

Attachment: signature.asc
Description: PGP signature

reply via email to

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