help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to parse a string?


From: Kai Großjohann
Subject: Re: How to parse a string?
Date: Thu, 01 May 2003 14:00:01 +0200
User-agent: Gnus/5.09002 (Oort Gnus v0.20) Emacs/21.3.50 (gnu/linux)

Francois Fleuret <address@hidden> writes:

> But is there a generic way to do such a thing ? No scanf equivalent
> around ?

You can do it with buffers.  In fact, it is not at all unusual to
create a buffer just to process one line.  And if, instead of killing
the buffer and making a new one for the next string, you just keep the
buffer around and use it again for the next string, it's really fast.

For a buffer, you have lots of quite powerful functions, such as
THING-at-point (number-at-point, word-at-point, ...).

-- 
file-error; Data: (Opening input file no such file or directory ~/.signature)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]