X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/2393085c9ac30ac7378a39ee77760dfdecd4b509..5deebc3c914c86e84d11661a7877c00b2d7fddd1:/lisp/eshell/em-hist.el diff --git a/lisp/eshell/em-hist.el b/lisp/eshell/em-hist.el index 1cdf6d6971..198b1d017c 100644 --- a/lisp/eshell/em-hist.el +++ b/lisp/eshell/em-hist.el @@ -1,6 +1,6 @@ ;;; em-hist.el --- history list management -*- lexical-binding:t -*- -;; Copyright (C) 1999-2015 Free Software Foundation, Inc. +;; Copyright (C) 1999-2016 Free Software Foundation, Inc. ;; Author: John Wiegley @@ -306,8 +306,9 @@ element, regardless of any text on the command line. In that case, eshell-save-history-on-exit (or (eq eshell-save-history-on-exit t) (y-or-n-p - (format "Save input history for Eshell buffer `%s'? " - (buffer-name buf))))) + (format-message + "Save input history for Eshell buffer `%s'? " + (buffer-name buf))))) (eshell-write-history)))))) (defun eshell/history (&rest args) @@ -520,7 +521,7 @@ See also `eshell-read-history'." (let ((ch (read-event))) (if (eq ch ?\ ) (set-window-configuration conf) - (setq unread-command-events (list ch)))))))) + (push ch unread-command-events))))))) (defun eshell-hist-word-reference (ref) "Return the word designator index referred to by REF." @@ -638,7 +639,7 @@ matched." ;; `!' ;; Start a history substitution, except when followed by a ;; space, tab, the end of the line, = or (. - (if (not (string-match "^![^ \t\n=\(]" reference)) + (if (not (string-match "^![^ \t\n=(]" reference)) reference (setq eshell-history-index nil) (let ((event (eshell-hist-parse-event-designator reference)))