[net.emacs] Oops! - save-window-excursion etc.

hdj@burdvax.UUCP (01/24/84)

I just realized what the problem is - and it's not a bug!

I said that something of the form

(save-window-excursion
  (visit-file "somefile")
  (recursive-edit))

failed to execute the (recursive-edit) (I should have said that this
happens only if "somefile" does not already exist).  This is true,
as far as it goes.  Emacs considers it an error if you visit-file
a non-existant file, even though it does the expected thing.
Thus, the recursive-edit never gets done.  When I changed the above to

(save-window-excursion
  (error-occured (visit-file "somefile"))
  (recursive-edit))

it worked.  Sorry for the false, though I hope instructive, alarm.

	Herb Jellinek