On 14 June 2017 at 17:48, Andreas Schwab wrote: > On Jun 14 2017, Elias Mårtenson wrote: > > > Assuming the cursor is at some random position in buffer "z", The SLIME > > code essentially does the following to move the cursor to a given > location: > > > > (progn > > (set-buffer "z") > > (goto-char LOCATION)) > > You should put that inside save-excursion. > How will that help? I want the code to move point, and the problem is that it does not move. ‘save-excursion’ simply ensures that point will not move. Regards, Elias