From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marco Wahl Subject: Re: [PATCH] org-babel-goto-named-src-block bugfix and test Date: Sun, 12 Jun 2016 12:21:15 +0200 Message-ID: <84bn36k8ro.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53480) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bC2WS-0006Bb-Lv for emacs-orgmode@gnu.org; Sun, 12 Jun 2016 06:21:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bC2WO-0004DF-Ff for emacs-orgmode@gnu.org; Sun, 12 Jun 2016 06:21:39 -0400 Received: from plane.gmane.org ([80.91.229.3]:35736) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bC2WO-0004DB-8b for emacs-orgmode@gnu.org; Sun, 12 Jun 2016 06:21:36 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1bC2WM-0006cE-MS for emacs-orgmode@gnu.org; Sun, 12 Jun 2016 12:21:34 +0200 Received: from x5f71a7fa.dyn.telefonica.de ([95.113.167.250]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 12 Jun 2016 12:21:34 +0200 Received: from marcowahlsoft by x5f71a7fa.dyn.telefonica.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 12 Jun 2016 12:21:34 +0200 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 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") instead of (execute-kbd-macro "\M-xorg-babel-goto-named-src-block\ndef\n") ? Best regards, -- Marco Wahl <-> 0x49010A040A3AE6F2