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: Sun, 11 Feb 2018 20:01:51 +0100 Message-ID: <87bmgv2vvk.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> 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 1518375630 29834 195.159.176.226 (11 Feb 2018 19:00:30 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 11 Feb 2018 19:00:30 +0000 (UTC) User-Agent: mu4e 1.0; emacs 25.3.1 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 Sun Feb 11 20:00:25 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 1ekwr8-0006Kh-Pc for geb-bug-gnu-emacs@m.gmane.org; Sun, 11 Feb 2018 20:00:07 +0100 Original-Received: from localhost ([::1]:43967 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ekwtA-0004XJ-DL for geb-bug-gnu-emacs@m.gmane.org; Sun, 11 Feb 2018 14:02:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53050) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ekwt4-0004Wz-EL for bug-gnu-emacs@gnu.org; Sun, 11 Feb 2018 14:02:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ekwt0-0002Kl-6b for bug-gnu-emacs@gnu.org; Sun, 11 Feb 2018 14:02:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:58960) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ekwt0-0002KS-3a for bug-gnu-emacs@gnu.org; Sun, 11 Feb 2018 14:02:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ekwsz-0006cE-O7 for bug-gnu-emacs@gnu.org; Sun, 11 Feb 2018 14:02: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: Sun, 11 Feb 2018 19:02: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.151837572025423 (code B ref 30421); Sun, 11 Feb 2018 19:02:01 +0000 Original-Received: (at 30421) by debbugs.gnu.org; 11 Feb 2018 19:02:00 +0000 Original-Received: from localhost ([127.0.0.1]:38624 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ekwsy-0006bz-54 for submit@debbugs.gnu.org; Sun, 11 Feb 2018 14:02:00 -0500 Original-Received: from mail-wr0-f173.google.com ([209.85.128.173]:46980) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ekwsx-0006bn-5w for 30421@debbugs.gnu.org; Sun, 11 Feb 2018 14:01:59 -0500 Original-Received: by mail-wr0-f173.google.com with SMTP id 34so2852700wre.13 for <30421@debbugs.gnu.org>; Sun, 11 Feb 2018 11:01:59 -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=t+holEOJw9vijRWgPepNCZeXopqAsRhTvA/CuQf3+kk=; b=BTCdXrRqnhZ4wXzTfexM41uBrj8RhG89Q12CK/VS1VK/XsSdfZLsHDr/ruidUPskmY LqZHIrwR1KyaPLmU16Kz1Dz4HqtbVvn0OsVh5Za3d9/cHGLmi1MqvZPaI/D25f4LSKQV cVvScOSbLbm8FlOK8y1EoLkkF0vazt22iXwRQC3Gjn6G+p5aF1t+z49uIraCyJAP8ROq nj1pI3679fYo8qxd35dHjg/owMzZKsUDyBpa0MU4Txqa7ubUnCjpAFJRZ0GDHZkd5t/E OYEM9/vVtBgFldbIjxsPtn1Sgg/HacCO495Et2zscaBz1PpZB3czqbvjXqRoaorH6DUp Ql8A== 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=t+holEOJw9vijRWgPepNCZeXopqAsRhTvA/CuQf3+kk=; b=Wrmtx2/TJ3ueTqSQ5CvFgMoDjGNCSXWKEQZ8HHGsvJnP/esnxWGSdwRHi1xElf/XwD +5KZyjqA2xz9oSJGia2vUaq+1rhhCKNkLzwHgp+5rX6RNTGdRs38iWeuawUeJK8gN3pe eozscKSaUYYmqk+0B1nNLpTf2jxjCgV3g6GHycJ1hnf6LD99QDAb1L4BpVZG15GQPxq2 gpWOfs0RmjnCj8Q51BQJrEp0tQF9pCcsp7pVczC8V26FnRGIAUejJnwHwGECaPMb1/gS saxgfcWWFGynhTEjStLWw/wL9UntClVF63yH1XtMLW1h75M1FHHJ7kBhIiW3rZcV3bR1 H12g== X-Gm-Message-State: APf1xPAsp6bsV1GWBu2MosQ1bCDLzMjEwpP8N+TglA2BbmCnjazZ1US8 uJpha7c9+rrIyt8wiWYYZD1Ce7sq X-Google-Smtp-Source: AH8x225mVZZ2gYAPYiS3rUH3rXtUTnZi39sNTixgxJo/MlPVsKAChMASg+DnBYofP87xqX8LNtqQ7g== X-Received: by 10.223.152.193 with SMTP id w59mr7043123wrb.74.1518375713199; Sun, 11 Feb 2018 11:01:53 -0800 (PST) Original-Received: from mimimi (2a01cb040a37a0003a915b0581181238.ipv6.abo.wanadoo.fr. [2a01:cb04:a37:a000:3a91:5b05:8118:1238]) by smtp.gmail.com with ESMTPSA id k13sm6089010wrd.61.2018.02.11.11.01.52 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 11 Feb 2018 11:01:52 -0800 (PST) In-reply-to: <83wozjz79c.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:143167 Archived-At: --=-=-= Content-Type: text/plain >> (defun desktop-init (_frame) >> (desktop-save-mode) >> (desktop-read) >> 0) >> (add-hook 'after-make-frame-functions 'desktop-init) > > Yes, I think so. Although you may wish doing this only once, not > after each frame creation (in which case, you should make the function > remove itself from the hook variable). Good point. >> It seems that those functions are expected to return a number, hence the 0. > > Hmm... where did you see that they are expected to return a number? Forget it, I had an error I cannot reproduce, must have been something else. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAlqAkx8ACgkQm9z0l6S7 zH8iCwgAqyR5QixORicaNOMVyXZt5Tnq6jVHUh5obqr9GtenUp7XqC2PHaYVfDq6 HBpHK5l/TcipzkYFMgyx+kE/iE8Yx9rKM1LX/3ogYXgIPfVvRkLCjKNUXP+GfPg9 V6Z3xmFkjytzq29mhTZHIOXDuoV00RyNEepbN/b3xAOWXwH/zMDefJ+PGtxqJaiY cFaCwvIHEXHAIekM/OCp+GA3Ram5xbaUv2TfJOg8ELB2gGSx9QqungkmMOFMUAdA wb3cycJARq3hXwpAyXr1r0jESoQLAqM61ixoyu6iBNL/CRgHn4JxlREjHI0isE/N ql6jlsh9xuiyR8P/FBA1g3ib6Trk2g== =QRvR -----END PGP SIGNATURE----- --=-=-=--