From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Holst Thomas (DGS-EC/EHM2)" Subject: [org-plot] org-plot dosesn't catch options from #+PLOT: line if line does not start at column 0 Date: Mon, 1 Mar 2010 10:12:23 +0100 Message-ID: <23C69956B336A746BD3E1CD955C7A699443530D185@SI-MBX03.de.bosch.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nm1le-00067z-Pc for emacs-orgmode@gnu.org; Mon, 01 Mar 2010 04:18:22 -0500 Received: from [140.186.70.92] (port=53922 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nm1le-00066D-11 for emacs-orgmode@gnu.org; Mon, 01 Mar 2010 04:18:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nm1ld-0000EF-2G for emacs-orgmode@gnu.org; Mon, 01 Mar 2010 04:18:21 -0500 Received: from imta1.fe.bosch.de ([139.15.238.164]:38806) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nm1lc-0000E1-PZ for emacs-orgmode@gnu.org; Mon, 01 Mar 2010 04:18:21 -0500 Received: from smtp2-v.fe.bosch.de (smtp2-v.fe.bosch.de [139.15.237.6]) by imta1.fe.bosch.de (Postfix) with ESMTP id B565CD0E9F for ; Mon, 1 Mar 2010 10:12:29 +0100 (CET) Received: from vsmta4.fe.internet.bosch.com (unknown [10.4.98.30]) by imta5.fe.bosch.de (Postfix) with ESMTP id 7231D140083 for ; Mon, 1 Mar 2010 10:12:26 +0100 (CET) Received: from fe-imc01.de.bosch.com (vsgw4.fe.internet.bosch.com [10.4.98.12]) by vsmta4.fe.internet.bosch.com (Postfix) with ESMTP id 58BB9C021C for ; Mon, 1 Mar 2010 10:12:26 +0100 (CET) Content-Language: de-DE 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: "emacs-orgmode@gnu.org" Hello, today I found out, that org-plot recocnises #+PLOT: lines only when they st= art at column 0. Most of my tables are indented. So org-plot didn't catch t= he options. Below is a patch which fixes this. The patch is against org-mod= e 6.34trans from this morning. I would like to take the oportunity to thank Carsten for marvelous org-mode= and Eric for org-plot. They both make working with my computers a lot easi= er!! Org-mode really changed the way I organize my work. ---%x-------------------- cut here ------------------------x%--------------= - --- org-plot.el 2010-03-01 02:00:15.000000000 +0100 +++ c:/daten/users/DE_hts2fe/emacs/OrgMode/org-mode-aktuell/lisp/org-plot.e= l 2010-03-01 10:02:33.934355700 +0100 @@ -301,7 +301,7 @@ (setf table (delq 'hline (cdr table)))) ;; clean non-data from tabl= e ;; collect options (save-excursion (while (and (equal 0 (forward-line -1)) - (looking-at "#\\+")) + (looking-at "[[:space:]].#\\+")) (setf params (org-plot/collect-options params)))) ;; dump table to datafile (very different for grid) (case (plist-get params :plot-type) ---%x-------------------- cut here ------------------------x%--------------= - Mit freundlichen Gr=FC=DFen / Best regards Thomas