From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: Gnu emacs under Windows: .emacs and _emacs and savehist Date: Wed, 11 Jul 2007 19:16:50 +0200 Message-ID: References: <4694E478.6060703@math.umass.edu> <4695047B.2000201@math.umass.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1184174235 10361 80.91.229.12 (11 Jul 2007 17:17:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 11 Jul 2007 17:17:15 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: murray@math.umass.edu Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jul 11 19:17:14 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 1I8foO-0003z4-Ej for geh-help-gnu-emacs@m.gmane.org; Wed, 11 Jul 2007 19:17:12 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I8foN-0001DF-M7 for geh-help-gnu-emacs@m.gmane.org; Wed, 11 Jul 2007 13:17:11 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I8fo8-0001BA-O4 for help-gnu-emacs@gnu.org; Wed, 11 Jul 2007 13:16:56 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I8fo6-00019W-AB for help-gnu-emacs@gnu.org; Wed, 11 Jul 2007 13:16:55 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I8fo6-00019H-0Y for help-gnu-emacs@gnu.org; Wed, 11 Jul 2007 13:16:54 -0400 Original-Received: from fmmailgate01.web.de ([217.72.192.221]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1I8fo5-0001gG-HB for help-gnu-emacs@gnu.org; Wed, 11 Jul 2007 13:16:53 -0400 Original-Received: from smtp06.web.de (fmsmtp06.dlan.cinetic.de [172.20.5.172]) by fmmailgate01.web.de (Postfix) with ESMTP id A96048E5E6EE; Wed, 11 Jul 2007 19:16:52 +0200 (CEST) Original-Received: from [62.134.215.180] (helo=[192.168.1.2]) by smtp06.web.de with asmtp (TLSv1:AES128-SHA:128) (WEB.DE 4.108 #197) id 1I8fo4-0005OD-00; Wed, 11 Jul 2007 19:16:52 +0200 In-Reply-To: <4695047B.2000201@math.umass.edu> X-Mailer: Apple Mail (2.752.2) X-Sender: Peter_Dyballa@web.de X-Provags-ID: V01U2FsdGVkX1+hcYNhovSIKeNw0H2+auCleeTyQEE6nBA5/USU qJZZg8FvmOls4mFfiDiw8KmPrk//s2y2DlslBZoiRWUziucZ2i pxBkrP01UwldjCTUAVVA== 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:45613 Archived-At: Am 11.07.2007 um 18:25 schrieb Murray Eisenberg: > I did get save desktop working by putting > > (desktop-save-mode 1) > > into my .emacs. Some description in the Emacs manual under "Saving Emacs Sessions." > > But what is "save-session"? I tried finding that in help, but it > tells me no match. (And searching on functions beginning "save" > turns up no match, either, for "save-session" or "savesession", etc.) Ah, sorry: it's just session.el (mixed with desktop): (setq desktop-globals-to-save '(desktop-missing-file-warning)) (setq desktop-dirname (format "~/.emacs.d/PDesktop-%d" emacs- major-version)) ; multi-version (require 'session) ; "load" session (add-hook 'after-init-hook 'session-initialize) ; init (unless (string-match "Step 8" mEV) ; elderly Emacs (unless buffer-read-only (delete-trailing-whitespace)) ; convenient for *me* (desktop-save-mode 1) (setq session-save-file-coding-system 'utf-8-unix)) ; dito (setq desktop-base-file-name "emacs.desktop") ; useless? (setq session-save-file (format "%s/Psession-%d" desktop-dirname emacs-major- version)) ; multi-version Save-hist has to do with saving mini-buffer contents. I have no experience with this (I am not knowingly using it). Could be it means that when you enter the mini-buffer (not the echo area) you have a history of previous commands by using the up and down keys (including some extras!). It might be that you see only replace or only shell- command or only whatever commands you did before depending on the way you entered mini-buffer. Just try a few things with M-x! -- Greetings Pete "engineer: a mechanism for converting caffeine into designs"