all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: gareth.rees@pobox.com (Gareth Rees)
Subject: Re: getting output from external process in a variable
Date: 30 Jan 2004 07:39:38 -0800	[thread overview]
Message-ID: <e867ce6d.0401300739.60cc14ca@posting.google.com> (raw)
In-Reply-To: mailman.1600.1075460572.928.help-gnu-emacs@gnu.org

Daan Hoogland wrote:
> I end up with [a buffer containing lines of the form]
> groupname:member1,member2 and I want it in a list:
> (list "groupname" (list "member1" "member2"))

  (require 'cl)
  (defun munge-buffer ()
    (goto-char (point-min))
    (loop while (re-search-forward "^\\(\\w+\\):\\(\\w+\\),\\(\\w+\\)$" nil t)
          collect `(,(match-string 1) (,(match-string 2) ,(match-string 3)))))

-- 
Gareth Rees

       reply	other threads:[~2004-01-30 15:39 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1600.1075460572.928.help-gnu-emacs@gnu.org>
2004-01-30 15:39 ` Gareth Rees [this message]
2004-01-30 16:03 ` getting output from external process in a variable Stefan Monnier
2004-01-30 21:28 ` Kevin Rodgers
2004-02-05  8:01 ` Kai Grossjohann
2004-01-30 11:02 Daan Hoogland

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=e867ce6d.0401300739.60cc14ca@posting.google.com \
    --to=gareth.rees@pobox.com \
    /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.