From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: goto-char doesn't stick Date: Thu, 15 Jun 2017 13:11:13 -0400 Message-ID: References: <03485ABD-CF71-4FF8-B887-ED7607341EBD@gnu.org> <83injx2uii.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1497546735 27775 195.159.176.226 (15 Jun 2017 17:12:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 15 Jun 2017 17:12:15 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: emacs-devel@gnu.org, npostavs@users.sourceforge.net To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 15 19:12:10 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 1dLYJW-0006qn-53 for ged-emacs-devel@m.gmane.org; Thu, 15 Jun 2017 19:12:10 +0200 Original-Received: from localhost ([::1]:55155 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dLYJb-0007fe-6q for ged-emacs-devel@m.gmane.org; Thu, 15 Jun 2017 13:12:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55564) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dLYIf-0007eK-Tq for emacs-devel@gnu.org; Thu, 15 Jun 2017 13:11:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dLYIc-0004G0-Mr for emacs-devel@gnu.org; Thu, 15 Jun 2017 13:11:17 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:35779) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dLYIc-0004Fk-HQ; Thu, 15 Jun 2017 13:11:14 -0400 Original-Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.7/8.14.1) with ESMTP id v5FHBCI5012305; Thu, 15 Jun 2017 13:11:12 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 29EBF64041; Thu, 15 Jun 2017 13:11:13 -0400 (EDT) In-Reply-To: <83injx2uii.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 15 Jun 2017 17:30:29 +0300") X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 2 Rules triggered EDT_SA_DN_PASS=0, RV6047=0 X-NAI-Spam-Version: 2.3.0.9418 : core <6047> : inlines <5930> : streams <1750053> : uri <2444197> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.20 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:215644 Archived-At: > You need to switch to "z" so that it is displayed in a window, > e.g. with "C-x b". switch-to-buffer-preserve-window-point does its > thing at that time. Ah, so the OP wants to affect the future window-point? I don't think there's ever been a reliable way to do that, short of having your own variable `my-planned-cursor-position` (probably a marker), moving it by hand, and then passing it to set-window-point manually after displaying the buffer. Stefan