From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.devel Subject: Re: goto-char doesn't stick Date: Wed, 14 Jun 2017 06:26:29 -0400 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1497436045 31902 195.159.176.226 (14 Jun 2017 10:27:25 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 14 Jun 2017 10:27:25 +0000 (UTC) Cc: emacs-devel To: =?UTF-8?Q?Elias_M=C3=A5rtenson?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 14 12:27:21 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 1dL5WC-0007xT-9R for ged-emacs-devel@m.gmane.org; Wed, 14 Jun 2017 12:27:20 +0200 Original-Received: from localhost ([::1]:47646 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dL5WH-0006IG-Fc for ged-emacs-devel@m.gmane.org; Wed, 14 Jun 2017 06:27:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56484) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dL5VP-0006Gj-TD for emacs-devel@gnu.org; Wed, 14 Jun 2017 06:26:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dL5VP-00031Y-5M for emacs-devel@gnu.org; Wed, 14 Jun 2017 06:26:31 -0400 Original-Received: from mail-oi0-x235.google.com ([2607:f8b0:4003:c06::235]:34853) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dL5VP-00031H-1E for emacs-devel@gnu.org; Wed, 14 Jun 2017 06:26:31 -0400 Original-Received: by mail-oi0-x235.google.com with SMTP id e11so45358054oia.2 for ; Wed, 14 Jun 2017 03:26:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=uflR69T/kIstC0Sm8gSN1zE8vWwLPM/zR+itSf/vTJk=; b=TXxOeCWZ+Og1y8XL6kQ4k+M0aWAYlL8NV4fcmdeV/z5/UyfYbBhXfC7swRU8ZFAXl6 8HlwaZ59AjvtJbRY+whZzmkcMj2QSAZpR0qhmnEQcEFImYj3dLlCYGtJjPT+14O9qzqk UJHeFYPg7TL8WyLI6yWkSGuIpofX73Ye2YU/lBSIemmm5ywngNz/OLETxmFq02recxyA n2QRpH7xoC4FyEMEhrS8JfrPBzDlabDE1WHSd4sOcCAhBgtE+DLpYpXywQ5Dgd6ugtj5 xkPD7SVVmDz0xPRrhTq4qVr+uJOJNkOOeOeZXc8lV2YZ4cHdlxRl9r7znAQyU9dTVD3c OZgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-transfer-encoding; bh=uflR69T/kIstC0Sm8gSN1zE8vWwLPM/zR+itSf/vTJk=; b=UvSH8YB2kHmev2/yceGGOxJ6Nh9R9IzoR4aiMW8pcYY06fz1DwHK/B1NYFIZdM0XgP +C0zFw+3MUllxZrUHdxOKU+ni8W6Il7LyhYktfhXm6PEyR7WrL1M+GG3KMckiSxsKTYk eQl63uwiRiA9i1ZGkMvzXY6TJej8hD9borm+272Okc0/JKMyhXUEyhLp1QFeIVrZM6Al mssVOyDgCe1Gmw1YjS2ciXGUkVxcYApgWUE+75xM+MOlRZhuAZ7X69TVYCOOsd73vwBJ qDE/ag778ClymCPLtRZZE8T0JYyMBtdpvKW9z5gvbEE40u/e4HovrOkWSrU8aWQZxFi3 Gt4g== X-Gm-Message-State: AKS2vOxYkpUQ413QMAlfHmGzecP9CIeFjs66vqz7YvP0z9+QyDWXyhBw sdIxe6WVaCQ2t0lwsY/6r6FzjnQlbQ== X-Received: by 10.202.224.195 with SMTP id x186mr2265852oig.37.1497435990172; Wed, 14 Jun 2017 03:26:30 -0700 (PDT) Original-Received: by 10.74.113.80 with HTTP; Wed, 14 Jun 2017 03:26:29 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: QmJ1DbrQTA6y-pOkNzlDc8EshL8 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4003:c06::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:215611 Archived-At: On Wed, Jun 14, 2017 at 5:45 AM, Elias M=C3=A5rtenson w= rote: > > (progn > (set-buffer "z") > (goto-char LOCATION)) > > When I do this, point doesn't move. Or rather, it does move, but after th= e > conclusion of the =E2=80=98progn=E2=80=99 form, the cursor returns to its= original location. Is the buffer "z" visible? You probably need to set-window-point too.