From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bastien Newsgroups: gmane.emacs.devel Subject: Re: New keybinding suggestion: C-x _ for `shrink-window' Date: Sat, 03 Nov 2007 16:43:13 +0000 Message-ID: <87tzo3l1pa.fsf@bzg.ath.cx> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1194104615 10600 80.91.229.12 (3 Nov 2007 15:43:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 3 Nov 2007 15:43:35 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Nov 03 16:43:38 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IoL9t-0003q6-HP for ged-emacs-devel@m.gmane.org; Sat, 03 Nov 2007 16:43:37 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IoL9j-0004w1-6Z for ged-emacs-devel@m.gmane.org; Sat, 03 Nov 2007 11:43:27 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IoL9f-0004vW-Lg for emacs-devel@gnu.org; Sat, 03 Nov 2007 11:43:23 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IoL9d-0004vG-Vn for emacs-devel@gnu.org; Sat, 03 Nov 2007 11:43:22 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IoL9d-0004v7-Qh for emacs-devel@gnu.org; Sat, 03 Nov 2007 11:43:21 -0400 Original-Received: from mu-out-0910.google.com ([209.85.134.187]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IoL9d-0003bI-EY for emacs-devel@gnu.org; Sat, 03 Nov 2007 11:43:21 -0400 Original-Received: by mu-out-0910.google.com with SMTP id i2so1860129mue for ; Sat, 03 Nov 2007 08:43:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=beta; h=domainkey-signature:received:received:received:from:to:subject:in-reply-to:references:user-agent:date:message-id:mime-version:content-type:sender; bh=PHBs7I8xH7LwHwC5CBjpAcPILduR9Fdu1VddIcl7zUs=; b=OK2t3E7OPEoa1rh9XEAyzfp5+Z4icQBRPHLzkjig2GiZf1o3nLHyd4vlBOF9ww2rkTHorUHZFdS6JGVYQqoINlS7Ksl2JqZQg6hoscvBweQBBUOaaT0qA6zyElZvBmG/BTFFqhPMqGvNQtc/33fETc+p5u8wnYLSgU5j/eoEMqs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=beta; h=received:from:to:subject:in-reply-to:references:user-agent:date:message-id:mime-version:content-type:sender; b=JaTbVvWnfk+nfB+AeEo5bMNMKAS83wt/As+2k30THsi3ZhGAP/7Afjxz52pC8dM9VwVbzYHOHXH6AKHl5Ejh938SQtNvEcES3kpzFBw50AHqbFkcQR9wi1xlCPcVJEIWBGbsYOSWzgmq6HfINKgC9QXOsiTwgXDsf5wLffq3uAM= Original-Received: by 10.86.84.5 with SMTP id h5mr1775723fgb.1194104599863; Sat, 03 Nov 2007 08:43:19 -0700 (PDT) Original-Received: from bzg.ath.cx ( [78.113.180.159]) by mx.google.com with ESMTPS id v23sm7882106fkd.2007.11.03.08.43.17 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 03 Nov 2007 08:43:18 -0700 (PDT) Original-Received: by bzg.ath.cx (Postfix, from userid 1000) id 743521575BA; Sat, 3 Nov 2007 16:43:13 +0000 (GMT) In-Reply-To: (Drew Adams's message of "Sat, 3 Nov 2007 08:15:06 -0700") User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.0 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:82431 Archived-At: "Drew Adams" writes: > Or you could opt for something else. What is it that you want? What is > this thread really about? Good question :) 1. I started to suggest using C-x _ for `shrink-window'. We already have these keys: C-x {, C-x }, C-x ^ but C-x - is *not* the fourth logical element here; it's `shrink-window-if-larger-than-buffer'. 2. Lennart jumped in and pointed to bw-interactive.el, which does a good job at resizing windows border-wise. 3. Richard added that C-x _ wasn't a good idea and that we could even consider drop the C-x { and C-x } keys if we have a better scheme for resizing windows. 4. Stefan suggested it might be a good idea to have something like a `resize-window' command that would spare us the hassle of repeating resizing commands too often. 5. Juanma sent a `resize-window' command he's been using "for years", suggesting that this could be improved by making it interact with windmove.el 6. I sent an updated (ugly) `resize-window' trying to use windmove.el to resize the windows borderwise. This function does a similar job than bw-interactive.el, although it's a bit shorter. It could be improved by binding the arrow keys instead of [ldur]. 7. You proposed to use doremi.el as an example of what doremi.el can do when it comes to handling incremental actions. 7. The discussion sank into madness because of the confusion between what I called bi-directional and four-directional resizing schemes -- or size-wise and border-wise resizing schemes... 8. We still need to find an agreement on what resize-window should do and I pronounced myself in favor of the four-directional approach, provided we use arrow-keys for that. Next action: comment, test, improve and clean the latest `resize-window' and see if everyone is happy with it! -- Bastien