From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Standardized code block syntax and Property Accumulation merged into Master Date: Tue, 15 Nov 2011 08:58:43 -0700 Message-ID: <877h31nzrg.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:37363) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RQLZL-000091-77 for emacs-orgmode@gnu.org; Tue, 15 Nov 2011 11:09:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RQLZG-0000Nz-Hg for emacs-orgmode@gnu.org; Tue, 15 Nov 2011 11:09:07 -0500 Received: from mail-yx0-f169.google.com ([209.85.213.169]:56809) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RQLPM-0007So-1g for emacs-orgmode@gnu.org; Tue, 15 Nov 2011 10:58:48 -0500 Received: by yenm10 with SMTP id m10so4583468yen.0 for ; Tue, 15 Nov 2011 07:58:47 -0800 (PST) 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: Org Mode Hi, The standard-code-block-syntax branch has been merged into the master branch of the git repository. This brings two much discussed changes to Org-mode, first a standard set of keywords for code blocks and second the ability to accumulate properties by appending a "+" to the end of the property name. For much more information on both of these changes see the relevant commits [1] and [2] respectively. A function for updating existing Org-mode files to use the new standardized code block keywords is inline below [3], additionally I've updated my collection of Org-mode code block scraps [4]. Thanks to Tom Dye the documentation has been updated to reflect these change. All tests are passing after this merge. Cheers -- Eric Footnotes: [1] http://orgmode.org/w/?p=org-mode.git;a=commit;h=7e93b90f8816346a16ad49cee22870b17c05b211 [2] http://orgmode.org/w/?p=org-mode.git;a=commit;h=3af89e696a32afcc39f2e3bdb6132ac588d530ae [3] Function to update Org-mode buffers to use the new code block syntax. (defun update-org-buffer () "Update an Org-mode buffer to the new data, code block and call line syntax." (interactive) (save-excursion (flet ((to-re (lst) (concat "^[ \t]*#\\+" (regexp-opt lst t) "\\(\\[\\([[:alnum:]]+\\)\\]\\)?\\:[ \t]*")) (update (re new) (goto-char (point-min)) (while (re-search-forward re nil t) (replace-match new nil nil nil 1)))) (let ((old-re (to-re '("RESULTS" "DATA" "SRCNAME" "SOURCE"))) (lob-re (to-re '("LOB"))) (case-fold-search t)) (update old-re "name") (update lob-re "call"))))) [4] http://eschulte.github.com/org-scraps/ -- Eric Schulte http://cs.unm.edu/~eschulte/