From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Philippe M. Coatmeur Newsgroups: gmane.emacs.help Subject: Re: How to properly parse a buffer into a list ? Date: Mon, 11 Jun 2012 17:46:55 +0000 Organization: A noiseless patient Spider Message-ID: References: <87zk8agf7h.fsf@kuiper.lan.informatimago.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: dough.gmane.org 1339433717 4997 80.91.229.3 (11 Jun 2012 16:55:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 11 Jun 2012 16:55:17 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jun 11 18:55:15 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Se7tX-0004co-RJ for geh-help-gnu-emacs@m.gmane.org; Mon, 11 Jun 2012 18:55:11 +0200 Original-Received: from localhost ([::1]:55169 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Se7tX-0004iw-OZ for geh-help-gnu-emacs@m.gmane.org; Mon, 11 Jun 2012 12:55:11 -0400 Original-Path: usenet.stanford.edu!goblin1!goblin.stu.neva.ru!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 42 Injection-Info: mx04.eternal-september.org; posting-host="qB/vN4kFBtGvLd0EK05VMg"; logging-data="22655"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX196LCR/qE+3+clrYJn4R5od7kViaWnGYAY=" User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/24.1 Mule/6.0 (HANACHIRUSATO) In-Reply-To: <87zk8agf7h.fsf@kuiper.lan.informatimago.com> Cancel-Lock: sha1:rtnrI5MtMIz7OvzcOKTDmIYeyTc= Original-Xref: usenet.stanford.edu gnu.emacs.help:192806 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:85209 Archived-At: At Mon, 11 Jun 2012 15:17:54 +0200, Pascal J. Bourguignon wrote: > > Philippe M. Coatmeur 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)) Simple, brilliant, bravo Pascal :) (Damnit, if it was'nt for the second "i" in "brilliant", this sentence would be readable in both english and french :( ) > > > > 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? Well I overlooked this problem, but your solution solved it even before we were introduced ;) > > > -- > __Pascal Bourguignon__ http://www.informatimago.com/ > A bad day in () is better than a good day in {}.