From: "Davis Herring" <herring@lanl.gov>
To: "Angelo Graziosi" <Angelo.Graziosi@roma1.infn.it>
Cc: emacs-devel@gnu.org
Subject: Re: On desktop loking
Date: Wed, 1 Aug 2007 10:26:22 -0700 (PDT) [thread overview]
Message-ID: <35376.128.165.123.18.1185989182.squirrel@webmail.lanl.gov> (raw)
In-Reply-To: <Pine.OSF.4.58.0707272214060.3059@ax0rm1.roma1.infn.it>
>> Yes, don't load desktop-save-mode.
>
> This does not look as a solution ("Do not eat, you beacome fat!").
>
> I confirm it is very, very annoying!
If what you want is to make such "secondary" Emacs sessions not use the
desktop, you want to (approximately as Juanma suggested) set
`desktop-load-locked-desktop' to nil. Then locked desktops will simply be
ignored.
The secondary Emacs processes will still consider saving the desktop file,
though they will prompt you for a new directory in which to do so; if you
want to preempt this, further (approximately as Leo suggested) add
`desktop-save-mode-off' to `desktop-not-loaded-hook' (it's even a
Customize option for that hook). Then any Emacs that comes across a
locked desktop will completely forget about desktops of any kind.
If, on the other hand, you do want to use the desktop in all of your Emacs
processes, and are simply annoyed by it bothering you, you'll have to tell
Emacs what to do with all the different states it could choose to save in
the one file. This is what you'll get if you set
`desktop-load-locked-desktop' to t; then most of your Emacs processes will
politely ask for permission to overwrite each other's desktops when they
exit.
> Suppose that the system crashes, the '.emacs.desktop.lock' is not deleted
> and you have to restart the PC and emacs: it says
>
> 'Warning: desktop file appears to be in use by PID...'
>
> but it is the firt tipe you starts emacs! there are not processes using
> the desktop file!
>
> Is this a clean logic?
There's no way for Emacs to know that the file is out of date; the lock
could very well have been placed by an Emacs that is still quite alive but
is running on a different system (with NFS). This is the downside of my
previous suggestions: with such a stale lock, no Emacs will ever use the
desktop again! Faced with that possibility, what is desktop.el supposed
to do but ask you for advice?
Davis
--
This product is sold by volume, not by mass. If it appears too dense or
too sparse, it is because mass-energy conversion has occurred during
shipping.
next prev parent reply other threads:[~2007-08-01 17:26 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-27 20:24 On desktop loking Angelo Graziosi
2007-07-27 22:18 ` Juanma Barranquero
2007-08-01 17:26 ` Davis Herring [this message]
-- strict thread matches above, loose matches on Subject: below --
2007-07-27 16:07 Angelo Graziosi
2007-07-27 16:26 ` Leo
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=35376.128.165.123.18.1185989182.squirrel@webmail.lanl.gov \
--to=herring@lanl.gov \
--cc=Angelo.Graziosi@roma1.infn.it \
--cc=emacs-devel@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.