From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Philipp Haselwarter Newsgroups: gmane.emacs.devel Subject: setting eshell histsize from environment Date: Thu, 01 Dec 2011 23:02:07 +0100 Message-ID: <87y5uw2bog.fsf@nzebook.haselwarter.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Honduras-TELINT-Defcon-AIEWS-Albanian-kibo-CIA-lh+w7ajCgH" X-Trace: dough.gmane.org 1322776962 21327 80.91.229.12 (1 Dec 2011 22:02:42 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 1 Dec 2011 22:02:42 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 01 23:02:35 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RWEi9-00047w-AY for ged-emacs-devel@m.gmane.org; Thu, 01 Dec 2011 23:02:33 +0100 Original-Received: from localhost ([::1]:37753 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RWEi8-00015K-OL for ged-emacs-devel@m.gmane.org; Thu, 01 Dec 2011 17:02:32 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:46112) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RWEi5-000150-Dl for emacs-devel@gnu.org; Thu, 01 Dec 2011 17:02:30 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RWEi4-0008F8-GS for emacs-devel@gnu.org; Thu, 01 Dec 2011 17:02:29 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:35616) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RWEi4-0008Ew-6F for emacs-devel@gnu.org; Thu, 01 Dec 2011 17:02:28 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RWEi1-00044e-8x for emacs-devel@gnu.org; Thu, 01 Dec 2011 23:02:25 +0100 Original-Received: from 253.110.113.78.rev.sfr.net ([78.113.110.253]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 01 Dec 2011 23:02:25 +0100 Original-Received: from philipp.haselwarter by 253.110.113.78.rev.sfr.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 01 Dec 2011 23:02:25 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 54 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 253.110.113.78.rev.sfr.net X-NSA-Fodder: threat pre-emptive FTS2000 bank ammunition FBI Forte quarter X-Windows: all the problems and twice the bugs. User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.91 (gnu/linux) Cancel-Lock: sha1:qwS1HEgrXxR/MZMkhiZ2JTzSJwM= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:146408 Archived-At: --Honduras-TELINT-Defcon-AIEWS-Albanian-kibo-CIA-lh+w7ajCgH Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit 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… --Honduras-TELINT-Defcon-AIEWS-Albanian-kibo-CIA-lh+w7ajCgH Content-Type: text/x-patch Content-Disposition: inline; filename=em-hist.el.patch --- 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 --Honduras-TELINT-Defcon-AIEWS-Albanian-kibo-CIA-lh+w7ajCgH Content-Type: text/plain 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 --Honduras-TELINT-Defcon-AIEWS-Albanian-kibo-CIA-lh+w7ajCgH--