From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.help Subject: Re: Gnu emacs under Windows: .emacs and _emacs and savehist Date: Fri, 13 Jul 2007 00:03:19 +0200 Organization: Organization?!? Message-ID: <85y7hljn4o.fsf@lola.goethe.zz> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1184280055 29468 80.91.229.12 (12 Jul 2007 22:40:55 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 12 Jul 2007 22:40:55 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 13 00:40:54 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 1I97LB-0003K3-Or for geh-help-gnu-emacs@m.gmane.org; Fri, 13 Jul 2007 00:40:54 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I97LB-0000Fy-8Y for geh-help-gnu-emacs@m.gmane.org; Thu, 12 Jul 2007 18:40:53 -0400 Original-Path: shelby.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!feeder.news-service.com!news.astraweb.com!border2.a.newsrouter.astraweb.com!xlned.com!feeder1.xlned.com!npeer.de.kpn-eurorings.net!npeer0.kpn.DE!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help X-Face: 2FEFf>]>q>2iw=B6, xrUubRI>pR&Ml9=ao@P@i)L:\urd*t9M~y1^:+Y]'C0~{mAl`oQuAl \!3KEIp?*w`|bL5qr,H)LFO6Q=qx~iH4DN; i"; /yuIsqbLLCh/!U#X[S~(5eZ41to5f%E@'ELIi$t^ Vc\LWP@J5p^rst0+('>Er0=^1{]M9!p?&:\z]|;&=NP3AhB!B_bi^]Pfkw User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) Cancel-Lock: sha1:UkoTxIdoJ3HqHY1dDV6BgrCzzSw= Original-Lines: 39 Original-NNTP-Posting-Date: 13 Jul 2007 00:03:19 CEST Original-NNTP-Posting-Host: 6a0d8f53.newsspool2.arcor-online.net Original-X-Trace: DXC=TI\ANhW5fo`:i=48; n?Z:`A9EHlD; 3Ycb4Fo<]lROoRagUcjd<3m<; bVOfWc=aZY\g1_LiI6ENVam3>5MOK`; S:bhJlLk<[1QlABAmdQ 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:45653 Archived-At: "Drew Adams" writes: >> (custom-set-variables >> ;; custom-set-variables was added by Custom. >> ;; If you edit it by hand, you could mess it up, so be careful. >> ;; Your init file should contain only one such instance. >> ;; If there is more than one, they won't work right. >> '(savehist-mode t nil (savehist))) > > Did you try it? It's hard for us to know if you're still having a > problem or not. > > I'm no expert on this, Yes. > but I think that the custom-set-variables should still be > OK. However, it's not clear to me that you won't still need to call > (savehist-mode 1). That custom-set-variables sets the mode variable, No. It uses the customize setter function for setting this variable. Unless the defcustom is completely broken (and I see no reason to assume so), this will do whatever is required to activate the mode. > and sometimes that is sufficient to turn on a mode, but sometimes it > is not. If the invocation saved by customize is not sufficient for setting a mode, this is a bug. > Things might also depend on which version of savehist.el and which >version of Emacs you use. 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. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum