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#32790: 27.0.50; point jumps unexpectedly after delete-window Date: Tue, 20 Nov 2018 00:39:04 +0200 Organization: LINKOV.NET Message-ID: <87va4szo8n.fsf@mail.linkov.net> References: <87efdnsp2k.fsf@mail.linkov.net> <87d0rjuq8c.fsf@mail.linkov.net> <5BE15552.4040507@gmx.at> <87y3a5rgm2.fsf@mail.linkov.net> <5BE2AF28.2020505@gmx.at> <87bm6zme24.fsf@mail.linkov.net> <5BE54FA1.2030004@gmx.at> <87k1lkllud.fsf@mail.linkov.net> <5BE7EDAD.9040808@gmx.at> <87tvklx4je.fsf@mail.linkov.net> <5BEA94A7.20809@gmx.at> <87r2foa8gq.fsf@mail.linkov.net> <5BEBDDCB.6090608@gmx.at> <87va4zfapq.fsf@mail.linkov.net> <5BED38A6.6020206@gmx.at> <87ftw2q74g.fsf@mail.linkov.net> <5BEE85A5.2070309@gmx.at> <878t1ruz4m.fsf@mail.linkov.net> <5BF12FB6.20203@gmx.at> <87o9am3smz.fsf@mail.linkov.net> <5BF2858C.40207@gmx.at> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1542667875 14173 195.159.176.226 (19 Nov 2018 22:51:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 19 Nov 2018 22:51:15 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: 32790@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Nov 19 23:51:11 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 1gOsNo-0003W4-34 for geb-bug-gnu-emacs@m.gmane.org; Mon, 19 Nov 2018 23:51:08 +0100 Original-Received: from localhost ([::1]:59308 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gOsPu-0005sQ-NX for geb-bug-gnu-emacs@m.gmane.org; Mon, 19 Nov 2018 17:53:18 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55796) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gOsPh-0005rI-8o for bug-gnu-emacs@gnu.org; Mon, 19 Nov 2018 17:53:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gOsPe-00059w-4A for bug-gnu-emacs@gnu.org; Mon, 19 Nov 2018 17:53:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:57188) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gOsPd-00059h-S8 for bug-gnu-emacs@gnu.org; Mon, 19 Nov 2018 17:53:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gOsPd-0000W2-K7 for bug-gnu-emacs@gnu.org; Mon, 19 Nov 2018 17:53: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: Mon, 19 Nov 2018 22:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32790 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 32790-submit@debbugs.gnu.org id=B32790.15426679711966 (code B ref 32790); Mon, 19 Nov 2018 22:53:01 +0000 Original-Received: (at 32790) by debbugs.gnu.org; 19 Nov 2018 22:52:51 +0000 Original-Received: from localhost ([127.0.0.1]:33213 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gOsPS-0000Vd-Sp for submit@debbugs.gnu.org; Mon, 19 Nov 2018 17:52:51 -0500 Original-Received: from cichlid.maple.relay.mailchannels.net ([23.83.214.36]:33715) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gOsPR-0000VV-0O for 32790@debbugs.gnu.org; Mon, 19 Nov 2018 17:52:49 -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 4D143501E63; Mon, 19 Nov 2018 22:52:47 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a37.g.dreamhost.com (unknown [100.96.29.126]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 1023B501E48; Mon, 19 Nov 2018 22:52:47 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a37.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.16.2); Mon, 19 Nov 2018 22:52:47 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Bitter-Lonely: 73a188f56f1d0f06_1542667967178_3828878216 X-MC-Loop-Signature: 1542667967178:555719435 X-MC-Ingress-Time: 1542667967178 Original-Received: from pdx1-sub0-mail-a37.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a37.g.dreamhost.com (Postfix) with ESMTP id C6C6680761; Mon, 19 Nov 2018 14:52:46 -0800 (PST) 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:content-transfer-encoding; s=linkov.net; bh=2PlBTN 2dPVCygjQRqvnz04SGY/E=; b=vdeMl+ITIqMSbkoTmRum6/G2X78UpDUJwCUzVU nS16mzLFYyVnEPGkcvUrR8cWEGHw6axpGMxYoGarv17fJPTMiN4FHslEROqXYb8i dtiVarFME8KsYAoWLlSO4uZpwqvfSegLFztqWrG0C1S8fxEibTbhavgvK5+Vd89A OUg+M= Original-Received: from mail.jurta.org (m91-129-105-252.cust.tele2.ee [91.129.105.252]) (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-a37.g.dreamhost.com (Postfix) with ESMTPSA id AB61180763; Mon, 19 Nov 2018 14:52:45 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a37 In-Reply-To: <5BF2858C.40207@gmx.at> (martin rudalics's message of "Mon, 19 Nov 2018 10:42:36 +0100") X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedtkedruddtgedgtdegucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufhofhffjgfkfgggtgfgsehtkeertddtreejnecuhfhrohhmpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqnecukfhppeeluddruddvledruddthedrvdehvdenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepmhgrihhlrdhjuhhrthgrrdhorhhgpdhinhgvthepledurdduvdelrddutdehrddvhedvpdhrvghtuhhrnhdqphgrthhhpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhhrtghpthhtoheprhhuuggrlhhitghssehgmhigrdgrthenucevlhhushhtvghrufhiiigvpedt 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:152551 Archived-At: >> Like `switch-to-buffer-in-dedicated-window' has the option `pop', >> another customizable variable could provide a similar non-default >> option that will call pop-to-buffer-same-window from switch-to-buffer. > > OK. But would that option's value apply to C-x b as well? This option is needed mostly for 'C-x b' to be able to switch to the buff= er in another window. And also for other commands that non-interactively ca= ll 'switch-to-buffer', like 'C-h C-n'. >> Or maybe simpler to create a new command e.g. switch-to-buffer-same-wi= ndow >> based on switch-to-buffer-other-window? > > You mean C-h k C-x b would tell me that > > C-x b runs the command switch-to-buffer-same-window (found in > global-map), which is an interactive compiled Lisp function in > =E2=80=98window.el=E2=80=99. I see now that this solution doesn't help for commands that non-interactively call 'switch-to-buffer', like 'C-h C-t'.