From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#1474: 23.0.60; desktop.el don't check if pid in his lock file is always in use Date: Wed, 03 Dec 2008 11:08:35 +0100 Message-ID: <8763m1d10c.fsf@tux.homenetwork> References: <87bpvufe28.fsf@tux.homenetwork> <87zljdkbne.fsf@tux.homenetwork> <87ej0pve4l.fsf@tux.homenetwork> Reply-To: Thierry Volpiatto , 1474@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1228300274 19099 80.91.229.12 (3 Dec 2008 10:31:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 3 Dec 2008 10:31:14 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, 1474@emacsbugs.donarmstrong.com, emacs@gentoo.org To: "Juanma Barranquero" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Dec 03 11:32:18 2008 Return-path: Envelope-to: geb-bug-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 1L7p1l-0001Wd-A6 for geb-bug-gnu-emacs@m.gmane.org; Wed, 03 Dec 2008 11:32:17 +0100 Original-Received: from localhost ([127.0.0.1]:36743 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L7p0a-0006y8-2H for geb-bug-gnu-emacs@m.gmane.org; Wed, 03 Dec 2008 05:31:04 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L7ozx-0006hb-8D for bug-gnu-emacs@gnu.org; Wed, 03 Dec 2008 05:30:25 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L7ozu-0006g2-78 for bug-gnu-emacs@gnu.org; Wed, 03 Dec 2008 05:30:23 -0500 Original-Received: from [199.232.76.173] (port=36935 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L7ozt-0006fl-QA for bug-gnu-emacs@gnu.org; Wed, 03 Dec 2008 05:30:21 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:40526) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L7ozt-0003r8-8a for bug-gnu-emacs@gnu.org; Wed, 03 Dec 2008 05:30:21 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mB3AUCVg011953; Wed, 3 Dec 2008 02:30:14 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id mB3AK4tk008985; Wed, 3 Dec 2008 02:20:04 -0800 X-Loop: don@donarmstrong.com Resent-From: Thierry Volpiatto Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 03 Dec 2008 10:20:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1474 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 1474-submit@emacsbugs.donarmstrong.com id=B1474.12282992177581 (code B ref 1474); Wed, 03 Dec 2008 10:20:03 +0000 Original-Received: (at 1474) by emacsbugs.donarmstrong.com; 3 Dec 2008 10:13:37 +0000 Original-Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.185]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mB3ADX0G007572 for <1474@emacsbugs.donarmstrong.com>; Wed, 3 Dec 2008 02:13:35 -0800 Original-Received: by nf-out-0910.google.com with SMTP id 30so1722851nfu.31 for <1474@emacsbugs.donarmstrong.com>; Wed, 03 Dec 2008 02:13:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:references :date:in-reply-to:message-id:user-agent:mime-version:content-type; bh=DRucrDOO5DL9mrsmsc+54FdCtr8JRHFAPmLaH60VmWI=; b=oa5ybHYVgNULpa+WApwmTe+KCdsMbTSFZpPycVx9cKkMYdovP1bXCIKQSJAJ4kQEyF ec/ntc5j4wIJAl44hvFAtTOfw+GziRSt5Wt7rdrespvICpf+TQoRs3JV7wjW9+5fMpJr PxFelQJUwGDqo4aEf/fWjUX2c5ZQy4YQkJ8Vg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; b=tIUT2wK5RDWLQ0EA4Xq0Kx9rvbnpBWtzRueaHqueePT/GZFWS3SnDL6a3Eaa110Hsy wVdz69A90yuYRpdjicC8S8vNFp/eF8eLnrXkpI/bQ9vrCWO8OW5K0xrx0gT2pkp7mJNl gw1KmP+pVpPgmOxCwS/uunKugjRtYH7LJqD28= Original-Received: by 10.210.119.16 with SMTP id r16mr9923225ebc.127.1228299212903; Wed, 03 Dec 2008 02:13:32 -0800 (PST) Original-Received: from tux.homenetwork (49.78.88-79.rev.gaoland.net [79.88.78.49]) by mx.google.com with ESMTPS id 20sm452197eyc.58.2008.12.03.02.13.31 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 03 Dec 2008 02:13:32 -0800 (PST) In-Reply-To: (Juanma Barranquero's message of "Wed, 3 Dec 2008 10:15:15 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Wed, 03 Dec 2008 05:30:23 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:22896 gmane.emacs.pretest.bugs:23448 Archived-At: "Juanma Barranquero" writes: > On Wed, Dec 3, 2008 at 09:47, Thierry Volpiatto > wrote: > >> I am sorry but I don't understand why emacs would find a process on >> another computer. > > No, I'm saying that Emacs *won't* find a process in another computer. > >> In which case ? > > The user can customize desktop.el so the desktop file (and desktop > file lock) are anywhere, even in a shared directory in a remote disk. Ok i understand now. In this case, may be a variable can be set: * Use a remote desktop ==> use the .emacs.desktop.lock like the actual code * Use a local desktop ==> in this case check if pid exist. (i think local desktop is the most common case) >> I just want emacs to check if the process that is in the lock file is >> own by another emacs process. > > Yes, I understand. And I'm saying that in the presence of distributed > filesystems, you cannot guarantee that a desktop lock file in a local > disk is owned by a local process, or that a local Emacs is saving the > desktop locally. > >> * If no emacs process with this pid is found ==> load desktop >> >> * If an emacs process with this pid is found ==> ask (default) if we load >> desktop or not >> >> Actually when the .emacs.desktop.lock is found, emacs lock desktop and >> ask if we want to use the desktop file, even if the pid that is in the >> file is no more in use by an emacs session. > > I share the sentiment. In fact, I do exactly that in my .emacs. > > But the point of the desktop locking mechanism is protecting the user; > automatically overwriting the desktop is against that idea. > > Juanma > -- A + Thierry Volpiatto Location: Saint-Cyr-Sur-Mer - France