C-x r and C-x a conflict with many default emacs keybindings
GoogleCodeExporter opened this issue · comments
What steps will reproduce the problem?
1. (require 'annot)
2. Try to use various keybindings that use C-x r or C-x a as a prefix
3. annot.el keybinding short circuits those keybindings.
C-x r is the prefix for all register, rectangular editing, and bookmarking
commands.
C-x a is the prefix for abbreviation commands.
You can check to see if a prefix is in use by typing PREFIX C-h. E.g. C-x r C-h.
Please see this link which documents emacs keybinding conventions:
http://www.gnu.org/software/emacs/elisp/html_node/Key-Binding-Conventions.html
For minor modes the best thing to do is usually to either follow those
conventions or don't bind any keys by default. The user has keybindings of the
form:
C-c a
C-c b
...
C-c z
reserved for his own use (i.e. modes aren't supposed to use those).
Here is a complete list of commands blocked by annot.el.
C-x r C-@ point-to-register
C-x r SPC point-to-register
C-x r + increment-register
C-x r N rectangle-number-lines
C-x r b bookmark-jump
C-x r c clear-rectangle
C-x r d delete-rectangle
C-x r f frame-configuration-to-register
C-x r g insert-register
C-x r i insert-register
C-x r j jump-to-register
C-x r k kill-rectangle
C-x r l bookmark-bmenu-list
C-x r m bookmark-set
C-x r n number-to-register
C-x r o open-rectangle
C-x r r copy-rectangle-to-register
C-x r s copy-to-register
C-x r t string-rectangle
C-x r w window-configuration-to-register
C-x r x copy-to-register
C-x r y yank-rectangle
C-x r C-SPC point-to-register
C-x a C-a add-mode-abbrev
C-x a ' expand-abbrev
C-x a + add-mode-abbrev
C-x a - inverse-add-global-abbrev
C-x a e expand-abbrev
C-x a g add-global-abbrev
C-x a i Prefix Command
C-x a l add-mode-abbrev
C-x a n expand-jump-to-next-slot
C-x a p expand-jump-to-previous-slot
C-x a i g inverse-add-global-abbrev
C-x a i l inverse-add-mode-abbrev
Original issue reported on code.google.com by catph...@catphive.net
on 28 Oct 2011 at 12:10
Fixed