From mboxrd@z Thu Jan 1 00:00:00 1970 From: Miguel Ruiz Subject: Re: org-babel-gnuplot-quote-tsv-field does not work properly (quotes); org-plot-quote-tsv-field does though Date: Sun, 5 Jan 2014 11:46:25 +0000 (GMT) Message-ID: <1388922385.31818.YahooMailNeo@web171306.mail.ir2.yahoo.com> References: <1388911811.36160.YahooMailNeo@web171305.mail.ir2.yahoo.com> Reply-To: Miguel Ruiz Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="-1132928367-2142702275-1388922385=:31818" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33927) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VzmA6-0006Es-UU for emacs-orgmode@gnu.org; Sun, 05 Jan 2014 06:46:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vzm9z-00012x-Pz for emacs-orgmode@gnu.org; Sun, 05 Jan 2014 06:46:34 -0500 Received: from nm37.bullet.mail.ir2.yahoo.com ([212.82.96.62]:46975) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1Vzm9z-00012E-Ch for emacs-orgmode@gnu.org; Sun, 05 Jan 2014 06:46:27 -0500 In-Reply-To: <1388911811.36160.YahooMailNeo@web171305.mail.ir2.yahoo.com> 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: Miguel Ruiz , "emacs-orgmode@gnu.org" ---1132928367-2142702275-1388922385=:31818 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Is it *this* enough:=0A=0Adiff --git a/lisp/ob-gnuplot.el b/lisp/ob-gnuplot= .el=0Aindex cc9186b..426077b 100644=0A--- a/lisp/ob-gnuplot.el=0A+++ b/lisp= /ob-gnuplot.el=0A@@ -253,7 +253,7 @@ then create one.=A0 Return the initial= ized session.=A0 The current=0A=A0=A0=A0=A0=A0=A0=A0 (org-babel-gnuplot-quo= te-timestamp-field s)=0A=A0=A0=A0=A0=A0=A0 (if (zerop (length s))=0A=A0=A0= =A0=A0=A0=A0=A0=A0=A0 (or *org-babel-gnuplot-missing* s)=0A-=A0=A0=A0=A0=A0= =A0 (if (string-match "[ \"]" "?")=0A+=A0=A0=A0=A0=A0=A0 (if (string-match = "[ \"]" s)=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 (concat "\"" (mapconcat 'ide= ntity (split-string s "\"") "\"\"")=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0 "\"")=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0 s)))))=0A=0A=0AIt= works for me.=0A=0A=0A=0A=0AEl Domingo 5 de enero de 2014 9:50, Miguel Rui= z escribi=F3:=0A =0AHi,=0A=0AI cannot get temp data fil= e from org-babel-gnuplot with quoted row labels. I have tried org-plot/gnup= lot and it provides a correct temp data file but it freezes so it is no use= ful by now.=0A=0AMy test table:=0A=0A| Sede=A0=A0=A0=A0=A0 | Max cites | H-= index |=0A|-----------+-----------+---------|=0A| Chile=A0=A0=A0=A0 |=A0=A0= =A0 257.72 |=A0=A0 21.39 |=0A| Leeds=A0=A0=A0=A0 |=A0=A0=A0 165.77 |=A0=A0 = 19.68 |=0A| Sao Paolo |=A0=A0=A0=A0 71.00 |=A0=A0 11.50 | ; without quotes = (in temp data file), gnuplot sees 4 columns=0A| Stockholm |=A0=A0=A0 134.19= |=A0=A0 14.33 |=0A| Morelia=A0=A0 |=A0=A0=A0 257.56 |=A0=A0 17.67 |=0A=0A= =0AI would appreciate any=0A hint.=0A=0ATIA,=0AMiguel Ruiz.=0A=0ACYGWIN_NT-= 6.1-WOW64 usuario-PC 1.7.27(0.271/5/3) 2013-12-09 11:57 i686 Cygwin=0AGNU E= macs (emacs-w32) 24.3.1 (i686-pc-cygwin) of 2013-08-14 on moufang=0AOrg-mod= e version 8.2.5a (release_8.2.5a @ /home/usuario/org-mode/maint/lisp/) ---1132928367-2142702275-1388922385=:31818 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
Is it *th= is* enough:

diff --git a/lisp/ob-gnuplot.el b/lisp/ob-gnuplot.el
= index cc9186b..426077b 100644
--- a/lisp/ob-gnuplot.el
+++ b/lisp/ob-= gnuplot.el
@@ -253,7 +253,7 @@ then create one.  Return the initial= ized session.  The current
      &nbs= p; (org-babel-gnuplot-quote-timestamp-field s)
    &= nbsp;  (if (zerop (length s))
      &= nbsp;   (or *org-babel-gnuplot-missing* s)
-   =     (if (string-match "[ \"]" "?")
+   &nb= sp;   (if (string-match "[ \"]" s)
    &nb= sp;       (concat "\"" (mapconcat 'identity (= split-string s "\"") "\"\"")
          &nb= sp;         "\"")
  &n= bsp;       s)))))

It works = for me.


El Domingo 5 d= e enero de 2014 9:50, Miguel Ruiz <rbenit68@yahoo.es> escribi=F3:
=
<= div>
Hi,

I = cannot get temp data file from org-babel-gnuplot with quoted row labels. I = have tried org-plot/gnuplot and it provides a correct temp data file but it freezes s= o it is no useful by now.

My test table:

| Sede  &n= bsp;   | Max cites | H-index |
|-----------+-----------+------= ---|
| Chile     |    257.72 | &= nbsp; 21.39 |
| Leeds     |    165.77= |   19.68 |
| Sao Paolo |     71.00 |&nbs= p;  11.50 | ; without quotes (in temp data file), gnuplot sees 4 colum= ns
| Stockholm |    134.19 |   14.33 |
| Mor= elia   |    257.56 |   17.67 |

I would appreciate any=0A hint.

TIA,
Miguel Ruiz.

CYGWIN= _NT-6.1-WOW64 usuario-PC 1.7.27(0.271/5/3) 2013-12-09 11:57 i686 Cygwin
= GNU Emacs (emacs-w32) 24.3.1 (i686-pc-cygwin) of 2013-08-14 on moufang
O= rg-mode version 8.2.5a (release_8.2.5a @ /home/usuario/org-mode/maint/lisp/= )


---1132928367-2142702275-1388922385=:31818--