diff options
| author | Stefan Monnier | 2013-10-04 15:06:45 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2013-10-04 15:06:45 -0400 |
| commit | 258ab3bc882036e9b3d85d73d1f22bc29f42f979 (patch) | |
| tree | 8233784fed00a3cfc4926be37f3981d5e4e69dc3 | |
| parent | 939fb29cd9b7d77cd334daa6b67e20a28d75393c (diff) | |
| download | emacs-258ab3bc882036e9b3d85d73d1f22bc29f42f979.tar.gz emacs-258ab3bc882036e9b3d85d73d1f22bc29f42f979.zip | |
* lisp/subr.el (read-passwd): Hide chars even when called within a context
where after-change-functions is disabled.
(set-temporary-overlay-map): Don't remove oneself from pre-command-hook
until we removed ourself from overriding-terminal-local-map.
Fixes: debbugs:15501
| -rw-r--r-- | lisp/ChangeLog | 11 | ||||
| -rw-r--r-- | lisp/subr.el | 18 |
2 files changed, 19 insertions, 10 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index bfa36ffe441..253f90278cd 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,7 +1,14 @@ | |||
| 1 | 2013-10-04 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * subr.el (read-passwd): Hide chars even when called within a context | ||
| 4 | where after-change-functions is disabled (bug#15501). | ||
| 5 | (set-temporary-overlay-map): Don't remove oneself from pre-command-hook | ||
| 6 | until we removed ourself from overriding-terminal-local-map. | ||
| 7 | |||
| 1 | 2013-10-04 Leo Liu <sdl.web@gmail.com> | 8 | 2013-10-04 Leo Liu <sdl.web@gmail.com> |
| 2 | 9 | ||
| 3 | * progmodes/octave.el (inferior-octave-mode): Call | 10 | * progmodes/octave.el (inferior-octave-mode): |
| 4 | compilation-forget-errors. | 11 | Call compilation-forget-errors. |
| 5 | 12 | ||
| 6 | 2013-10-04 Xue Fuqiao <xfq.free@gmail.com> | 13 | 2013-10-04 Xue Fuqiao <xfq.free@gmail.com> |
| 7 | 14 | ||
diff --git a/lisp/subr.el b/lisp/subr.el index ba953656b81..0d03e9a88c1 100644 --- a/lisp/subr.el +++ b/lisp/subr.el | |||
| @@ -2104,6 +2104,7 @@ by doing (clear-string STRING)." | |||
| 2104 | (setq-local buffer-undo-list t) | 2104 | (setq-local buffer-undo-list t) |
| 2105 | (setq-local select-active-regions nil) | 2105 | (setq-local select-active-regions nil) |
| 2106 | (use-local-map read-passwd-map) | 2106 | (use-local-map read-passwd-map) |
| 2107 | (setq-local inhibit-modification-hooks nil) ;bug#15501. | ||
| 2107 | (add-hook 'after-change-functions hide-chars-fun nil 'local)) | 2108 | (add-hook 'after-change-functions hide-chars-fun nil 'local)) |
| 2108 | (unwind-protect | 2109 | (unwind-protect |
| 2109 | (let ((enable-recursive-minibuffers t)) | 2110 | (let ((enable-recursive-minibuffers t)) |
| @@ -4394,14 +4395,15 @@ deactivation of MAP." | |||
| 4394 | ;; suspended during the C-u one so we don't exit isearch just | 4395 | ;; suspended during the C-u one so we don't exit isearch just |
| 4395 | ;; because we hit 1 after C-u and that 1 exits isearch whereas it | 4396 | ;; because we hit 1 after C-u and that 1 exits isearch whereas it |
| 4396 | ;; doesn't exit C-u. | 4397 | ;; doesn't exit C-u. |
| 4397 | (unless (cond ((null keep-pred) nil) | 4398 | (with-demoted-errors "set-temporary-overlay-map PCH: %S" |
| 4398 | ((eq t keep-pred) | 4399 | (unless (cond ((null keep-pred) nil) |
| 4399 | (eq this-command | 4400 | ((eq t keep-pred) |
| 4400 | (lookup-key map (this-command-keys-vector)))) | 4401 | (eq this-command |
| 4401 | (t (funcall keep-pred))) | 4402 | (lookup-key map (this-command-keys-vector)))) |
| 4402 | (remove-hook 'pre-command-hook clearfun) | 4403 | (t (funcall keep-pred))) |
| 4403 | (internal-pop-keymap map 'overriding-terminal-local-map) | 4404 | (internal-pop-keymap map 'overriding-terminal-local-map) |
| 4404 | (when on-exit (funcall on-exit))))) | 4405 | (remove-hook 'pre-command-hook clearfun) |
| 4406 | (when on-exit (funcall on-exit)))))) | ||
| 4405 | (add-hook 'pre-command-hook clearfun) | 4407 | (add-hook 'pre-command-hook clearfun) |
| 4406 | (internal-push-keymap map 'overriding-terminal-local-map))) | 4408 | (internal-push-keymap map 'overriding-terminal-local-map))) |
| 4407 | 4409 | ||