all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kai Grossjohann <kai@emptydomain.de>
Subject: Re: Quick deleting from a comma separated list
Date: Thu, 18 Dec 2003 18:06:56 +0000	[thread overview]
Message-ID: <87fzfiq9tr.fsf@emptyhost.emptydomain.de> (raw)
In-Reply-To: mailman.245.1071749454.868.help-gnu-emacs@gnu.org

Urban Gabor <gabaux@freemail.hu> writes:

> I have a question, is there an elegant and quick way to
> delete an item from a comma separated list.

It depends on what exactly is a comma separated list.  In the simplest
case, zap-to-char might do the trick well.  It is by default bound to
M-z, such that "M-z ," will delete from point to the next comma.

But of course, the "real" CSV format specifies that you can use quotes
to "hide" commas in values, such that

    foo, "foo, bar", baz

contains only three values, the first being "foo", the second being
"foo, bar", and the third being "baz".  I think the understanding is
that the quotes around a quoted value are removed.  There are some
weird conventions on quoting quotes.

If this is what you're seeing, then you might need a customized
method.  Please describe the problematic cases where zap-to-char might
fail in more detail.

Kai

  parent reply	other threads:[~2003-12-18 18:06 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.245.1071749454.868.help-gnu-emacs@gnu.org>
2003-12-18 12:01 ` Quick deleting from a comma separated list Pascal Bourguignon
2003-12-18 12:08 ` Joakim Hove
2003-12-18 17:14 ` Johan Bockgård
2003-12-18 18:06 ` Kai Grossjohann [this message]
2003-12-18 11:04 Urban Gabor

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=87fzfiq9tr.fsf@emptyhost.emptydomain.de \
    --to=kai@emptydomain.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 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.