From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?Q?Elias_M=C3=A5rtenson?= Newsgroups: gmane.emacs.devel Subject: Re: goto-char doesn't stick Date: Wed, 14 Jun 2017 18:32:29 +0800 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a1141b9a0af843b0551e911ee" X-Trace: blaine.gmane.org 1497436390 2324 195.159.176.226 (14 Jun 2017 10:33:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 14 Jun 2017 10:33:10 +0000 (UTC) Cc: emacs-devel To: Andreas Schwab Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 14 12:33:06 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dL5bm-0000C9-FI for ged-emacs-devel@m.gmane.org; Wed, 14 Jun 2017 12:33:06 +0200 Original-Received: from localhost ([::1]:47676 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dL5bo-0001KZ-R8 for ged-emacs-devel@m.gmane.org; Wed, 14 Jun 2017 06:33:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58654) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dL5bD-0001KG-2y for emacs-devel@gnu.org; Wed, 14 Jun 2017 06:32:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dL5bC-0005VR-9R for emacs-devel@gnu.org; Wed, 14 Jun 2017 06:32:31 -0400 Original-Received: from mail-vk0-x235.google.com ([2607:f8b0:400c:c05::235]:35498) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dL5bC-0005VL-4B for emacs-devel@gnu.org; Wed, 14 Jun 2017 06:32:30 -0400 Original-Received: by mail-vk0-x235.google.com with SMTP id 191so78226991vko.2 for ; Wed, 14 Jun 2017 03:32:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=qeAoOAASlCa+1rxc/E9soe8q+rOapjjXb8ywPQgUcA0=; b=BoMettYy/YYXYyJEzGuySuCPHxtTiA6ChNNvmtwIp5Uo637uLHb7RjHu2w4JFX5zgY ZCn9MQalEQlk+0k3BTGuRbU9zl+lHYzGG77wwJk4F6Mvy8KhBuFxdF0cJZ3/ZGgUq+HE ddX73LpJ0a4HvHWZ1wQNFrptVuAauwW7wysBqnPpyCJaLNVsDczxJfuxsWfUQdQRHRJl EfPNwESZTMywvsuu+ax0vwLai2eLno9RncbL1TR37uQFIHNF+/m5XLpmv7WfzBD9IN6z PNLbfrCD4VoMKR68H/xLcS/IO8AG1Lv6jiq1b+V6oGhHpSm9q/DC0Gbz6Uqvm7HNZPnF w7Eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=qeAoOAASlCa+1rxc/E9soe8q+rOapjjXb8ywPQgUcA0=; b=C7AY/UWUzmtyE1+f21dV26IksGC28M1nIyEwJC/ApjGH83kJYnanLMu/Ax58pbk3G+ tONhkwS/iff730QFat9B5pmQBbAyUj4wsvzrMy+O45WLkXYOCW5H4QC/+hIebVb9nLDV DWHjrFeiozwtNMX/xXDhWAneukmi4nMC1U713hIZkUls/SS5KjTucwkfRG5/o6aat044 wVDb2gCrpG3i+zjd8P9soTLtBQnPxrguZyNoSYlGH/kH6mxiRtZoB+LsnngNVS0wzsqZ vfp/e8AysoCvZIfkLcMLqz2izu1qztlIjYfG2S49rnd2qqdYo7RcfJ4m6JfkE4G9O+dB BOXg== X-Gm-Message-State: AKS2vOz+RKk+TS6NQQzWE7tQOAtf7jvB7Um+KJV7H7dk8y7V1pcRoQ1a m64wVcxvbB5RvKjL6a81wC+0+U+Ipg== X-Received: by 10.31.154.71 with SMTP id c68mr2243326vke.56.1497436349496; Wed, 14 Jun 2017 03:32:29 -0700 (PDT) Original-Received: by 10.103.9.7 with HTTP; Wed, 14 Jun 2017 03:32:29 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400c:c05::235 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:215615 Archived-At: --001a1141b9a0af843b0551e911ee Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On 14 June 2017 at 18:29, Andreas Schwab wrote: > On Jun 14 2017, Elias M=C3=A5rtenson wrote: > > > How will that help? I want the code to move point, and the problem is > that > > it does not move. =E2=80=98save-excursion=E2=80=99 simply ensures that = point will not > move. > > But you are changing buffers. Correct. I want to change the position of point in a different buffer. If what I am seeing is correct behaviour, what is the correct way to move point in some buffer. Or more formally, how would you implement a function =E2=80=98goto-char-in-buffer (BUFFER POSITION) =E2=80=99? Regards, Elias --001a1141b9a0af843b0551e911ee Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On 1= 4 June 2017 at 18:29, Andreas Schwab <schwab@suse.de> wrote:
On Jun 14 2017, Elias M=C3= =A5rtenson <lokedhs@gmail.com&g= t; wrote:

> How will that help? I want the code to move po= int, and the problem is that
> it does not move. =E2=80=98save-excursion=E2=80=99 simply ensures that= point will not move.

But you are changing buffers.

Correc= t. I want to change the position of point in a different buffer.
=
If what I am seeing is correct behaviour, what is the correc= t way to move point in some buffer. Or more formally, how would you impleme= nt a function =E2=80=98goto-char-in-buffer (BUFFER POSITION) =E2=80=99?

Regards,
Elias
--001a1141b9a0af843b0551e911ee--