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: Sun, 28 Oct 2007 21:47:58 +0000 Message-ID: <87fxzuud0x.fsf@bzg.ath.cx> References: <87r6jfed61.fsf@bzg.ath.cx> <4724674B.1090404@gmail.com> <87d4uza1f0.fsf@bzg.ath.cx> <472470CD.8060806@gmail.com> <87sl3v2th3.fsf@bzg.ath.cx> <4724EF0A.8050909@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1193604568 7637 80.91.229.12 (28 Oct 2007 20:49:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 28 Oct 2007 20:49:28 +0000 (UTC) Cc: emacs-devel To: "Lennart Borgman \(gmail\)" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 28 21:49:30 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 1ImF4T-0003Mh-6M for ged-emacs-devel@m.gmane.org; Sun, 28 Oct 2007 21:49:21 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ImF4K-0004gJ-57 for ged-emacs-devel@m.gmane.org; Sun, 28 Oct 2007 16:49:12 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ImF3t-00047R-6A for emacs-devel@gnu.org; Sun, 28 Oct 2007 16:48:45 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ImF3I-0003FG-JK for emacs-devel@gnu.org; Sun, 28 Oct 2007 16:48:44 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ImF3I-0003F1-Dj for emacs-devel@gnu.org; Sun, 28 Oct 2007 16:48:08 -0400 Original-Received: from nf-out-0910.google.com ([64.233.182.189]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1ImF3H-0004wb-Q9 for emacs-devel@gnu.org; Sun, 28 Oct 2007 16:48:08 -0400 Original-Received: by nf-out-0910.google.com with SMTP id f5so1290688nfh for ; Sun, 28 Oct 2007 13:48:07 -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:cc:subject:in-reply-to:references:user-agent:date:message-id:mime-version:content-type:sender; bh=Aq2sfkZ20sP4GbvEZowBxGfWhBMl815wYkDn/EkgvWE=; b=QbGnlZU8bEtbJ3XDM2d8s5DhCioSlAx3jkxgyOOMg18S7bXMX40mert13b7WZFfeqcT7wFurkogmYT9IRsJECnRSTKwJl8hLPbSLAOcmIGLrfwWPBVI8yuXshxw/NOTPfTp+vVPNpVWTQLBkwvkOhvK3pm9Gh2URjN53gvZ+G9o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=beta; h=received:from:to:cc:subject:in-reply-to:references:user-agent:date:message-id:mime-version:content-type:sender; b=eQ0QCxel0YO+wc4nhwLjnowX8htSrkA+hJaFJ/q66hurk1Lrgyrh7NIuJippJJ82cjHylluHzdHiPXqHf9mOptWIsd2g1RkRLjhyT9yWi4BcxQX+Npq6Gi080CSQQ5bwG5kgd2/ePPhffZuqN/psNLXX5phGJV7K2tHaCtAXmeE= Original-Received: by 10.86.78.4 with SMTP id a4mr4212527fgb.1193604486679; Sun, 28 Oct 2007 13:48:06 -0700 (PDT) Original-Received: from bzg.ath.cx ( [78.113.180.159]) by mx.google.com with ESMTPS id w7sm12345270mue.2007.10.28.13.48.03 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 28 Oct 2007 13:48:05 -0700 (PDT) Original-Received: by bzg.ath.cx (Postfix, from userid 1000) id 73E261575BA; Sun, 28 Oct 2007 21:47:58 +0000 (GMT) In-Reply-To: <4724EF0A.8050909@gmail.com> (Lennart Borgman's message of "Sun, 28 Oct 2007 21:20:26 +0100") 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:81987 Archived-At: "Lennart Borgman (gmail)" writes: >> C-x + `balance-windows' >> C-x ^ `enlarge-window' > > This is not well defined. There may be 4 different borders to move. It is well-defined: `enlarge-window' means implicitely enlarge-window vertically (since enlarge-window-horizontally is a separate function). And having four borders in a window doesn't mean you can always act on this four borders. Actually, in most of the cases, you can vertically act on only one border, and horizontally act on only one border. This is why `enlarge-window' and `shrink-window' are well defined IMHO: it's pretty rare to have a window with two movable vertical borders or two movable horizontal borders. >> C-x - `shrink-window-if-larger-than-buffer' > > Same as above. Why? Please show me an example when it doesn't behave as the user would expect. >> My point is precisely that C-x + is fine as it is. > > And mine is that resizing windows should not occupy more human memory > and key binding space if possible. "C-x + +" is nearly as easy as "C-x > +" to type. Don't get me wrong: I do think bw-interactive.el is useful when you need to do complex resizing. But we more often need to do simple resizing so simply adjusting the window size with the native keybindings is fine. And `C-x + +' uses more human memory than `C-x +', no? >> Again, it's more intuitive to me that C-x + increase the >> vertical size of the window immediately. > > See above. You have to decide which border to act on first. But can't you make the arrow key be at the same time the decision (resize from the left border) *and* the action (move left)? And drop the action in case it has no sense in the current window configuration? >> Which one? I'm using ratpoison. C-t C-r does the job of your C-x +, >> then C-f will enlarge the ratpoison-window immediately, no need to >> press C-f twice. > > Eh, I am using w32. Do you mean that ratpoison interfere with Emacs key > bindings? No. I mean that in ratpoison you have the same window configuration than the one in Emacs, and resizing a window just takes one keystroke; you don't need to decide what border to move first, then how to move it. > I tried to explain above. Is it clear now? (Or have I perhaps missed > something?) Sorry but it's not clearer... any example would perhaps be useful. Maybe I just miss something very obvious myself. > Thanks, I will add a message when exiting the minor mode then. Great, thanks. -- Bastien