[Top][All Lists]

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

Re: Mix of completing-read and read-string

From: Kevin Rodgers
Subject: Re: Mix of completing-read and read-string
Date: Sun, 08 Feb 2009 12:32:19 -0700
User-agent: Thunderbird (Macintosh/20081209)

Drew Adams wrote:
  (let ((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

reply via email to

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