From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: clear the kill-ring and free memory? Date: Thu, 12 Sep 2013 15:08:10 -0700 (PDT) Message-ID: References: <53036360-fe7a-4c1d-90cb-bf9f79a07982@googlegroups.com> <34ebb446-138f-407c-8bbb-e7c3c528c57a@default> <87six9dcma.fsf@web.de> <87r4ct3f2g.fsf@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1379023722 11998 80.91.229.3 (12 Sep 2013 22:08:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 12 Sep 2013 22:08:42 +0000 (UTC) To: Michael Heerdegen , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 13 00:08:44 2013 Return-path: Envelope-to: geh-help-gnu-emacs@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 1VKF46-0001sB-UY for geh-help-gnu-emacs@m.gmane.org; Fri, 13 Sep 2013 00:08:43 +0200 Original-Received: from localhost ([::1]:44007 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VKF46-00055A-Fe for geh-help-gnu-emacs@m.gmane.org; Thu, 12 Sep 2013 18:08:42 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41016) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VKF3o-0004wy-7O for help-gnu-emacs@gnu.org; Thu, 12 Sep 2013 18:08:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VKF3f-0000zw-Lc for help-gnu-emacs@gnu.org; Thu, 12 Sep 2013 18:08:24 -0400 Original-Received: from userp1040.oracle.com ([156.151.31.81]:26988) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VKF3f-0000zZ-F3 for help-gnu-emacs@gnu.org; Thu, 12 Sep 2013 18:08:15 -0400 Original-Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by userp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id r8CM8C1C017992 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 12 Sep 2013 22:08:13 GMT Original-Received: from userz7022.oracle.com (userz7022.oracle.com [156.151.31.86]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r8CM8BPe028876 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 12 Sep 2013 22:08:12 GMT Original-Received: from abhmt117.oracle.com (abhmt117.oracle.com [141.146.116.69]) by userz7022.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r8CM8BKb028352; Thu, 12 Sep 2013 22:08:11 GMT In-Reply-To: <87r4ct3f2g.fsf@web.de> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6680.5000 (x86)] X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 156.151.31.81 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:93367 Archived-At: > > > Sure? What about `kill-ring-yank-pointer' and `yank-menu'? > > > > What about them? I don't think that either is a problem (e.g., > > "illegal state"). But I'll be glad to be shown wrong. >=20 > `kill-ring-yank-pointer': dunno too, but you might get surprised, I > would set it nil, too. I really don't think so. Did you try it? > `yank-menu': Since unfrostedpoptart wants to free memory, I assume that > he has some really huge kills in his kill ring and wants to get rid of > these objects in memory. These kills are stored in `yank-menu' too, so > you'll have to reset this variable to garbage-collect those kills. Agreed. I was answering only the question about problems - an "illegal state" from emptying `kill-ring'. But you are right that emptying it alone does not solve the memory problem. `kill-ring-max' takes care of both sets of pastables.