From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: Saving minibuffer history Date: Sat, 15 Oct 2005 16:29:17 -0700 Message-ID: References: <873bn2s9cz.fsf@xemacs.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1129419080 28243 80.91.229.2 (15 Oct 2005 23:31:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 15 Oct 2005 23:31:20 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 16 01:31:17 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EQvTr-00034u-TJ for ged-emacs-devel@m.gmane.org; Sun, 16 Oct 2005 01:30:24 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EQvTq-0003aK-Si for ged-emacs-devel@m.gmane.org; Sat, 15 Oct 2005 19:30:23 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EQvTA-0003Z8-28 for emacs-devel@gnu.org; Sat, 15 Oct 2005 19:29:41 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EQvT6-0003Y2-HX for emacs-devel@gnu.org; Sat, 15 Oct 2005 19:29:37 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EQvT5-0003Xe-Oy for emacs-devel@gnu.org; Sat, 15 Oct 2005 19:29:35 -0400 Original-Received: from [148.87.122.31] (helo=rgminet02.oracle.com) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1EQvT5-0005P4-Om for emacs-devel@gnu.org; Sat, 15 Oct 2005 19:29:35 -0400 Original-Received: from rgmsgw301.us.oracle.com (rgmsgw301.us.oracle.com [138.1.186.50]) by rgminet02.oracle.com (Switch-3.1.6/Switch-3.1.7) with ESMTP id j9FNTWxF008123; Sat, 15 Oct 2005 17:29:33 -0600 Original-Received: from rgmsgw301.us.oracle.com (localhost [127.0.0.1]) by rgmsgw301.us.oracle.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id j9FNTWuS015391; Sat, 15 Oct 2005 17:29:32 -0600 Original-Received: from dradamslap (dhcp-amer-rmdc-csvpn-gw6-141-144-112-128.vpn.oracle.com [141.144.112.128]) by rgmsgw301.us.oracle.com (Switch-3.1.7/Switch-3.1.7) with SMTP id j9FNTVJ0015330 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Sat, 15 Oct 2005 17:29:32 -0600 Original-To: , "Hrvoje Niksic" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 Importance: Normal In-Reply-To: <873bn2s9cz.fsf@xemacs.org> X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE 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:44100 Archived-At: An improved version is now available at . FYI - I had some problems trying to use this library with Emacs 20, but if a few minor changes are made, it works well. Here are the problems I ran into: 1. (defcustom savehist-modes #o600 The reader choked on this. I changed it to this: (defcustom savehist-modes 384 ; Octal: #o600 2. (defvar savehist-coding-system (if (string-match "XEmacs" emacs-version) 'iso-2022-8 'utf-8) I had problems with the utf-8 coding system. I got this error message when I tried to save any file, after loading the library: "Removing old name: no such file or directory, /#tmp#0. I could not even exit Emacs, getting the same message. When I tried to exit without saving anything, I got this error message: Invalid coding system: utf-8. I changed the code to this: (defvar savehist-coding-system nil With these simple changes, the library seems to work fine in Emacs 20. Thanks for it.