From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Saving minibuffer history Date: Mon, 24 Oct 2005 18:24:07 -0400 Message-ID: <87acgy7e5k.fsf-monnier+emacs@gnu.org> References: <87u0fkfc8c.fsf@xemacs.org> <873bn2s9cz.fsf@xemacs.org> <87zmp9sd0o.fsf-monnier+emacs@gnu.org> <87d5lunbsm.fsf@xemacs.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1130192683 4538 80.91.229.2 (24 Oct 2005 22:24:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 24 Oct 2005 22:24:43 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 25 00:24:40 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EUAjx-0001U5-4s for ged-emacs-devel@m.gmane.org; Tue, 25 Oct 2005 00:24:25 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EUAjw-00048l-Jo for ged-emacs-devel@m.gmane.org; Mon, 24 Oct 2005 18:24:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EUAjl-00048f-Or for emacs-devel@gnu.org; Mon, 24 Oct 2005 18:24:13 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EUAjk-00048R-8N for emacs-devel@gnu.org; Mon, 24 Oct 2005 18:24:13 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EUAjk-00048O-52 for emacs-devel@gnu.org; Mon, 24 Oct 2005 18:24:12 -0400 Original-Received: from [209.226.175.54] (helo=tomts10-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EUAjk-0003JU-3N for emacs-devel@gnu.org; Mon, 24 Oct 2005 18:24:12 -0400 Original-Received: from alfajor ([70.48.83.21]) by tomts10-srv.bellnexxia.net (InterMail vM.5.01.06.10 201-253-122-130-110-20040306) with ESMTP id <20051024222408.IXTH26102.tomts10-srv.bellnexxia.net@alfajor>; Mon, 24 Oct 2005 18:24:08 -0400 Original-Received: by alfajor (Postfix, from userid 1000) id 6C192D781E; Mon, 24 Oct 2005 18:24:07 -0400 (EDT) Original-To: Hrvoje Niksic In-Reply-To: <87d5lunbsm.fsf@xemacs.org> (Hrvoje Niksic's message of "24 Oct 2005 18:02:17 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:44769 Archived-At: > I've now applied your changes to my version. > http://fly.srk.fer.hr/~hniksic/emacs/savehist.el Installed. > These changes should make it possible for you to simply use my version > unchanged. Almost. There were a few comments missing, and things like that. E.g. please preserve the arch-tag. > I also recommend that you mention in the NEWS file how the feature is > supposed to be used. It can be as simple as: > To use this feature, put (savehist-load) in your `.emacs' file. Done. As mentioned earlier, your code truncates non-history variables as well. But now that you use it to save the list of variables as well, it means that if the number of history variables you have is larger than savehist-length, than you will lose some of your history as well. Stefan