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: Fri, 24 May 2019 21:34:18 +0300 Organization: LINKOV.NET Message-ID: <87k1efhkgp.fsf@mail.linkov.net> References: <87o93ucjsi.fsf@mail.linkov.net> <83ef4p7prf.fsf@gnu.org> <87a7fc51qm.fsf@mail.linkov.net> <83k1eg5pmx.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="65948"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: 35860@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri May 24 20:44:18 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 1hUFAv-000Gzj-OF for geb-bug-gnu-emacs@m.gmane.org; Fri, 24 May 2019 20:44:18 +0200 Original-Received: from localhost ([127.0.0.1]:58750 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hUFAu-000637-Pc for geb-bug-gnu-emacs@m.gmane.org; Fri, 24 May 2019 14:44:16 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:39792) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hUFAk-000614-Iv for bug-gnu-emacs@gnu.org; Fri, 24 May 2019 14:44:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hUFAj-0004xR-JK for bug-gnu-emacs@gnu.org; Fri, 24 May 2019 14:44:06 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33792) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hUFAj-0004xD-Fm for bug-gnu-emacs@gnu.org; Fri, 24 May 2019 14:44:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hUFAj-0000jv-Cz for bug-gnu-emacs@gnu.org; Fri, 24 May 2019 14:44:05 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 24 May 2019 18:44:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35860 X-GNU-PR-Package: emacs Original-Received: via spool by 35860-submit@debbugs.gnu.org id=B35860.15587234092724 (code B ref 35860); Fri, 24 May 2019 18:44:05 +0000 Original-Received: (at 35860) by debbugs.gnu.org; 24 May 2019 18:43:29 +0000 Original-Received: from localhost ([127.0.0.1]:47328 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hUFA9-0000hs-7j for submit@debbugs.gnu.org; Fri, 24 May 2019 14:43:29 -0400 Original-Received: from quail.birch.relay.mailchannels.net ([23.83.209.151]:45622) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hUFA7-0000hj-3S for 35860@debbugs.gnu.org; Fri, 24 May 2019 14:43:28 -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 BA7121A14A8; Fri, 24 May 2019 18:43:25 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a67.g.dreamhost.com (100-96-14-97.trex.outbound.svc.cluster.local [100.96.14.97]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 574DF1A1D76; Fri, 24 May 2019 18:43:23 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a67.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); Fri, 24 May 2019 18:43:25 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Tasty-Bored: 4bee5a1a74b143e9_1558723404715_63804395 X-MC-Loop-Signature: 1558723404715:3327392211 X-MC-Ingress-Time: 1558723404715 Original-Received: from pdx1-sub0-mail-a67.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a67.g.dreamhost.com (Postfix) with ESMTP id D86C78068C; Fri, 24 May 2019 11:43:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=QFv8OwCAnvu64/N4OYUJrpw3+Jg=; b= 190vipyEd5ENmynS4NI1L1ufi2H/8G5yQqLoS+5pLmnkR09mxTeUtyPOVrb7tfww Pb830v6ADDaTGmxgrZv0S3vnjGr9E2xVi6XAEtO8j15MVWc14InQzT7Hzlbk+UgH nIwGl/56rgaYl/FDRATZQh2RA0vfxY5fEiWGK2IUnfQ= 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-a67.g.dreamhost.com (Postfix) with ESMTPSA id F326980696; Fri, 24 May 2019 11:43:13 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a67 In-Reply-To: <83k1eg5pmx.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 24 May 2019 09:32:22 +0300") X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduuddrudduiedgudefudcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffuohhfffgjkfgfgggtsehttdertddtredtnecuhfhrohhmpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqnecukfhppeeluddruddvledrleeirddvfedtnecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehmrghilhdrjhhurhhtrgdrohhrghdpihhnvghtpeeluddruddvledrleeirddvfedtpdhrvghtuhhrnhdqphgrthhhpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhhrtghpthhtohepvghlihiisehgnhhurdhorhhgnecuvehluhhsthgvrhfuihiivgeptd 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:159724 Archived-At: >> >> ;; `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.") >> > >> > Why not bind switch-to-buffer-preserve-window-point to nil instead? >> >> I don't know. I tried to replace >> >> (set-marker help-window-point-marker (point)) >> >> with >> >> (goto-char (point-max)) >> (setq-local switch-to-buffer-preserve-window-point nil) >> >> and it doesn't set point to the end of the Help buffer >> when it's displayed for the first time. > > Can you show a recipe starting from "emacs -Q" that exhibits this > behavior. It sounds like I'm confused about what exactly happens. 0. emacs -Q 1. C-h l Then point in the *Help* buffer should be at the bottom, but when setting switch-to-buffer-preserve-window-point to nil instead of using set-marker, point still is at the top of the buffer.