Path: utzoo!utgpu!water!watmath!uunet!tut.cis.ohio-state.edu!YALE.ARPA!ram-ashwin From: ram-ashwin@YALE.ARPA (Ashwin Ram) Newsgroups: gnu.emacs Subject: Undoing until (not (buffer-modified-p)) Message-ID: <8810031807.AA18070@ATHENA.CS.YALE.EDU> Date: 3 Oct 88 18:07:43 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 15 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