Re: Quail and dabbrev-expand
On Wed, Nov 26 2003 at 08:38:07PM BRST, Jeff Sheinberg <firstname.lastname@example.org> wrote:
> 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)
It worked with the following in text-mode-hook (called by quail):
(define-key quail-mode-map "\M-/" 'dabbrev-expand)
Rodrigo Bernardo Pimentel <email@example.com>
http://isnomore.net GPG KeyId: <0x0DB14978>
El Hombre de los Moleculos!