diff options
| author | Richard M. Stallman | 1993-03-06 06:05:12 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-03-06 06:05:12 +0000 |
| commit | d42cc509cb31a8e46b90cfc5e7100ab10979f7ae (patch) | |
| tree | dc36d13e88c4d9a9d2a65a8bbfe3cfc0c61831c5 | |
| parent | 561a73d746108ca91ae446133f88350a1a112370 (diff) | |
| download | emacs-d42cc509cb31a8e46b90cfc5e7100ab10979f7ae.tar.gz emacs-d42cc509cb31a8e46b90cfc5e7100ab10979f7ae.zip | |
(electric-buffer-list): Handle any kind of event.
(Electric-buffer-menu-exit): Handle any key sequence.
| -rw-r--r-- | lisp/ebuff-menu.el | 5 |
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. | |||
| 63 | (setq select | 63 | (setq select |
| 64 | (catch 'electric-buffer-menu-select | 64 | (catch 'electric-buffer-menu-select |
| 65 | (message "<<< Press Space to bury the buffer list >>>") | 65 | (message "<<< Press Space to bury the buffer list >>>") |
| 66 | (if (= (setq unread-command-events (list (read-char))) ?\ ) | 66 | (if (eq (setq unread-command-events (list (read-event))) |
| 67 | ?\ ) | ||
| 67 | (progn (setq unread-command-events nil) | 68 | (progn (setq unread-command-events nil) |
| 68 | (throw 'electric-buffer-menu-select nil))) | 69 | (throw 'electric-buffer-menu-select nil))) |
| 69 | (let ((first (progn (goto-char (point-min)) | 70 | (let ((first (progn (goto-char (point-min)) |
| @@ -196,7 +197,7 @@ electric-buffer-menu-mode-hook if it is non-nil." | |||
| 196 | 197 | ||
| 197 | (defun Electric-buffer-menu-exit () | 198 | (defun Electric-buffer-menu-exit () |
| 198 | (interactive) | 199 | (interactive) |
| 199 | (setq unread-command-events (list last-input-char)) | 200 | (setq unread-command-events (listify-key-sequence (this-command-keys))) |
| 200 | ;; for robustness | 201 | ;; for robustness |
| 201 | (condition-case () | 202 | (condition-case () |
| 202 | (throw 'electric-buffer-menu-select nil) | 203 | (throw 'electric-buffer-menu-select nil) |