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 <vinhdi...@gmail.com> >> | 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: <aanlktinr_zorpygjpkskyuo6pt1t3-ztotho32fnh...@mail.gmail.com> >> | Archived-At: <http://permalink.gmane.org/gmane.emacs.orgmode/30143> >> | >> | 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 \"<span style=\\\"color:%s;\\\">%s</span>\" 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 \"<font style=\\\"background-color:%s;\\\">%s</font>\" path >> desc)) >> | ((eq format 'latex) >> | (format \"\\\\colorbox{%s}{%s}\" path desc))))) ;; require >> \\usepackage{color} >> | >> | Examples: >> | [[color:blue][test this out]] >> | [[hl:yellow][highlighted text]] >> | >> `---- _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode