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#38164: quit-restore-window doesn't restore point in man Date: Sun, 10 Nov 2019 22:45:08 +0200 Organization: LINKOV.NET Message-ID: <875zjrzgoz.fsf_-_@mail.linkov.net> References: <8ea0a3fa-5169-4493-bd54-3ebe47836a35@default> <87r3i9nped.fsf@gnus.org> <87wps1m7co.fsf@web.de> <87r22gbquk.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="145523"; 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: 38164@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Nov 10 21:57:15 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.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iTuGo-000biO-6p for geb-bug-gnu-emacs@m.gmane.org; Sun, 10 Nov 2019 21:57:14 +0100 Original-Received: from localhost ([::1]:45968 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iTuGm-0002RD-PE for geb-bug-gnu-emacs@m.gmane.org; Sun, 10 Nov 2019 15:57:12 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50096) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iTuGd-0002Mw-4O for bug-gnu-emacs@gnu.org; Sun, 10 Nov 2019 15:57:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iTuGc-0002nv-1M for bug-gnu-emacs@gnu.org; Sun, 10 Nov 2019 15:57:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43787) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iTuGb-0002nh-U4 for bug-gnu-emacs@gnu.org; Sun, 10 Nov 2019 15:57:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iTuGb-0003NU-RC for bug-gnu-emacs@gnu.org; Sun, 10 Nov 2019 15:57:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 10 Nov 2019 20:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 38164 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.157341938912942 (code B ref -1); Sun, 10 Nov 2019 20:57:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 10 Nov 2019 20:56:29 +0000 Original-Received: from localhost ([127.0.0.1]:52608 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iTuG5-0003Mg-4I for submit@debbugs.gnu.org; Sun, 10 Nov 2019 15:56:29 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:37949) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iTuG3-0003MY-E8 for submit@debbugs.gnu.org; Sun, 10 Nov 2019 15:56:27 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49533) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iTuG2-0001U3-8B for bug-gnu-emacs@gnu.org; Sun, 10 Nov 2019 15:56:27 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iTuG1-0002LN-8i for bug-gnu-emacs@gnu.org; Sun, 10 Nov 2019 15:56:26 -0500 Original-Received: from crane.ash.relay.mailchannels.net ([23.83.222.43]:49389) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iTuG0-0002Gf-EY for bug-gnu-emacs@gnu.org; Sun, 10 Nov 2019 15:56:25 -0500 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 4355D141012 for ; Sun, 10 Nov 2019 20:56:20 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a14.g.dreamhost.com (100-96-18-10.trex.outbound.svc.cluster.local [100.96.18.10]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id D238F14106F for ; Sun, 10 Nov 2019 20:56:19 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a14.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.18.5); Sun, 10 Nov 2019 20:56:20 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Minister-Obese: 0fd567773477512a_1573419380071_1614798746 X-MC-Loop-Signature: 1573419380071:4208511281 X-MC-Ingress-Time: 1573419380071 Original-Received: from pdx1-sub0-mail-a14.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a14.g.dreamhost.com (Postfix) with ESMTP id 08A1C98C76 for ; Sun, 10 Nov 2019 12:56:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=dPwyJGCDgPkrNhmsW7gRrFCfF2Y=; b= gcgRt2Gq5AXpYq6DxipiCwcX4bLNHhev93o//EPe1D8gs/AWjVVUgGMRTg3K42A7 Qd+FY/oF5nAJ4llxEdQU6Is7ax8O/Vs3j4JGTZhE+C+jRZCQ8D7PxGlaYyJsdPij O8wqNJt6e81HHYnt2rwRFPt1ijawqT6BFJXsrnQpquw= Original-Received: from mail.jurta.org (m91-129-102-1.cust.tele2.ee [91.129.102.1]) (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-a14.g.dreamhost.com (Postfix) with ESMTPSA id E409498B01 for ; Sun, 10 Nov 2019 12:56:13 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a14 In-Reply-To: (martin rudalics's message of "Sun, 10 Nov 2019 10:46:20 +0100") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] 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:171390 Archived-At: Creating a new bug report as a spin-off of bug#19064. >> But this problem is not new. The same can be reproduced >> in older versions with >> >> (progn >> (man "XYZ") >> (read-string "-->")) >> >> This is because quit-restore-window moves point to wrong window. > > What should 'quit-restore-window' do here in particular? quit-restore-window should move point to old-selected-window, i.e. the minibuffer window that was selected before Man-bgproc-sentinel kicked in. But I don't understand why it's not doing that.