unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Simen Heggestøyl" <simenheg@runbox.com>
To: Titus von der Malsburg <malsburg@posteo.de>
Cc: emacs-devel@gnu.org
Subject: Re: csv-mode can’t guess separator when it’s the unit separator #x1f
Date: Wed, 29 May 2024 08:55:10 +0200	[thread overview]
Message-ID: <87ttih3y5t.fsf@runbox.com> (raw)
In-Reply-To: <87bk4qt7l9.fsf@posteo.de> (Titus von der Malsburg's message of "Tue, 28 May 2024 12:53:32 +0000")

Titus von der Malsburg <malsburg@posteo.de> writes:

> Hi,
>
> I’m using the unit separator ASCII #x1f in “csv” files, because that’s more robust than using comma or tab (which may both be used as part of the data, which creates ambiguity).  The unit separator was created precisely for this purpose.
>
> Since various characters are conventionally used as separators, csv-mode has a convenient function for guessing the separator.  (It’s typically, the one character which has the same number of appearances on all lines of the file.)  Unfortunately, csv-mode currently does not consider the unit separator as a candidate when guessing.  Below is a patch that fixes that.  Could someone please apply this patch?  This list is specified as the maintainer in the source file.
>
> Thank you.
>
>   Titus

Thanks Titus, I've applied the patch.

-- Simen



      reply	other threads:[~2024-05-29  6:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-28 12:53 csv-mode can’t guess separator when it’s the unit separator #x1f Titus von der Malsburg
2024-05-29  6:55 ` Simen Heggestøyl [this message]

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=87ttih3y5t.fsf@runbox.com \
    --to=simenheg@runbox.com \
    --cc=emacs-devel@gnu.org \
    --cc=malsburg@posteo.de \
    /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).