[comp.emacs] What command causes load-file to exit immediately?

worley@compass.com (Dale Worley) (01/02/91)

From: squash@shadrach.math.ufl.edu  (Jonathan King)
> Is there a command which I can put into a file to be loaded which
> causes the remainder of the file not to be read?

This code seems to work:

    (condition-case
	nil
	(while t
	  (read))
      (end-of-file))

It reads expressions from the current file (the one being loaded)
until it finds end-of-file.

Dale

Dale Worley		Compass, Inc.			worley@compass.com
--
Start the project after the deadline -- the pressure is less then.