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 09:47:54 +0100 Message-ID: <87ej0pve4l.fsf@tux.homenetwork> References: <87bpvufe28.fsf@tux.homenetwork> <87zljdkbne.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 1228295433 3347 80.91.229.12 (3 Dec 2008 09:10:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 3 Dec 2008 09:10:33 +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 10:11:36 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 1L7nlf-0000xv-07 for geb-bug-gnu-emacs@m.gmane.org; Wed, 03 Dec 2008 10:11:36 +0100 Original-Received: from localhost ([127.0.0.1]:51264 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L7nkU-0007Bo-HR for geb-bug-gnu-emacs@m.gmane.org; Wed, 03 Dec 2008 04:10:22 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L7nkP-00079X-UT for bug-gnu-emacs@gnu.org; Wed, 03 Dec 2008 04:10:17 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L7nkP-00078D-1R for bug-gnu-emacs@gnu.org; Wed, 03 Dec 2008 04:10:17 -0500 Original-Received: from [199.232.76.173] (port=44027 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L7nkO-000782-Qv for bug-gnu-emacs@gnu.org; Wed, 03 Dec 2008 04:10:16 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:43818) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L7nkO-0004Kv-7E for bug-gnu-emacs@gnu.org; Wed, 03 Dec 2008 04:10:16 -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 mB39ACwT023991; Wed, 3 Dec 2008 01:10:13 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id mB3903Df020109; Wed, 3 Dec 2008 01:00:03 -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 09:00: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 submit@emacsbugs.donarmstrong.com id=B.122829437618800 (code B ref -1); Wed, 03 Dec 2008 09:00:03 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 3 Dec 2008 08:52:56 +0000 Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mB38qrfU018788 for ; Wed, 3 Dec 2008 00:52:54 -0800 Original-Received: from mx10.gnu.org ([199.232.76.166]:57766) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1L7nT7-0002IR-Uh for emacs-pretest-bug@gnu.org; Wed, 03 Dec 2008 03:52:26 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1L7nTX-0002kN-Rd for emacs-pretest-bug@gnu.org; Wed, 03 Dec 2008 03:52:52 -0500 Original-Received: from nf-out-0910.google.com ([64.233.182.189]:20437) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L7nTX-0002kH-FC for emacs-pretest-bug@gnu.org; Wed, 03 Dec 2008 03:52:51 -0500 Original-Received: by nf-out-0910.google.com with SMTP id c7so2056062nfi.26 for ; Wed, 03 Dec 2008 00:52:50 -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=X1fr4SzcXW47yqYXI5gkE+QYUYxNh2EBQJNheSiQQ1I=; b=Irwr7zrUIWZtiIRcKI1j3bVDTLUpsS98/JXxyas8h78yMzhhYFB3GJPO+lhwWWgk8s L9YI3SzSMoUvlJmTQ2RnBE/fyJ4Pr4BwC2CFpCHR6UunoJk0T8VzXCpJXu22qDcYPZcJ 2g2vdjtTdkeMaS5QrL5VDePTbsN85yLuXUOAY= 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=SKYec0XfCSAoDp1A6VWNfpuO0hZtamI0hbmY6FYMeqUv8m8zCFQTLvfiBNZQUcrw+l 9n4eRAxVmpilDFp+AJ79R440x7AioPwYGdh0R2g+Sy0zCiBrrRo+CjRlPD5rUwgtP7So J97ejwDps1mnt2HE6htSr2dgN7KHHHC+MIa4U= Original-Received: by 10.103.220.18 with SMTP id x18mr5794057muq.135.1228294370441; Wed, 03 Dec 2008 00:52:50 -0800 (PST) Original-Received: from tux.homenetwork ([79.88.78.49]) by mx.google.com with ESMTPS id e10sm9009628muf.22.2008.12.03.00.52.49 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 03 Dec 2008 00:52:50 -0800 (PST) In-Reply-To: (Juanma Barranquero's message of "Wed, 3 Dec 2008 09:25:01 +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, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Wed, 03 Dec 2008 04:10:17 -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:22890 gmane.emacs.pretest.bugs:23443 Archived-At: "Juanma Barranquero" writes: > On Wed, Dec 3, 2008 at 07:36, Thierry Volpiatto > wrote: > >> If emacs process number doesn't exist, the "else" block is used. > > Please explain: if the desktop file that Emacs finds out is locked by > a process running in another computer, what do you want the local > Emacs to do? I am sorry but I don't understand why emacs would find a process on another computer. In which case ? I just want emacs to check if the process that is in the lock file is own by another emacs process. * 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. Emacs should do that only if user start a second emacs session, in this case the lock file will do his work and tell user this desktop is already in use. To reproduce, start emacs with (desktop-save 1) in your .emacs open some buffers, then kill emacs with a killall or similar. Now no emacs process exist right? start emacs again, it will tell you an emacs process is using desktop: thats wrong. I hope it's clear, thanks. -- A + Thierry Volpiatto Location: Saint-Cyr-Sur-Mer - France