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: Mon, 19 Mar 2018 16:36:49 +0530 Message-ID: <87d1005np2.fsf@gmail.com> References: <871shram2i.fsf@gmail.com> <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> <878tbi2mvm.fsf@gmail.com> <83fu5q2lqh.fsf@gnu.org> <834llxv1fp.fsf@gnu.org> <87d10l11cp.fsf@gmail.com> <834lloup0b.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 1521457575 15830 195.159.176.226 (19 Mar 2018 11:06:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 19 Mar 2018 11:06:15 +0000 (UTC) User-Agent: mu4e 1.0; emacs 26.0.91 Cc: 30421-done@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 Mon Mar 19 12:06: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 1exscE-0003zz-78 for geb-bug-gnu-emacs@m.gmane.org; Mon, 19 Mar 2018 12:06:10 +0100 Original-Received: from localhost ([::1]:41302 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1exseH-0003GM-8L for geb-bug-gnu-emacs@m.gmane.org; Mon, 19 Mar 2018 07:08:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55867) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1exse7-0003Dw-PZ for bug-gnu-emacs@gnu.org; Mon, 19 Mar 2018 07:08:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1exse1-0001eE-Ve for bug-gnu-emacs@gnu.org; Mon, 19 Mar 2018 07:08:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:32896) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1exse1-0001eA-RJ for bug-gnu-emacs@gnu.org; Mon, 19 Mar 2018 07:08:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1exse1-0003vP-I3 for bug-gnu-emacs@gnu.org; Mon, 19 Mar 2018 07:08:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Pierre Neidhardt Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 19 Mar 2018 11:08: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-done@debbugs.gnu.org id=D30421.152145762515001 (code D ref 30421); Mon, 19 Mar 2018 11:08:01 +0000 Original-Received: (at 30421-done) by debbugs.gnu.org; 19 Mar 2018 11:07:05 +0000 Original-Received: from localhost ([127.0.0.1]:40788 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1exsd7-0003tt-2U for submit@debbugs.gnu.org; Mon, 19 Mar 2018 07:07:05 -0400 Original-Received: from mail-io0-f177.google.com ([209.85.223.177]:34228) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1exsd5-0003tP-66 for 30421-done@debbugs.gnu.org; Mon, 19 Mar 2018 07:07:03 -0400 Original-Received: by mail-io0-f177.google.com with SMTP id r18so1468097ioa.1 for <30421-done@debbugs.gnu.org>; Mon, 19 Mar 2018 04:07:03 -0700 (PDT) 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=tIJhgcYiJTlaJ9Ivf4hI7JKvGut4Vnd2Bh+8oP7IQ6M=; b=POLeA3Avc+Me+MxPhNOfaQFsChTMxleF9W/YkAPOSjHFMqQP4wQ2CWlwg4CfJQrPZt 0MR2BNXq2yCc9V7c38aLMIkzfrNYDvEdp5tPVu9GZDnprRMSZSyw1DSdoP8iitM9DHQq B/XZ/7WPJs3S5KlzvMYmdqyLWyLIINMzaZJA/8wMqN1Ihl5SsAQUVGyKwqIuE77kSRiV 1OAX3Ou+LJV+r/B7Y6X/fdFnvJF6BP8lArEc4lNjBbu/o4mjdCjI/J14i3zwaUL29eoT jDDZtXbhvZeffhOd6xz3F+l+HDBTwZHB6bh2tgDeuv8oJOsy0XGA1jJASR1vHvcvnlnM bqWA== 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=tIJhgcYiJTlaJ9Ivf4hI7JKvGut4Vnd2Bh+8oP7IQ6M=; b=AMhMZXfWy5iVw04Q83TRYJ5GrbXisl0kykDzNyZMMvHcm3MpLrgEeq+lpHLWJVSjKG 9nVXNV+OtZL/wv4kcrxvjKmkWQPgFrNUV6M73syTrXU52YY8vFPS1xa0KhW29pWtS0ds YtDcNjJfyE/f1VFML0RTDSQSSzzWoxwRq2RTEjuxjgiZIs+M/UwNMRpGOxkTeGjb8G3c f7no8MWaqGQzCopnhuxFPEPb8pmEjSVgb0HgRdXiaKD6KIuzCTGmmbJBFaRDU0gpfxum APg6YB6TB+0owTBt12ueZ04uyqZ6QiMlk8R48ocfu9PBGpBC0YcLtjUfxL9epE+Ky9XC 0v3A== X-Gm-Message-State: AElRT7EyRbrLJlsC/Kj+I55qufAQOK3VkWIHY4URpaB0grTe5n9lDhtH I6jOohQFaWdI7PYHz9A0mvw= X-Google-Smtp-Source: AG47ELtby5QLhNqwknQUX0SeM0VvDvqrW7frihD9CHdCwWDM0Yx8V9/+2eT06scMKudfjHsrDMYo4Q== X-Received: by 10.107.182.67 with SMTP id g64mr12035182iof.58.1521457617477; Mon, 19 Mar 2018 04:06:57 -0700 (PDT) Original-Received: from mimimi ([106.205.135.76]) by smtp.gmail.com with ESMTPSA id k13sm3818921ioc.27.2018.03.19.04.06.53 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 19 Mar 2018 04:06:56 -0700 (PDT) In-reply-to: <834lloup0b.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:144401 Archived-At: --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain What about this? --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-Add-example-of-delayed-desktop-loading.patch Content-Transfer-Encoding: quoted-printable From=20a0b72f3c6c38308deba5da1b30e53e9b1923c7e0 Mon Sep 17 00:00:00 2001 From: Pierre Neidhardt Date: Mon, 19 Mar 2018 16:32:55 +0530 Subject: [PATCH] Add example of delayed desktop loading =2D-- doc/emacs/misc.texi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/doc/emacs/misc.texi b/doc/emacs/misc.texi index 68bd308983..65f6f3d75e 100644 =2D-- a/doc/emacs/misc.texi +++ b/doc/emacs/misc.texi @@ -2531,6 +2531,14 @@ Saving Emacs Sessions first client connects, by calling @code{desktop-read} in a hook function that you add to @code{server-after-make-frame-hook} (@pxref{Creating Frames,,, elisp, The Emacs Lisp Reference Manual}). +A possible setup when @code{desktop-load-locked-desktop} is @code{nil}: +@example +(defun desktop-init (_frame) + (desktop-save-mode) + (desktop-read) + (remove-hook 'server-after-make-frame-hook 'desktop-init)) +(add-hook 'server-after-make-frame-hook 'desktop-init) +@end example =20 @node Recursive Edit @section Recursive Editing Levels =2D-=20 2.16.2 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable =2D-=20 Pierre Neidhardt Most people want either less corruption or more of a chance to participate in it. --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAlqvmckACgkQm9z0l6S7 zH/vxAf/ZbHaJOOiJspYudEau1rhT9aro38AJhvNiO4M7CQugigcn1RFWUTiAXIW QlCDp7t+Jk6QQuuueFt1r8hXtXORjXB/VK0LCMW7UAuSWgzknHGzjbNjQhU6yDiH nU4JZwxeVs5EAC5MpNLp2PPGmBe2HJcBgJTB0V3Llz9FPIBG8fWdnPcFKrsSOSfo c8bwE9OMJRTdN/W5QPaHnah3Fi47woDdZ9BmzXadMnbd1i3NTyFtj5KH8NV9+kKd 7o9wMp/topc2H27D3eNicRNq0XA0ODEcRfoFZMj7W7gyNqSKkkSWjWIWHPLMbokE xiKO3YxAZVewnUrF/V++FQgApBQ9VQ== =5f77 -----END PGP SIGNATURE----- --==-=-=--