[comp.emacs] holophrasting

liberte@uiucdcsb.UUCP (12/12/86)

Set-selective-display does not leave point alone, but seems to reset it so
that you remain at the same relative position on the screen.  So I
sometimes end up in some strange part of my program.  Is this a bug?
Here is my workaround - which provides a handy way to bob around programs:

dan


(defun
  holophrast (arg)
  "Set selective display using arg or prefix arg.
Go to the same point we start with."
  (interactive "p")
  (let ((save-point (point))
	)
    (set-selective-display arg)
    (sit-for 0)    ; this is necessary, but should it be?
    (goto-char save-point)
    )
  )