From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 4980 invoked from network); 17 Nov 2022 19:27:32 -0000 Received: from mx1.math.uh.edu (129.7.128.32) by inbox.vuxu.org with ESMTPUTF8; 17 Nov 2022 19:27:32 -0000 Received: from lists1.math.uh.edu ([129.7.128.208]) by mx1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ovkXp-007dg4-FV for ml@inbox.vuxu.org; Thu, 17 Nov 2022 13:27:29 -0600 Received: from lists1.math.uh.edu ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.96) (envelope-from ) id 1ovkXp-003XPm-0U for ml@inbox.vuxu.org; Thu, 17 Nov 2022 13:27:29 -0600 Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtp (Exim 4.96) (envelope-from ) id 1ovkXk-003XPd-2u for ding@lists.math.uh.edu; Thu, 17 Nov 2022 13:27:25 -0600 Received: from quimby.gnus.org ([95.216.78.240]) by mx1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ovkXh-007dfX-ER for ding@lists.math.uh.edu; Thu, 17 Nov 2022 13:27:24 -0600 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :Date:References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=ZaSrqqGnzNdujBsIvMXoYIGieSN9KzlkK4lg77i+Ahs=; b=UaLU6f00Oq6gR1VmxlbBgB84Pn usrG+3+TBXxLD+W0LvMe+gxh6yiTjdYIRVNgUgge8kNOOqaR96nxAe7uFBWuAU4oIQ8k7zyVN/Fub 3vH5kV0TGN+PNsezirlkgRMac9KhQOt6mizyaCxVluAEJxbUL5UyW6lauUbfTk6zkI58=; Received: from thaodan.de ([2a03:4000:4f:f15::1]) by quimby.gnus.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ovkXV-0001pE-88 for ding@gnus.org; Thu, 17 Nov 2022 20:27:14 +0100 Received: from odin (dsl-trebng12-b04885-76.dhcp.inet.fi [176.72.133.76]) by thaodan.de (Postfix) with ESMTPSA id 4F7F8D08A05; Thu, 17 Nov 2022 21:27:07 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=thaodan.de; s=mail; t=1668713227; bh=d1G6mRaXil0TkqkExdssXNJPWxYhN1765L/b4e2ThCo=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=T4SVhQPNbQJ8oelxxU2C6N64J/RYCmVA82DlZwrKfQrbTh5+u1NNdEWchDNsHyzSu c/wUXEU7+60tEJ4ew0281tCb9VT2+4HjrTwB9AbxugT5th0ONqP+4ghIXFnDV5dlyD aDA0P7o/xSUt/0a0exlkJxJZtBd2PZCMguA6+7IeHy71e320G/koZc2MwIL1Yw68sn HE0CzRNJptiovGxC+dQCEEXIq4NixNWtQHpyhW/DuFjFXdFopF0RKFZ/1e8JRHx5p8 R8XqbuF00gBZ+N/OXD7xzewuTGsG6a0r8C5Y+Vg/4P8I7eBy3GUG0ParJlc50mte2/ HzrakY7FNE0RMEM8zQiY+g3YRjeQSy6K9YKmHGOKeRkDGURSkFsbchbzIKzeW43IN3 waKjGc1NqbRQkWApmbSoBjbNtJIiD0BAxGOEIdIN6iw4JsOi9AL8iyJsolbwdXEBW6 khICJ7QGAVLDL5QO2J86007A7k2ZqHAwiP3/9NJZXrbvokkyxVA/WWr+3WhiBSnwjA t6rBPtln7mJeT1Bjk8pa/u4wufPpEDL44xEd18FEF9G2rTmObA8bzpNMwsPapUrFlJ Sn53nklXav3asRqfEcjIRu23Kx8g7gA4NH8MJPnLutBIxBTqrNZWvI8LR1/c41Ph2g GAo4bLfQknbhqTaKT0zVf9MM= From: =?utf-8?Q?Bj=C3=B6rn?= Bidar To: TRS-80 Cc: ding@gnus.org Subject: Re: Starting gnus with desktop-mode In-Reply-To: <87pmdnmsg2.fsf@isnotmyreal.name> (TRS's message of "Tue, 15 Nov 2022 23:30:53 -0500") References: <87im3cds0c.fsf@notcom.org> <87pmdnmsg2.fsf@isnotmyreal.name> Date: Thu, 17 Nov 2022 21:27:06 +0200 Message-ID: <87sfih1iwl.fsf@thaodan.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-ID: Precedence: bulk TRS-80 writes: > My thoughts are that Gnus likely pre-dates `desktop-mode' and also works > by way of some quite unique (archaic?) functionality. She's a strange > (and wonderful!) beast, at least that's my current point of view. > > Anyway, I think that Gnus likely requires some special handling for your > use-case. But maybe you figured that out by now. I think this could be done by adding handlers for Gnus to desktop-buffer-mode-handlers. For example this is how it could be done for Elfeed: ;; Desktop Save (defun elfeed-search-desktop-save (_desktop-dirname) "Save the state of the current elfeed-search buffer so that it may be restored as part of a saved desktop. Also save the state of the db for when `desktop-auto-save-timeout' is enabled." (elfeed-db-save) elfeed-search-filter) ;;;###autoload (defun elfeed-search-desktop-restore (_file-name _buffer-name search-filter) "Restore the state of an elfeed-search buffer on desktop restore." (elfeed) (elfeed-search-set-filter search-filter) (current-buffer)) ;;;###autoload (add-to-list 'desktop-buffer-mode-handlers '(elfeed-search-mode . elfeed-search-desktop-restore)) Source: https://github.com/groks/elfeed/commit/6f3d4fbd08cad4648f51bff1c74b533bc417= 7939 Of course doing that Gnus is probably a bit more complicated. Br, Bj=C3=B6rn=20