On Sun, 12 Jun 2016, Marco Wahl wrote:
The following message is a courtesy copy of an article
that has been posted to gmane.emacs.orgmode as well.
Hi Charles,
[...]
The test uses lines like:
(execute-kbd-macro "\M-xorg-babel-goto-named-src-block\n\n")
to emulate interactive usage.
This feels like a hack, and the messages generated spill into my
*shell* buffer when I run `make test'. If there is a cleaner way to
do this, I'd like to know it.
WDYT?
Why not just use e.g.
(org-babel-goto-named-src-block "def")
Because that does not test the `(interactive ...)' form, which comprises
most of the code in `org-babel-goto-named-src-block'.
Chuck