[gnu.emacs] Undoing until

ram-ashwin@YALE.ARPA (Ashwin Ram) (10/04/88)

Is there a way to undo everything since the last  time  buffer-modified-p
was  false,  i.e., all the changes since the time the buffer was created,
or last saved, or whatever?  I'm looking for a single command  equivalent
of  hitting  the  undo  key  repeatedly  until  the -**- in the mode line
changes to a ----, if you get what I mean.  revert-buffer  doesn't  quite
do what I want.  Nor does (while (buffer-modified-p) (undo)), which gives
me a "No further undo information available" message.

Thanks.

-- Ashwin.

ARPA:    Ram-Ashwin@cs.yale.edu
UUCP:    {decvax,ucbvax,harvard,cmcl2,...}!yale!Ram-Ashwin
BITNET:  Ram@yalecs