From: Drew Adams <drew.adams@oracle.com>
To: rms@gnu.org
Cc: casouri@gmail.com, dim1212k@gmail.com, yantar92@gmail.com,
emacs-devel@gnu.org, adam@alphapapa.net, eliz@gnu.org
Subject: RE: Request for pointers and advice: displaying several buffers inside a single window
Date: Sun, 12 Apr 2020 22:23:15 -0700 (PDT) [thread overview]
Message-ID: <e6fdca0f-a070-4db7-9696-9be270250af7@default> (raw)
In-Reply-To: <E1jNojW-0003q9-8E@fencepost.gnu.org>
>> You don't need to memorize anything. And certainly
>> not in order to be able to use the feature. The
>> predefined keys are just for convenience.
>
>> And you can bind any of the commands to whatever
>> keys you like.
>
> I think we are miscommunicating. All Emacs key bindings are "just for
> convenience" and each user can rebind them. Notwithstanding that, it
> is important for default bindings to be convenient. C-x n M-= v is
> not going to be easy to remember. If a command is worth giving a key
> binding to, can someone propose a more convenient default binding?
I'm the one who decided that the commands are worth
giving key bindings to. I believe it's convenient
enough to put all zone keys on `narrow-map', and I
believe it's convenient enough to put all toggle
commands for zones on their own keymap, and to put
that on `narrow-map'.
Putting the toggle keys on their own map makes it
easy for someone to move them, together, to another
prefix key.
Putting all zone keys on an _existing_ prefix key
means saving another prefix key for some other use.
`narrow-map' makes sense for that, because it's
about multiple different buffer areas: ~zones.
Where we may be miscommunicating is perhaps that
it's up to me to decide which keys I think best to
predefine for zones.el and isearch-prop.el.
I'm quite open to user feedback, including about
predefined key bindings. But I'm not convinced by
the argument that `C-x n M-=' shouldn't be used as
a default prefix key because it's not convenient.
My priorities here are not just for quick keys or
individually memorable keys. I expect users to
pick their own keys for that, if they like, based
on their use.
My priorities for this are instead:
1. Group all zone keys on a prefix key.
2. Don't waste a new prefix key - use existing key.
2. Use `C-x n', because:
(a) it's relevant - logical association between
zones and buffer restrictions
(b) it doesn't already have many keys on it
3. Group the toggle keys on their own prefix key
(which is on `C-x n').
#2 and #3 do help memory, but for key _groups_,
not for individual keys.
For individual toggle keys there are also mnemonics:
`v', `V' for visibility toggles
`~' ("not") for complementing the domain
`d' for dimming
Similarly for the other zone keys, these mnemonics:
`#' for selecting zones by ID number
`a', `A' for adding zones
`c', `C' for cloning zones
`C-d' for deleting zones from the current zones set
`D' for deleting text-dimming
`h', `H' for highlighting zones
`l', `L' for adding/setting zones from (high)lighting
`P' for property-putting on zones
`r', `R' for adding/setting zones from regexp matches
`s' for selecting zones as the region
`u' for uniting (coalescing) zones
`v' for changing the current zones variable
And these, which follow the usual search keys:
`C-s', `C-M-s', `C-r', `C-M-r' for search
`M-%', `C-M-%' for query-replace
The one key that's not really mnemonic, but which
gets used a lot, is `x', which cycles among
narrowings (`C-x n x x x...).
I would have picked `n' for that, which _is_
mnemonic, but that's already `narrow-to-region' (not
especially mnemonic within the set of narrowing
keys, but it was perhaps the first such).
I picked `D' for dimming because `d' was already
`narrow-to-defun'.
I picked `P' for property-putting because `p' was
already `narrow-to-page'.
next prev parent reply other threads:[~2020-04-13 5:23 UTC|newest]
Thread overview: 41+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-03 11:54 Request for pointers and advice: displaying several buffers inside a single window Dmitrii Korobeinikov
2020-04-03 13:07 ` Eli Zaretskii
2020-04-04 22:44 ` Dmitrii Korobeinikov
2020-04-05 14:08 ` Adam Porter
2020-04-05 22:55 ` Dmitrii Korobeinikov
2020-04-10 14:45 ` Yuan Fu
2020-04-10 15:35 ` Ihor Radchenko
2020-04-10 16:43 ` Eli Zaretskii
2020-04-10 17:46 ` Ihor Radchenko
2020-04-10 18:07 ` Eli Zaretskii
2020-04-10 18:37 ` Ihor Radchenko
2020-04-10 19:01 ` Drew Adams
2020-04-10 19:19 ` Ihor Radchenko
2020-04-10 20:29 ` Drew Adams
2020-04-11 8:11 ` Ihor Radchenko
2020-04-11 17:23 ` Drew Adams
2020-04-12 2:42 ` Richard Stallman
2020-04-12 5:09 ` Drew Adams
2020-04-12 5:15 ` Drew Adams
2020-04-13 2:21 ` Richard Stallman
2020-04-13 5:23 ` Drew Adams [this message]
2020-04-12 23:54 ` Juri Linkov
2020-04-13 5:23 ` Drew Adams
2020-04-12 14:25 ` Ihor Radchenko
2020-04-12 16:38 ` Drew Adams
2020-04-10 19:12 ` Eli Zaretskii
2020-04-10 19:25 ` Ihor Radchenko
2020-04-10 19:34 ` Ihor Radchenko
2020-04-11 7:34 ` Eli Zaretskii
2020-04-11 8:35 ` Ihor Radchenko
2020-04-11 9:25 ` Eli Zaretskii
2020-04-10 19:09 ` Dmitrii Korobeinikov
2020-04-11 0:05 ` chad
2020-04-11 8:22 ` Eli Zaretskii
2020-04-11 7:30 ` Eli Zaretskii
2020-04-11 7:56 ` Dmitrii Korobeinikov
2020-04-11 8:26 ` Eli Zaretskii
2020-04-11 10:01 ` Dmitrii Korobeinikov
2020-04-03 18:30 ` [SPAM UNSURE] " Stephen Leake
2020-04-05 13:18 ` Robert Pluim
2020-04-05 20:35 ` Dmitrii Korobeinikov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e6fdca0f-a070-4db7-9696-9be270250af7@default \
--to=drew.adams@oracle.com \
--cc=adam@alphapapa.net \
--cc=casouri@gmail.com \
--cc=dim1212k@gmail.com \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=rms@gnu.org \
--cc=yantar92@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.