Carsten Dominik <[email protected]> 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
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-orgmode