From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Disable org-babel-inline-result-wrap per inline code? Date: Wed, 21 Sep 2016 10:11:26 -0400 Message-ID: <878tul2vht.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48531) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmiFl-0007Qh-VQ for emacs-orgmode@gnu.org; Wed, 21 Sep 2016 10:12:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bmiFi-0000h0-MG for emacs-orgmode@gnu.org; Wed, 21 Sep 2016 10:12:01 -0400 Received: from [195.159.176.226] (port=50137 helo=blaine.gmane.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmiFi-0000g6-Fg for emacs-orgmode@gnu.org; Wed, 21 Sep 2016 10:11:58 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1bmiFT-0006OF-Jj for emacs-orgmode@gnu.org; Wed, 21 Sep 2016 16:11:43 +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 "David A. Gershman" writes: > Forgive my several questions/emails.  I'm working on getting lecture > notes ready for next week and thus am running into several questions > with Org HTML Export.  Unfortunately, my searches typically result > in manual page hits, but my problems seem to be a-typical.  So... > > Given the following line: > > * Date: src_perl[:results output :exports none]{print 2016;} > > The result '2016' is surrounded by '=' so that HTML export results > in tags surrounding the '2016'.  > I think that should be :exports results, not none. > According to the manual section 14.5, 'org-babel-inline-result-wrap' > defines how the results are wrapped.  Executing a (print > org-babel-inline-result-wrap), I get: > >     {blank line} >     =%s= >     =%s= > C-h v org-babel-inline-result-wrap says that it has to have a %s in it: you can't just set it to "". > so I attempted the following: > >   * Date: src_emacs-lisp[:exports none]{(setq org-babel-inline-result-wrap "")} src_perl[:results output :exports none]{print 2016;} src_emacs-lisp[:exports none]{(setq > org-babel-inline-result-wrap "=%s=")} > OTOH, modifying your attempt a bit to conform to the above did not work for me either: * Date: src_emacs-lisp[:exports none :results none ]{(setq org-babel-inline-result-wrap "%s")} src_perl[:results output :exports results]{print 2016;} src_emacs-lisp[:exports none :results none]{(setq org-babel-inline-result-wrap "=%s=")} still gives me the tags. When I C-c C-c by hand on the lisp src blocks, the variable does change value, so I don't understand why putting the whole thing together does not work. > in the hopes of temporarily disabling the '=' wrapping.  Sadly no luck. > > I don't want to globally, or even for the whole buffer turn off the > '=%s='...just on a case-by-case basis. > > Any ideas? > > --dag > > P.S.  In reality, 2016 will be replaced with a function call which > takes an integer and converts it to a full blown date based on a > starting point.  Thus, the headlines will result in "Date: September > 20, 2016" where each date is different based on the integer.  This > will allow me to set the starting date at the top of the .org file > and all the date-based headlines can be computed. > -- Nick