From: "Łukasz Stelmach" <lukasz.stelmach@iem.pw.edu.pl>
To: emacs-orgmode@gnu.org
Subject: Re: [PATCH] quote the real csv separator
Date: Sun, 24 Oct 2010 22:49:18 +0200 [thread overview]
Message-ID: <871v7f8gfl.fsf@kotik.lan> (raw)
In-Reply-To: 57E157F5-BDE7-4431-B15F-8EE52E571677@gmail.com
Carsten Dominik <carsten.dominik@gmail.com> writes:
> On Oct 24, 2010, at 12:56 AM, Łukasz Stelmach wrote:
>
>> I'd rather use an optional sep argument to the org-quote-csv-field
>> function but I've got no idea how to stick it into the orgtbl-apply-
>> fmt. However, the quoting function should use current rather then
>> assume comma.
>>
[...]
>>
> thanks for the patch, but I do not understand it.
>
> The separator for csv is always the comma, or am I wrong here?
A bit. The fact is that both OpenOffice (i've just checked) and
Microsoft Office (I am almost 100% sure) allow to choose the separator
upon export. And org-mode also allows it with radio tables with the :sep
parameter (which is passed to the generic exporter).
> So this function should use comma, hard-coded. The only place
> where it is used is when orgtbl-to-csv calls the generic
> exporter. It does so with comma as separator and with
> org-quote-csv-field as formatting function.
>
> What use case do you have in mind?
For me in particular? This is quite complicated ;-) And if you decide to
reject the patch I will understand. (Read only I you have some time to
waste ;)
My bank lets me download monthly reports as CSV. In fact they let me
choose the separator and the default value is the comma. But I choose
'|' because then I can open the csv as org file and just do
(replace-regexp "^" "|")
to get a beautiful org-mode table.
The reports from the bank are prepared for each account independently.
When I transfer money between them I get entries in two reports. To get
rid of this mess I decided to write a perl programme and I do it. And I
prepare test data as radio tables and export them using pipe (yeah I
know, this doesn't make a good point in favour of my patch) because...
I prefer to manipulate all my bank report data with org-mode as tables.
*My* use case isn't very good, is it?
--
Miłego dnia,
Łukasz Stelmach
next prev parent reply other threads:[~2010-10-24 20:49 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-23 22:56 [PATCH] quote the real csv separator Łukasz Stelmach
2010-10-24 16:26 ` Carsten Dominik
2010-10-24 16:52 ` Nick Dokos
2010-10-24 19:37 ` Carsten Dominik
2010-10-25 10:32 ` Stefan Vollmar
2010-10-24 20:49 ` Łukasz Stelmach [this message]
2010-10-25 1:25 ` Bernt Hansen
2010-10-25 8:45 ` Łukasz Stelmach
2010-10-25 9:06 ` Carsten Dominik
2010-10-25 11:59 ` Łukasz Stelmach
2010-10-25 9:15 ` Sébastien Vauban
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=871v7f8gfl.fsf@kotik.lan \
--to=lukasz.stelmach@iem.pw.edu.pl \
--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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.