From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: [RFC] Standardized code block keywords Date: Tue, 25 Oct 2011 08:44:56 -0600 Message-ID: <87ipnd3zbr.fsf@gmail.com> References: <87pqhrih3s.fsf@gmail.com> <80obx6vniu.fsf@somewhere.org> <87vcrdyfhy.fsf@gmail.com> <201110250914.29233.DanielBausch@gmx.de> <80zkgptrm0.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:59312) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RIiFe-0005Ww-AL for emacs-orgmode@gnu.org; Tue, 25 Oct 2011 10:45:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RIiFU-0002DQ-J2 for emacs-orgmode@gnu.org; Tue, 25 Oct 2011 10:45:14 -0400 Received: from mail-pz0-f47.google.com ([209.85.210.47]:39863) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RIiFU-0002D6-9q for emacs-orgmode@gnu.org; Tue, 25 Oct 2011 10:45:04 -0400 Received: by pzd13 with SMTP id 13so1630531pzd.6 for ; Tue, 25 Oct 2011 07:45:03 -0700 (PDT) In-Reply-To: <80zkgptrm0.fsf@somewhere.org> (Sebastien Vauban's message of "Tue, 25 Oct 2011 10:14:47 +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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Sebastien Vauban Cc: emacs-orgmode@gnu.org Alright, I've tallied up the results and we have the following (with full voting information below [1]). Call lines | call | 13 | It seems unanimous that remote code block calls should use the #+call: syntax moving forward. Data and result names | (name results) | 3 | | name | 2 | | (data results) | 2 | | (object results) | 1 | | data | 1 | | object | 1 | The Data and result name lines were less straightforward, but I think the best solution which also seems to be the majority opinion will be to allow #+name: lines to be used to name results, and in the case of results of un-named code blocks a #+results: line will be used. It will also be necessary to allow usage of #+tblname: for as long as this syntax is used to name tables for Org-mode spreadsheet formulas. Code block names | srcname | 5 | | name | 4 | | source | 3 | | src | 1 | Surprisingly (to me) srcname is the winner here, but luckily I haven't yet voted, and although I would have though #+source: would have been the winner I like the simplicity of using #+name: for named code blocks as well as named data. So I'll vote for #+name: here making it a tie, and I'll also take tie-breaking powers upon myself giving #+name: the win. I hope to put together an implementation of this change soon. Cheers -- Eric Footnotes: [1] ** eliminate synonyms #+tblname: code-block-names | source | dye | | srcname | dokos | | srcname | moe | | srcname | vauban | | srcname | wagner | | name | goaziou | | srcname | thorsten | | source | rosenfeld | | name | bausch | | source | malone | | name | moreira | | name | fraga | | src | krug | #+tblname: call-lines | call | dye | | call | dokos | | call | moe | | call | vauban | | call | wagner | | call | goaziou | | call | thorsten | | call | rosenfeld | | call | bausch | | call | malone | | call | moreira | | call | fraga | | call | krug | #+tblname: data-names | object | dye | | (data results) | wagner | | name | goaziou | | (data results) | rosenfeld | | (name results) | bausch | | data | malone | | name | moreira | | (name results) | fraga | | (object results) | krug | | (name results) | vauban | #+begin_src emacs-lisp :var data=call-lines (mapcar (lambda (el) (list (car el) (cdr el))) (reduce (lambda (acc vote) (cons (cons vote (+ 1 (or (cdr (assoc vote acc)) 0))) (remove-if (lambda (pair) (equal (car pair) vote)) acc))) (mapcar #'car data) :initial-value ())) #+end_src Call lines | call | 13 | Data and result names | (name results) | 3 | | name | 2 | | (data results) | 2 | | (object results) | 1 | | data | 1 | | object | 1 | Code block names | srcname | 5 | | name | 4 | | source | 3 | | src | 1 | -- Eric Schulte http://cs.unm.edu/~eschulte/