From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bastien Newsgroups: gmane.emacs.help Subject: Re: New keybinding suggestion: C-x _ for `shrink-window' Date: Sun, 28 Oct 2007 21:47:05 +0000 Message-ID: <87k5p6ud2e.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 1193604508 7440 80.91.229.12 (28 Oct 2007 20:48:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 28 Oct 2007 20:48:28 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Oct 28 21:48:30 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1ImF3d-00037K-9Z for geh-help-gnu-emacs@m.gmane.org; Sun, 28 Oct 2007 21:48:29 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ImF3U-000316-4c for geh-help-gnu-emacs@m.gmane.org; Sun, 28 Oct 2007 16:48:20 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ImF37-0002vb-Dw for help-gnu-emacs@gnu.org; Sun, 28 Oct 2007 16:47:57 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ImF2R-0001YQ-1A for help-gnu-emacs@gnu.org; Sun, 28 Oct 2007 16:47:55 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ImF2Q-0001Y0-Qq for help-gnu-emacs@gnu.org; Sun, 28 Oct 2007 16:47:14 -0400 Original-Received: from mu-out-0910.google.com ([209.85.134.185]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1ImF2Q-0004d7-5e for help-gnu-emacs@gnu.org; Sun, 28 Oct 2007 16:47:14 -0400 Original-Received: by mu-out-0910.google.com with SMTP id g7so1833928muf for ; Sun, 28 Oct 2007 13:47:12 -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=Aq2sfkZ20sP4GbvEZowBxGfWhBMl815wYkDn/EkgvWE=; b=GZP2ktwtiQmkwEQZliVehMPzNvX5GAvXm69tzt48vaODiUNxkl+t0gDsRxynPTd75O7GjGXUwjxTP8i7hUil+5j8Yvjz/tFfNk2xaM04bwHmscqY1MS0jfBOf/QhXWQUv/uRb4sL0I/UwGyV3Z8mbMLLBBKVFadT/mZecM+zQLw= 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=gMyxsLJnS/bjDf+gYLcPkbx8gPu3l689b+a/7wO+uCsuRnqN2k7/nxZyXSrp1kqd3sqby+VrPS0+ldPJWf7XXdY/T80kx5AtNrYXL3Gw/RshFL1v60EgPAJbcJLtpU0Qtrpsrns3uU+ZA04ouTUC2T1dvB4O1BiXPNhGm45bCfA= Original-Received: by 10.86.100.7 with SMTP id x7mr4192264fgb.1193604432660; Sun, 28 Oct 2007 13:47:12 -0700 (PDT) Original-Received: from bzg.ath.cx ( [78.113.180.159]) by mx.google.com with ESMTPS id g1sm12375039muf.2007.10.28.13.47.10 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 28 Oct 2007 13:47:11 -0700 (PDT) Original-Received: by bzg.ath.cx (Postfix, from userid 1000) id 391BA1575BA; Sun, 28 Oct 2007 21:47:05 +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: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:48883 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