From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adam Subject: Re: novice - inline src ? Date: Wed, 3 Nov 2010 17:47:50 +1300 Message-ID: <201011031747.51570.ahcnz@ihug.co.nz> References: <201011031535.00063.ahcnz@ihug.co.nz> <20101103032336.GA15160@soloJazz.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=59921 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PDVEv-0007Wb-5J for Emacs-orgmode@gnu.org; Wed, 03 Nov 2010 00:46:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PDVEt-00083g-RX for Emacs-orgmode@gnu.org; Wed, 03 Nov 2010 00:46:25 -0400 Received: from mailfilter1.ihug.co.nz ([203.109.136.1]:27789 helo=mailfilter65.ihug.co.nz) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PDVEt-00083V-Gi for Emacs-orgmode@gnu.org; Wed, 03 Nov 2010 00:46:23 -0400 In-Reply-To: <20101103032336.GA15160@soloJazz.com> Content-Disposition: inline List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Emacs-orgmode@gnu.org On Wednesday 03 November 2010 04:23 pm, you wrote: > On Wed, Nov 03, 2010 at 03:34:58PM +1300, Adam wrote: > > Am a novice, and just trying my first src emacs lisp. > > Can a results output be included in the middle of a line of text ? > > Hi, > > Yo can include inline code blocks thus: > > The date today is src_emacs-lisp{(format-time-string "%a %e %b %Y ")}. > > The complete format is: > > src_lang[optional header arguments]{code body} > > Check the following message on the mailing list: > > Date: Tue, 03 Aug 2010 11:44:14 -0600 = =20 > From: Eric > Schulte = =20 > Subject: Re: [Orgmode] Babel - > display results in an overlay? > > > Also, is there a switch on setting to avoid the > > "Evaluate this Lisp code on your system? (yes or no)" > > questions being asked at export - to always answer yes to this ? > > Customize the following variable to nil: > > org-confirm-babel-evaluate > > Regards, > .j. Great. Thank you.=20 However in the example I gave, copied below, when I set=20 "org-confirm-babel-evaluate" to nil, I get the error message =20 "Symbol's function definition is void: pt " If "org-confirm-babel-evaluate" is t I get the normal confirm dialogue.= =20 Am using Org-mode version 7.01h GNU Emacs 23.1.1 * test #+begin_src emacs-lisp :exports results =A0 (format-time-string "%a %e %b %Y ") #+end_src #+begin_src emacs-lisp :exports none (defun pt () =A0 (format-time-string "%a %e %b %Y ")) #+end_src The quick brown fox jumps=20 #+begin_src emacs-lisp :exports results =A0 (pt) #+end_src over the lazy dog.