From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: [BABEL][PROPOSAL] headlines as executable srcnames Date: Mon, 20 Sep 2010 13:09:48 +0530 Message-ID: <81pqw8oocb.fsf@gmail.com> References: <87zkvtn5u7.fsf@mundaneum.com> <81wrqxv1bq.fsf@gmail.com> <87r5h5gwxo.fsf@mundaneum.com> <87iq2huk7u.fsf@gmail.com> <81lj7cyhkq.fsf@gmail.com> <87lj7cz1lh.fsf@gmail.com> <817hiwqk6c.fsf_-_@gmail.com> <81k4mv7wq9.fsf@gmail.com> <81bp86nqv0.fsf@gmail.com> <87r5gpcb9c.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=45618 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oxayo-0002Vb-90 for emacs-orgmode@gnu.org; Mon, 20 Sep 2010 03:40:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oxayn-0001bx-6D for emacs-orgmode@gnu.org; Mon, 20 Sep 2010 03:40:02 -0400 Received: from mail-pz0-f41.google.com ([209.85.210.41]:50266) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oxaym-0001bq-V0 for emacs-orgmode@gnu.org; Mon, 20 Sep 2010 03:40:01 -0400 Received: by pzk26 with SMTP id 26so2911131pzk.0 for ; Mon, 20 Sep 2010 00:39:59 -0700 (PDT) In-Reply-To: <87r5gpcb9c.fsf@gmail.com> (Eric Schulte's message of "Sun, 19 Sep 2010 22:03:11 -0600") 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: Eric Schulte Cc: emacs-orgmode@gnu.org Eric > Hi Jambunathan, > > So, if I'm understanding correctly, what you are proposing includes two > separate things, first, a new link-style syntax for calling code blocks, > and second, the ability to provide un-named arguments to code blocks. > > I'm less sure about expanding link syntax into a means of calling code > blocks. There has been some recent discussion on the list about > expanding link syntax (in fact related to the thread your referenced > below) and my impression was that there is far from unanimous support > for changing the semantics of links in Org-mode. Maybe this would be > appropriate as an optional extension to org, i.e. something in the > contrib directory. > I think I am converging towards having a new 'babel: ' URL scheme. Requests like colorization, inserting version control information etc on export rightfully falls under one-off request and a babel: URL scheme would help achieve all these without any hassles. In 'babel: ' URLs, the 'path' param is likely to contain a call-site (srcname) and key,val pairs (for named params). I think one can use or draw inspiration from standard http URL encoders that posts HTML forms. My ideas are not fully formed and I refine as I go along... Please be tolerant. Jambunathan K. >> ,---- >> | "*Article*" #("From: Vinh Nguyen >> | Subject: Re: text color + highlight >> | Newsgroups: gmane.emacs.orgmode >> | To: emacs-orgmode@gnu.org >> | Date: Thu, 9 Sep 2010 09:15:05 -0700 >> | Message-ID: >> | Archived-At: >> | >> | I'd like to write a concluding email for this thread for future >> | searchers to find. This easy solution is brought to you by Eric >> | Schulte and Christian Moe. >> | >> | Place the following in your .emacs or init.el file: >> | ;; org-mode color >> | (org-add-link-type >> | \"color\" nil >> | (lambda (path desc format)p >> | (cond >> | ((eq format 'html) >> | (format \"%s\" path desc)) >> | ((eq format 'latex) >> | (format \"{\\\\color{%s}%s}\" path desc))))) >> | ;; org-mode highlight >> | (org-add-link-type >> | \"hl\" nil >> | (lambda (path desc format) >> | (cond >> | ((eq format 'html) >> | (format \"%s\" path desc)) >> | ((eq format 'latex) >> | (format \"\\\\colorbox{%s}{%s}\" path desc))))) ;; require \\usepackage{color} >> | >> | Examples: >> | [[color:blue][test this out]] >> | [[hl:yellow][highlighted text]] >> | >> `----