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: save all emacs buffers Date: Mon, 26 Jun 2006 12:32:42 +0200 Message-ID: References: <1151041571.608902.270370@u72g2000cwu.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v750) Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1151317995 17723 80.91.229.2 (26 Jun 2006 10:33:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 26 Jun 2006 10:33:15 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jun 26 12:33:14 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FuoOr-0006qW-Gv for geh-help-gnu-emacs@m.gmane.org; Mon, 26 Jun 2006 12:33:02 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FuoOq-0006VK-Sc for geh-help-gnu-emacs@m.gmane.org; Mon, 26 Jun 2006 06:33:00 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FuoOe-0006Uu-RW for help-gnu-emacs@gnu.org; Mon, 26 Jun 2006 06:32:48 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FuoOb-0006Sk-UZ for help-gnu-emacs@gnu.org; Mon, 26 Jun 2006 06:32:48 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FuoOb-0006Sh-OI for help-gnu-emacs@gnu.org; Mon, 26 Jun 2006 06:32:45 -0400 Original-Received: from [217.72.192.221] (helo=fmmailgate01.web.de) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FuoaS-0006Oh-Il for help-gnu-emacs@gnu.org; Mon, 26 Jun 2006 06:45:00 -0400 Original-Received: from smtp08.web.de (fmsmtp08.dlan.cinetic.de [172.20.5.216]) by fmmailgate01.web.de (Postfix) with ESMTP id A8FA845BC69; Mon, 26 Jun 2006 12:32:44 +0200 (CEST) Original-Received: from [87.193.42.73] (helo=[192.168.1.2]) by smtp08.web.de with asmtp (TLSv1:RC4-SHA:128) (WEB.DE 4.107 #114) id 1FuoOa-0000Hn-00; Mon, 26 Jun 2006 12:32:44 +0200 In-Reply-To: X-Image-Url: http://homepage.mac.com/sparifankal/.cv/thumbs/me.thumbnail Original-To: Mathias Dahl X-Mailer: Apple Mail (2.750) X-Sender: Peter_Dyballa@web.de 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:35664 Archived-At: Am 26.06.2006 um 11:02 schrieb Mathias Dahl: > Peter Dyballa writes: > >>> maybe desktop.el will meet your need. BTW, it is better to use it =20= >>> with >>> session.el which save your local variables and registers etc. of =20 >>> your >>> buffers. >> >> I think, too, that the combination of these two produces the best >> outcome. Session alone seems to forget about some buffers (or simply >> does not re-open some files in buffers, maybe those I have only >> visited?), and desktop is a bit simplistic. Combining both all useful >> files open in buffers again -- and the points are located where they >> were before! With some Elisp it's easy to have different work-sets >> for different Emacsen (versions for example). > > I haven't figured out exactly what is going wrong, but session.el or > desktop.el (don't remember which one) have messed up my Emacs > environment now and then. I think the reason is that it saves too much > "stuff". After disabling it Emacs works normally again. This isn't an > "official" complaint, I will have to do some debugging before I post a > bug about this. > > This was just a small warning, desktop.el will probably work nice for > the parent poster. Maybe these lines help a bit: ;;; Desktop & Session (unless (string-match "21.2" mEV) (progn (desktop-save-mode 1) (setq history-length 250) (setq desktop-globals-to-save '(desktop-missing-file-warning)) = % =20 nice when a buffer was visiting an archive, or the senseless file was =20= removed in the meantime (setq desktop-dirname (format "~/.emacs.d/PDesktop-%d" emacs-=20 major-version)) ;veraltet: (desktop-load-default) ; (setq desktop-buffer-modes-to-save ; (cons 'w3m-mode desktop-buffer-modes-to-save)) ; (setq desktop-locals-to-save ; (cons 'buffer-file-coding-system desktop-locals-to-save)) =20= % automatic now? (require 'session) (add-hook 'after-init-hook 'session-initialize) (setq session-save-file (format "~/.Psession-%d" emacs-major-=20= version)) )) Apple brings an old GNU Emacs 21.2 to Mac OS X which only runs =20 without X11. It would need old syntax, but it isn't worth the effort. =20= The directories "~/.emacs.d/PDesktop-%d" need to be created. -- Mit friedvollen Gr=FC=DFen Pete Wer eher stirbt ist wenigstens l=E4nger tot!