Bug 68293 - rpm-spec-mode overrides keys reserved for user
Summary: rpm-spec-mode overrides keys reserved for user
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: emacs
Version: 7.3
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jens Petersen
QA Contact: Aaron Brown
URL: http://www.tihlde.org/~stigb/rpm-spec...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-07-08 21:40 UTC by Tom Tromey
Modified: 2014-08-11 05:46 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2002-12-20 00:58:22 UTC
Embargoed:


Attachments (Terms of Use)

Description Tom Tromey 2002-07-08 21:40:48 UTC
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
bad.)

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
modes.


Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1.C-x C-f /tmp/foo.spec
2.C-h b
3.Look at C-c map

	

Additional info:

Comment 1 Trond Eivind Glomsrxd 2002-07-09 20:06:57 UTC
Confirmed. Mailed author, I don't want to invent my own keybindings :).

Comment 2 Preston Brown 2002-10-22 13:09:49 UTC
Author indicates new code is at:

http://www.tihlde.org/~stigb/rpm-spec-mode.el

Comment 3 Jens Petersen 2002-12-18 08:17:55 UTC
Should be fixed in emacs-21.2-24 in rawhide, which contains rpm-spec-mode
version 0.12.

Comment 4 Jens Petersen 2002-12-20 00:58:22 UTC
Closing fixed. Please reopen if there are still problems.


Note You need to log in before you can comment on or make changes to this bug.