From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#35860: Delayed window positioning after buffer display Date: Wed, 22 May 2019 23:32:13 +0300 Organization: LINKOV.NET Message-ID: <87o93ucjsi.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="236980"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) To: 35860@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed May 22 23:10:38 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hTYVQ-000zQa-OC for geb-bug-gnu-emacs@m.gmane.org; Wed, 22 May 2019 23:10:37 +0200 Original-Received: from localhost ([127.0.0.1]:51506 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hTYVP-0008MY-91 for geb-bug-gnu-emacs@m.gmane.org; Wed, 22 May 2019 17:10:35 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:34118) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hTYRz-0005ca-K0 for bug-gnu-emacs@gnu.org; Wed, 22 May 2019 17:07:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hTYRy-0002xE-Ku for bug-gnu-emacs@gnu.org; Wed, 22 May 2019 17:07:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57834) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hTYRy-0002x9-Gt for bug-gnu-emacs@gnu.org; Wed, 22 May 2019 17:07:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hTYRy-0007Ae-9b for bug-gnu-emacs@gnu.org; Wed, 22 May 2019 17:07:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 22 May 2019 21:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 35860 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.155855918027505 (code B ref -1); Wed, 22 May 2019 21:07:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 22 May 2019 21:06:20 +0000 Original-Received: from localhost ([127.0.0.1]:43144 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hTYRH-00079X-MO for submit@debbugs.gnu.org; Wed, 22 May 2019 17:06:19 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:47767) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hTYRF-00079K-Pz for submit@debbugs.gnu.org; Wed, 22 May 2019 17:06:18 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:34577) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hTYR8-0002Mg-8j for submit@debbugs.gnu.org; Wed, 22 May 2019 17:06:11 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:33602) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hTYR6-0004jH-Sq for bug-gnu-emacs@gnu.org; Wed, 22 May 2019 17:06:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hTYBx-0002Mi-D2 for bug-gnu-emacs@gnu.org; Wed, 22 May 2019 16:50:30 -0400 Original-Received: from quail.birch.relay.mailchannels.net ([23.83.209.151]:31433) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hTYBw-0002K3-S2 for bug-gnu-emacs@gnu.org; Wed, 22 May 2019 16:50:29 -0400 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 5C2C88C21F5 for ; Wed, 22 May 2019 20:50:25 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a10.g.dreamhost.com (100-96-85-27.trex.outbound.svc.cluster.local [100.96.85.27]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 03AA28C213B for ; Wed, 22 May 2019 20:50:24 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a10.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.17.2); Wed, 22 May 2019 20:50:25 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Thread-Unite: 6667c6332f4feb33_1558558224424_2008333643 X-MC-Loop-Signature: 1558558224424:2321564441 X-MC-Ingress-Time: 1558558224423 Original-Received: from pdx1-sub0-mail-a10.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a10.g.dreamhost.com (Postfix) with ESMTP id 2885080941 for ; Wed, 22 May 2019 13:50:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to :subject:date:message-id:mime-version:content-type; s= linkov.net; bh=BUmaVUSrqMPnw0QIOxfMi2NwEzM=; b=HzdeRqbP42QotTAZW oJSZLE9129JNhmvtDUEhP4qEjvU0caPXMwMjVzPTp3wX8AzibGYfoFxUSL1ha4ay 7/bG2SYcYGQKAiKHheU0O3bis4jYnrDTKU28lWC1Y3LwbtCJDJvXzsAv8/5tDZrV cNlfmdGLbX549CGvaqxtRNpZds= Original-Received: from mail.jurta.org (m91-129-96-230.cust.tele2.ee [91.129.96.230]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a10.g.dreamhost.com (Postfix) with ESMTPSA id C125C80931 for ; Wed, 22 May 2019 13:50:19 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a10 X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: 0 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduuddrudduvddgudehiecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufhofffkfgggtgesthdtredttdertdenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucfkphepledurdduvdelrdeliedrvdeftdenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepmhgrihhlrdhjuhhrthgrrdhorhhgpdhinhgvthepledurdduvdelrdeliedrvdeftddprhgvthhurhhnqdhprghthheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqedpmhgrihhlfhhrohhmpehjuhhriheslhhinhhkohhvrdhnvghtpdhnrhgtphhtthhopegsuhhgqdhgnhhuqdgvmhgrtghssehgnhhurdhorhhgnecuvehluhhsthgvrhfuihiivgeptd X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:159660 Archived-At: There are commands that set point while the buffer is not displayed, and after displaying the buffer point remains at an old position, not where it was moved while the buffer was undisplayed. One solution is to generalize the variable 'help-window-point-marker' currently described as: ;; `help-window-point-marker' is a marker you can move to a valid ;; position of the buffer shown in the help window in order to override ;; the standard positioning mechanism (`point-min') chosen by ;; `with-output-to-temp-buffer' and `with-temp-buffer-window'. ;; `with-help-window' has this point nowhere before exiting. Currently ;; used by `view-lossage' to assert that the last keystrokes are always ;; visible. (defvar help-window-point-marker (make-marker) "Marker to override default `window-point' in help windows.") A general name could be e.g. 'window-point-marker'. Its counterpart is also necessary with the name 'window-start-marker'. Beside the recently occurred need in bug#35624 to use a new buffer-local variable for window-start, other modes require this feature as well, e.g. vc-annotate takes a long time to finish and set window point, but after switching forth and back, it doesn't set point to the right line after the buffer becomes visible.