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 00:20:57 +0000 Message-ID: <87k5p0xjpy.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 1194045681 17338 80.91.229.12 (2 Nov 2007 23:21:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 2 Nov 2007 23:21:21 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Nov 03 00:21:23 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 1Io5pL-0003Wc-7f for ged-emacs-devel@m.gmane.org; Sat, 03 Nov 2007 00:21:23 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Io5pA-0004rY-Un for ged-emacs-devel@m.gmane.org; Fri, 02 Nov 2007 19:21:12 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Io5p7-0004o6-03 for emacs-devel@gnu.org; Fri, 02 Nov 2007 19:21:09 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Io5p4-0004lW-U0 for emacs-devel@gnu.org; Fri, 02 Nov 2007 19:21:08 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Io5p4-0004lJ-Pc for emacs-devel@gnu.org; Fri, 02 Nov 2007 19:21:06 -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 1Io5p4-0007yk-G9 for emacs-devel@gnu.org; Fri, 02 Nov 2007 19:21:06 -0400 Original-Received: by mu-out-0910.google.com with SMTP id i2so1483245mue for ; Fri, 02 Nov 2007 16:21:05 -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=Rr7YCOjrSsoACpF1cHdAaGDM2mejMIdPCayOltKiYDk=; b=JJXp0cnm9oVMOOVQY+OddICjymzhhZS+nTdrx1wQtGpwDLs+KliJfob2Qq1l+Gp+IYCBXyfXljXLO4SvnFkElw/tvLABFprDmMGwqIWBLiB5HzegQvgvIgN4VRFJt/Ny+xp1o7w2sViBHnayZmWpKQBD1mGxATXqkGUJLgRG9rM= 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=q39wAruzERLaeGDo1Huhfa5bJMev6U+blzwq9OMYehdkDQDuK+yAFt198w1HBp/JVEEJkrA2c9q4pmlYYhlUWyOIFM495qu0EJwXRNK/DsD6C1zjgqaLGqTFtVq+a6i0hf1siClCVB2jyy+SXaN/P1wHoUUIgm31jaBnz6IVxwI= Original-Received: by 10.86.95.20 with SMTP id s20mr1173907fgb.1194045665232; Fri, 02 Nov 2007 16:21:05 -0700 (PDT) Original-Received: from bzg.ath.cx ( [78.113.180.159]) by mx.google.com with ESMTPS id j9sm8065965mue.2007.11.02.16.21.02 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 02 Nov 2007 16:21:03 -0700 (PDT) Original-Received: by bzg.ath.cx (Postfix, from userid 1000) id 36B8B1575BA; Sat, 3 Nov 2007 00:20:57 +0000 (GMT) In-Reply-To: (Drew Adams's message of "Fri, 2 Nov 2007 07:28:10 -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:82385 Archived-At: "Drew Adams" writes: > But again, choose whatever keys you like. Thanks :) >> 2. It doesn't really take care of what border do you want to act on. > > I don't know what you mean by "take care of what border". No, it simply > resizes the window, by calling `shrink-window(-horizontally)'. If that > function is not what you want, then use another that does what you want. Take this window configuration: |----------+----------+----------| | | | | | | | | | Window 1 | Window 2 | Window 3 | | | | | | | | | |----------+----------+----------| ^ ^ (A) (B) Let's say the point is on the second Window. When pressing the left arrow key, you expect the border (A) will move to the left; pressing the right arrow key makes you wait for the border (B) to move to the right. This is what I mean by "taking care of what border to act upon", and this is what does the version `resize-window' i proposed before. >> The `resize-window' I proposed in this thread, while definitely ugly, >> moves the left border when you use the left key `l', the right border >> when you use the right key `r', etc. It is the most usable solution >> I've tested so far. > > Nothing wrong with that, if that's what you want. Yes it is. I was led to this by testing Lennart's bw-interactive.el, which is also able to know what border to move. > My point was that Do Re Mi is completely general. You can use it to > increase/decrease anything incrementally (or use it to cycle among > enumeration values). This gave me the occasion to test doremi.el, and it's great. I stumbled on this in the emacswiki before -- the name intrigued me -- but I didn't have time to play with it. Done! -- Bastien