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: Gnu emacs under Windows: .emacs and _emacs and savehist Date: Thu, 12 Jul 2007 16:21:25 -0700 Message-ID: References: <85y7hljn4o.fsf@lola.goethe.zz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1184282599 4635 80.91.229.12 (12 Jul 2007 23:23:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 12 Jul 2007 23:23:19 +0000 (UTC) To: "David Kastrup" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 13 01:23:17 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1I980C-0006aQ-Vy for geh-help-gnu-emacs@m.gmane.org; Fri, 13 Jul 2007 01:23:17 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I980C-0007c0-Ee for geh-help-gnu-emacs@m.gmane.org; Thu, 12 Jul 2007 19:23:16 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I97zy-0007bN-9M for help-gnu-emacs@gnu.org; Thu, 12 Jul 2007 19:23:02 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I97zv-0007bB-PP for help-gnu-emacs@gnu.org; Thu, 12 Jul 2007 19:23:01 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I97zv-0007b8-Iv for help-gnu-emacs@gnu.org; Thu, 12 Jul 2007 19:22:59 -0400 Original-Received: from agminet01.oracle.com ([141.146.126.228]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I97zu-0002L2-Bq; Thu, 12 Jul 2007 19:22:58 -0400 Original-Received: from rgmgw3.us.oracle.com (rgmgw3.us.oracle.com [138.1.186.112]) by agminet01.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id l6CNMtT3032156; Thu, 12 Jul 2007 18:22:55 -0500 Original-Received: from acsmt350.oracle.com (acsmt350.oracle.com [141.146.40.150]) by rgmgw3.us.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id l6CMm55C027172; Thu, 12 Jul 2007 17:22:55 -0600 Original-Received: from dhcp-4op11-4op12-west-130-35-178-179.us.oracle.com by acsmt350.oracle.com with ESMTP id 3034638971184282490; Thu, 12 Jul 2007 16:21:30 -0700 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: <85y7hljn4o.fsf@lola.goethe.zz> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-detected-kernel: Linux 2.4-2.6 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:45655 Archived-At: > > As I said, I just require the library and > > call the mode - I didn't customize anything. > > In that case, of course, you are yourself responsible for doing > everything necessary for setting the mode. Huh? (1) That works; it is sufficient, at least with Emacs 22 and its version of savehist.el. (2) That is just what the commentary in the library says to do: put (savehist-mode 1) in ~/.emacs. ;; To use savehist, turn on savehist-mode by putting the following in ;; `~/.emacs': (savehist-mode 1) It does also say that you can alternatively customize the option: ;; or with customize: `M-x customize-option RET savehist-mode RET'. In neither case should "you, yourself, be responsible for doing everything necessary for setting the mode", whatever that might mean. Either method should work fine. The important things wrt the OP are: (1) to know how savehist works and what it does (how the history is used), (2) to know that _emacs should work as well as .emacs on Windows, (3) to know that .emacs is a file, not a directory, (4) to get rid of the `savehist-length' setting, which is not used in savehist versions that have `savehist-mode', (5) to get rid of `savehist-load', which is obsolete for the same versions, (6) to either (a) call function `savehist-mode' with a positive arg or (b) customize variable `savehist-mode', to turn the mode on. David reminded us that customizing the variable (= 6b) will work because of the custom setter function; I helped with the rest. Hopefully, it should work for you now. Let us know if you still have a problem. We still don't know what version of savehist and Emacs you have, but that's only important if things still do not work for you.