summaryrefslogtreecommitdiff
path: root/lisp/ebuff-menu.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1993-03-06 06:05:12 +0000
committerRichard M. Stallman <rms@gnu.org>1993-03-06 06:05:12 +0000
commit45f7eef9417089852162ecab20b69e01511d37c9 (patch)
treec4d492fe86a77a8815709e7b7ef00f100f0ed0d5 /lisp/ebuff-menu.el
parent1bed0fc41f2cd998dd117d4fc979163ffdecb663 (diff)
downloademacs-45f7eef9417089852162ecab20b69e01511d37c9.tar.gz
(electric-buffer-list): Handle any kind of event.
(Electric-buffer-menu-exit): Handle any key sequence.
Diffstat (limited to 'lisp/ebuff-menu.el')
-rw-r--r--lisp/ebuff-menu.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/ebuff-menu.el b/lisp/ebuff-menu.el
index d0feab9ca70..3e92bfdb387 100644
--- a/lisp/ebuff-menu.el
+++ b/lisp/ebuff-menu.el
@@ -63,7 +63,8 @@ Calls value of `electric-buffer-menu-mode-hook' on entry if non-nil.
(setq select
(catch 'electric-buffer-menu-select
(message "<<< Press Space to bury the buffer list >>>")
- (if (= (setq unread-command-events (list (read-char))) ?\ )
+ (if (eq (setq unread-command-events (list (read-event)))
+ ?\ )
(progn (setq unread-command-events nil)
(throw 'electric-buffer-menu-select nil)))
(let ((first (progn (goto-char (point-min))
@@ -196,7 +197,7 @@ electric-buffer-menu-mode-hook if it is non-nil."
(defun Electric-buffer-menu-exit ()
(interactive)
- (setq unread-command-events (list last-input-char))
+ (setq unread-command-events (listify-key-sequence (this-command-keys)))
;; for robustness
(condition-case ()
(throw 'electric-buffer-menu-select nil)