Gnus development mailing list
 help / color / mirror / Atom feed
From: Reiner Steib <reinersteib+gmane@imap.cc>
To: paul.r.ml@gmail.com (paul r.)
Cc: Didier Verna <didier@xemacs.org>, ding@gnus.org, emacs-devel@gnu.org
Subject: User reserved keybindings in `gnus-diary.el' (was: Maintenance suggestion on an emacs mode)
Date: Sun, 30 Mar 2008 13:54:23 +0200	[thread overview]
Message-ID: <v97ifkh1g0.fsf@marauder.physik.uni-ulm.de> (raw)
In-Reply-To: <e30f0f320803291506i40a25852g95a0b7bffa8f92b7@mail.gmail.com> (paul r.'s message of "Sat, 29 Mar 2008 23:06:21 +0100")

On Sat, Mar 29 2008, paul r wrote:

> Those modifications concern some default key bindings on your mode
> map, bound on the C-c[a-zA-Z] pattern, which is supposed to be
> reserved for users, as explained in the last paragraph of the link
> [1].
> Each of you will receive an other email with the file to fix and the
> matching lines. If possible, please send back a patch on emacs-devel
> with those keybindings changed.

`gnus-diary.el' uses `C-c D' as a prefix key:

(define-key message-mode-map "\C-cDc" 'gnus-diary-check-message)
(define-key message-mode-map "\C-cDv" 'gnus-diary-version)
(define-key gnus-article-edit-mode-map "\C-cDc" 'gnus-diary-check-message)
(define-key gnus-article-edit-mode-map "\C-cDv" 'gnus-diary-version)

Do we really need a key binding for `gnus-diary-version'?

I'd suggest to discuss an alternative prefix on the Gnus list.
(Mail-Followup-To set accordingly.)

> [1] http://www.gnu.org/software/emacs/manual/html_node/emacs/Keymaps.html

,----[ (info "(emacs)Keymaps") ]
|    As a user, you can redefine any key; but it is usually best to stick
| to key sequences that consist of `C-c' followed by a letter (upper or
| lower case).  These keys are "reserved for users," so they won't
| conflict with any properly designed Emacs extension.  The function keys
| <F5> through <F9> are also reserved for users.  If you redefine some
| other key, your definition may be overridden by certain extensions or
| major modes which redefine the same key.
`----

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/




       reply	other threads:[~2008-03-30 11:54 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <e30f0f320803291506i40a25852g95a0b7bffa8f92b7@mail.gmail.com>
2008-03-30 11:54 ` Reiner Steib [this message]
2008-03-30 13:17   ` paul r
2008-03-31  2:52     ` Stephen J. Turnbull
2008-04-12 21:10   ` User reserved keybindings in `gnus-diary.el' Reiner Steib
2008-04-14  8:37     ` Didier Verna
2008-04-14 20:20       ` Reiner Steib
2008-04-15  8:45         ` Didier Verna
2008-04-14  8:28   ` Didier Verna

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=v97ifkh1g0.fsf@marauder.physik.uni-ulm.de \
    --to=reinersteib+gmane@imap.cc \
    --cc=Reiner.Steib@gmx.de \
    --cc=didier@xemacs.org \
    --cc=ding@gnus.org \
    --cc=emacs-devel@gnu.org \
    --cc=paul.r.ml@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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).