From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eike Subject: Re: [PATCH] ob-core: check argument to goto-char Date: Sat, 30 Apr 2016 23:40:05 +0200 Message-ID: <87a8kaai8a.fsf@eknet.org> References: <87d1p79x17.fsf@eknet.org> <87bn4r9bms.fsf@eknet.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54878) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1awccm-000654-FE for emacs-orgmode@gnu.org; Sat, 30 Apr 2016 17:40:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1awcca-0005yw-Po for emacs-orgmode@gnu.org; Sat, 30 Apr 2016 17:40:23 -0400 Received: from eknet.org ([188.40.107.134]:36061) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1awcca-0005ux-K5 for emacs-orgmode@gnu.org; Sat, 30 Apr 2016 17:40:16 -0400 In-reply-to: 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: "Charles C. Berry" Cc: emacs-orgmode Charles C. Berry writes: > The easiest way to borrow babel tools is to use babel to execute src > blocks directly. Here is a start. Run this src block to define a function > `insert-quoted-list-as-result': > > #+BEGIN_SRC emacs-lisp > (defun insert-quoted-list-as-result (my-list) > (save-excursion > (insert > (format > "#+BEGIN_SRC emacs-lisp\n '%S\n#+END_SRC\n\n" my-list)) > (let ((org-confirm-babel-evaluate nil)) > (org-babel-execute-src-block))) > (delete-region (point) > (org-babel-where-is-src-block-result))) > #+END_SRC > Oh I see. It is more complicated than I hoped. Thanks, Eike -- gpg: AD7AC35E finger print: 137F BB0B 1639 D25F DC5D E59C B412 C5F5 AD7A C35E