From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?B?QW5kcmVhcyBSw7ZobGVy?= Newsgroups: gmane.emacs.devel Subject: Re: Occur stack Date: Sun, 19 Jan 2014 15:50:34 +0100 Message-ID: <52DBE63A.9050207@online.de> References: <52D6D907.4030702@online.de> <52D8E8CB.5080600@online.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1390142823 15610 80.91.229.3 (19 Jan 2014 14:47:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 19 Jan 2014 14:47:03 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 19 15:47:10 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W4teX-00008x-Ji for ged-emacs-devel@m.gmane.org; Sun, 19 Jan 2014 15:47:09 +0100 Original-Received: from localhost ([::1]:46501 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W4teW-0002m5-TL for ged-emacs-devel@m.gmane.org; Sun, 19 Jan 2014 09:47:08 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55084) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W4teN-0002DN-Qc for emacs-devel@gnu.org; Sun, 19 Jan 2014 09:47:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W4teH-00029M-Lr for emacs-devel@gnu.org; Sun, 19 Jan 2014 09:46:59 -0500 Original-Received: from moutng.kundenserver.de ([212.227.17.9]:56774) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W4teH-00029G-CY for emacs-devel@gnu.org; Sun, 19 Jan 2014 09:46:53 -0500 Original-Received: from purzel.sitgens (brln-4dba422f.pool.mediaWays.net [77.186.66.47]) by mrelayeu.kundenserver.de (node=mrbap3) with ESMTP (Nemesis) id 0LnBmv-1VPo860AtZ-00hJge; Sun, 19 Jan 2014 15:46:51 +0100 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 In-Reply-To: X-Provags-ID: V02:K0:MeI4gPuypaEtceXL6ddhSOmoTrsS96BGisyJTlC7ulj f4YBKjwEJpAkTbLYHfqPIlTSvcLJhcWAWDhbm7DiNbJSx87Wsh z159S1pfvb/GvauBu1hKaW0dmwgVQBzUOLunHOL0DNnM48zOiF DpzxgbHde842ExOTDNHoFiwb+OkgSPd5Uq7hxpqZ+P3jZYV1LS Dv0tU682UG6Z/Bf4aWnGIJ/sujlKBXdzVwQEJShXzWYSyvqWjh 4aUJEB52LgMrx0A9hkCdGozCKiAuRXV+jYTcNNtGdSaHT5ZJ4M lE4Vp3L7AGKJMjT21hRvNLMOY+ySizTzgaI3ZGwraRdA2IPycA 9lGfLj2SmYG2xZmYwicM= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 212.227.17.9 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:168740 Archived-At: Am 17.01.2014 14:24, schrieb Tom: > Andreas Röhler online.de> writes: >> >> In cases where a plenty of occur-calls is done, maybe >> the discussion WRT to memory pertains? > > The aim of this little experimental code is only to demonstrate > how this feature could work, not to be an optimal implementation. > > But it only stores the last 10 occur buffers, so memory may not > be a real concern (most occur buffers are not huge in > my experience) and if the user uses occur frequently then > every buffer is pushed out of this stored history after a while > and the garbage collector can do its job. > > > > For me it's fine as is, thanks again. WRT memory, what about checking for maximal buffer length-limit before storing - and in (seldom) cases saving instead some message like "Not stored because volume surpasses..."? Andreas