all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* getting output from external process in a variable
@ 2004-01-30 11:02 Daan Hoogland
  0 siblings, 0 replies; 5+ messages in thread
From: Daan Hoogland @ 2004-01-30 11:02 UTC (permalink / 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.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-02-05  8:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [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
2004-01-30 11:02 Daan Hoogland

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.