From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bastien Newsgroups: gmane.emacs.help,gmane.emacs.devel Subject: Re: New keybinding suggestion: C-x _ for `shrink-window' Date: Sun, 28 Oct 2007 12:06:43 +0000 Message-ID: <87d4uza1f0.fsf@bzg.ath.cx> References: <87r6jfed61.fsf@bzg.ath.cx> <4724674B.1090404@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1193569647 12724 80.91.229.12 (28 Oct 2007 11:07:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 28 Oct 2007 11:07:27 +0000 (UTC) To: help-gnu-emacs@gnu.org, emacs-devel Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Oct 28 12:07:28 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 1Im5zJ-0000dP-MY for geh-help-gnu-emacs@m.gmane.org; Sun, 28 Oct 2007 12:07:25 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Im5zA-0001Cx-IB for geh-help-gnu-emacs@m.gmane.org; Sun, 28 Oct 2007 07:07:16 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Im5yt-0001Bf-Pb for help-gnu-emacs@gnu.org; Sun, 28 Oct 2007 07:06:59 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Im5yr-0001B2-SY for help-gnu-emacs@gnu.org; Sun, 28 Oct 2007 07:06:59 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Im5yr-0001Ar-NL for help-gnu-emacs@gnu.org; Sun, 28 Oct 2007 07:06:57 -0400 Original-Received: from hu-out-0506.google.com ([72.14.214.234]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Im5yr-0002Pe-8k for help-gnu-emacs@gnu.org; Sun, 28 Oct 2007 07:06:57 -0400 Original-Received: by hu-out-0506.google.com with SMTP id 23so867398huc for ; Sun, 28 Oct 2007 04:06:55 -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=J0KSflxVCJMQDpSVM6rFVvY+9Zdq1ZopFQgRnD/wyKQ=; b=oSvVneJDzOWwRMKIbpzCLUArJLuZQJsCf17ogfaZmNrzUmLDbk86eJGXBwSBX+CXJlidcAvSF/HEO095Wn6upzdw1mv+DOgfl+iI5SPVG5YlGmCAUIR0IPNpLXNj3fXpwvqi2XXW9RZZCVq9Lj18m41dre8GNGxG2D0kCJzEzjY= 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=FGCaSyvZI2Ci3b0f9OGbBiaL6XlUSrxXXN921jZ688SvPUqrr64SjMBq4x7qNGHREHOsCwN2Qpmjlp05j74hfdqLW0C2w0ToNHxt286CpDvJi4H9/rrJ7jZ7ttbNlB30flgJhuLtAEK7n5Yr63mTI5e/gMzCeIzDGTJkLUAMFPs= Original-Received: by 10.86.54.3 with SMTP id c3mr3864936fga.1193569615679; Sun, 28 Oct 2007 04:06:55 -0700 (PDT) Original-Received: from bzg.ath.cx ( [78.113.180.159]) by mx.google.com with ESMTPS id j2sm11218665mue.2007.10.28.04.06.53 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 28 Oct 2007 04:06:54 -0700 (PDT) Original-Received: by bzg.ath.cx (Postfix, from userid 1000) id 3D6441575BA; Sun, 28 Oct 2007 12:06:42 +0000 (GMT) In-Reply-To: <4724674B.1090404@gmail.com> (Lennart Borgman's message of "Sun, 28 Oct 2007 11:41:15 +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:48865 gmane.emacs.devel:81930 Archived-At: "Lennart Borgman (gmail)" writes: >> What about this new keybinding: >> >> C-x _ `shrink-window' > > As I answered on that mailing list I think you might want try > bw-interactive.el. Sorry, I missed it. > My suggestion is that this is added to Emacs instead. I have attached > the file. My suggestion would be to have both: C-x _ as a new keybinding for `shrink-window' (since we already have a key for `enlarge-window') *and* bw-interactive.el, which sounds nice. IMHO it's better to stick to the possibility of balancing/resizing windows (or shrinking/enlarging them) with just *one* keystroke. A few comments on bw-interactive.el though. Assume I start with a full window and have C-x + bound to `bw-start-resize-mode': - It seems that the first arrow keystroke says: "Hello, please start resizing with arrow keys!" but wait for another keystroke. I think the user might expect that the first arrow keystroke has a visible effect on window resizing already. - C-x 2 C-x + won't shrink the window if it's larger than the buffer; but C-x 2 C-x + will shrink the window even if it's *initially* larger than buffer. I believe that the first set of keystrokes should already shrink the window, or at least send an error to the user. Anyway, bw-interactive seems like it's already very useful to me, thanks for that. -- Bastien