emacs-diffs
[Top][All Lists]
Advanced

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

Re: [Emacs-diffs] /srv/bzr/emacs/trunk r110380: * subr.el (read-passwd):


From: Stefan Monnier
Subject: Re: [Emacs-diffs] /srv/bzr/emacs/trunk r110380: * subr.el (read-passwd): Allow C-u to erase entry.
Date: Sat, 06 Oct 2012 08:14:23 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux)

> +            (let ((enable-recursive-minibuffers t)
> +               (map minibuffer-local-map)
> +               result)
> +           (define-key map "\C-u"    ; bug#12570
> +             (lambda () (interactive) (delete-minibuffer-contents)))

I'm afraid this will change the global value of minibuffer-local-map.

> +           (setq result
> +                 ;; t = no history.
> +                 (read-from-minibuffer prompt nil map nil t default))

Why change from read-string to read-from-minibuffer?


        Stefan



reply via email to

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