aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo Liu2011-10-05 11:37:21 +0800
committerLeo Liu2011-10-05 11:37:21 +0800
commit647ab96713f36faae9509246c418edfa31a569fe (patch)
tree612b0f8c2baaa25bef3358e1f521426251c43540
parent3ddfbceda2e62001adb3d10282f38c8f2e5a0845 (diff)
downloademacs-647ab96713f36faae9509246c418edfa31a569fe.tar.gz
emacs-647ab96713f36faae9509246c418edfa31a569fe.zip
Fix argument to buffer-live-p in read-char-choice
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/subr.el2
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index a3123c95eba..decb66eea09 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12011-10-05 Leo Liu <sdl.web@gmail.com>
2
3 * subr.el (read-char-choice): Fix argument to buffer-live-p which
4 works with buffer object.
5
12011-10-05 Stefan Monnier <monnier@iro.umontreal.ca> 62011-10-05 Stefan Monnier <monnier@iro.umontreal.ca>
2 7
3 * mpc.el (mpc-tool-bar-map): Add labels. 8 * mpc.el (mpc-tool-bar-map): Add labels.
diff --git a/lisp/subr.el b/lisp/subr.el
index 4946f3eef7a..24e020acf09 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -2170,7 +2170,7 @@ keyboard-quit events while waiting for a valid input."
2170 (setq prompt (propertize prompt 'face 'minibuffer-prompt))) 2170 (setq prompt (propertize prompt 'face 'minibuffer-prompt)))
2171 (setq char (let ((inhibit-quit inhibit-keyboard-quit)) 2171 (setq char (let ((inhibit-quit inhibit-keyboard-quit))
2172 (read-key prompt))) 2172 (read-key prompt)))
2173 (and show-help (buffer-live-p helpbuf) 2173 (and show-help (buffer-live-p (get-buffer helpbuf))
2174 (kill-buffer helpbuf)) 2174 (kill-buffer helpbuf))
2175 (cond 2175 (cond
2176 ((not (numberp char))) 2176 ((not (numberp char)))