]> code.delx.au - gnu-emacs/blobdiff - lisp/ebuff-menu.el
Remove compatibility with Emacs 24.3 in octave-mode
[gnu-emacs] / lisp / ebuff-menu.el
index 337ea10f26d606748ee84f677ccc23f7fc0a7c2c..5536f946dc362bdabdefd13d900e351da639483f 100644 (file)
@@ -1,6 +1,6 @@
 ;;; ebuff-menu.el --- electric-buffer-list mode
 
-;; Copyright (C) 1985-1986, 1994, 2001-2015 Free Software Foundation,
+;; Copyright (C) 1985-1986, 1994, 2001-2016 Free Software Foundation,
 ;; Inc.
 
 ;; Author: Richard Mlynarik <mly@ai.mit.edu>
@@ -133,7 +133,7 @@ Run hooks in `electric-buffer-menu-mode-hook' on entry.
            (setq select
                  (catch 'electric-buffer-menu-select
                    (message "<<< Type SPC or RET to bury the buffer list >>>")
-                   (setq unread-command-events (list (read-event)))
+                   (push (read-event) unread-command-events)
                    (let ((start-point (point))
                          (first (progn (goto-char (point-min))
                                        (unless Buffer-menu-use-header-line
@@ -210,7 +210,9 @@ See the documentation of `electric-buffer-list' for details."
 
 (defun Electric-buffer-menu-exit ()
   (interactive)
-  (setq unread-command-events (listify-key-sequence (this-command-keys)))
+  (setq unread-command-events
+        (nconc (listify-key-sequence (this-command-keys))
+               unread-command-events))
   ;; for robustness
   (condition-case ()
       (throw 'electric-buffer-menu-select nil)