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: Mon, 27 May 2019 22:49:50 +0300 Organization: LINKOV.NET Message-ID: <87k1ebelw1.fsf@mail.linkov.net> References: <87o93ucjsi.fsf@mail.linkov.net> <83ef4p7prf.fsf@gnu.org> <87a7fc51qm.fsf@mail.linkov.net> <83k1eg5pmx.fsf@gnu.org> <87k1efhkgp.fsf@mail.linkov.net> <2347769f-9ab3-c1b6-699e-4e89a7d8eb1c@gmx.at> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="20690"; 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: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon May 27 22:10:19 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 1hVLwm-0005AH-Cv for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 May 2019 22:10:16 +0200 Original-Received: from localhost ([127.0.0.1]:50186 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hVLwl-0004dl-8v for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 May 2019 16:10:15 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:51747) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hVLwa-0004bv-N0 for bug-gnu-emacs@gnu.org; Mon, 27 May 2019 16:10:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hVLwZ-0000RI-Pi for bug-gnu-emacs@gnu.org; Mon, 27 May 2019 16:10:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40688) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hVLwZ-0000R0-DZ for bug-gnu-emacs@gnu.org; Mon, 27 May 2019 16:10:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hVLwZ-00009Z-6h for bug-gnu-emacs@gnu.org; Mon, 27 May 2019 16:10:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 27 May 2019 20:10:03 +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.1558987792537 (code B ref 35860); Mon, 27 May 2019 20:10:03 +0000 Original-Received: (at 35860) by debbugs.gnu.org; 27 May 2019 20:09:52 +0000 Original-Received: from localhost ([127.0.0.1]:54227 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hVLwN-00008a-M1 for submit@debbugs.gnu.org; Mon, 27 May 2019 16:09:51 -0400 Original-Received: from gecko.birch.relay.mailchannels.net ([23.83.209.66]:18971) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hVLwL-00008S-Rj for 35860@debbugs.gnu.org; Mon, 27 May 2019 16:09:50 -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 A13E56A0796; Mon, 27 May 2019 20:09:48 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a50.g.dreamhost.com (100-96-85-75.trex.outbound.svc.cluster.local [100.96.85.75]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 17E396A0EB9; Mon, 27 May 2019 20:09:48 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a50.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); Mon, 27 May 2019 20:09:48 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Stretch-Shelf: 5d1a00d75d631b96_1558987788470_4058861210 X-MC-Loop-Signature: 1558987788470:2210778820 X-MC-Ingress-Time: 1558987788470 Original-Received: from pdx1-sub0-mail-a50.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a50.g.dreamhost.com (Postfix) with ESMTP id 4CE2D832A5; Mon, 27 May 2019 13:09:44 -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=o+BOJWNs1BguI7Y506HT0uwwUFY=; b= PUmKI/oW+AAGFld3c+A9t/VpSUz2B/YaU6Qua1GYVga/9LzGGsnrvtf9+HaV0e3c 8ZhBfzRy6O8MXZBOKByFio5NprCQCTn6iisPWbJ1d6ycBD6B/JNh8+fuIm+vxU8f 9qkP/WYkiLOas1RaMdgiJbWSkWDPgEmvXjHyAEH6VEE= Original-Received: from mail.jurta.org (m91-129-96-73.cust.tele2.ee [91.129.96.73]) (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-a50.g.dreamhost.com (Postfix) with ESMTPSA id 8E749832A3; Mon, 27 May 2019 13:09:40 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a50 In-Reply-To: <2347769f-9ab3-c1b6-699e-4e89a7d8eb1c@gmx.at> (martin rudalics's message of "Sat, 25 May 2019 09:58:14 +0200") X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduuddruddvfedguddvucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufhofhffjgfkfgggtgesthdtredttdertdenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucfkphepledurdduvdelrdeliedrjeefnecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehmrghilhdrjhhurhhtrgdrohhrghdpihhnvghtpeeluddruddvledrleeirdejfedprhgvthhurhhnqdhprghthheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqedpmhgrihhlfhhrohhmpehjuhhriheslhhinhhkohhvrdhnvghtpdhnrhgtphhtthhopehruhgurghlihgtshesghhmgidrrghtnecuvehluhhsthgvrhfuihiivgepud 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:159825 Archived-At: >> 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. > > I'm confused. Here point in the *Help* buffer is always at bottom > regardless of how 'switch-to-buffer-preserve-window-point' is set. This effect is the result of this patch: diff --git a/lisp/help.el b/lisp/help.el index 42ff375565..0d76a45543 100644 --- a/lisp/help.el +++ b/lisp/help.el @@ -481,7 +481,7 @@ view-lossage (comment-indent) (forward-line 1))) ;; Show point near the end of "lossage", as we did in Emacs 24. - (set-marker help-window-point-marker (point))))) + (setq-local switch-to-buffer-preserve-window-point nil)))) ;; Key bindings