[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to properly parse a buffer into a list ?
From: |
Pascal J. Bourguignon |
Subject: |
Re: How to properly parse a buffer into a list ? |
Date: |
Mon, 11 Jun 2012 15:17:54 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) |
Philippe M. Coatmeur <philippe.coatmeur@gmail.com> writes:
> Hi ; I have this perl-script that prints email elements separated by
> the string : "|_|".
If you could modify it so that it prints a sexp, it would be easier to
read it in emacs.
(("abc" "@" "example" "com")
("def" "@" "example" "com"))
you could then just use:
(with-current-buffer buf
(goto-char (point-min))
(read buf))
> Problem is, this function moves in terms of lines (it puts evey single
> line in a list cell), but my elements can easily span over several
> lines, and I'd still wouldlike one such element to be a single list
> cell..?
How do you separate email addresses then?
--
__Pascal Bourguignon__ http://www.informatimago.com/
A bad day in () is better than a good day in {}.