From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Murray Eisenberg Newsgroups: gmane.emacs.help Subject: Gnu emacs under Windows: .emacs and _emacs and savehist Date: Wed, 11 Jul 2007 00:04:33 -0400 Organization: Math & Stat Dept, University of Massachusetts/Amherst Message-ID: Reply-To: murray@math.umass.edu NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1184134092 31758 80.91.229.12 (11 Jul 2007 06:08:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 11 Jul 2007 06:08:12 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jul 11 08:08:10 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 1I8VMt-0004wy-9w for geh-help-gnu-emacs@m.gmane.org; Wed, 11 Jul 2007 08:08:07 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I8VMs-0000tS-QV for geh-help-gnu-emacs@m.gmane.org; Wed, 11 Jul 2007 02:08:06 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail Original-NNTP-Posting-Date: Tue, 10 Jul 2007 23:04:21 -0500 User-Agent: Thunderbird 2.0.0.4 (Windows/20070604) Original-Newsgroups: gnu.emacs.help Original-Lines: 35 X-Usenet-Provider: http://www.giganews.com Original-NNTP-Posting-Host: 71.232.77.222 Original-X-Trace: sv3-3EL5NLzMNaJjSDtTigGe4mjREGHPlampsnYMRMWyBTbvfrRMiDoM4sZvrLYC7QLjBsA7DZPoGUDaiQv!8iuA9Fi5aDZjvwbled3K0/Sp0h/05gfObpawdxOMrAI0aEHdMZ2Eo5ftzpZM5L/pcf6PrKgmK+Q9!OaYfrxX6Kh3Xe7YLaxxERQTbSK2jGA== Original-X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.35 Original-Xref: shelby.stanford.edu gnu.emacs.help:149993 X-Mailman-Approved-At: Wed, 11 Jul 2007 02:07:49 -0400 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:45581 Archived-At: I've installed a binary version of Gnu Emacs under Windows (specifically,t he latest Gnu Emacs + AUCTeX bundle) directly under Windows -- NOT under Cygwin -- and inserted the usual code into _emacs to activate savehist: (require `savehist) (setq savehist-file "~/.emacs/history") (setq savehist-length 1000) (savehist-load) But I don't seem to see any difference now, either when I exit emacs or when I start it again. In fact, I'm not even certain that emacs is processing the _emacs file. Part of the problem may be the name, _emacs, of the initialization file: Originally, the file was named .emacs and placed inside my home directory. But then I realized that savehist wants to save the history to a subdirectory .emacs of my home directory, and of course it's impossible to have both a directory and another file of the same name in the same directory. Which is why I renamed the file from .emacs to _emacs (which I thought was OK). Before I did that renaming, at least when I tried to quit emacs I saw a message that emacs was trying to save the history but could not find subdirectory .emacs of my home directory (because, of course, at that point, there was none). So obviously I'm very confused. Can you help me straighten this out? -- Murray Eisenberg murray@math.umass.edu Mathematics & Statistics Dept. Lederle Graduate Research Tower phone 413 549-1020 (H) University of Massachusetts 413 545-2859 (W) 710 North Pleasant Street fax 413 545-1801 Amherst, MA 01003-9305