From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philip Kaludercic Newsgroups: gmane.emacs.bugs Subject: bug#41438: [PATCH] Allow windmove keys to be bound without prefix or modifiers Date: Tue, 25 May 2021 11:46:31 +0000 Message-ID: <87mtsjghns.fsf@icterid> References: <87imgpw7k3.fsf@warpmail.net> <87mu36enhl.fsf@posteo.net> <8735uru1py.fsf@gnus.org> <871r9yjyv5.fsf@posteo.net> <87h7irqtvf.fsf@gnus.org> <87im37p2b4.fsf@icterid> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8717"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 41438@debbugs.gnu.org, Lars Ingebrigtsen , Juri Linkov To: Arthur Miller Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue May 25 13:47:16 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1llVWl-00022o-9R for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 25 May 2021 13:47:15 +0200 Original-Received: from localhost ([::1]:49072 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1llVWk-0000CG-BA for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 25 May 2021 07:47:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35770) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1llVWZ-0000Bc-25 for bug-gnu-emacs@gnu.org; Tue, 25 May 2021 07:47:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33322) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1llVWX-0000Ck-Tx for bug-gnu-emacs@gnu.org; Tue, 25 May 2021 07:47:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1llVWX-0001du-Sp for bug-gnu-emacs@gnu.org; Tue, 25 May 2021 07:47:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Philip Kaludercic Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 25 May 2021 11:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41438 X-GNU-PR-Package: emacs Original-Received: via spool by 41438-submit@debbugs.gnu.org id=B41438.16219432036290 (code B ref 41438); Tue, 25 May 2021 11:47:01 +0000 Original-Received: (at 41438) by debbugs.gnu.org; 25 May 2021 11:46:43 +0000 Original-Received: from localhost ([127.0.0.1]:44868 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1llVWE-0001dO-Nx for submit@debbugs.gnu.org; Tue, 25 May 2021 07:46:42 -0400 Original-Received: from mout02.posteo.de ([185.67.36.66]:58373) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1llVWB-0001d4-G2 for 41438@debbugs.gnu.org; Tue, 25 May 2021 07:46:41 -0400 Original-Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 2F14E2400FE for <41438@debbugs.gnu.org>; Tue, 25 May 2021 13:46:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1621943193; bh=57uF1vKPW9czuqotkSgpcuUEK60/K/IbGFFqzeHy20M=; h=From:To:Cc:Subject:Autocrypt:Date:From; b=TR80/y/oZupaa+5UrBaLtE/1YDzJpiPokiX/IhtnzIP64Q1LjE42B/tC9J2Q4nX8A 5hWWs1+x0BDEImQt0dZd3bd6b22BRrpYuAQp9gPe3zVrftazOeeRnClVE0feE0Zfnh mdDakQWP3a6ys8ij5VKwvr3yYiiOIfrpNocd1F9l9c0Y+I6iEuVOIMhtfZIprKXGjD iF9zE45hfrdVo15y/UOsyCmEmhukzvY4lSeV8lVbe2LzVIMQ2PGyg1BVVolaHM2c9L tzxFWYeL8ytW3UXwaTwvNkHpFarRofzE4tEvjoyp5yhVaWsduNAbb7NKBD9SM35xbB bpQg/lfCwhRNg== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4FqC3C6qtGz9rxf; Tue, 25 May 2021 13:46:31 +0200 (CEST) Autocrypt: addr=philipk@posteo.net; prefer-encrypt=mutual; keydata= mDMEYHHqUhYJKwYBBAHaRw8BAQdAp3GdmYJ6tm5McweY6dEvIYIiry+Oz9rU4MH6NHWK0Ee0QlBo aWxpcCBLYWx1ZGVyY2ljIChnZW5lcmF0ZWQgYnkgYXV0b2NyeXB0LmVsKSA8cGhpbGlwa0Bwb3N0 ZW8ubmV0PoiQBBMWCAA4FiEEDM2H44ZoPt9Ms0eHtVrAHPRh1FwFAmBx6lICGwMFCwkIBwIGFQoJ CAsCBBYCAwECHgECF4AACgkQtVrAHPRh1FyTkgEAjlbGPxFchvMbxzAES3r8QLuZgCxeAXunM9gh io0ePtUBALVhh9G6wIoZhl0gUCbQpoN/UJHI08Gm1qDob5zDxnIHuDgEYHHqUhIKKwYBBAGXVQEF AQEHQNcRB+MUimTMqoxxMMUERpOR+Q4b1KgncDZkhrO2ql1tAwEIB4h4BBgWCAAgFiEEDM2H44Zo Pt9Ms0eHtVrAHPRh1FwFAmBx6lICGwwACgkQtVrAHPRh1Fw1JwD/Qo7kvtib8jy7puyWrSv0MeTS g8qIxgoRWJE/KKdkCLEA/jb9b9/g8nnX+UcwHf/4VfKsjExlnND3FrBviXUW6NcB In-Reply-To: (Arthur Miller's message of "Tue, 25 May 2021 13:36:22 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:207195 Archived-At: Arthur Miller writes: > If you are already patching windmove.el, can you consider adding > bindings for these funcitions too (defined in window.el): > > enlarge-window-horizontally > shrink-window-horizontally > > As well as add these two wrappers for vertical operations: > > #+begin_src emacs-lisp > > ;;;###autoload > (defun enlarge-window-vertically (delta) > "Make selected window DELTA columns wider. > Interactively, if no argument is given, make selected window one > column wider." > (interactive "p") > (enlarge-window delta nil)) > > ;;;###autoload > (defun shrink-window-vertically (delta) > "Make selected window DELTA columns narrower. > Interactively, if no argument is given, make selected window one > column narrower." > (interactive "p") > (shrink-window delta nil)) > > #+end_src > > I have been using those for long time myself since I prefer to do > everything from the keyboard. Maybe someone else finds them useful too; > they have been in my config on GH for long time. I am not sure if these commands should be added as part of the same changeset. The point of this commit is to make configuring windmove keys using windmove-default-keybindings & co. more consistent. -- Philip K.