From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#32790: 27.0.50; point jumps unexpectedly after delete-window Date: Wed, 17 Oct 2018 09:30:55 +0200 Message-ID: <5BC6E52F.2070209@gmx.at> References: <87efdnsp2k.fsf@mail.linkov.net> <5BA490EA.4000502@gmx.at> <87bm8pxjcb.fsf@mail.linkov.net> <5BA74E75.8000405@gmx.at> <87zhw8nd8g.fsf@mail.linkov.net> <5BA8A143.9040604@gmx.at> <87sh1ybyo6.fsf@mail.linkov.net> <5BA9E390.8030506@gmx.at> <87pnx1h1op.fsf@mail.linkov.net> <5BAB489E.5090002@gmx.at> <87h8ibvrs2.fsf@mail.linkov.net> <5BAD2507.6040605@gmx.at> <87a7nedidg.fsf@mail.linkov.net> <5BC5A558.9010401@gmx.at> <87zhvd7mg9.fsf@mail.linkov.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1539761428 17032 195.159.176.226 (17 Oct 2018 07:30:28 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 17 Oct 2018 07:30:28 +0000 (UTC) Cc: 32790@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 17 09:30:23 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 1gCgHe-0004K1-Ne for geb-bug-gnu-emacs@m.gmane.org; Wed, 17 Oct 2018 09:30:22 +0200 Original-Received: from localhost ([::1]:34246 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gCgJl-0002fb-D7 for geb-bug-gnu-emacs@m.gmane.org; Wed, 17 Oct 2018 03:32:33 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35287) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gCgJL-0002Wj-IL for bug-gnu-emacs@gnu.org; Wed, 17 Oct 2018 03:32:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gCgJG-00034x-DK for bug-gnu-emacs@gnu.org; Wed, 17 Oct 2018 03:32:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:50077) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gCgJG-00034r-8Z for bug-gnu-emacs@gnu.org; Wed, 17 Oct 2018 03:32:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gCgJG-0006RH-4s for bug-gnu-emacs@gnu.org; Wed, 17 Oct 2018 03:32:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 17 Oct 2018 07:32: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.153976147224654 (code B ref 32790); Wed, 17 Oct 2018 07:32:02 +0000 Original-Received: (at 32790) by debbugs.gnu.org; 17 Oct 2018 07:31:12 +0000 Original-Received: from localhost ([127.0.0.1]:54329 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gCgIS-0006Pa-D7 for submit@debbugs.gnu.org; Wed, 17 Oct 2018 03:31:12 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:33123) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gCgIQ-0006PM-Sr for 32790@debbugs.gnu.org; Wed, 17 Oct 2018 03:31:11 -0400 Original-Received: from [192.168.1.101] ([212.95.5.87]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MZlEg-1fvZPv2rIk-00LZ3Z; Wed, 17 Oct 2018 09:31:01 +0200 Original-Received: from [192.168.1.101] ([212.95.5.87]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MZlEg-1fvZPv2rIk-00LZ3Z; Wed, 17 Oct 2018 09:31:01 +0200 In-Reply-To: <87zhvd7mg9.fsf@mail.linkov.net> X-Provags-ID: V03:K1:MA/nuH/wWbWwveaFjFZfdZmDXzilZ6D1ylY/gjo/IgGNGDDCXDQ ieGYF1dUHSirhcAfqovMC34anEVkQD70np8gbQIYtLlM/EiEGrrFHRTZRCwkDhSrI+e/p0p m4sxs436+Ev0erBCVUV9+fc6hICO63w1AmNCaRSuSUJ16YAb8byaV5QtFNRO7SmpUS8YHid YFfthnT18y+rYXxveuGpg== X-UI-Out-Filterresults: notjunk:1;V01:K0:QQB3PSMaYnM=:+HDRdP1oXxaS+0FZ/dZWIv sLIxWjarv3Lrm+26RHp+XnXvP2UjZ0PwVi2P7bKJejZpyx96jiyJmHoZIl5rh5WHVCrWEmdtL lupWhk1KGMsrhcQiKNwYk9LJi8kLanxWypnQLNlcq8jJgVhdw4W+BHCn8aF0AlUdY62XOhOX8 5f2WqHEGeNnhwBaLmCT67LEjXimpdHpqTf00KrpBuWx1+h69Svqk/W2BIRRrkECmxAb1OIgKp JVi2PCd5h1a8A2gs0X7HQr0wxTvhxw6J5zJok7Lr+7iDONxe3RYRy4Go8gGHg0HTIAvRfnPFF ywvG8Mpd5OlPdiz3uiwqCby3mA4sCxd2U0M4JnDTf2on8XArtR/nR+T2Yw5MFQucGFgcnK7jG a3LjomzOnS0wiLeXDjqgMLFojtqDhggb2mKy49zPxd/jjqbHjbZrGjDYx1AZUFwOCLIOT53Ns I4YbRxsewFOTWUZO1FoIddOen8QSpk+plk9olsw5ka9u+pFKkJJPU3QjbXweYjtwKxkP2L/zD P7UK6snS9AmoZKPZqwh+MGij9fNKygUEU1jm2k9HQSQhcVhhPceh7aAKGpoqNCmphFKwwVqti 9FiI7ic4GkAl/VxOUPB4Fl5adUaGAXL1ydebUeINwHdF1OME3fqwSE84RhDoWD4/9Aj6jwmN6 Xndzr+s13HYBZBtyCxh5JKG9XVGVwMJ5y24zSGdiAdwptGRLWvPky3HdTnDgiANuu/OYumbgV w+Y9nMNrrSVStN1OthrDit03BShcNrBoUQkU++UJDHvHdfj7gjFiGYYTeLC31oQ9QYP09xxX 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:151339 Archived-At: > For window selection I use (windmove-default-keybindings 'hyper), > so e.g. '' selects the left window. Could you recommend > a command to bind to e.g. 'C-x ' that will delete the left > window? Here drags the character under the cursor by one character to the left and drags the current line up by one line. I use for selecting the window on the left. either deletes the window on the left of the selected window provided there is one or makes a new window on the left of the selected window provided the selected window is already on the left of the frame. The code for that command is below. martin (defun window-delete-or-split-left () "If selected window has a window on left delete that window. Otherwise split selected window horizontally and select left window." (interactive) (unless (condition-case nil (save-selected-window (if (fboundp 'window-in-direction) (let ((window (window-in-direction 'left))) (when window (delete-window window) t)) (windmove-do-window-select 'left) (delete-window) t)) (error nil)) (if (fboundp 'window-in-direction) (let ((window (split-window nil nil 'left))) (select-window window)) (split-window-horizontally))))