emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] Re: [PATCH] quote the real csv separator


From: Łukasz Stelmach
Subject: [Orgmode] Re: [PATCH] quote the real csv separator
Date: Mon, 25 Oct 2010 13:59:44 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

Carsten Dominik <address@hidden> writes:

> On Oct 25, 2010, at 10:45 AM, Łukasz Stelmach wrote:
>> OR, if you think that CSV should stay as it is then I
>> suggest such a rewrite:
>>
>> (defun orgtbl-to-csv (table params)
>>  (orgtbl-to-generic table (org-combine-plists
>>                            params
>>                          '(:sep "," :fmt org-quote-csv-field))))
>>
>> to make CSV :sep and and :fmt mandatory (that's how this all have
>> starded).
>
> I don't understand, here is the current definition of orgtbl-to-csv:
>
> (defun orgtbl-to-csv (table params)
>   "Convert the orgtbl-mode table to CSV material.
> This does take care of the proper quoting of fields with comma or
> quotes."
>   (orgtbl-to-generic table (org-combine-plists
>                           '(:sep "," :fmt org-quote-csv-field)
>                           params)))
>
> so these are mandatory.  I guess I do not understand what you are
> saying.

OK, try to eval these:

(let ((params '(:sep "|")))
  (org-combine-plists
    '(:sep "," :fmt org-quote-csv-field)
    params))

(let ((params '(:sep "|")))
  (org-combine-plists
    params
    '(:sep "," :fmt org-quote-csv-field)))

The latter prevents :sep from being overriden.

-- 
Miłego dnia,
Łukasz Stelmach




reply via email to

[Prev in Thread] Current Thread [Next in Thread]