From: Glenn Morris Date: Thu, 1 Dec 2011 22:30:12 +0000 (-0500) Subject: Tweak previous em-hist.el change. X-Git-Tag: emacs-pretest-24.0.93~232^2~40 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e2154d9437fd57a6ba2eb08fe1d1e349ce1283a5;p=emacs.git Tweak previous em-hist.el change. --- diff --git a/lisp/eshell/em-hist.el b/lisp/eshell/em-hist.el index 975f1b17143..5ae419f7ba9 100644 --- a/lisp/eshell/em-hist.el +++ b/lisp/eshell/em-hist.el @@ -263,8 +263,9 @@ element, regardless of any text on the command line. In that case, (or eshell-history-size (let ((hsize (getenv "HISTSIZE"))) (setq eshell-history-size - (if (and (> (length hsize) 0) - (integerp (setq hsize (string-to-number hsize)))) + (if (and (stringp hsize) + (integerp (setq hsize (string-to-number hsize))) + (> hsize 0)) hsize 128))))