From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Boruch Baum Newsgroups: gmane.emacs.devel Subject: Re: Proposal: new default bindings for winner and windmove Date: Sun, 22 Aug 2021 03:37:43 -0400 Message-ID: <20210822073742.dy2ifft45ot24h6o@E15-2016.optimum.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16342"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: NeoMutt/20180716 Cc: Eli Zaretskii , Daniel Colascione , Arthur Miller To: Emacs-Devel List Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Aug 22 09:38:46 2021 Return-path: Envelope-to: ged-emacs-devel@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 1mHi45-00044h-Gt for ged-emacs-devel@m.gmane-mx.org; Sun, 22 Aug 2021 09:38:45 +0200 Original-Received: from localhost ([::1]:48772 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mHi44-0005gg-7q for ged-emacs-devel@m.gmane-mx.org; Sun, 22 Aug 2021 03:38:44 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59430) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mHi3K-000522-7r for emacs-devel@gnu.org; Sun, 22 Aug 2021 03:37:58 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:50701) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mHi3I-0001PP-8I; Sun, 22 Aug 2021 03:37:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1629617866; bh=79SNtgAWdfZUTPAiXUB5S8/eApGDyacRCvnDivUeBz0=; h=X-UI-Sender-Class:Date:From:To:Cc:Subject; b=EzLyOYiMlhTYSrs9x2TyiTw9XYANcCwyzhtMLGh10Rh7LcrOnKdxUhq+DvyB6yMgm 0nFdJoCIS5d1gFpksSNkQ8yiiizo79g51Bq6w6rx/nFyMg8z4ZOevZKwExZ0Yh5cIu aWAUnPrzRaEPDIBxccCgxVQmZ8Y2yj3BXTxFQFd8= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from E15-2016.optimum.net ([141.157.226.108]) by mail.gmx.net (mrgmx004 [212.227.17.184]) with ESMTPSA (Nemesis) id 1N1Obh-1n1vkn10GJ-012qSb; Sun, 22 Aug 2021 09:37:46 +0200 Content-Disposition: inline X-Provags-ID: V03:K1:qb2fGWMNeC3I7GDgozfYuJdWaCSYsZng87U7IsQpMoeMV4sPO7o zvGJEfWK+/wEGoMPddO0oKg2ufHPxQa0/N1HRRTDvnA9Ahbu/FYG0zzbTuAUq7dFBVQsto7 7VDWYF8L8nknfnSykSkimokpCsbK3qmdYzxdH8Y/h51ZT/m+rapm8A8hFzJqIwa5bqwkRRW tXvmBLmz4oayrBjQID5Kw== X-UI-Out-Filterresults: notjunk:1;V03:K0:nDh4bt+bb2Y=:y3L5uvvk1Vmtu24R8GUlI+ gQxMqYWEN/4HqfS6gqaOHRnI27NBxLROrVxuEjhvDpkN3WOlANN3dOZnPsSFa7MoWx9r4sZww 1RzNdtkBsH1qxjohm8Fd1VHmpHTUT/NMPPng08s0YWanHBBLmbQF3MZGaRTAY6k6S8FfuOOHy ovlNjvEku6myovroa9PzPe9wooatzA8dmVxZt3nwO3rDjVtPoq1tY3NzDsabSX3rIydjXtP/R 7jD4zbJk9g7DQB4MImbDSTKFTvHpd66Sd7Su4Qaue4YInVkFKiTc2YSUxk7/DovkYjPy5moyy 79k8H4afcLQ8v/cwzuWhTKR7U3/SeEX/vDxQ7m+1dcW/slXE/lO8MUkAwDlj56CdP0xDWTysp PRBEt+iQ47A/eRpAF4cSJU/KoL1eSUpK8lUpWyo+ToNptQhE/iMh6nq5tZhsaalfPj0Mnv6cs iwM7Ij1P6MvZRfC0/3eZpXy8vLYGdm4pUbnyaIato8p5S3QUIUmvJ11JlVYFfVRQH0qfmGqWy XoLcIlsRqXOy6fDaJjDPrm2V41CV7JHbhgDqvx3KkBxv8X6QZlqnrmfPGnn5tMehNlz4TCmQC r1+MJYMIPQ99Y4KCxlcR7BIoDPKyp42uM9VRuwikMaldhbD1scNMiNcmmVKfVmu7s3HFqgt9M EhDZo72qnvapX4246IX7E245RMc0eXk8V7V3LLoeeP3k/RziN6L1kqOre3HxIrwdL7MQu5oIZ OwHTMfcuzQce2O2G+LT3TaQNlk3pMx6hjATH/3VuWV91/0JSGhY5XmHCZO8kZG/XcqqMSqLE Received-SPF: pass client-ip=212.227.15.19; envelope-from=boruch_baum@gmx.com; helo=mout.gmx.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:272825 Archived-At: > From: Eli Zaretskii > Date: Sun, 22 Aug 2021 09:02:23 +0300 > > > From: Arthur Miller > > Date: Sat, 21 Aug 2021 22:20:22 +0200 > > > > > I'm actually surprised they have key bindings. How frequently do yo= u > > > undo/redo window configuration changes? > > You obviously don't need to call help functions as often as I :). Adding myself to the list of people who use winner-mode often and are happy with the keybinding status quo. > > It is handy to restore back windows after > > ... +1 > My solution to the "window configuration issue" is to keep several > frames, one each for different tasks. Each frame has windows arranged > as appropriate for that task, and that configuration rarely if ever > changes. As a case in point, I found `ediff' mode very frustrating in that upon quitting, it would always leave me with an undesirable window configuration, and I never figured out how to *reliably* automate using `winner-undo' for that situation. What did work was what you're suggesting: (defun my-ediff-pre () "Stuff to perform before starting any `ediff' session. Meant to be an entry in variable `ediff-before-setup-hook'." (make-frame-command) (set-frame-name "ediff")) (defun my-ediff-post () "Stuff to perform after exiting any `ediff' session. Meant to be an entry in variable `ediff-quit-hook'." (condition-case nil (progn (select-frame-by-name "ediff") (delete-frame)))) (add-hook 'ediff-before-setup-hook #'my-ediff-pre) (add-hook 'ediff-quit-hook #'my-ediff-post 100) IMO, this should be considered as a default setup for ediff, and the notion of defaulting to a dedicated frame for certain other specific tasks should be considered (eg. calendar/diary). BTW, I do this with packages diredc and crossword. =2D- hkp://keys.gnupg.net CA45 09B5 5351 7C11 A9D1 7286 0036 9E45 1595 8BC0