emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

setting eshell histsize from environment


From: Philipp Haselwarter
Subject: setting eshell histsize from environment
Date: Thu, 01 Dec 2011 23:02:07 +0100
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.91 (gnu/linux)

I just started a eshell, but it went a little wrong:

--8<---------------cut here---------------start------------->8---
Debugger entered--Lisp error: (wrong-type-argument wholenump "100000")
  make-vector("100000" nil)
  make-ring("100000")
  eshell-hist-initialize()
  eshell-mode()
  eshell(nil)
  call-interactively(eshell t nil)
  execute-extended-command(nil)
  call-interactively(execute-extended-command nil nil)
--8<---------------cut here---------------end--------------->8---

so…

--- em-hist.el.original 2011-12-01 22:36:08.000000000 +0100
+++ em-hist.el  2011-12-01 22:37:22.788838131 +0100
@@ -261,7 +261,7 @@
 
   (make-local-variable 'eshell-history-size)
   (or eshell-history-size
-      (setq eshell-history-size (getenv "HISTSIZE")))
+      (setq eshell-history-size (string-to-number (getenv "HISTSIZE"))))
 
   (make-local-variable 'eshell-history-file-name)
   (or eshell-history-file-name
GNU Emacs 24.0.91.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.8) of
2011-11-19 (also occurs on a built of today)

The actual reason I resorted to `eshell' was that `ansi-term' failed me
when I attached to screen: My screenrc displays the time in the
hardstatus ( [ %d.%m %c:%s ] ), which makes ansi-term "jump" every
second. Any ideas on that?


-- 
Philipp Haselwarter

reply via email to

[Prev in Thread] Current Thread [Next in Thread]