[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: goto-char doesn't stick

From: Elias Mårtenson
Subject: Re: goto-char doesn't stick
Date: Wed, 14 Jun 2017 18:02:22 +0800

On 14 June 2017 at 17:48, Andreas Schwab <address@hidden> wrote:
On Jun 14 2017, Elias Mårtenson <address@hidden> 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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]