all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Philipp Haselwarter <philipp.haselwarter@gmx.de>
To: emacs-devel@gnu.org
Subject: setting eshell histsize from environment
Date: Thu, 01 Dec 2011 23:02:07 +0100	[thread overview]
Message-ID: <87y5uw2bog.fsf@nzebook.haselwarter.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 494 bytes --]

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…


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: em-hist.el.patch --]
[-- Type: text/x-patch, Size: 420 bytes --]

--- 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

[-- Attachment #3: Type: text/plain, Size: 374 bytes --]


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	other threads:[~2011-12-01 22:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-01 22:02 Philipp Haselwarter [this message]
2011-12-01 22:36 ` setting eshell histsize from environment Glenn Morris

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y5uw2bog.fsf@nzebook.haselwarter.org \
    --to=philipp.haselwarter@gmx.de \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.