emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

(that binding is currently shadowed ...)


From: Lennart Borgman (gmail)
Subject: (that binding is currently shadowed ...)
Date: Sun, 21 Jan 2007 02:34:29 +0100
User-agent: Thunderbird 1.5.0.9 (Windows/20061207)

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]