[Top][All Lists]

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

Re: goto-char doesn't stick

From: Andreas Schwab
Subject: Re: goto-char doesn't stick
Date: Wed, 14 Jun 2017 11:48:59 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux)

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.


Andreas Schwab, SUSE Labs, address@hidden
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."

reply via email to

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