|
From: | Kevin Rodgers |
Subject: | Re: Mix of completing-read and read-string |
Date: | Sun, 08 Feb 2009 12:32:19 -0700 |
User-agent: | Thunderbird 2.0.0.19 (Macintosh/20081209) |
Drew Adams wrote:
(let ((minibuffer-local-completion-map minibuffer-local-completion-map))(copy-keymap minibuffer-local-completion-map) would be safer, eh?Yes. In case of error or quitting (`C-g') during completion, that will prevent possibly leaving behind a SPC binding as `self-insert-command'. (let ((minibuffer-local-completion-map (copy-keymap minibuffer-local-completion-map))) ...
Actually, I was considering the possibility that define-key would destructively modify the keymap:
(define-key minibuffer-local-completion-map " " 'self-insert-command) It doesn't happen in emacs -Q, but if SPC were already bound or minibuffer-local-completion-map were a full keymap... -- Kevin Rodgers Denver, Colorado, USA
[Prev in Thread] | Current Thread | [Next in Thread] |