emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New keybinding suggestion: C-x _ for `shrink-window'


From: Robert J. Chassell
Subject: Re: New keybinding suggestion: C-x _ for `shrink-window'
Date: Tue, 13 Nov 2007 18:49:54 +0000 (UTC)

`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
    address@hidden                         address@hidden
    http://www.rattlesnake.com                  http://www.teak.cc




reply via email to

[Prev in Thread] Current Thread [Next in Thread]