Red Hat Bugzilla – Bug 68293
rpm-spec-mode overrides keys reserved for user
Last modified: 2014-08-11 01:46:01 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9) Gecko/20020513
Description of problem:
I globally bind C-c r in Emacs to a function I use a lot.
Today I was visiting an rpm spec file, and used that key.
It did something completely different from what I expected, because
rpm-spec-mode rebinds C-c r.
In Emacs there is a general rule that all C-c LETTER bindings are
reserved for the user. Modes aren't supposed to override them.
rpm-spec-mode overrides a number of these. (In fact, these are the
*only* bindings reserved for users, so overriding them is doubly
This particular rule is documented in the Elisp manual.
See the node (elisp)Coding Conventions.
This node also mentions which key sequences are reserved for
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.C-x C-f /tmp/foo.spec
3.Look at C-c map
Confirmed. Mailed author, I don't want to invent my own keybindings :).
Author indicates new code is at:
Should be fixed in emacs-21.2-24 in rawhide, which contains rpm-spec-mode
Closing fixed. Please reopen if there are still problems.