From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Anast Gramm Newsgroups: gmane.emacs.help Subject: Fixxed buffer size for eshell Date: Sun, 30 Apr 2017 13:02:52 +0300 Message-ID: <20170430100252.ibyfpqkgibupjddh@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1493546633 18122 195.159.176.226 (30 Apr 2017 10:03:53 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 30 Apr 2017 10:03:53 +0000 (UTC) User-Agent: NeoMutt/20161104 (1.7.1) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Apr 30 12:03:49 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d4lhj-0004b6-SN for geh-help-gnu-emacs@m.gmane.org; Sun, 30 Apr 2017 12:03:47 +0200 Original-Received: from localhost ([::1]:44001 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d4lhm-0005Ec-F3 for geh-help-gnu-emacs@m.gmane.org; Sun, 30 Apr 2017 06:03:50 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43000) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d4lhG-0005EL-4i for help-gnu-emacs@gnu.org; Sun, 30 Apr 2017 06:03:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d4lhF-0004iX-94 for help-gnu-emacs@gnu.org; Sun, 30 Apr 2017 06:03:18 -0400 Original-Received: from mail-wr0-x235.google.com ([2a00:1450:400c:c0c::235]:34588) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d4lhF-0004iR-1o for help-gnu-emacs@gnu.org; Sun, 30 Apr 2017 06:03:17 -0400 Original-Received: by mail-wr0-x235.google.com with SMTP id l9so52572536wre.1 for ; Sun, 30 Apr 2017 03:03:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=PYMMMIOyiT+U6wnTSPvXmcKYOaZL0nnemKY9JuHrH74=; b=VsYJHRDtK9Kpb24cnT83jdQGEfjMJyjVMyF1KLey09e5t+5QjZm/zoc1aautyOtMrA +vPlE6iz/9t75u6GTYhxixGFAgUDAbLoze7ajuIqBgT3XRGG7zZ5gwksr+5Cnj5GPSHN P+nZemn5EI1Ijs5GsDK/XU/thQum9gme/13fY4h7UZ/PXW7ZF9KPVOgNzAItxsC+QNl0 k3Ee97Xwd9XiPVQyxcRNAVQ1dAsVZav3nMFVluVwMWzFVHflN+SXe18KXm11NwZrbYzi at4s0KAztoEkrslTYXfT029A96fjaJk7pnefwHBsY1GnRzz8CZMFrD4/IyZtuHJ58f9j mlqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=PYMMMIOyiT+U6wnTSPvXmcKYOaZL0nnemKY9JuHrH74=; b=iSH6bOv7h3ernkJ3s0Zz4uCcDUIvZsRCFZcoMxceIJVXt3Cj6mLrA+o7opuvRKu8X7 nkPPn4N1nQiMvjN2S+Kehsm8nv0Yv0BBXaXk/P7mfQ9ZB/aUouD5AZDWsD+9ZI9IhmOv oj3RM8qcP3AcBQFkI3Qt/nKc7ysgt3ovmtB09lT+v+QK2qZbP79gM8DTbcvlxdOkCjPA gUeEr/Cx+vROOxqYt4OXFgQGClE6QXTC5Jvcu96Pd+DuGw8xbv4DoIJ2/LJqrbAwjzEJ NRINtu53uNVdiEWkXqoFSyy0rBeRA4U5CgwjFP+v44rD2aM9LXw9kzwF5L51YLEliNu2 vjRg== X-Gm-Message-State: AN3rC/5UIFhcSadR9aGfy5mNfSbOnvzBCk7hpqtsMbKq6UG+ljKazF0y DQQa7opOllye1Rem X-Received: by 10.223.136.55 with SMTP id d52mr13227346wrd.160.1493546595401; Sun, 30 Apr 2017 03:03:15 -0700 (PDT) Original-Received: from gmail.com ([2a02:587:181c:d00:beee:7bff:fe5b:17a8]) by smtp.gmail.com with ESMTPSA id w126sm4462233wmb.25.2017.04.30.03.03.13 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 30 Apr 2017 03:03:14 -0700 (PDT) Content-Disposition: inline X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::235 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:112903 Archived-At: Hello, I am using eshell to compile and test my projects. When I run a build command eshell gets filled with thousands of lines with the compiler commands. This results in a huge buffer (>10mb) thus slowing down emacs. As a workaround I use the clear function copied straight out of the emacsdev mailing list [1]. This is not ideal, since I use it after the buffer is filled, and emacs is already slow at that point. What I want is a fixed buffer size, like in normal terminals where you have a set amount of lines. I'd like something like (setq eshell-max-lines 1000) so when the output reaches line 1000 the next like is inserted while the first one is deleted and so on... Does this exist? If not, how would one go to implement such a feature? [1]: http://lists.gnu.org/archive/html/emacs-devel/2015-03/msg00176.html