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

Re: Quail and dabbrev-expand

Rodrigo Bernardo Pimentel writes:
 >         At first, I thought I'd simply rebind M-/ to dabbrev-expand, but it
 > doesn't work! When I enter text-mode, "C-h k M-/" shows me M-/ is bound to
 > quail-start-translation. If I then do "M-x global-set-key RET M-/ RET
 > dabbrev-expand RET", "C-h k M-/" tells me M-/ is *still* bound to
 > quail-start-translation (same goes for M-x local-set-key).
 >         What gives? Does anyone know why quail refuses to let M-/ (and I
 > assume this happens for other key sequences as well) be rebound. Should it
 > bind M-/ to its functions in the first place?

Have a look a the .el source of "quail", to see how quail binds
the keys that you are interested in.

I had a similar problem with fsf emacs with the version control
default key binding of "C-x C-q", here is how I fixed it,

    ;; Rebind C-x C-q to 'toggle-read-only (default 'vc-toggle-read-only).
    (load "vc-hooks")
    (define-key global-map "\C-x\C-q" 'toggle-read-only)

YMMV with xemacs.

Jeff Sheinberg

Reply to: