From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Pierre Neidhardt Newsgroups: gmane.emacs.bugs Subject: bug#30421: 25.3; desktop.el: Steal lock when no living "emacs" process owns it Date: Sat, 24 Feb 2018 20:44:45 +0100 Message-ID: <878tbi2mvm.fsf@gmail.com> References: <871shram2i.fsf@gmail.com> <83mv0f1q6t.fsf@gnu.org> <87r2prpl05.fsf@gmail.com> <87zi4fa4ft.fsf@users.sourceforge.net> <838tbz1o8k.fsf@gnu.org> <87mv0f5urq.fsf@gmail.com> <837erj1m46.fsf@gnu.org> <87k1vj5tju.fsf@gmail.com> <834lmn1k5h.fsf@gnu.org> <876073e5d9.fsf@gmail.com> <83wozjz79c.fsf@gnu.org> <87bmgv2vvk.fsf@gmail.com> <87o9kpn9pq.fsf@gmail.com> <83po55e4md.fsf@gnu.org> <87r2pkilsj.fsf@gmail.com> <83fu60cb82.fsf@gnu.org> <87r2pilesx.fsf@gmail.com> <831shib6e3.fsf@gnu.org> <83k1v24qpl.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Trace: blaine.gmane.org 1519501395 3755 195.159.176.226 (24 Feb 2018 19:43:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 24 Feb 2018 19:43:15 +0000 (UTC) User-Agent: mu4e 1.0; emacs 26.0.91 Cc: 30421@debbugs.gnu.org, npostavs@users.sourceforge.net To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Feb 24 20:43:10 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1epfiw-0000XS-C8 for geb-bug-gnu-emacs@m.gmane.org; Sat, 24 Feb 2018 20:43:10 +0100 Original-Received: from localhost ([::1]:51241 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1epfky-00043O-P8 for geb-bug-gnu-emacs@m.gmane.org; Sat, 24 Feb 2018 14:45:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57611) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1epfkp-000437-5x for bug-gnu-emacs@gnu.org; Sat, 24 Feb 2018 14:45:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1epfkk-0008Oe-9Q for bug-gnu-emacs@gnu.org; Sat, 24 Feb 2018 14:45:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:51139) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1epfkk-0008O6-6C for bug-gnu-emacs@gnu.org; Sat, 24 Feb 2018 14:45:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1epfkj-0004Vc-N1 for bug-gnu-emacs@gnu.org; Sat, 24 Feb 2018 14:45:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Pierre Neidhardt Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 24 Feb 2018 19:45:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30421 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 30421-submit@debbugs.gnu.org id=B30421.151950149617307 (code B ref 30421); Sat, 24 Feb 2018 19:45:01 +0000 Original-Received: (at 30421) by debbugs.gnu.org; 24 Feb 2018 19:44:56 +0000 Original-Received: from localhost ([127.0.0.1]:59036 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1epfke-0004V5-3Z for submit@debbugs.gnu.org; Sat, 24 Feb 2018 14:44:56 -0500 Original-Received: from mail-lf0-f52.google.com ([209.85.215.52]:43441) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1epfkc-0004Us-0C for 30421@debbugs.gnu.org; Sat, 24 Feb 2018 14:44:54 -0500 Original-Received: by mail-lf0-f52.google.com with SMTP id q69so16913497lfi.10 for <30421@debbugs.gnu.org>; Sat, 24 Feb 2018 11:44:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version; bh=d9zaucyIozLNKGi5XYwi6p6qXZzORGHOQ4zWztI+GA8=; b=sHWJdLiY8cPeSDPemJGKy0xHXyBJeqSi4+xXM8UAIbV0e4let40twwZXtOQ3n3PYci RzYcfPWuLgTQo4aX4lCXd/znajX6qXEjZcswNO0e8U7SOZvDD09uJZpxf8sQxA1TpExk 32Y7LABZPNgnHBOlF/kSwHP2Hnea31cTUh+5XduAh5CqWMiiYOtQ8FB/D3Rrqcdgv8Z8 /WzYMiBHEvZ2Nfh794V29JpADiYgNF7UyJm7FhsFtt0HIOoh4i/xAUfKyiY20Pjc+Qes 12MCkXcwzGsPZM0wXkksVNg3TdAiogrnwQ60KwjyW4/QiXZWLeb1n37y63Dp3kT3+hdF emXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version; bh=d9zaucyIozLNKGi5XYwi6p6qXZzORGHOQ4zWztI+GA8=; b=GQo+v8K26cjABpHjRfrxeBnNifvtAdItur6Iwyp2eB6kaGk++hTLTVNNBBy6GtBiIa 2W/hGe5rG2HE5PEmM4K37ibaiZtmxnfNQpMan+R/0SlKtxxRiu1jjP+HeefYviqZQsqs brFsNNuffdm/Psm0DFOFk5HPllUs2nGQanoVkTPQL8TeT5fP/Qf8DxXEp1meHfjsxyBX 9jHVQ0rUUYuxe0g8UkUTh/oIFVwDZPiugtEeq6KIC+E1QkWC+ABf8M85IWp6YgijZnuJ 5s/xnvPN9mGhMu/zFIQvAxP2MyY/DdeIiZhpdEIrs69Gj/l3RJzno4ggcXehDpmJ5gSX 2ZRA== X-Gm-Message-State: APf1xPDYkFlsCTEkUy3jX5hfWpcHf1zmPr0ORvG6+UFfQPcfFnsK6qLi 2RIBsirldesAazB/4nM+j08= X-Google-Smtp-Source: AH8x225dilv0cPGUDXX7qZt7mqbaQzI2re/NzoUShGLqVFDCV/aUtdbhY17pZUImjIlvBsapeblaHg== X-Received: by 10.46.49.10 with SMTP id x10mr3905495ljx.5.1519501488040; Sat, 24 Feb 2018 11:44:48 -0800 (PST) Original-Received: from mimimi (c80-217-164-188.bredband.comhem.se. [80.217.164.188]) by smtp.gmail.com with ESMTPSA id g70sm1092937lfk.76.2018.02.24.11.44.46 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 24 Feb 2018 11:44:47 -0800 (PST) In-reply-to: <83k1v24qpl.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:143640 Archived-At: --=-=-= Content-Type: text/plain Correct me if I did not understand your instructions correctly. I did this: - Add this to my init.el (defun ambrevar/desktop-init () (desktop-save-mode) (desktop-read) (remove-hook 'server-switch-hook 'ambrevar/desktop-init)) (add-hook 'server-switch-hook 'ambrevar/desktop-init) - Kill Emacs, leaving a .emacs.desktop.lock behind. - Switch to a TTY. - Start `emacs --daemon`. - Run `emacsclient foo`. I correctly get prompted if I want to load the desktop then. Running `emacsclient -t` does not trigger the desktop loading, but I guess that's to be expected. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAlqRwK0ACgkQm9z0l6S7 zH8d1gf8D7bSom/aHHWF7c+YbRTSGOTKlY8Cmelc16AErTYeuRwg7LAzJvPblGu0 9n6wIRp+EjY0IS/j3QBl+x/54rjbQ2qX99Q5IDLS+EMhcNdLnjOWuSoLOz5TbwHX gg6M4Kk//weyT0uLCr2CrT87UXMbwhO/8JqxbZkCXFy4ZLTu89Q/GVGRdxynBJmF WVjc3s14QNhNXsRvVk1IMR72Si5SMGY7STmst3oUlpkDeNauiLGiFTDq2P3UviFm VAdgqbEH40j6MCQHFWNpmy91ecSlFXyS97CzGitU1DtvPQanrhsV1b1Cgo8byADH +5KcsqPH29oCTbgHTGYQiDUadkeG6w== =GHaZ -----END PGP SIGNATURE----- --=-=-=--