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: Wed, 14 Nov 2007 01:14:54 +0000 Message-ID: <87wsslsk4x.fsf@bzg.ath.cx> References: <87ejexwf4m.fsf@bzg.ath.cx> <87wssom9qy.fsf@bzg.ath.cx> <876406e0pk.fsf@bzg.ath.cx> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1195002925 8224 80.91.229.12 (14 Nov 2007 01:15:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 14 Nov 2007 01:15:25 +0000 (UTC) Cc: emacs-devel@gnu.org To: bob@rattlesnake.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 14 02:15:28 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 1Is6qj-0005BF-2g for ged-emacs-devel@m.gmane.org; Wed, 14 Nov 2007 02:15:25 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Is6qW-00035k-4s for ged-emacs-devel@m.gmane.org; Tue, 13 Nov 2007 20:15:12 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Is6qT-00035E-CI for emacs-devel@gnu.org; Tue, 13 Nov 2007 20:15:09 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Is6qQ-00034x-TG for emacs-devel@gnu.org; Tue, 13 Nov 2007 20:15:09 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Is6qQ-00034u-Ne for emacs-devel@gnu.org; Tue, 13 Nov 2007 20:15:06 -0500 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 1Is6qQ-0002Wr-Cp for emacs-devel@gnu.org; Tue, 13 Nov 2007 20:15:06 -0500 Original-Received: by nf-out-0910.google.com with SMTP id f5so11883nfh for ; Tue, 13 Nov 2007 17:15:05 -0800 (PST) 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=coW3DyLSF8oYyHiZQQ1CGnsBj+gOwuVSaLEXQkXwLwg=; b=XPw/zCr93Pt8ZQReO2tMtWynpz2KPySNwb9jrNiyKzB0H5Km9wtoU+Kmgra6dWV47P/vwidXF/jzb36/nB8lMIvKm1B+QMGwRiMIBxG9sd5R92tYtmA4Ng7kvqzMr093rYLnrPmyUL5AEEPIPzwqgh+I+arF9+0SCmflL8+v7cA= 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=XzqUdSwkP2P+tKKls3/PIZk81Ozd7osjzv+9xzGJU5TWQzbMWz4U4qgn1mM/gC5236OC8vjjOU5MZoNgBqBg8l5a+8InNpls7b4K8ou7mJS6I6mvXsPOukBkrF3BwxaJ2RGJoocerYmyrLUm1roqfTjx5z1mIeZ/eRGi549HZFw= Original-Received: by 10.78.149.15 with SMTP id w15mr7422821hud.1195002898316; Tue, 13 Nov 2007 17:14:58 -0800 (PST) Original-Received: from bzg.ath.cx ( [89.241.151.151]) by mx.google.com with ESMTPS id 31sm274555nfu.2007.11.13.17.14.56 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 13 Nov 2007 17:14:56 -0800 (PST) Original-Received: by bzg.ath.cx (Postfix, from userid 1000) id B00291575BA; Wed, 14 Nov 2007 01:14:54 +0000 (GMT) In-Reply-To: (Robert J. Chassell's message of "Tue, 13 Nov 2007 18:49:54 +0000 (UTC)") 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:83154 Archived-At: "Robert J. Chassell" writes: > when I tried to find out the name of the command that moved the border > of the upper window (i.e., the lower border of that window) with the > upper arrow key, `C-h k' (describe-key) failed and I continued to move > the border. > > I was not able to exit Emacs with `C-x C-c' > (save-buffers-kill-terminal) either, not until I quit editing the > windows with `q'. Then I was able to quit. > > Certainly, `window-edit' should not disable `C-h k' (describe-key) or > `C-x C-c' (save-buffers-kill-terminal). All this is because window-edit doesn't have "real" commands (except the window-edit command itself). Rather it binds functions to events inside a loop constantly waiting for them. I do understand this is not very convenient, and I think I'll consider implementing `window-edit' as a real mode. Then we'll have a map and the mode won't prevent usual commands from being invocated. > On an other topic, in the documentation for `window-edit', rather than > use the spoken but not the written term `wise' as in `direction-wise' > you might write 'as directed by arrows'. The original word is in a > line 57 characters long; the new phrase adds seven characters but the > total is still only 64 characters. Thanks very much, I'll fix this. I'm not a native english speaker, so inputs like those are really useful. > Indeed, please avoid hardwiring the `window-edit' commands. You might > want to display them in the documentation in the normal way. (You > would have to reword the documentation and maybe the names of the > commands.) They won't be hardwired when I implement the mode and its map. > For example, a somewhat similar function is artist-mode. That saves > the previous configuration before it toggles on. Thanks for pointing this out. Here is what I plan to do: M-x `window-edit-mode' (or `window-resize-mode', which sounds better IMO) will store the initial configuration, let the user resize the windows as i does now, then the user will have to validate the changes by exiting the mode with C-c C-c. Would that be okay? -- Bastien