emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] [PATCH] org-babel-goto-named-src-block bugfix and test


From: Charles C. Berry
Subject: Re: [O] [PATCH] org-babel-goto-named-src-block bugfix and test
Date: Sun, 12 Jun 2016 09:05:28 -0700
User-agent: Alpine 2.20 (OSX 67 2015-01-07)

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





reply via email to

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