I have some sample code like this:
(defun some-function ()
(interactive)
(push-mark)
(goto-char (point-min))
; do some stuff
(pop-mark))
Now I'm expecting pop-mark to get me back to the original location. But that doesn't seem to be happening. Any idea on how to do this properly ?
(let* ((point-one (point)) point-two) (goto-char (point-min)) [do stuff . . .] (goto-char point-one))
You can create a place holder for the variable -- e.g.,point-two
and then when you get there, set it with(setq point-two (point))