emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Joe Bloggs" <vapniks@yahoo.com>
To: emacs-orgmode@gnu.org
Subject: org-plot.el bugfix/patch
Date: Thu, 28 Sep 2017 22:53:22 +0100	[thread overview]
Message-ID: <874lrmcwx9.fsf@it.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 254 bytes --]

The grid examples in org-plot.el don't work for me
because the org-plot sets datafile separator to "\t",
so gnuplot can't read the data file properly.
Leaving datafile separator at its default value
(whitespace) fixes the problem.


Regards,

Joe


-- 
 

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-set-datafile-separator-to-default-whitespace-value.patch --]
[-- Type: text/x-diff, Size: 1203 bytes --]

From fafb16f2409a049861fbdd5be8ca95304da01359 Mon Sep 17 00:00:00 2001
From: Joe Bloggs <vapniks@yahoo.com>
Date: Thu, 28 Sep 2017 22:30:31 +0100
Subject: [PATCH] set datafile separator to default (whitespace) value

* lisp/org-plot.el (org-plot/gnuplot-script): Set datafile separator
  to default (whitespace) value instead of "\t" so that it works with
  grid example.

Using "\t" for datafile separator doesn't work with the grid example
in org-plot.org. Using the default whitespace value works.

TINYCHANGE
---
 lisp/org-plot.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/org-plot.el b/lisp/org-plot.el
index a8028324b..2818b88df 100644
--- a/lisp/org-plot.el
+++ b/lisp/org-plot.el
@@ -219,7 +219,7 @@ manner suitable for prepending to a user-specified script."
     (dolist (el sets) (funcall ats (format "set %s" el)))      ; set
     ;; Unless specified otherwise, values are TAB separated.
     (unless (string-match-p "^set datafile separator" script)
-      (funcall ats "set datafile separator \"\\t\""))
+      (funcall ats "set datafile separator"))
     (when x-labels			; x labels (xtics)
       (funcall ats
 	       (format "set xtics (%s)"
-- 
2.14.1


             reply	other threads:[~2017-09-28 21:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-28 21:53 Joe Bloggs [this message]
2017-09-30  7:46 ` org-plot.el bugfix/patch Nicolas Goaziou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874lrmcwx9.fsf@it.com \
    --to=vapniks@yahoo.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).