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

Issue with org-mode and emacspeak throwing an error - Key sequence C-c ! starts with non-prefix key C-c



Hi,

This is something I noticed a while back and posted to the org-mode list
about.  At the time I wasn't sure if it was emacspeak or org causing the
problem.  Greg Priest-Dorman wrote me off list as he was having the same issue.

In several places in org notably when setting task priorities or using
parameters in org templates emacs throws the error:
"Key sequence C-c ! starts with non-prefix key C-c"

To rule out things specific to my configuration I tried to see if it would still
happen with a minimal setup, so I launched emacs with a "-q" and then once
started loaded emacspeak-setup.el with "M-x load-file".  So, no .emacs, no
customizations.  Just minimal emacspeak running. If I then start editing a
file in org-mode and create an entry in it

* TODO test

and that is it, if I do "M-x org-agenda-set-effort" or "C-c C-x e" I get
the above error.

If I do the same without emacspeak loaded, it works.  So, it is definitely
tied to emacspeak.

Doing some further digging using git bisect I've found where it was
broken, when the keybindings in the minibuffer changed from c-f to
c-c.

Reverting this change fixes the problem.

I don't at this point understand exactly why it's breaking org-mode but
it does.

I've pasted the diff below.  reverting the change fixes the problem for
me but not sure if there are other sideeffects or a better fix?

git diff  cc4eebca74bcbdfd46162c9aa8bc19ce7712b8c7  8d0f4bcbbd332e5c7ac492595bd4a17930377498
   diff --git a/lisp/emacspeak-speak.el b/lisp/emacspeak-speak.el
   index 6cca3ff..d97363f 100644
   [ 0001-Re-Key-sequence-C-c-starts-with-non-prefix-key-C-c.patch: inline patch (as text/x-diff) ]
   --- a/lisp/emacspeak-speak.el
   +++ b/lisp/emacspeak-speak.el
   @@ -3458,7 +3458,7 @@ This command  is designed for use in a windowing environment like X."

    (define-key minibuffer-local-completion-map "\C-n" 'emacspeak-minibuffer-next-completion)
    (define-key minibuffer-local-completion-map "\C-p" 'emacspeak-minibuffer-previous-completion)
   -(define-key minibuffer-local-completion-map "\C-f" 'emacspeak-minibuffer-choose-completion)
   +(define-key minibuffer-local-completion-map "\C-c" 'emacspeak-minibuffer-choose-completion)

    ;;}}}
    (provide 'emacspeak-speak )

Kind regards
Bart
-- 

Bart Bunting



|All Past Years |Current Year|


If you have questions about this archive or had problems using it, please contact us.

Contact Info Page