aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2012-06-22 13:30:25 -0400
committerStefan Monnier2012-06-22 13:30:25 -0400
commitac77b21adbddfd143449ef00be15df52f2ede924 (patch)
tree489dce1343c57e97873abfbb9692239474c6bf38
parent057306483c1c7a9216276c51946406c422d60b70 (diff)
downloademacs-ac77b21adbddfd143449ef00be15df52f2ede924.tar.gz
emacs-ac77b21adbddfd143449ef00be15df52f2ede924.zip
* lisp/subr.el (read-passwd): Don't use a history at all.
* lisp/savehist.el (savehist-save): Remove password saved accidentally because of the above bug.
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/savehist.el7
-rw-r--r--lisp/subr.el6
3 files changed, 14 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index c4ec842eedc..5c8bcaecfa0 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12012-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * subr.el (read-passwd): Don't use a history at all.
4 * savehist.el (savehist-save): Remove password saved accidentally
5 because of the above bug.
6
12012-06-22 Bastien Guerry <bzg@gnu.org> 72012-06-22 Bastien Guerry <bzg@gnu.org>
2 8
3 * files.el (toggle-read-only): Display a message telling whether 9 * files.el (toggle-read-only): Display a message telling whether
diff --git a/lisp/savehist.el b/lisp/savehist.el
index a65906a1676..6310190b4fe 100644
--- a/lisp/savehist.el
+++ b/lisp/savehist.el
@@ -278,6 +278,13 @@ If AUTO-SAVE is non-nil, compare the saved contents to the one last saved,
278 (print-level nil) 278 (print-level nil)
279 (print-readably t) 279 (print-readably t)
280 (print-quoted t)) 280 (print-quoted t))
281 ;; During the 24.2 development, read-passwd had a bug which resulted in
282 ;; the passwords being saved by savehist. Trim them, retroactively.
283 ;; This code can be removed after the 24.2 release.
284 (dolist (sym savehist-minibuffer-history-variables)
285 (if (and (symbolp sym) (equal (symbol-name sym) "forget-history"))
286 (setq savehist-minibuffer-history-variables
287 (delq sym savehist-minibuffer-history-variables))))
281 ;; Save the minibuffer histories, along with the value of 288 ;; Save the minibuffer histories, along with the value of
282 ;; savehist-minibuffer-history-variables itself. 289 ;; savehist-minibuffer-history-variables itself.
283 (when savehist-save-minibuffer-history 290 (when savehist-save-minibuffer-history
diff --git a/lisp/subr.el b/lisp/subr.el
index 5deaf71e78d..7e56fe7c3ee 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -2171,11 +2171,7 @@ by doing (clear-string STRING)."
2171 (set (make-local-variable 'post-self-insert-hook) nil) 2171 (set (make-local-variable 'post-self-insert-hook) nil)
2172 (add-hook 'after-change-functions hide-chars-fun nil 'local)) 2172 (add-hook 'after-change-functions hide-chars-fun nil 'local))
2173 (unwind-protect 2173 (unwind-protect
2174 (read-string prompt nil 2174 (read-string prompt nil t default) ; t = "no history"
2175 (let ((sym (make-symbol "forget-history")))
2176 (set sym nil)
2177 sym)
2178 default)
2179 (when (buffer-live-p minibuf) 2175 (when (buffer-live-p minibuf)
2180 (with-current-buffer minibuf 2176 (with-current-buffer minibuf
2181 ;; Not sure why but it seems that there might be cases where the 2177 ;; Not sure why but it seems that there might be cases where the