From: Eric S Fraga <ucecesf@ucl.ac.uk>
To: emacs-orgmode@gnu.org
Subject: problem evaluating src block on file opening
Date: Fri, 25 Aug 2017 14:01:56 +0100 [thread overview]
Message-ID: <87d17j24b9.fsf@t3610> (raw)
[-- Attachment #1: Type: text/plain, Size: 1317 bytes --]
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
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 194 bytes --]
next reply other threads:[~2017-08-25 13:02 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-25 13:01 Eric S Fraga [this message]
2017-08-25 15:42 ` problem evaluating src block on file opening Berry, Charles
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=87d17j24b9.fsf@t3610 \
--to=ucecesf@ucl.ac.uk \
--cc=emacs-orgmode@gnu.org \
/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).