If cua-mode is enabled and you define a minor mode using C-c as a prefix
key you describe-bindings wrongly says that C-c is shadowed. This is
quite disturbing since C-c by some of the punctuation characters is what
a minor mode is supposed to use (my example uses C-c RET which is a bit
bad). Here is how the output can look:
key binding
--- -------
C-c Prefix Command
(that binding is currently shadowed by another mode)
C-c RET Prefix Command
Here is an example to use to reproduce it. Start with
emacs -Q
M-x cua-mode
Then eval the code below and do
M-x mlinks-mode
C-h f mlinks-mode RET
(defvar mlinks-mode-map
(let ((m (make-sparse-keymap)))
(define-key m [(control ?c) ?\r ?\r] 'mlinks-goto)
(define-key m [(control ?c) ?\r ?n] 'mlinks-next)
(define-key m [(control ?c) ?\r ?p] 'mlinks-prev)
(define-key m [(control ?c) ?\r ?h] 'mlinks-toggle-highlighter)
m))
(define-minor-mode mlinks-mode
"
\\{mlinks-mode-map}
"
nil
" ML"
nil
:global t
:keymap mlinks-mode-map
:group 'mlinks)
In GNU Emacs 22.0.92.1 (i386-mingw-nt5.1.2600)
of 2007-01-20
_______________________________________________
emacs-pretest-bug mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug