From 45f7eef9417089852162ecab20b69e01511d37c9 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sat, 6 Mar 1993 06:05:12 +0000 Subject: (electric-buffer-list): Handle any kind of event. (Electric-buffer-menu-exit): Handle any key sequence. --- lisp/ebuff-menu.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lisp/ebuff-menu.el') 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) -- cgit v1.2.1