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: Wed, 07 Nov 2018 23:44:27 +0200 Organization: LINKOV.NET Message-ID: <877ehowp0c.fsf@mail.linkov.net> References: <87efdnsp2k.fsf@mail.linkov.net> <87in1phhx2.fsf@mail.linkov.net> <5BD2C52E.2060607@gmx.at> <87ftwrgwp2.fsf@mail.linkov.net> <5BD57A8D.8080408@gmx.at> <875zxmx95h.fsf@mail.linkov.net> <5BD70F14.8080509@gmx.at> <87lg6g750v.fsf@mail.linkov.net> <5BD81D97.2000000@gmx.at> <87bm7bru1c.fsf@mail.linkov.net> <5BD963C8.9090905@gmx.at> <87h8h195ki.fsf@mail.linkov.net> <5BDAC159.1060008@gmx.at> <87muqsh11q.fsf@mail.linkov.net> <5BDC0E81.1050806@gmx.at> <87tvkwh4bp.fsf@mail.linkov.net> <5BE00F12.5000703@gmx.at> <87d0rjuq8c.fsf@mail.linkov.net> <5BE15552.4040507@gmx.at> <87y3a5rgm2.fsf@mail.linkov.net> <5BE2AF28.2020505@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 1541627887 25164 195.159.176.226 (7 Nov 2018 21:58:07 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 7 Nov 2018 21:58:07 +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 Wed Nov 07 22:58:03 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 1gKVpq-0006PX-L1 for geb-bug-gnu-emacs@m.gmane.org; Wed, 07 Nov 2018 22:58:03 +0100 Original-Received: from localhost ([::1]:51613 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gKVrw-0006MN-Rh for geb-bug-gnu-emacs@m.gmane.org; Wed, 07 Nov 2018 17:00:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58370) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gKVrq-0006MH-HH for bug-gnu-emacs@gnu.org; Wed, 07 Nov 2018 17:00:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gKVrn-0003bw-BE for bug-gnu-emacs@gnu.org; Wed, 07 Nov 2018 17:00:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:35766) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gKVrn-0003bq-73 for bug-gnu-emacs@gnu.org; Wed, 07 Nov 2018 17:00:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gKVrm-0007bY-Vb for bug-gnu-emacs@gnu.org; Wed, 07 Nov 2018 17:00:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 07 Nov 2018 22:00:02 +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.154162794329105 (code B ref 32790); Wed, 07 Nov 2018 22:00:02 +0000 Original-Received: (at 32790) by debbugs.gnu.org; 7 Nov 2018 21:59:03 +0000 Original-Received: from localhost ([127.0.0.1]:40018 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gKVqp-0007ZN-Ba for submit@debbugs.gnu.org; Wed, 07 Nov 2018 16:59:03 -0500 Original-Received: from catfish.maple.relay.mailchannels.net ([23.83.214.32]:15132) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gKVqn-0007Yo-HA for 32790@debbugs.gnu.org; Wed, 07 Nov 2018 16:59:02 -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 5CAEE42E43; Wed, 7 Nov 2018 21:58:59 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a61.g.dreamhost.com (unknown [100.96.26.166]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 0D70741708; Wed, 7 Nov 2018 21:58:59 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a61.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); Wed, 07 Nov 2018 21:58:59 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Quick-Oafish: 47ed5062732a6037_1541627939220_2794290603 X-MC-Loop-Signature: 1541627939219:1680823356 X-MC-Ingress-Time: 1541627939219 Original-Received: from pdx1-sub0-mail-a61.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a61.g.dreamhost.com (Postfix) with ESMTP id CC669806C3; Wed, 7 Nov 2018 13:58:58 -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=JZwbfT vsDDYopCHWetqfWHRCsTc=; b=VLTtu6Yxx1j7WcOlPDspOi0LWyqGBcitwab+BZ D8ZHkxzVdVsCxSP22VKSHDkbxXrvwgHyo/DvM6FyXemPGOexyBRvPf8K3If+ec41 pEBf/qDMy84Uxib+JvgzUnjAxP7jFzfNFyQIRsQUai1GeJqQa8hXJJMKyJtaL5Sz iYh5Y= Original-Received: from mail.jurta.org (m91-129-107-244.cust.tele2.ee [91.129.107.244]) (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-a61.g.dreamhost.com (Postfix) with ESMTPSA id B5054806C2; Wed, 7 Nov 2018 13:58:56 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a61 In-Reply-To: <5BE2AF28.2020505@gmx.at> (martin rudalics's message of "Wed, 07 Nov 2018 10:23:52 +0100") X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedtkedrjeelgddugeduucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufhofhffjgfkfgggtgfgsehtkeertddtreejnecuhfhrohhmpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqnecukfhppeeluddruddvledruddtjedrvdeggeenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepmhgrihhlrdhjuhhrthgrrdhorhhgpdhinhgvthepledurdduvdelrddutdejrddvgeegpdhrvghtuhhrnhdqphgrthhhpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhhrtghpthhtoheprhhuuggrlhhitghssehgmhigrdgrthenucevlhhushhtvghrufhiiigvpedt 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:152137 Archived-At: >>> IME the windmove user community is quite small. Don't we expect >>> directional buffer display to attract more users than that? Per se >>> S-M- C-x 4 C-o is a pain to type. So we could provide >>> attractive key bindings because windmove is pretty independent in thi= s >>> regard. And we should advertise them in the user manual. >> >> What key bindings are more attractive in your opinion? > > What I meant here is that if a user has typed a (customizable > directional) prefix like S-M- the next key should already > supply all that's needed for the most common usages of the prefix. I see now how this relates to your example above =E2=80=98S-M- C-x= 4 C-o=E2=80=99. And I agree that it's really a pain to type such long key sequences as =E2=80=98S-M- C-x 4 .=E2=80=99 Shouldn't xref support a shorter and easier to type key sequence =E2=80=98S-M- M-.=E2=80=99 with the following patch: diff --git a/lisp/progmodes/xref.el b/lisp/progmodes/xref.el index 6b1421a6f7..6aab174bcf 100644 --- a/lisp/progmodes/xref.el +++ b/lisp/progmodes/xref.el @@ -425,7 +425,7 @@ xref--pop-to-location (xref-location-marker (xref-item-location item)))) (buf (marker-buffer marker))) (cl-ecase action - ((nil) (switch-to-buffer buf)) + ((nil) (pop-to-buffer-same-window buf)) (window (pop-to-buffer buf t)) (frame (let ((pop-up-frames t)) (pop-to-buffer buf t)))) (xref--goto-char marker)) > Note that in its current form windmove.el is practically not needed > any more - most of its job is now done by 'window-in-direction'. All > that remains in practice are its keybindings. Then maybe all unused code should be removed including windmove-other-window-loc, windmove-reference-loc, windmove-wrap-loc-for-movement, windmove-constrain-loc-for-movement, etc.