From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Conditional link export? Date: Sun, 08 Nov 2015 17:06:04 +0100 Message-ID: <87k2ps79xv.fsf@nicolasgoaziou.fr> References: <87ziyri8lk.fsf@gmail.com> <878u6buupy.fsf@gmail.com> <87d1vmgdt6.fsf@gmail.com> <87fv0hubym.fsf@gmail.com> <874mgwd1mi.fsf@gmail.com> <87h9kw8t1t.fsf@nicolasgoaziou.fr> <87h9kwbkv2.fsf@gmail.com> <871tc08rcc.fsf@nicolasgoaziou.fr> <87mvuoa4gy.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37038) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZvSS5-00050s-97 for emacs-orgmode@gnu.org; Sun, 08 Nov 2015 11:04:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZvSS4-0002SP-AS for emacs-orgmode@gnu.org; Sun, 08 Nov 2015 11:04:21 -0500 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:39729) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZvSS4-0002SJ-3Q for emacs-orgmode@gnu.org; Sun, 08 Nov 2015 11:04:20 -0500 In-Reply-To: <87mvuoa4gy.fsf@gmail.com> (Oleh Krehel's message of "Sun, 08 Nov 2015 16:35:57 +0100") 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Oleh Krehel Cc: emacs-orgmode@gnu.org Oleh Krehel writes: > Nicolas Goaziou writes: > >> The current time is: src_emacs-lisp[:results html]{(format "> href=%S>%s" "http://google.com" (format-time-string "%H:%M"))}. > > This is quite restrictive, since it implies that I want to export to > HTML. What I really want is to insert a raw string, with no further > processing into the export, whatever format the export may have. Then use [:results raw]. This is also in the manual. > I think it's better to have people use !(foo) than to be turned away by > src_emacs-lisp[:results html]{(foo)} and use nothing at all. You don't have to write [:results html] or [:results raw] for every inline block you write. You can set the results per subtree, per document, or globally. So really, it boils down to: src_emacs-lisp{(foo)} You can even define a macro for that #+MACRO: eval src_emacs-lisp[:results raw]{($1)} {{{eval(foo)}}} even less characters. > Besides, Elisp is a very strong library for Org. We could also have > e.g. > > #+INLINE_LANG Elisp > > to set the language for !() in the current document. Again, having duplicate syntax is out of question, IMO. I don't think the current one is hideous either. With all due respect, the fact that you don't like it is really insufficient as a justification for introducing a special alternate syntax. >> Do you want to provide a patch for it? > > I could provide a patch for `org-edit-src-code' to work with !(). I'm > not interested in using the current inline syntax. Too bad, then. Regards,