all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Peter Dyballa <Peter_Dyballa@Web.DE>
Cc: help-gnu-emacs@gnu.org
Subject: Re: save all emacs buffers
Date: Mon, 26 Jun 2006 12:32:42 +0200	[thread overview]
Message-ID: <BE9EE829-DF58-4088-AA63-3403E476FE6D@Web.DE> (raw)
In-Reply-To: <uejxci929.fsf@gmail.com>


Am 26.06.2006 um 11:02 schrieb Mathias Dahl:

> Peter Dyballa <Peter_Dyballa@Web.DE> writes:
>
>>> maybe desktop.el will meet your need. BTW, it is better to use it  
>>> with
>>> session.el which save your local variables and registers etc. of  
>>> 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))	%  
nice when a buffer was visiting an archive, or the senseless file was  
removed in the meantime
     (setq desktop-dirname   (format "~/.emacs.d/PDesktop-%d" emacs- 
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))	 
% automatic now?
     (require 'session)
     (add-hook 'after-init-hook 'session-initialize)
     (setq session-save-file (format "~/.Psession-%d"     emacs-major- 
version))
))

Apple brings an old GNU Emacs 21.2 to Mac OS X which only runs  
without X11. It would need old syntax, but it isn't worth the effort.  
The directories "~/.emacs.d/PDesktop-%d" need to be created.

--
Mit friedvollen Grüßen

   Pete

Wer eher stirbt ist wenigstens länger tot!

  reply	other threads:[~2006-06-26 10:32 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.3220.1151034612.9609.help-gnu-emacs@gnu.org>
2006-06-23  5:46 ` save all emacs buffers pluskid
2006-06-25 16:57   ` Peter Dyballa
     [not found]   ` <mailman.3308.1151254687.9609.help-gnu-emacs@gnu.org>
2006-06-26  9:02     ` Mathias Dahl
2006-06-26 10:32       ` Peter Dyballa [this message]
2006-06-26 15:28       ` Peter Dyballa
2006-06-28 19:35   ` Umi
     [not found]   ` <mailman.3479.1151523451.9609.help-gnu-emacs@gnu.org>
2006-06-28 20:21     ` Jose A. Ortega Ruiz
2006-07-01 17:18       ` Umi
2006-06-23  6:51 ` Tim X
2006-06-23  3:50 Umi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BE9EE829-DF58-4088-AA63-3403E476FE6D@Web.DE \
    --to=peter_dyballa@web.de \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.