unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Joost <joostkremers@fastmail.fm>
To: emacs-devel@gnu.org
Subject: Re: Supported/Bundled CSV  support?
Date: Wed, 16 Mar 2022 14:43:28 +0100	[thread overview]
Message-ID: <14ace41e-daa3-4d82-bdc0-c5db179f9250@www.fastmail.com> (raw)
In-Reply-To: <jwvh780cgn0.fsf-monnier+emacs@gnu.org>

On Mon, 14 Mar 2022, at 23:30, Stefan Monnier wrote:
[csv-mode]
> Don't know about Melpa, but in (Non)GNU ELPA, I can only find one such
> package and it dates back to Dec 2021.

Speaking of which, I recently had an occasion for using this package and I was somewhat surprised that I did not find a way to specify the field separator on a per-file (or per-buffer) basis. The file I wanted to open used `;` as separator, and some of the fields hat commas in them. Adding `;` to `csv-separators` caused Emacs to recognize *both* `;` and `,` as field separators, meaning that the file wasn't displayed correctly.

I needed to set `csv-separators` to `(";")` to get Emacs to handle the file correctly. But if I make that permatent, I wouldn't be able to open any CSV files with commas as separators anymore.

Did I miss something, or is this indeed how `csv-mode` works? If so, I'm inclined to create a bug report, cause I reckon few (in any) CSV files use more than one separator character.





-- 
Joost Kremers
Life has its moments



  parent reply	other threads:[~2022-03-16 13:43 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-14 22:15 Supported/Bundled CSV support? T.V Raman
2022-03-14 22:30 ` Stefan Monnier
2022-03-15  7:36   ` Ergus
2022-03-15 14:05     ` T.V Raman
2022-03-15 14:57       ` Stefan Monnier
2022-03-15 15:27         ` T.V Raman
2022-03-16 13:43   ` Joost [this message]
2022-03-16 14:46     ` T.V Raman
2022-03-16 18:49     ` Stefan Monnier

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.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=14ace41e-daa3-4d82-bdc0-c5db179f9250@www.fastmail.com \
    --to=joostkremers@fastmail.fm \
    --cc=emacs-devel@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.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).