From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#32777: 27.0.50; window-buffer gets wrong point Date: Thu, 20 Sep 2018 01:55:01 +0300 Organization: LINKOV.NET Message-ID: <87musd9lc2.fsf@mail.linkov.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1537399491 15592 195.159.176.226 (19 Sep 2018 23:24:51 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 19 Sep 2018 23:24:51 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) To: 32777@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 20 01:24:47 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1g2lpv-0003xZ-8P for geb-bug-gnu-emacs@m.gmane.org; Thu, 20 Sep 2018 01:24:47 +0200 Original-Received: from localhost ([::1]:47678 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g2ls1-00009P-QA for geb-bug-gnu-emacs@m.gmane.org; Wed, 19 Sep 2018 19:26:57 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54682) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g2lrK-0008EF-Qu for bug-gnu-emacs@gnu.org; Wed, 19 Sep 2018 19:26:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g2lrD-00087l-GW for bug-gnu-emacs@gnu.org; Wed, 19 Sep 2018 19:26:12 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41889) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g2lr8-00080X-Co for bug-gnu-emacs@gnu.org; Wed, 19 Sep 2018 19:26:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1g2lr8-0005Xt-8P for bug-gnu-emacs@gnu.org; Wed, 19 Sep 2018 19:26: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, 19 Sep 2018 23:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 32777 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.153739951021255 (code B ref -1); Wed, 19 Sep 2018 23:26:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 19 Sep 2018 23:25:10 +0000 Original-Received: from localhost ([127.0.0.1]:46147 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g2lqI-0005Wl-8i for submit@debbugs.gnu.org; Wed, 19 Sep 2018 19:25:10 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:32900) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g2lqH-0005WI-2g for submit@debbugs.gnu.org; Wed, 19 Sep 2018 19:25:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g2lqB-00061z-0r for submit@debbugs.gnu.org; Wed, 19 Sep 2018 19:25:03 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:35211) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1g2lqA-0005zG-OX for submit@debbugs.gnu.org; Wed, 19 Sep 2018 19:25:02 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53839) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g2lq9-0007Ud-Rv for bug-gnu-emacs@gnu.org; Wed, 19 Sep 2018 19:25:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g2lq9-0005t7-0U for bug-gnu-emacs@gnu.org; Wed, 19 Sep 2018 19:25:01 -0400 Original-Received: from pop.dreamhost.com ([64.90.62.162]:60706 helo=pdx1-sub0-mail-a11.g.dreamhost.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1g2lq8-0005sJ-JT for bug-gnu-emacs@gnu.org; Wed, 19 Sep 2018 19:25:00 -0400 Original-Received: from pdx1-sub0-mail-a11.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a11.g.dreamhost.com (Postfix) with ESMTP id AEF3C8008F for ; Wed, 19 Sep 2018 16:24:59 -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=IeGv5qEN/SDNPOSy3rHfP7q71j8=; b=CS8nNcvTUEILMMw3N aFH057sUZvQ3ZNlNbACspZAyhvvBxqZitX1lS3k+7pqX4EJzc65UilXQec6NC2/K U39jpXBa0P6d4oU9rZVvaYddmR+fdcmWuA8NAaPJErn27uoZVPsvB1vGc+Y3KYtq QhRHot2EiNRJI817IOFniW9W4s= Original-Received: from localhost.linkov.net (m91-129-107-237.cust.tele2.ee [91.129.107.237]) (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-a11.g.dreamhost.com (Postfix) with ESMTPSA id 0674E80087 for ; Wed, 19 Sep 2018 16:24:58 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a11 X-DH-BACKEND: pdx1-sub0-mail-a11 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: 208.118.235.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:150463 Archived-At: This bug report concerns one particular usage of window-buffer in read-extended-command, but the same issue might exist in other places: 0. emacs -Q 1. copy to *scratch* as text: next-error nonexistent-command 2. 2.1. put point on "next-error", type M-x M-n, it correctly inserts "next-error" to the minibuffer 2.2. put point on "nonexistent-command", type M-x M-n, it correctly displays "End of history; no default available" 3. 3.1. put point on "nonexistent-command" 3.2. split window C-x 2 or C-x 3 and switch to another window C-x o 3.3. put point on "next-error", type M-x M-n, it correctly inserts "next-error" to the minibuffer 4. 4.1. delete-other-windows with C-x 1 4.1. put point on "nonexistent-command" 4.2. create new frame with C-x 5 2 4.3. put point on "next-error", type M-x M-n, it displays "End of history; no default available", this is wrong