all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: psmith@gnu.org, Michael Heerdegen <michael_heerdegen@web.de>
Cc: help-gnu-emacs@gnu.org
Subject: RE: Reserved keymap not reserved anymore?
Date: Sun, 17 Nov 2013 16:58:26 -0800 (PST)	[thread overview]
Message-ID: <ca1059db-71f6-4c33-8556-ad37413f0df2@default> (raw)
In-Reply-To: <1384730310.2758.338.camel@homebase>

> > Drew, don't you think it belongs in the user manual?  This is not
> > a programmer's issue - a user should know which keys he can use
> > for his bindings, and which are reserved.  Do I miss something?

There are NO keys that are reserved for something other than users.
It's the opposite.  Some keys are reserved _for users_.  ALL keys
are available to users for their own bindings.  (I know that you know
this.  Just want to be clear.)
 
> I think it belongs in both.  In the Emacs manual, as you say, so
> users know about it.  And in the Elisp manual so people writing new
> modes, etc. know about the reservation and don't use it. My $0.02.

My opinion doesn't count for much, but since you ask, no, I don't
really think the whole rundown of key conventions belongs in the user
manual.  What belongs in the user manual somewhere is a cross
reference to the Elisp manual, and some mention of what I said above:
Some key sequences (in particular, `C-c LETTER') are reserved for
users, but users are free to bind any keys they like.

The reason users might want to be aware of the keys that are NOT
reserved for users is that if a user binds such a key it risks
conflicting with some binding established by code, typically
overriding the latter.  But I think the info about the conventions
can be kept only in the Elisp manual and pointed to by the user
manual.

Emacs users includes users who write commands and users who bind
commands to keys, of course, in addition to users who do not.  But
to do either of those things you use Emacs Lisp.  The conventions
about key bindings are most useful to someone writing code that
provides a set of key bindings for, e.g., a mode.  The best place
for the detailed info about key-binding conventions is (only) in
the Elisp manual.

Nevertheless, it can save a user some grief over possible conflicts
if s?he is aware of the keys that risk a conflict.  So a cross
reference makes sense.

Someone else decided long ago to move the info to the Elisp manual.
I have not checked whether there is some info in the Emacs manual
that mentions anything about this or, more importantly, cross
references the Elisp manual details.

If you think that readers of the Emacs manual need a litter more
help with this, `M-x report-emacs-bug' is your friend...



  reply	other threads:[~2013-11-18  0:58 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-17 20:57 Reserved keymap not reserved anymore? Paul Smith
2013-11-17 21:14 ` Drew Adams
2013-11-17 21:32   ` Paul Smith
2013-11-17 22:45     ` Michael Heerdegen
2013-11-17 23:18       ` Paul Smith
2013-11-18  0:58         ` Drew Adams [this message]
2013-11-18  1:02           ` Drew Adams
2013-11-18  3:40         ` Michael Heerdegen

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=ca1059db-71f6-4c33-8556-ad37413f0df2@default \
    --to=drew.adams@oracle.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=michael_heerdegen@web.de \
    --cc=psmith@gnu.org \
    /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.