From: Daan Hoogland <emacs@onecht.net>
Subject: getting output from external process in a variable
Date: Fri, 30 Jan 2004 12:02:36 +0100 [thread overview]
Message-ID: <CFDDA188-5313-11D8-8110-003065730870@onecht.net> (raw)
H all,
I'm doing some application programming in elisp. I read /etc/group with
grep and edit the temporary buffer with results. now I end up with
groupname:member1,member2 and I want it in a list:
(list "groupname" (list "member1" "member2"))
now I can edit the buffer to cantain the lisp expression and then
evaluate it like:
(set 'var (list "groupname" (list "member1" "member2")))
and use var. But I was wondering wether there was somewhere maybe an
api that can set a var to a region in the current buffer directly.
Am I understanding emacs and lisp here?
Is there maybe a better/quicker solution?
Is there such a function that could for instance read-list-from-text
from start to end with delimiters?
Or one that can just take text and put it in a variable?
Any comment appreciated.
D.A.A.N.
next reply other threads:[~2004-01-30 11:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-30 11:02 Daan Hoogland [this message]
[not found] <mailman.1600.1075460572.928.help-gnu-emacs@gnu.org>
2004-01-30 15:39 ` getting output from external process in a variable Gareth Rees
2004-01-30 16:03 ` Stefan Monnier
2004-01-30 21:28 ` Kevin Rodgers
2004-02-05 8:01 ` Kai Grossjohann
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=CFDDA188-5313-11D8-8110-003065730870@onecht.net \
--to=emacs@onecht.net \
/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.