From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Robert J. Chassell" Newsgroups: gmane.emacs.devel Subject: Re: New keybinding suggestion: C-x _ for `shrink-window' Date: Tue, 13 Nov 2007 18:49:54 +0000 (UTC) Message-ID: References: <87ejexwf4m.fsf@bzg.ath.cx> <87wssom9qy.fsf@bzg.ath.cx> <876406e0pk.fsf@bzg.ath.cx> Reply-To: bob@rattlesnake.com NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1194979834 1230 80.91.229.12 (13 Nov 2007 18:50:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 13 Nov 2007 18:50:34 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 13 19:50:36 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 1Is0qJ-0005ID-6a for ged-emacs-devel@m.gmane.org; Tue, 13 Nov 2007 19:50:36 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Is0q4-0000zu-Pw for ged-emacs-devel@m.gmane.org; Tue, 13 Nov 2007 13:50:20 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Is0q0-0000zF-CW for emacs-devel@gnu.org; Tue, 13 Nov 2007 13:50:16 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Is0pq-0000xA-2U for emacs-devel@gnu.org; Tue, 13 Nov 2007 13:50:16 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Is0pp-0000x7-WA for emacs-devel@gnu.org; Tue, 13 Nov 2007 13:50:06 -0500 Original-Received: from cpe-69-204-164-144.nycap.res.rr.com ([69.204.164.144] helo=rattlesnake.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Is0pn-00065X-I0 for emacs-devel@gnu.org; Tue, 13 Nov 2007 13:50:05 -0500 Original-Received: by rattlesnake.com via sendmail from stdin id (Debian Smail3.2.0.115) Tue, 13 Nov 2007 18:49:54 +0000 (UTC) In-reply-to: <876406e0pk.fsf@bzg.ath.cx> (message from Bastien on Tue, 13 Nov 2007 13:25:59 +0000) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 1) 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:83136 Archived-At: `window-edit' should only disable some commands. I generalized the use of `adjust-window-trailing-edge' in the window-edit.el 0.9: That is good, but in today's GNU Emacs CVS snapshot, Tue, 2007 Nov 13 10:51 UTC GNU Emacs 23.0.50.2 (i686-pc-linux-gnu, GTK+ Version 2.12.1) started with emacs -q -D -l ~bob/emacs-21/window-edit.el \ --visit ~bob/emacs-21/window-edit.el --eval="(window-edit)" 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). The other library, winsize.el, also does not let you discover what an arrow key does when C-x + is active. 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. 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.) For example, a somewhat similar function is artist-mode. That saves the previous configuration before it toggles on. The function is in a library that has an `artist-mode-map' although the function's documentation does tell you in a hardwired fashion what the traditional three mouse buttons do. As for disabling other commands, in artist-mode, `C-h k' (describe-key) says the down arrow key evokes `artist-next-line'. -- Robert J. Chassell GnuPG Key ID: 004B4AC8 bob@rattlesnake.com bob@gnu.org http://www.rattlesnake.com http://www.teak.cc